Skip to content

[do not merge] force a deploy#1604

Draft
StephenWithPH wants to merge 5 commits into
developfrom
account-linking-integration
Draft

[do not merge] force a deploy#1604
StephenWithPH wants to merge 5 commits into
developfrom
account-linking-integration

Conversation

@StephenWithPH

Copy link
Copy Markdown
Contributor

StephenWithPH and others added 4 commits June 16, 2026 14:01
New checkAccountLinked() consults GET /user/linked and classifies the response as LINKED (204), UNLINKED (200 + link URL), INVALID (400), or TRANSIENT (network/5xx/timeout/cancellation). The JWT is attached per-call and the request bypasses the global 401 handler. Also adds the non-persisted view.auth0CallbackInProgress flag and wires its reducer into the store. Unused by the UI until later commits.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
RequireAccessToken now renders the loading overlay while view.auth0CallbackInProgress is set, and skips writing the intended post-login route during that window. This covers the post-callback gate round-trip added later so the user is not bounced to /login (clobbering their deep link) before the SPA enters its authenticated state. No-op until the flag is set.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Login reads location.state.authLinkingError and shows a retryable message; adds errorAlert.signInIncomplete to every locale. Inert until the gate routes unlinked/transient cases here in the next commit.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
On the common-DB path (require_idp and no IdP org), Auth0TokenManager consults the account-linking gate before entering the authenticated state: 204 proceeds, 200 hands off to the server-owned link page, 400 clears the SDK and SPA token state and restarts login, and a transient failure leaves a retryable error at /login. Org-scoped (rcuksa) logins skip the gate. The finalizing flag is set at branch entry and cleared in a finally so it can never hang the SPA on the loading overlay.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jun 16, 2026

Copy link
Copy Markdown

🚀 PR Environment Deployed

App Sync Health Image
pr-web-account-linking-integration ✅ Synced ✅ Healthy b15376b2de74c0fe1a0c73841e21ae20518787cd

Access: https://account-linking-integration.dev.pamdas.org

View in ArgoCD

@StephenWithPH StephenWithPH force-pushed the account-linking-integration branch from 75f0ef9 to b15376b Compare June 16, 2026 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant