Skip to content

How can users enable MFA in Cognito hosted sign in?

1

We have Cognito configured with optional MFA, oauth2, and hosted signup.

We typically manually add a new user email, and choose 'generate password' and 'email password'.

However when the user receives the password, and navigates to the hosted sign-in page (https://<example>.auth.<region>.amazoncognito.com/login?scope=openid+email&response_type=code&client_id=<example>&redirect_uri=https://<example>), they only see an option to enter email and password.

How can they enable MFA?

asked 2 years ago566 views

2 Answers
0

We also do not allow outside sign ups, but need a way for the user to be able to get the the "Page: MFA options" to change/edit their MFA configuration. I can see that the page exists from under the managed login and can add styles to that page. Same as Original Poster I cannot figure out how to have users navigate to this page.

answered 2 years ago

  • Digging around and it seems that instead of using /login or /login/continue if we use /mfa/register it ought to begin the mfa registration process. Unfortunately this doesn't seem to work when accessed directly. (Returns a "Something went wrong An error was encountered with the requested page") As this error is different than other random urls (such as /mfa/setup) I suspect the page does exist and is intended to work, but is currently broken. If /mfa/register really does allow for mfa registration/updating then it is exactly what we need and would be great if it was fixed.

-1

Hello.

If you have MFA enabled in your Cognito user pool, you will be asked to register an MFA device during new sign-in.
https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-hosted-ui-user-sign-up.html

EXPERT

answered 2 years ago

  • Hi Riku, I think you linked to the sign up docs. I'm talking about enabling MFA during or after sign in after the account is created, we don't allow users to sign up.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.