question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MFA can't be disabled

See original GitHub issue

** Which Category is your question related to? ** Auth

** What AWS Services are you utilizing? ** Cognito

** Provide additional details e.g. code snippets **

Auth.signIn(username, password)
    .then(user => {
      if (user.challengeName === 'SELECT_MFA_TYPE') {
      // ...now what?

So, digging deeper into things on GitHub, I’ve tried user.sendMFASelectionAnswer('SOFTWARE_TOKEN_MFA', callback) which didn’t seem to work. The Auth class doesn’t seem to have anything.

I actually have all MFA disabled for this user, yet I’m getting this response that’s asking me to choose which MFA option to use. So I can’t log in.

Any user that previously did not set up BOTH SMS and TOTP seems to be ok though.

Any user that set up and has enabled MFA can login using MFA because the challengeName that comes back then is SOFTWARE_TOKEN_MFA or SMS_MFA and I call an Auth.confirmSignIn() with the code answer.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:28 (1 by maintainers)

github_iconTop GitHub Comments

16reactions
X-Equals-Zerocommented, Jul 8, 2020

Year later and this still hasn’t been resolved…

10reactions
vic-bltcommented, Oct 5, 2020

Same problem, I think I will avoid using the CLI from now on as it automatically creates an SNS role which can’t be removed from the user pool, even if you delete this role.

EDIT:

  • amplify add auth
  • go through all the config
  • open the file backend/auth/<name>/<name>-cloudformation-template.yml
  • remove SNSRole row in Resources and SmsConfiguration in Resources > UserPool > Properties
  • amplify push

You can see there’s no SNS role attached to your User Pool.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Microsoft 365 - MFA Enabled itself and I can't Disable it!
Go to the Conditional Access - Policies page. · Choose each baseline policy that is On and set Enable policy to Off. ·...
Read more >
How to Disable Multi Factor Authentication (MFA) in Office 365?
Disable MFA Through the Microsoft 365 Admin Center Portal ; Click on Multi-factor authentication; office 365 disable mfa ; To disable MFA for...
Read more >
Disable Multi-Factor Authentication - Transend
Disable MFA in Microsoft Azure AD. Open the Microsoft 365 Admin Center. In the left side navigation, click Azure Active Directory admin center....
Read more >
Can't disable MFA in Office 365 - Spiceworks Community
Under Active Users > MFA all users were set to disabled, no conditional access policies at all that I can find, and security...
Read more >
Enable or disable multi-factor authentication - GoDaddy
Multi-factor authentication (MFA) prevents unauthorized access to your Microsoft 365 account. MFA requires a verification method, like a code sent to you in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found