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.

已提問 4 個月前檢視次數 146 次
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.

profile picture
專家
已回答 4 個月前

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

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

回答問題指南