guitek / aws-s3-oauth2-okta Goto Github PK
View Code? Open in Web Editor NEWOAuth2 Authentication Terraform module for AWS S3 static websites.
License: MIT License
OAuth2 Authentication Terraform module for AWS S3 static websites.
License: MIT License
It might be helpful to see an example Okta configuration. I'm setting up an app on my dev instance and got the client id and secret and terraformed with those. However, when I try to access my CloudFront url, it's redirecting to Okta, but I'm getting a 404 from Okta.
i.e. it redirects to a url like this:
https://dev-XXXXXX-admin.okta.com/error/404?fromURI=%2Foauth2%2Fv1%2Fauthorize%3Fclient_id%3DXXXXXXXX%26nonce%3DXXXXXXXXXXXX%26redirect_uri%3Dhttps%3A%2F%2FXXXXXXXX.cloudfront.net%2Flogin%26response_type%3Dcode%26response_mode%3Dquery%26scope%3Dopenid%26state%3Dnone
Hey @GuiTeK!
This has been of great help to us as we are trying to deploy a similar infrastructure. The one issue that we are now seeing is that okta won't redirect to the originally requested URL but rather fall under index.html (expected given it's what the lambda handler redirects to when the /login
endpoint is requested).
Have you guys run into this or are you okay with just being dropped in the index.html?
Hi there,
Thanks for the walkthrough! Looking through the repo tho, it looks like there are some missing .js files that implement the actual Lambda@Edge function, e.g. okta_auth.js
Would it be possible to commit those?
Thank you so much for the tutorial but do you have the lambda example in nodejs?
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.