Skip to content

Hosted UI and overall user experience

0

My organization uses the hosted UI, and we're looking to add one-time password (OTP) sign-in alongside the standard email and password option. We want users to be able to choose between the two sign-in methods when accessing our app. What does the hosted UI and overall user experience look like with these options enabled? Screenshots would be helpful if possible.

asked a year ago211 views

1 Answer
0

Amazon Cognito offers two versions of hosted authentication interfaces: the classic Hosted UI and the newer Managed Login feature.

Managed Login is the improved version of Hosted UI, offering a collection of web interfaces for sign-up, sign-in, multi-factor authentication, and password-reset activities. It provides built-in responsiveness for different screen sizes and supports choice-based authentication, which is exactly what you're looking for.

With choice-based authentication, your users' authentication starts with a query of possible sign-in methods followed by a choice, rather than an application-side declaration of a sign-in method. When a user enters their username, Amazon Cognito will respond with available authentication options, which in your case would include both password-based authentication and one-time password options (EMAIL_OTP or SMS_OTP).

For the user experience, when implementing choice-based authentication, after a user enters their username, they'll be presented with available sign-in methods including the traditional password option and the OTP option. If they choose the OTP method, a one-time code will be sent to their email or phone number, which they'll need to enter to complete the sign-in process.

To customize the look and feel of these authentication pages, you can use the branding designer, which is a no-code visual editor for managed login assets and style. This gives you the flexibility to customize the entire user journey and provides a real-time preview with convenient shortcuts to preview screens in different sizes and display modes before launch.

To implement this functionality, you'll need to configure your user pool to support choice-based authentication (USER_AUTH flow) and enable both password and OTP authentication methods. Note that passwordless sign-in options like OTP are only available with the choice-based authentication flow.
Sources
Improve your app authentication workflow with new Amazon Cognito features | AWS News Blog
Essentials plan features - Amazon Cognito
Authentication flows - Amazon Cognito
Manage authentication methods in AWS SDKs - Amazon Cognito
Apply branding to managed login pages - Amazon Cognito

answered a year ago

AWS
SUPPORT ENGINEER

reviewed a year ago

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.