Repository navigation
fix(step-up): require proof to add a factor and count only earlier factors - #620
Merged
Merged
Conversation
…ctors Step-up now accepts only a passkey or TOTP enrolled before the session signed in, walking exchanged sessions to the earliest in their lineage. Adding a passkey, TOTP, phone or recovery code set needs a fresh step-up when the account already has a factor, or a sign-in from the last ten minutes when it has none. Recovery sessions are exempt. DELETE /users/credentials needs a fresh step-up (L-API-1, #600).
This was referenced Nov 27, 2026
This was referenced Dec 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Step-up and factor enrollment are stricter.
/totp/verify-mfaanswers401 step_up_unavailablefor a TOTP that is too new, and/step-up/webauthn/startleaves out passkeys that are too new.403 step_up_required) when the account already has a passkey or TOTP. An account with neither needs a sign-in from the last five minutes, and otherwise gets403 reauthentication_required. Recovery sessions are exempt.DELETE /users/credentialsneeds a fresh step-up.Clients that add a factor from an existing session should run a step-up on
step_up_requiredand ask the user to sign in again onreauthentication_required. Released as a minor bump.Refs #600