You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f0eafc6
Browse filesBrowse the repository at this point in the historyBrowse files
fix(sdk): a step-up can no longer switch accounts, and refreshes keep the original sign-in
A step-up records the session's sub in its sealed pending-login cookie, and the
callback fails, keeping the session unrevoked, when the new sign-in names
another account than that or than the session it would replace. The callback
redeems the code before revoking the replaced session, so it can check. Apps
using Client directly can pin a login with AuthorizeRequest::id_token_hint.
Client::refresh takes the sign-in's ID token claims and enforces OIDC Core
12.2: the same sub, auth_time and acr, and no other nonce; the session keeps
the sign-in's nonce when a refresh returns none. Client::userinfo takes the
claims and requires the same sub. New shared reasons: subject_mismatch and
authentication_changed.
Breaking: Client::refresh and Client::userinfo take the ID token's claims,
AuthorizeRequest gains id_token_hint, and TokenError and OAuthError gain
variants.
0 commit comments