[英]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 https://medium.com/@Da_vidgf/http-basic-auth-with-api-gateway-and-serverless-5ae14ad0a270
The application sets up as described:应用程序设置如下:
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.我可以使用
Authorizers
人下的Test
功能成功测试我的自定义授权人,但是当我使用 curl(或其他任何东西)调用 API 时,没有身份验证。 The authorizer lambda doesn't get called and there are no logs in CloudWatch.未调用授权方 lambda 并且 CloudWatch 中没有日志。
Any idea where I could look next?知道我接下来可以看哪里吗?
Remember to deploy API Gateway to apply settings before test.请记住部署 API 网关以在测试前应用设置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.