-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Custom auth flow doesn't work when MFA is enabled for cognito #11540
Comments
Did you pull the backend for authentication after enabling Multi-Factor Authentication (MFA)? "mfaConfiguration": "ON", |
Hi @Sax-Yusuph thank you for opening this issue. I am currently investigating this and Im not able to reproduce the scenario where my DefineAuth challenge lambda is NOT invoked. Can you confirm the above comment? Also are you using the Amplify Auth package with your Application? |
@Sax-Yusuph an additional note - we are currently aware a bug attempting to use MFA with Custom Auth Flow as discussed on this issue. However what you described is a bit different, where you are able to successfully sign in without the Define Auth Lambda being invoked. I haven't been able to reproduce that, so if you have any additional info or context that can help in reproducing this error please let me know. |
Oh @nadetastic , I mean in my case, SMS mfa works without any issues... but we couldn't get the email MFA to work using custom auth. (Probably due to the bug you mentioned) For now.. we just had to keep using SMS MFA. Is there a timeline as to when this will be fixed? |
@Sax-Yusuph got it, thanks for the confirmation. Yes the issue is blocked, and although we are currently working on it, I'm unable to provide an ETA at this time. However, please subscribe to the issue on #9592 with any additional questions or comments, as updates will be posted and provided there. For now I will close out this issue to consolidate with #9592 Thanks! |
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
Authentication
Amplify Categories
auth
Environment information
Describe the bug
Custom auth flow doesn't work when SMS MFA is also enabled. we want to be able to use both sms mfa and email MFA using custom auth flow, but the define auth challenge lambdas is not being triggered for custom auth.
this issue was previously opened in #3876
but was closed without any solution.
Expected behavior
define auth challenge should invoke the next challenge in the authentication flow
Reproduction steps
Same has the ticket #3876
Code Snippet
// Put your code below this line.
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: