-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Firebase Auth TOTP support #11261
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
Merged
Merged
Firebase Auth TOTP support #11261
Conversation
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
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
paulb777
reviewed
Jun 20, 2023
Added TOTP MFA support for iOS SDK