[codex] Add Pubky Ring auth callbacks#917
Conversation
946e7f2 to
6d6c98f
Compare
fc79786 to
66e7592
Compare
This comment has been minimized.
This comment has been minimized.
|
Not sure if it is Bitkit or Ring, but going back to ring from Bitkit does not open the auth window correctly.
Below comparison with iOS (left), where the issue is not appearing: Screen.Recording.2026-04-29.at.11.02.47.mov |
|
Also see that Screen.Recording.2026-04-30.at.14.29.39.mov |
787db77 to
38553ad
Compare
38553ad to
c0de815
Compare
|
Why isn't it redirecting me back from Ring? 🤔 Am I missing something? I added new Staging Pubky, because I thought that might be the issue, that I was using Prod identity from Ring, but then again, iOS counterpart PR worked that way too (synonymdev/bitkit-ios#537), and it still doesn't work anyways with staging. PS. Asked Codex too. EDIT: NVM, I figured out the issue, I had to use new Pubky Ring build, thanks @coreyphillips 🙏🏻 |
ovitrif
left a comment
There was a problem hiding this comment.
LGTM
Tested:
- Approve
- Deny (cancel)
- Error (via temp patch in
PubkyChoiceViewModel.startRingAuth()to send malformedpubkyauthURL to Ring.
There was a problem hiding this comment.
actually, I did figure out with Codex that it doesn't match iOS here:
Android’s invalid nonce cancel/error handling does not match iOS. iOS ignores stale/mismatched callbacks; Android currently ends the active auth attempt for invalid cancel/error.
Probably misses your latest updates to the iOS counterpart PR that got merged?
|
Pushed What changed:
Important for testing:
Suggested manual test:
Stale callback check:
adb shell am start -a android.intent.action.VIEW -d 'bitkit://pubky-auth/cancel?nonce=invalid' to.bitkit.dev
|
ovitrif
left a comment
There was a problem hiding this comment.
Will retest test later if I get a build from Corey, to validate against the latest changes for the nodes in Pubky Ring.
Otherwise, everything is already tested and looking good, so normally this pull request can be merged.
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
Description
Fixes #913.
x-success,x-cancel,x-error, andx-source=Bitkitcallback parameters before launching Ring auth.bitkit://pubky-auth/success,bitkit://pubky-auth/cancel, andbitkit://pubky-auth/errordeeplinks in the app.completePubkyAuth()as the source of truth for successful session completion../gradlew detektreports no issues.Preview
N/A, deeplink/auth flow change.
QA Notes
Validation run:
git diff --checkpassed./gradlew detektpassed with no findings./gradlew compileDevDebugKotlinattempted, but blocked at:app:checkDevDebugAarMetadatabecause GitHub Packages credentials are missing (Username must not be null) for private Maven artifacts./gradlew testDevDebugUnitTestattempted, but blocked for the same GitHub Packages credential issueSuggested manual QA: