skip to Main Content

I have followed this tutorial to use a pre token generation Lambda within AWS Cognito with the intent of customizing the access_token when the app client uses the client_credentials grant type. At the moment this Lambda does not appear to be invoked

  • AWS UI appears to create a policy to allow Cognito to invoke the Lambda successfully
  • The Lambda trigger is configured in the user pool properties
  • The trigger event version is V2_0 (Basic features + access token customization)

When performing a client_credentials grant flow with this configuration, an access token is correctly issued, however there are no customisations added to the token, and the Lambda logs do not indicate this has been triggered.

Is this feature supported for the client credentials flow, if so, how can I troubleshoot?

2

Answers



  1. kyle, could you find an alternative solution to add/append claims etc. to the cognito JWT token using client_credentials?

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search