How to get the ID token in trigger functions of AWS Cognito?

0

In the trigger functions of AWS Cognito, say Post confirmation trigger or Post authentication trigger, I would like to get the ID token, such that I could query some other services on behalf of the user.

Is that possible and if so, how?

It would be terrific if you could also provide a small example in Javascript and/or Python.

demandé il y a 4 mois146 vues
1 réponse
0

Hi,

Unfortunately the Post confirmation and Post authentication Lambda triggers don't include the ID Token, just the userAttributes, clientMetadata and the common parameters that Cognito adds to all requests.

profile picture
EXPERT
répondu il y a 4 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions