跳至内容

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.

已提问 3 年前586 查看次数

1 回答
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.

专家

已回答 3 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。