experoinc / aws-lambda-edge-oauth Goto Github PK
View Code? Open in Web Editor NEWhttps://www.experoinc.com/post/serverless-authentication Add Lambda@Edge function to your Cloudfront distribution to protect your website
License: MIT License
https://www.experoinc.com/post/serverless-authentication Add Lambda@Edge function to your Cloudfront distribution to protect your website
License: MIT License
Hi
Really appreciate this project!
I had the same issue as here:
#3
but I opted to follow solution nr 2 and I changed my config and redirect line.
Auth0 login page properly shows, only after logging in I'm redirected to this url
https://domain/callback?dest=%2F&code=CODE&state=STATE
Cookies are saved after login, but it redirects me to my json object containing jwt token, network tab shows 401 for the above URL.
I tried setting Token Endpoint Authentication Method in Auth0 to both None or POST, but the effect is the same.
Thanks for building this! I have setup the configuration bucket as described and have the config file in there I have setup my tenant name as instructed, however when visiting the distribution I get redirected to the Oops page from Auth0, specifically its this URL,
https://.auth0.com/u/login
the previous call is to the login page,
https://.auth0.com/login?client=<CLIENT_ID>&redirect_uri=https%3A%2F%2F%2Flogincb%3Fdest%3D%252F
I do not have a route called /logincb I assume this is something your lambda? Or does this need to be a defined route? Any other ideas on what I can check or debug to get past the Oops? I never get a login prompt or anything, just a call to
/ (302)
https://.auth0.com/login?client=.... (302)
https://.auth0.com/u/login. (400) and oops
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.