Verify OpenId Connect token generated by Cognito Identity pool


I have a customer, that is using a Cognito Identity Pool in conjunction with a Cognito User Pool. He is using the Api Method GetOpenId token to generate a JWT token for an unauthenticated user and wants to verify the JWT token in the backend.

However this seems to be possible only with tokens generated by the user pool, see:

Can the same be achieved with token from an identity pool? Where can i find the public keys used to verify the signature of the JWT?

asked 6 years ago1138 views
1 Answer
Accepted Answer

I have not tried it myself, but if it is an OIDC compliant token, you should be able to verify it through the official verification process, getting the jwks url in the iss field of the token

Here is how to do it:

answered 6 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions