Access "aud" claim in resolver mapping for AWS AppSync
0
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)
asked a month ago2 views
1 Answers
0
Accepted Answer
I found it myself, you can access all claims using:
$ctx.identity.claims.aud
answered a month ago
Relevant questions
AppSync authorization
Accepted Answerasked 3 years agoAppsync HTTP resolver supported content types
asked 2 years agoUsing Appsync with Redshift?
asked 4 months agoVTL resolver to authenticate multiple users from two different cognito pools
asked 24 days agoHow to achieve multiple Graphql endpoints
asked 4 months agoAdding "Access-Control-Allow-Origin" custom header to AWS Appsync GraphQL Response
asked a month agoHow do I compose a BULK request to OpenSearch via AppSync resolver mapping templates?
asked a month agoHow do we use build-in velocity tools inside resolvers?
asked 3 years agoAccess "aud" claim in resolver mapping for AWS AppSync
Accepted Answerasked a month agoApp Sync Security For IAM_AUTH
asked 3 years ago