This example shows you how to setup auth in front of a AWS Lambda function
A few example of AWS lambda functions written in GoLang.
hello-world: Exactly what is says on the tin. Listening on a
auth: An AWS API Gateway custom authorizer that sits in front of
hello-world. It expects an auth bearer of
helloas a header and is on the base
/path. The auth header should be
Authorization: bearer hello
hello-world2: The same as
authabove except using auth contexts. Any name can be used as a bearer token, for example
Authorization: bearer Bob. The response will then return
I hope to add to these examples over time, if you have ideas please feel free to raise issues or pull requests.
For more info on these example check out the blog post
Latest commit b2f54ec on Sep 24, 2017