Code Monkey home page Code Monkey logo

Comments (4)

jehiah avatar jehiah commented on August 20, 2024

Can you share your auth proxy run cmd?

from oauth2_proxy.

barakcoh avatar barakcoh commented on August 20, 2024

Sure, and thanks for your speedy reply:

/opt/go/bin/google_auth_proxy --redirect-url=http://XXX-dev.wondermall.com:4000/oauth2/callback --google-apps-domain=wondermall.com --upstream=http://127.0.0.1:5001/ --cookie-secret=cookie-secret --client-id=ID --client-secret=SECRET

from oauth2_proxy.

jehiah avatar jehiah commented on August 20, 2024

so your setup is

[nginx port:4000, SSL] => [google_auth_proxy port:4180] => [dashboard port:5001]

If that's the case it looks like this redirect is coming from your internal app to add a slash to the request, and that redirect doesn't have the right configuration/context to respond with the right port, and google_auth_proxy and nginx are not in a place to fix that redirect.

I think you can fix this in your configuration by telling nginx how to correct the host:port in redirects via proxy_redirect

I think this would allow nginx to 'fix' the redirect adding the right port value.

proxy_redirect http://XXX-dev.wondermall.com/ http://XXX-dev.wondermall.com:4000/

from oauth2_proxy.

jehiah avatar jehiah commented on August 20, 2024

@barakcoh going to close this issue. If you have any more details to add or proxy_redirect didn't solve your case please open this back up.

from oauth2_proxy.

Related Issues (20)

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.