Skip to content

Voteshield/cloudfront-authorization-at-edge

 
 

CABS - Cloudfront Authorization@edge BallotShield

Note: please refer to the upstream repo for a great explanation of what all this does.

What does all of this do?

Mostly, nothing. This is a forked AWS Repo that builds infrastructure to authenticate against for a CloudFront distribution.

BUT: Currently the only thing in here that is used is the code for the Lambda functions. Everything else has already been migrated to Terraform, and now lives in the Infrastructure repository.

How to compile the Lambda functions

As mentioned here, essentially just run npm install for the first time and npm run build and it will create the appropriate files in the src folders. As it stands, the only files that are deployed out of this repository are:

└── lambda-edge
    ├── check-auth
    │   ├── bundle.js
    │   ├── configuration.json
    │   └── package.json
    ├── http-headers
    │   ├── bundle.js
    │   ├── configuration.json
    │   └── package.json
    ├── parse-auth
    │   ├── bundle.js
    │   ├── configuration.json
    │   └── package.json
    ├── refresh-auth
    │   ├── bundle.js
    │   ├── configuration.json
    │   └── package.json
    └── sign-out
        ├── bundle.js
        ├── configuration.json
        └── package.json

About

Protect downloads of your content hosted on CloudFront with Cognito authentication using cookies and Lambda@Edge

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 91.7%
  • HTML 3.5%
  • CSS 2.4%
  • JavaScript 2.4%