AWS API Gateway Custom Authorizer not running

  1. The API Gateway Test Invoke functionality will NOT invoke any authorizers, and will directly invoke your integration.
  2. You can test the lambda authorizer independently by using the Authorizer Test Invoke available in the "Authorizers" tab on the API Gateway Console.
  3. Your lambda function must return a response that includes the principal identifier (principalId) and a policy document containing a list of policy statements.

A more detailed documentation on this can be found here.

Ritisha.