简体   繁体   中英

AWS API Gateway Custom Authorizer lambda is not triggering

I'm trying to implement Basic authentication, using this article as inspiration:

https://medium.com/@Da_vidgf/http-basic-auth-with-api-gateway-and-serverless-5ae14ad0a270

The application sets up as described:

  • WWW-Authenticate in the 401 response
  • Request Authorizer set up in the Authorizer section
  • Tie the authorizer to my endpoint, on the ANY method execution

I can test my custom authorizer using the Test feature under Authorizers successfully but when I call the API using curl (or anything else) there is no authentication. The authorizer lambda doesn't get called and there are no logs in CloudWatch.

Any idea where I could look next?

Remember to deploy API Gateway to apply settings before test.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM