Custom authorizer - Does not get triggered
See original GitHub issueI am using a custom authorize lambda function with Node to authenticate the apis, after deploying i can manually test authorize function and it logs the errors in cloud watch. But when i request the same api through postman, it does not log anything on the cloud watch. It always returns the error 401 unauthorized.
Here is the code:
functions:
testAuthorize:
handler: handler.testAuthorize
accountFunctions:
handler: handler.accountFunctions
events:
- http:
path: account/testApi
method : get
authorizer: testAuthorize
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (6 by maintainers)
Top Results From Across the Web
AWS API Gateway Custom Authorizer not invoked
After adding variables to the deployment to trigger a redeployment, the custom authenticater was properly called as expected.
Read more >Custom Authorizer not being triggered - Serverless Framework
I am trying to implement a custom authorizer for my functions triggered via API Gateway (http event). However, it looks like the authorizer ......
Read more >Custom authorizer does not get triggered after deployment
Everything has been working just fine except that after re-deployment at times, the custom authorizer won't get triggered at all before ...
Read more >Troubleshooting your authorizers - AWS IoT Core
Malformed connection requests can cause AWS IoT Core not to trigger your authorizer. Connection problems can occur at both the TLS and application...
Read more >Websockets Authorizer function is not triggered by Querystring ...
According to your screenshot, you didn't change the identity source but you added additional identity source. Unless the request has both header and...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Sorry guys, i had to add the custom headers in the cloud front distribution to get it worked . thanks @HyperBrain and @pmuens cheers!
Great! Thanks for adding a comment which explains how you were able to resolve it 👍 !
Glad to hear that it’s working for you now.