mohamed
mohamed

Reputation: 85

lambda authorizer is not invoked

I have implemented a lambda authorizer and integrated it with a lambda proxy integration on the API Gateway.

When I test the authorizer from the API Gateway it works fine, however when I try to invoke the endpoints, on the second lambda, from Postman, the request seems to skip the authorizer and hits directly the second lambda.

enter image description here

I tried also to use the authorizer not only on the API level but also for every method in the API, but that didn't help either. enter image description here

Upvotes: 1

Views: 1541

Answers (1)

Cleriston
Cleriston

Reputation: 770

Since your Authorization is cached for 5 minutes, it does not invoke the authorizer every time you call your API.

Upvotes: 1

Related Questions