Skip to content

OAuth redirect: gothwadstore:// -> kiwistore:// - #12

Merged
GothwadTech merged 1 commit into
mainfrom
arena/53e2313f-storeapp
Oct 19, 2026
Merged

GothwadTech merged 1 commit into
mainfrom
arena/53e2313f-storeapp

Conversation

@GothwadTech

Copy link
Copy Markdown
Owner

What

Moves the Android OAuth redirect scheme from gothwadstore to kiwistore.

  • app/build.gradle.kts: OAUTH_REDIRECT_URI = "kiwistore://oauth/callback"; OAUTH_CLIENT_ID default stays kiwi-store.
  • AndroidManifest.xml: new kiwistore VIEW/BROWSABLE filter; old gothwadstore filter kept only as a transition so sign-ins started by an older APK can still finish.
  • AuthManager.kt: accepts kiwistore (plus the legacy scheme for the transition window), validates host + /callback path, and uses the same redirect_uri for authorize and token exchange. Doc comments updated.
  • AccountScreens.kt: the "Android returns to ..." string now shows kiwistore://oauth/callback.
  • New AuthRedirectTest: pins the BuildConfig value, authorize URL, manifest filters, callback acceptance/rejection and the token-exchange redirect_uri (MockWebServer).

Verification

CI: unit tests + debug compile + lint (quality) and release APK/AAB build.

Follow-up

Accounts must register kiwistore://oauth/callback for client kiwi-store; keep gothwadstore://oauth/callback registered until the transition ends.

- BuildConfig.OAUTH_REDIRECT_URI is now kiwistore://oauth/callback; the
  OAUTH_CLIENT_ID default stays kiwi-store.
- AndroidManifest declares the new kiwistore VIEW filter and keeps the old
  gothwadstore filter only as a transition for logins started by old APKs.
- AuthManager accepts only kiwistore (plus the documented legacy scheme),
  checks host/path, and keeps redirect_uri identical for authorize + token
  exchange.
- UI/docs updated, and Robolectric tests pin the scheme, manifest filters
  and the token-exchange redirect_uri.

Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
@GothwadTech
GothwadTech merged commit bdfe34c into main Oct 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant