nzoschke / gofaas

A boilerplate Go and AWS Lambda app. Demonstrates an expert configuration of 10+ AWS services to support running Go functions-as-a-service (FaaS).
Apache License 2.0
802 stars 43 forks source link

API Gateway Authorizer #58

Open nzoschke opened 6 years ago

nzoschke commented 6 years ago

We can lift the JWTClaims helper out of our handler functions and into an API Gateway Authorizer, further reducing application code and increasing security.

Support for this in SAM is questionable. It doesn't look like a Serverless::Function supports adding an authorizer yet, but maybe you can assign then via Swagger.

nzoschke commented 6 years ago

Looks like support is coming soon: https://github.com/awslabs/serverless-application-model/pull/546