feat: Add MFA (Multi-Factor Authentication) API support#79
Open
subhankarmaiti wants to merge 14 commits intomainfrom
Open
feat: Add MFA (Multi-Factor Authentication) API support#79subhankarmaiti wants to merge 14 commits intomainfrom
subhankarmaiti wants to merge 14 commits intomainfrom
Conversation
|
@subhankarmaiti please also add a corresponding |
…tor_types' for enrollment and challenge
…lient and test files
…ation enrollment and challenge
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.
Adds MFA support to the
auth0-server-pythonSDK via a newMfaClient(server_client.mfa) that handles the full MFA lifecycle — enrollment, challenge, and verification — for all supported factor types: OTP, SMS, Voice, Email, Push Notification (Auth0 Guardian), and Recovery Code.What's Included
MfaClientwith 4 methods:list_authenticators,enroll_authenticator,challenge_authenticator,verifyverify(persist=True)auto-updates the session store with new tokensmfa_tokenbetween requestsverify()returnsrecovery_codeon first enrollment and after recovery code useAuthenticatorResponse,ChallengeResponse,OtpEnrollmentResponse,OobEnrollmentResponse,MfaVerifyResponseMfaRequiredError,MfaChallengeError,MfaEnrollmentError,MfaVerifyError,MfaTokenExpiredErrorexamples/MFA.mdQuick Example