Skip to content

feat(authz): carry authMobile through SSO registration and invite flows - #1859

Merged
aliaska-varieva merged 2 commits into
mainfrom
feat/sso-flow-authmobile
Aug 22, 2026
Merged

feat(authz): carry authMobile through SSO registration and invite flows#1859
aliaska-varieva merged 2 commits into
mainfrom
feat/sso-flow-authmobile

Conversation

@aliaska-varieva

Copy link
Copy Markdown
Contributor

Problem

Mobile registration/invitation via browser SSO with redirectTo=com.openframe.app://auth can redirect back to the app (after #1841), but the app never gets a session: on prod dev-ticket-enabled: false, so the one-time ticket is only attached when the BFF flow runs with authMobile=true — and unlike /oauth/login?authMobile=true, the registration/invite flows had no way to say it.

Fix

Wire authMobile end-to-end, mirroring the login contract:

  • SsoTenantRegistrationInitRequest / SsoInvitationAcceptRequest: new optional authMobile param
  • carried in the signed of_sso_reg / of_sso_invite cookie payloads (Jackson decode of old cookies defaults to false)
  • finalize appends &authMobile=true to the /oauth/continue redirect; continueFlow already accepts it and gates on mobile-auth-enabled

Frontend follow-up: the app-shell registration/invite calls must send authMobile=true alongside redirectTo=com.openframe.app://auth (same as loginUrl does).

Cross-compiled against openframe-saas-shared auth-server (999-SNAPSHOT).

🤖 Generated with Claude Code

aliaska-varieva and others added 2 commits August 22, 2026 11:38
The mobile app receives its session as a one-time ticket attached to the
allow-listed native redirect (com.openframe.app://auth) — but only when the
BFF flow runs with authMobile=true, and on prod dev-ticket-enabled is off.
Login sends the flag on /oauth/login; registration and invitation had no
way to: the init requests did not accept it, the flow cookies did not carry
it, and finalize never forwarded it to /oauth/continue. Wire it end-to-end
(init request -> signed flow cookie -> continue query param). Old cookies
without the field decode to false — unchanged behavior.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@aliaska-varieva
aliaska-varieva merged commit a13060a into main Aug 22, 2026
@aliaska-varieva
aliaska-varieva deleted the feat/sso-flow-authmobile branch August 22, 2026 09:42
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