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년 전331회 조회
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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠