- Newest
- Most votes
- Most comments
To implement passwordless authentication for multiple app clients in Amazon Cognito while working within the limitation of 10 managed login styles, you have a few options:
-
Share app clients: Instead of creating a separate app client for each external developer, you could consider using a smaller number of shared app clients with appropriate scopes and permissions. This approach would require you to implement additional logic in your application to manage client-specific rate limiting and API keys.
-
Request a quota increase: Although the 10 managed login styles limit isn't explicitly listed in the service quotas, you can still submit a support case to AWS requesting an increase. AWS often provides quota increases based on legitimate business needs.
-
Use API-based passwordless authentication: Instead of relying on managed login UI, you could implement passwordless authentication directly using the Cognito APIs. This approach would allow you to create your own authentication UI and workflow while still leveraging Cognito's passwordless capabilities. You would need to implement the challenge-response flow for one-time passwords (OTP) via SMS or email.
-
Use a single managed login style with dynamic configuration: Create one managed login style but dynamically configure the behavior based on the client ID or other parameters. This would require custom implementation on your side but could work within the 10-style limit.
Remember that passwordless authentication in Cognito requires the Essentials or Plus feature plan and is only available in the choice-based authentication AuthFlow of ALLOW_USER_AUTH. Also note that if you require multi-factor authentication (MFA), you cannot use passwordless authentication.
Before considering migration to another provider, I'd recommend first trying to request a quota increase from AWS support, as this would be the simplest solution if approved.
Sources
Implement passwordless authentication for Cognito users | AWS re:Post
Amazon Cognito now supports passwordless authentication for low-friction and secure logins - AWS
Essentials plan features - Amazon Cognito
answered a year ago
