How to ignore MFA Authentication in AWS Cognito

Kai

I'm using AuthFlow='ADMIN_NO_SRP_AUTH' to set up Cognito MFA authentication.

I wonder if Is there any way that I can ignore the MFA authentication?

Which AdminInitiateAuth request should I use?

For example:

I create a user, then register that user to my UserPool, enable MFA for that user, and now MFA is working fine.

But what if on a bad day, I don't want to use MFA Authentication anymore, but I also don't want to disable MFA for my user because I want to use it on another beautiful day.

Aleksander Wons

May not be the answer you are hoping for but... You can't do it. And it wouldn't even make sense.

The MFA is either enable or disabled. If it's enabled, you need to authenticated with it. Think about it. You set it up to protect user's account. But the user is able to say - oh, I actually don't want to use it just this time. The thing is - a bad actor could do exactly the same. Just send a request saying not to use MFA. That would defeat the purpose of MFA entirely.

That's why this decision is left to either an administrator of the pool or the user who can disable it, but only as long as he/she is signed it (depending on pool's configuration).

That's why you can only either have it enabled or disabled. And you cannot disable it ad hoc per request.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to include TOTP MFA in AWS Cognito authentication process

How can I disable MFA in aws cognito?

Flow for authentication when MFA required for user in AWS Cognito

AWS Cognito: Is there a method to switch MFA type DURING authentication?

How to disable MFA authentication in aws-amplify?

How do AWS Cognito Authentication tokens refresh

How to achieve certificate based authentication with AWS Cognito?

How to setup the "mfa_setup" challenge on amazon cognito's multi factor authentication?

Authentication with Lambda and AWS Cognito

AWS Cognito Authentication in Reactjs

AWS Cognito HTTP authentication

AWS Cognito User Authentication

How to use AWS Cognito with my own Login/MFA/Reset Password pages?

Firebase authentication vs AWS Cognito

AWS Cognito authentication with Bearer token

Integrating AWS Cognito with API for authentication

Validate Cognito SMS_MFA code using aws sdk in Nodejs

Error trying to enable SMS MFA factor in AWS Cognito

Integrate Twillio with AWS Cognito to send MFA verification code

How to use MFA with AWS CLI?

How to create Cognito IdentityPool with Cognito UserPool as one of the Authentication provider using aws cdk?

AWS API gateway authentication without using Cognito

Object is of type unknown with AWS Cognito authentication

AWS Cognito Amplify Authentication and Angular UI Components

React Native authentication and Subscribtion with AWS Cognito UserPools

AWS Cognito API Authentication flow SDKs

Custom Authentication flow with aws amplify cognito

AWS iOS SDK Cognito Developer Authentication (Swift)

AWS Cognito for Django3 + DRF Authentication