Pre token generation is not called for access token

0

Hello,

I set a lambda function for Pre token generation on lambda trigger. The behavior is ok when selecting "Basic features" for ID tokens. But, when moving to "Basic features + access token customization - Recommended" , nothing is working. No call for ID tokens and access token

Thanks for your help.

已提問 3 個月前檢視次數 144 次
1 個回答
0

Hello,

The Feature request to add custom details to an access token Pre token generation by lambda has been launched recently in December 2023. Please refer to documentation[1].

Document[2] mentions that In Cognito user pool console with advanced security features active, you can generate the version 2 or V2_0 trigger event with access token customization.

However, in order to do thorough investigating on your use case we require details that are non-public information. Please open a support case with AWS using the following link - https://support.console.aws.amazon.com/support/home#/case/create.

==Reference==

[1] https://aws.amazon.com/about-aws/whats-new/2023/12/amazon-cognito-user-pools-customize-access-tokens/

[2] https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-token-generation.html#user-pool-lambda-pre-token-generation-accesstoken

AWS
已回答 3 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南