cloudfront-auth
cloudfront-authorization-at-edge
Our great sponsors
cloudfront-auth | cloudfront-authorization-at-edge | |
---|---|---|
6 | 12 | |
593 | 443 | |
- | 2.7% | |
0.0 | 6.8 | |
over 1 year ago | 7 days ago | |
JavaScript | TypeScript | |
ISC License | MIT No Attribution |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cloudfront-auth
-
I just want to host a static website with Cognito as a guard. How can I do it as simple as possible?
If you already have existing users in google, github, or something like that, maybe look at this https://github.com/Widen/cloudfront-auth and skip cognito.
-
Deploy EventCatalog to AWS CloudFront with Google SSO Access Control via Terraform
This article shows how to deploy your own EventCatalog in AWS CloudFront via Terraform and updates to the Catalog via CI/CD (CircleCi in this case, but can be easily applied to other CI systems). It also shows how to use Lambda@Edge to implement Google SSO / OpenID Connect via the Widen/cloudfront-auth Project.
- Google login to S3 bucket website?
-
What are you using lambda @ edge and cloudfront functions for ?
Using it to allow Google Workspace auth access control to static websites. Leverages https://github.com/Widen/cloudfront-auth
-
Protect your Amazon CloudFront content — Authorization@Edge using cookies
aws.amazon.com Recognition The earlier AWS blog that investigated wiring up Cognito authentication with Lambda@Edge: https://aws.amazon.com/blogs/networking-and-content-delivery/authorizationedge-how-to-use-lambdaedge-and-json-web-tokens-to-enhance-web-application-security/ A gist that shows how to add Basic Authentication using Lambda@Edge: https://gist.github.com/lmakarov/e5984ec16a76548ff2b278c06027f1a4 An open-source project that uses a similar approach to secure CloudFront distributions, but does not yet support Cognito (at the time of this writing): https://github.com/Widen/cloudfront-auth Additional resources Check out the code on GitHub to see how the sample solution is built. You can deploy and run the code yourself: https://github.com/aws-samples/cloudfront-authorization-at-edge. You can deploy the Amazon Cognito resources from the sample solution directly from the AWS Serverless Application Repository. 10
-
Hosting static site on S3 behind authentication
1) Make sure your bucket is private. 2) Set up CloudFront with Origin Access Identity 3) Use Lambda@Edge for authentication.
cloudfront-authorization-at-edge
- Hiding URL in a Cloudfront source
- Internal Static Site served to IAM users
- How can I only serve my CloudFront content to AWS IAM users?
- Google login to S3 bucket website?
-
Serverless cache
CloudFront authorization@edge
-
Protect your Amazon CloudFront content — Authorization@Edge using cookies
aws.amazon.com Recognition The earlier AWS blog that investigated wiring up Cognito authentication with Lambda@Edge: https://aws.amazon.com/blogs/networking-and-content-delivery/authorizationedge-how-to-use-lambdaedge-and-json-web-tokens-to-enhance-web-application-security/ A gist that shows how to add Basic Authentication using Lambda@Edge: https://gist.github.com/lmakarov/e5984ec16a76548ff2b278c06027f1a4 An open-source project that uses a similar approach to secure CloudFront distributions, but does not yet support Cognito (at the time of this writing): https://github.com/Widen/cloudfront-auth Additional resources Check out the code on GitHub to see how the sample solution is built. You can deploy and run the code yourself: https://github.com/aws-samples/cloudfront-authorization-at-edge. You can deploy the Amazon Cognito resources from the sample solution directly from the AWS Serverless Application Repository. 10
-
Is it possible for AWS Amplify Access Control to support 1000s of users logging in at same time?
This might help: https://github.com/aws-samples/cloudfront-authorization-at-edge
-
Is it possible to have an S3 hosted static website that's only accessible via an ALB (configured with authentication)?
Alternatively, host on CloudFront with Lambda Edge protection as suggested. Here is a sample for that which is easy to deploy: https://github.com/aws-samples/cloudfront-authorization-at-edge
-
Private files at scale with S3, Cognito, Lambda@Edge
https://aws.amazon.com/blogs/networking-and-content-delivery/authorizationedge-using-cookies-protect-your-amazon-cloudfront-content-from-being-downloaded-by-unauthenticated-users/ 3.
-
Using "Pre Generation Token" lambda with ALB
I also found the Cognito + Cloudfront + Lambda Edge approach, but that seems complicated for what I'm doing and not sure if it'll solve my problem.
What are some alternatives?
express-openid-connect - An Express.js middleware to protect OpenID Connect web applications.
amazon-cloudfront-functions
google-one-tap - Google One Tap Login
auth0.js - Auth0 headless browser sdk
jwt-decode - Decode JWT tokens; useful for browser applications.
Grant - OAuth Proxy
yup-oauth2 - An oauth2 client implementation providing the Device, Installed, Service Account, and several more flows.
nginx-openid-connect - Reference implementation of OpenID Connect integration for NGINX Plus
SuperTokens Community - Open source alternative to Auth0 / Firebase Auth / AWS Cognito
gsts - Obtain and store AWS STS credentials to interact with Amazon services by authenticating via G Suite SAML.
auth0-nodejs-webapp-sample - Auth0 Integration Samples for Node Web Applications
supertokens-website - Frontend SDK for SuperTokens - for session management + automatically refreshing sessions