Search code examples
amazon-web-servicesjwtaws-appsync

Get JWT token from Appsync Resolver Mapping Template


I am using oidc as authentication in AWS Appsync. For some purpose I need the base64encoded version of JWT TOken in the resolver mapping template. Can anyone suggest any solution? Thanks in advance


Solution

  • I found a way here:

    #set($token = $context.request.headers.get("authorization"))