AWS API Gateway custom Authorizer strange showing error

前端 未结 5 2028
悲哀的现实
悲哀的现实 2021-02-05 04:10

Here is the context:

  • I set up a resource in the API gateway. /user/company
  • This resource have 2 methods. Get and POST.
  • I have configured a custom
5条回答
  •  不要未来只要你来
    2021-02-05 04:33

    This could be fixed in two ways that are described in buggy's answer: https://forum.serverless.com/t/rest-api-with-custom-authorizer-how-are-you-dealing-with-authorization-and-policy-cache/3310

    Short version:

    1. Set TTL for customer authorizer to 0
    2. Set custom authorizer policy resource as "*"

    I've tried each solution and they both solved the issue with "User is not authorized to access this resource" for me.

提交回复
热议问题