You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My use case is that I need to add additional claims to the access token. While I can do this with the ID token, my understanding is that it is not suitable to use the ID token as the bearer token in requests to other services.
Is it possible to add support for the access token overrides? Thanks
The text was updated successfully, but these errors were encountered:
It seems that token value overrides only work for ID Tokens, and are not applied to access tokens. Is this correct?
I have found the following code which suggests that is the case.
https://github.com/jagregory/cognito-local/blob/3113beea3e34d854c879b306be83f3156f3e92b4/src/services/tokenGenerator.ts#L194C17-L194C36
according to https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-token-generation.html it is possible in V2 to override access token values as well.
My use case is that I need to add additional claims to the access token. While I can do this with the ID token, my understanding is that it is not suitable to use the ID token as the bearer token in requests to other services.
Is it possible to add support for the access token overrides? Thanks
The text was updated successfully, but these errors were encountered: