- Newest
- Most votes
- Most comments
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
Relevant content
asked 3 years ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated a year ago
