- Newest
- Most votes
- Most comments
As of Jan-2024, there is now the ability to for access token customization feature for Amazon Cognito users. See AWS Security Blog How to customize access tokens in Amazon Cognito user pools
However, this is not supported for client credentials grant generated access token per Pre token generation Lambda trigger Customizing the access token section.
Although you can generate access tokens for machine-to-machine (M2M) authorization with Amazon Cognito with a client credentials grant, M2M requests don’t invoke the pre token generation trigger function and can't issue customized access tokens.
Hello @hakanson, The impossibility to manage pre token generation with client-credentials is a real problem for us. It breaks our integration https://github.com/DecisionsDev/odm-docker-kubernetes/tree/master/authentication/Cognito#create-a-custom-claim
Can we expect a support for client-credentials in the coming months ?
If not, does it exists a workaround ?
Thanks,
Mathias
Relevant content
- asked 6 months ago
- asked 3 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago