Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

https url-path #27

Closed
moreiramarti opened this issue Feb 6, 2019 · 8 comments
Closed

https url-path #27

moreiramarti opened this issue Feb 6, 2019 · 8 comments
Labels
question Further information is requested

Comments

@moreiramarti
Copy link

Hello,

I'm trying you forwarder and I'm facing and issue with https.
When I call my service, let's say https://service.domain.com, I get a 400 error code saying :
he redirect URI in the request, https://service.domain.com/_oauth, does not match the ones authorized for the OAuth client.

How can I make the url path called with https ?

Regards,
Martinho MOREIRA

@thomseddon
Copy link
Owner

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

@thomseddon thomseddon added the question Further information is requested label Feb 6, 2019
@moreiramarti
Copy link
Author

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

@thomseddon
Copy link
Owner

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?

@moreiramarti
Copy link
Author

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.

@thomseddon
Copy link
Owner

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).

@moreiramarti
Copy link
Author

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

@thomseddon
Copy link
Owner

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

@moreiramarti
Copy link
Author

moreiramarti commented Feb 6, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants