Commit a066a34
committed
fix(auth-ui): preserve OIDC requestId across ceremony-continuation links
A mid-OIDC user who continued the ceremony via certain links/redirects lost the requestId and dead-ended at the default post-login redirect (cloud portal) instead of returning to the relying party (e.g. datumctl).
- accounts: 'Add another account' / 'Add an account' now thread requestId. - recovery hook (useAuthErrorRecovery/useAuthActionRecovery): the 'Sign in again' / 'Start over' links on every ceremony screen (setup/*, login/verify/*, login/mfa) now carry requestId + organization. - password: the SESSION_EXPIRED 'Sign in again' link threads requestId + organization. - broken-session guard redirects (setup/authenticator, login/method) preserve it.
withQuery drops undefined, so non-OIDC flows keep the bare /login. Audited the full surface against the Zitadel login-v2 pattern; the query-carrying links (method chooser, passkey, OTP resend, BackLink, Not-you, signup<->login) were already correct.1 parent 80b3bba commit a066a34
23 files changed
Lines changed: 311 additions & 94 deletions
File tree
- app
- hooks
- __tests__
- modules/i18n/locales
- routes
- __tests__
- login
- __tests__
- verify
- setup
- __tests__
- utils/errors
- __tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
15 | 18 | | |
16 | | - | |
17 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
18 | 26 | | |
19 | 27 | | |
20 | 28 | | |
| |||
35 | 43 | | |
36 | 44 | | |
37 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
38 | 67 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
20 | 26 | | |
21 | 27 | | |
22 | 28 | | |
0 commit comments