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?

demandé il y a 2 ans328 vues
2 réponses
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
EXPERT
répondu il y a 2 ans
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.

répondu il y a 2 ans

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