Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate generic method policy for API Gateway #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on May 24, 2019

  1. Generate generic method policy for API Gateway

    This pull requests allows the authorizer to be cached and reused with different methods. Perhaps it would be good to add some sort of configuration and document such feature.
    
    Per API Gateway documentation (https://docs.aws.amazon.com/apigateway/latest/developerguide/configure-api-gateway-lambda-authorization-with-console.html):
    >...
    >Note
    >To enable caching, your authorizer must return a policy that is applicable to all methods across an API. To enforce method-specific policy, you can set the TTL value to zero to disable policy caching for the API.
    >...
    valeriomazzeo authored May 24, 2019
    Configuration menu
    Copy the full SHA
    b5e79e1 View commit details
    Browse the repository at this point in the history