Giter Site home page Giter Site logo

guitek / aws-s3-oauth2-okta Goto Github PK

View Code? Open in Web Editor NEW
28.0 28.0 6.0 113 KB

OAuth2 Authentication Terraform module for AWS S3 static websites.

Home Page: https://www.algolia.com/blog/engineering/adding-oauth2-authentication-to-an-aws-s3-static-bucket-with-okta/

License: MIT License

HCL 49.74% Smarty 50.26%
aws-s3 lambda-at-edge oauth2 terraform

aws-s3-oauth2-okta's People

Contributors

guitek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

aws-s3-oauth2-okta's Issues

Example Okta config? Getting 404

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

Okta doesn't redirect to the originating request

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?

Missing okta_auth.js

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?

missing file

Thank you so much for the tutorial but do you have the lambda example in nodejs?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.