How do you resolve token does not have a valid audience
by adding the correct audience to the aws authorizers?
The following snippet from the yaml
config will return token does not have a valid audience
once I use the Authorization
header with a valid JWT
Auth:
DefaultAuthorizer: JwtAuthentication
Authorizers:
JwtAuthentication:
IdentitySource: $request.header.Authorization
JwtConfiguration:
audience:
- my-audience
issuer: !Sub https://cognito-idp.${AWS::Region}.amazonaws.com/${OperationsUserPool}