Coder Social home page Coder Social logo

Comments (8)

thomseddon avatar thomseddon commented on May 20, 2024

Have you added https://service.domain.com/_oauth in the Google Oauth Console?

from traefik-forward-auth.

moreiramarti avatar moreiramarti commented on May 20, 2024

I did but the calling url is http and not https.
Do you know why ? Maybe a missing header

from traefik-forward-auth.

thomseddon avatar thomseddon commented on May 20, 2024

Sorry I'm not following you, in your example all the URL's had https at the start, so I can't see an issue with that.

Could you give an example request flow?

from traefik-forward-auth.

moreiramarti avatar moreiramarti commented on May 20, 2024

Sure, I'm call my service with https then I'm redirected to google auth screen but I get a 400 error with the message : the redirect URI in the request, http://service.domain.com/_oauth, does not match the ones authorized for the OAuth client.

I did a wrong copy paste in my initial post. The _oauth url is called with http instead of https.

from traefik-forward-auth.

thomseddon avatar thomseddon commented on May 20, 2024

Hmm, are you sure your first request is https? If it is, are you being redirected to http before being redirected to google? (You will have to watch your request log in your browser to check).

from traefik-forward-auth.

moreiramarti avatar moreiramarti commented on May 20, 2024

I'm pretty sure but I'm doing ssl offloading through haproxy maybe the issue comes from that.

from traefik-forward-auth.

thomseddon avatar thomseddon commented on May 20, 2024

Yep, that will be the issue - the way this tool works at the moment is to look at the protocol of the request as received by traefik.

I could look at a way to override this in the future but unfortunately this wouldn't be a quick fix for me

from traefik-forward-auth.

moreiramarti avatar moreiramarti commented on May 20, 2024

from traefik-forward-auth.

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.