【发布时间】:2020-04-28 23:16:21
【问题描述】:
您如何通过将正确的受众添加到 aws 授权方来解决 token does not have a valid audience?
一旦我使用带有有效 JWT 的 Authorization 标头,yaml 配置中的以下 sn-p 将返回 token does not have a valid audience
Auth:
DefaultAuthorizer: JwtAuthentication
Authorizers:
JwtAuthentication:
IdentitySource: $request.header.Authorization
JwtConfiguration:
audience:
- my-audience
issuer: !Sub https://cognito-idp.${AWS::Region}.amazonaws.com/${OperationsUserPool}
【问题讨论】:
标签: oauth-2.0 amazon-cognito serverless aws-sam