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

Fix oauth endpoint to support detecting https in 'Forwarded' header #359

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

zdebel
Copy link
Contributor

@zdebel zdebel commented Oct 30, 2024

This fix enables google openid oauth2 mechanism, the current code couldn't detect that it should redirect to https.

In a perfect world, this check plus the existing one for X-Forwarded-Proto should be incorporated into https://github.com/labstack/echo/blob/master/context.go#L275

Documentation on the header support that this fix implements: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Forwarded

@thomiceli thomiceli merged commit d5e66d3 into thomiceli:master Oct 31, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants