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?

posta 2 anni fa334 visualizzazioni
2 Risposte
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
ESPERTO
con risposta 2 anni fa
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.

con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande