Our great sponsors
-
cloudfront-auth
Discontinued An AWS CloudFront Lambda@Edge function to authenticate requests using Google Apps, Microsoft, Auth0, OKTA, and GitHub login
-
cloudfront-authorization-at-edge
Protect downloads of your content hosted on CloudFront with Cognito authentication using cookies and Lambda@Edge
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
1) Make sure your bucket is private. 2) Set up CloudFront with Origin Access Identity 3) Use Lambda@Edge for authentication.
I set this up at work not too long ago. Ended up forking this, which is honestly a great primer for using lambdas @edge and securing s3 sites behind cloudfront.
Related posts
- I just want to host a static website with Cognito as a guard. How can I do it as simple as possible?
- Google login to S3 bucket website?
- What are you using lambda @ edge and cloudfront functions for ?
- Protect your Amazon CloudFront content — Authorization@Edge using cookies
- Authorization is still a nightmare for engineers