15 cards
`ALT_IDP_ENABLED`
Enables switching to Keycloak when Auth0 is not healthy.
Auth Health API
Returns `healthy: true/false` for the primary IdP; the BFF calls it before redirecting to /authorize.
Health cache
The result is cached for `AUTH_HEALTH_CACHE_SECONDS` (60s) so the health API is not called on every login.
idProvider in SessionID1
Stores the chosen IdP so the callback knows which IdP to exchange the token with and verify JWKS against.
Health API error → treat as healthy
Intentional fail-open: prefer letting users continue to the primary IdP over wrongly switching to the fallback; must be stated explicitly in the spec.
Step-up authentication
A logged-in user must re-authenticate before sensitive operations: cash withdrawal, changing the payout account, setting up MFA.
`stepup-passkey-web` client
Passkey only, connection `Passkey-Login`, used when `usedPasskey=true` and `PASSKEY_ENABLED=true`.
`stepup-password-web` client
Authenticates with a password, connection `Stepup-Password`, grants authorization_code + mfa.
Native step-up clients
`stepup-passkey-native` / `stepup-password-native`, callback via the Universal Link `STEPUP_COMPLETE_URL`.
How the client is chosen
`usedPasskey` in SessionID2 and `PASSKEY_ENABLED`; if passkey fails, fall back to the password client.
`context` param
`security-setting` | `cash-out` | `withdrawal-account`; determines the requested scope and when the child session is deleted.
When the child session is deleted
When the 600s TTL expires, or immediately when the business operation completes (e.g. the withdrawal order has been submitted), depending on context.
`stepup:{id}` vs `stepup-mfa:{id}`
stepup is only proof (fixed TTL); stepup-mfa holds a real access_token (requested with `audience=https://<idp-domain>/mfa/`) to call `/mfa/*` (TTL = expires_in); created in two separate callbacks `/auth/stepup/callback` and `/auth/stepup/mfa-callback`.
passkey_fallback_url
IdP metadata that configures the URL back to the BFF when the user cancels passkey; the BFF switches to the password client.
auth_time in step-up
Send `prompt=login&max_age=600` and check `now - auth_time` ≤ 600s to be sure the user just re-authenticated rather than reusing an old SSO session at the IdP.