-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Added TOTP MFA Assertion logics #11380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Generated by 🚫 Danger |
…ltiFactorGenerator.h
@@ -53,6 +53,15 @@ NS_SWIFT_NAME(TOTPMultiFactorGenerator) API_UNAVAILABLE(macos, tvos, watchos) | |||
+ (FIRTOTPMultiFactorAssertion *)assertionForEnrollmentWithSecret:(FIRTOTPSecret *)secret | |||
oneTimePassword:(NSString *)oneTimePassword; | |||
|
|||
/** @fn assertionForSignInWithenrollmentID: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: can we move @fn to a new line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with 1 comment.
finalizedMFARequestInfo = [[FIRAuthProtoFinalizeMFAPhoneRequestInfo alloc] | ||
initWithSessionInfo:phoneAssertion.authCredential.verificationID | ||
verificationCode:phoneAssertion.authCredential.verificationCode]; | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would be safer withelse if (is totp assertion){}
and then check if finalizedMFARequestInfo
is nil before assigning at L76.
Added Assertion, generator and resolver logic for TOTP MFA.
Updated the backend rpc call finalizeMFASignInRequest to take TOTP parameters.
This PR is an updated version of #11217.