By using AWS re:Post, you agree to the Terms of Use
/Access "aud" claim in resolver mapping for AWS AppSync/

Access "aud" claim in resolver mapping for AWS AppSync


I am using OIDC Access tokens to authenticate calls to AWS AppSync. I would like to filter on the different client-ids that are using the API, but I am not able to access the claim "aud"

Is there a way to read the "aud" claim in the resolver template, or some other way of getting the client-id? $context.identity.aud does not work (NULL)

1 Answers
Accepted Answer

I found it myself, you can access all claims using:

answered a month 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