Modify an Identity Pool Cognito JWT

0

I've joined a team working on an application that uses Cognito with Identity Pools and user state in Cognito Sync. We need to add some authentication to our process and the natural place would be to sprinkle a little data into the Cognito-generated JWT. I'd like to grab that data from, say, a lambda querying Aurora. I see that User Pools have a pretoken generation lambda trigger. Is there something similar I can do for identity pools?

質問済み 2年前330ビュー
2回答
0

Hi,

Can you share more details on how you get a token from cognito identity pool and how do you use it in your application? are you using GetOpenIdTokenForDeveloperIdentity API?

AWS
エキスパート
回答済み 2年前
0

We're using the Javascript aws-sdk: new AWS.CognitoIdentityCredentials. Currently, we only use the token to maintain login state, renew token, logout, etc. Looking forward, we'd need a custom inspection for the new elements.

回答済み 2年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン