I am trying to create a static website in S3 (with CloudFront) that uses Auth0 in order to authenticate users in to the site. I have seen most of the samples out there of what the Lambda@Edge login script might look like, but I can’t get any of them to actually work. I couldn’t get any of these to function properly:
I have seen some of the examples on github but am struggling to get any of them to work:
/experoinc/aws-lambda-edge-oauth
/martzmakes/blog-cdk-cloudfront-edge-auth0
Wondering if anyone has a good, basic working example of the login process for Auth0 in Lambda@Edge (node.js environment)?