aws-amplify / aws-sdk-android

AWS SDK for Android. For more information, see our web site:
https://docs.amplify.aws
Other
1.03k stars 549 forks source link

TOTP Software Token MFA support for AWSMobileClient #1361

Open LucaSchweri opened 4 years ago

LucaSchweri commented 4 years ago

Which AWS Services is the feature request for? AWSMobileClient

Is your feature request related to a problem? Please describe. AWSMobileClient doesn't support TOTP Software Token MFA and it is not possible to combine AWSMobileClient with the CognitoUser class to sign in the users with AWSMobileClient and do the TOTP Software Token MFA using the CognitoUser class. It would be possible to only use the CognitoUser class but we need the AWSMobileClient to use other services. Therefore it is not possible for us to use TOTP Software Token MFA on Android or iOS.

Describe the solution you'd like TOTP Software Token MFA support for AWSMobileClient.

ianhhan commented 2 years ago

@nikhil-dabhade Was this ever implemented? It doesn't appear so in the documentation or other mobile SDK's. Thanks!

rbarbish commented 1 year ago

I'm able to detect TOTP (Authentication app) sign-in by checking the signInResult.getCodeDetails().getDestination() for "time-based one-time password" (case insensitive) and for submitting the code you can use AWSMobileClient.getInstance().confirmSignIn same as you do SMS MFA codes.