How to customize access tokens in Amazon Cognito user pools
Security Blog
This article explains how to customize access tokens in Amazon Cognito user pools using a pre-token generation Lambda trigger function. It covers the benefits of access token customization and provides a step-by-step guide on how to enable and configure this feature.
Specifically, the article covers:
- What access token customization is and its benefits
- How to enable access token customization in an Amazon Cognito user pool
- An example pre-token generation Lambda trigger function to add custom claims and scopes
- Considerations and best practices for access token customization
- Conclusion highlighting the advantages of this feature
The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.
Related articles
May 30
2024
2024
Amazon Cognito user pools now support the ability to customize access tokens
Mar 3
2025
2025
Amazon Cognito now supports access token customization for machine-to-machine (M2M) authorization flows
Aug 5
2024
2024
SaaS authentication: Identity management with Amazon Cognito user pools
Mar 27
2024
2024
How to use OAuth 2.0 in Amazon Cognito: Learn about the different OAuth 2.0 grants
The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.