This PR implements the username+password registration flow.
New NewPasswordIdentifyVerification verification record.
We defined a new NewPasswordIdentifyVerification verification record class in this PR. It represents a verification record that is used to return a valid new password+identifier for new user registration use.
This verification record will verify the uniqueness of the given identifier and validate the password against the password policy checker.
New POST /verifications/new-password-identity verification endpoint
This endpoint will create and verify a new password identity. A verification record will be stored in the interaction storage after a successful verification.
New validatePassword method in the ProfileValidator
This method will validate the new given password against the password policy checker. Throws an error if any violation is found.
New getPasswordPolicyChecker method in the SignInExperienceValidator
As the PasswordPolicyChecker relys on the SIE settings to generate a proper policy checker. We add an async method here to fetch and create a new PasswordPolicyChecker instance for password validation use.
Summary
This PR implements the username+password registration flow.
New
NewPasswordIdentifyVerification
verification record.We defined a new
NewPasswordIdentifyVerification
verification record class in this PR. It represents a verification record that is used to return a valid new password+identifier for new user registration use. This verification record will verify the uniqueness of the given identifier and validate the password against the password policy checker.New
POST /verifications/new-password-identity
verification endpointThis endpoint will create and verify a new password identity. A verification record will be stored in the interaction storage after a successful verification.
New
validatePassword
method in theProfileValidator
This method will validate the new given password against the password policy checker. Throws an error if any violation is found.
New
getPasswordPolicyChecker
method in theSignInExperienceValidator
As the
PasswordPolicyChecker
relys on the SIE settings to generate a proper policy checker. We add an async method here to fetch and create a newPasswordPolicyChecker
instance for password validation use.Testing
Checklist
.changeset