Authenticate a static docs site hosted in S3 & CloudFront with GSuite (OAuth) and Lambda@Edge.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
public
src
.gitignore
.nvmrc
.travis.yml
README.md
package.json
tsconfig.json
tslint.json
yarn.lock

README.md

docs-auth-lambda

Build Status Codacy Badge Coverage Status Known Vulnerabilities

What is this?

This is a Lambda function designed for use with Lambda@Edge to authenticate requests via Google OAuth. Once logged in and checked against your domain, users are issued with a JWT that's then used in future requests.

What's the architecture?

  • A private ACL S3 bucket.
  • A Lambda function in the node8.10 runtime.
  • A CloudFront distribution with an origin access identity.
  • S3 bucket policy to allow access from the above policy to the S3 bucket.

How do I use it?

Blog post coming soon!