-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Firebase Auth TOTP support #11261
Firebase Auth TOTP support #11261
Conversation
Generated by 🚫 Danger |
TOTP Enrollment Flow
Apple API Diff ReportCommit: 84f7dc4 FirebaseAuthClasses[ADDED] FIRTOTPMultiFactorGenerator[ADDED] FIRTOTPMultiFactorGeneratorObjective-C:
+ @interface FIRTOTPMultiFactorGenerator : NSObject
+ + ( void ) generateSecretWithMultiFactorSession : ( nonnull FIRMultiFactorSession * ) session completion :( nonnull void ( ^ )( FIRTOTPSecret * _Nullable , NSError * _Nullable )) completion ;
+ + ( nonnull FIRTOTPMultiFactorAssertion * ) assertionForEnrollmentWithSecret :( nonnull FIRTOTPSecret * ) secret oneTimePassword :( nonnull NSString * ) oneTimePassword ;
+ + ( nonnull FIRTOTPMultiFactorAssertion * ) assertionForSignInWithEnrollmentID :( nonnull NSString * ) enrollmentID oneTimePassword :( nonnull NSString * ) oneTimePassword ; [ADDED] FIRTOTPSecret[ADDED] FIRTOTPSecretSwift:
+ class TOTPSecret : NSObject
+ func sharedSecretKey () -> String
+ func generateQRCodeURL ( withAccountName accountName : String , issuer : String ) -> String
+ func openInOTPApp ( withQRCodeURL QRCodeURL : String )
Objective-C:
+ @interface FIRTOTPSecret : NSObject
+ - ( nonnull NSString * ) sharedSecretKey ;
+ - ( nonnull NSString * ) generateQRCodeURLWithAccountName :( nonnull NSString * ) accountName issuer :( nonnull NSString * ) issuer ;
+ - ( void ) openInOTPAppWithQRCodeURL :( nonnull NSString * ) QRCodeURL ; [ADDED] FIRTOTPMultiFactorAssertion[ADDED] FIRTOTPMultiFactorAssertionObjective-C:
+ @interface FIRTOTPMultiFactorAssertion : FIRMultiFactorAssertion Constants[ADDED] FIRTOTPMultiFactorID[ADDED] FIRTOTPMultiFactorIDObjective-C:
+ extern NSString * const _Nonnull FIRTOTPMultiFactorID |
Size Report 1Affected ProductsTest Logs |
* Added TOTP Assertion and Generator logics
Coverage Report 1Affected Products
Test Logs |
* Adding unenroll support for TOTP on sample app * lint fixes
* provide missing TOTP factor type of error in the error hints * refactor all sign in with MFA code in all related workflow for Sample App
* updated invalid verification code error msg
@kevinthecheung Hi Kevin, can you help with the documentation review? All code merged in this branch has already been approved by SWEs. |
* changes to umbrella and changelog * Update CHANGELOG.md * Update version as per PR feedback
FirebaseAuth/Sources/Backend/RPC/MultiFactor/Enroll/FIRFinalizeMFAEnrollmentResponse.m
Show resolved
Hide resolved
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.
Great, thanks!
FirebaseAuth/Sources/Public/FirebaseAuth/FIRTOTPMultiFactorGenerator.h
Outdated
Show resolved
Hide resolved
FirebaseAuth/Sources/Public/FirebaseAuth/FIRTOTPMultiFactorGenerator.h
Outdated
Show resolved
Hide resolved
FirebaseAuth/Sources/Public/FirebaseAuth/FIRTOTPMultiFactorAssertion.h
Outdated
Show resolved
Hide resolved
Co-authored-by: Kevin Cheung <kevinthecheung@users.noreply.github.com>
This reverts commit dc754ba.
Added Time-based One Time Password MFA support. Co-authored-by: pragatimodi <110490169+pragatimodi@users.noreply.github.com> Co-authored-by: Kevin Cheung <kevinthecheung@users.noreply.github.com>
Added TOTP MFA support for iOS SDK