Repository navigation
test(verify): sign in again before stepping up with a new factor - #379
Merged
Merged
Conversation
A step-up now only accepts a factor enrolled before the session signed in, and registering a verified address is answered as an unclaimed sign-up. The step-up spec and the owner helpers sign in again after enrolling, and an existing owner signs in through /login.
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.
Updates the conformance harness for two seamless-auth-api v0.24 behaviors.
stepUpOwnernow takes a sign-in callback: when it enrolls the owner passkey it signs in again and steps up the new session, and it returns the token it stepped up. The step-up spec signs in again after enrolling TOTP before calling/totp/verify-mfa.ownerAdminTokennow goes throughownerAccessToken, which signs an existing owner in through/loginand registers only when the account does not exist yet. The owner admin spec uses the sameownerSessionhelper and checks that the owner holds theadminrole whether or not another spec registered it first.Run by hand against the api project: 25 of 25 pass against seamless-auth-api main and against a build carrying the v0.24 step-up and pre-auth changes, including a fresh database where the owner passkey is enrolled during the run.