Skip to content

Instantly share code, notes, and snippets.

@davetownsend
Created August 13, 2019 00:23
Show Gist options
  • Save davetownsend/2609711f7a5d0e7243a348899527edd5 to your computer and use it in GitHub Desktop.
Save davetownsend/2609711f7a5d0e7243a348899527edd5 to your computer and use it in GitHub Desktop.
apigw auth config
exampleData:
handler: example.getExample
events:
- http:
path: /${self:provider.apiname}/read
method: get
authorizer:
name: auth
identitySource: method.request.header.Authorization
identityValidationExpression: ^Bearer [-0-9a-zA-z\.]*$
resultTtlInSeconds: 0
cors: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment