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

Change redirect code from 302 to 307 #2905

Closed
wants to merge 1 commit into from

Conversation

Ph0tonic
Copy link

@Ph0tonic Ph0tonic commented Jan 7, 2025

Description

oauth-proxy should return 307 redirect code to prevent the original request method loss by browsers.

Motivation and Context

Fixes #2903

How Has This Been Tested?

Tested locally with the provided docker-compose in contrib and keycloak environment.

Checklist:

  • My change requires a change to the documentation or CHANGELOG.
  • I have updated the documentation/CHANGELOG accordingly.
  • I have created a feature (non-master) branch for my PR.
  • I have written tests for my code changes.

@Ph0tonic Ph0tonic requested a review from a team as a code owner January 7, 2025 15:44
@tuunit
Copy link
Member

tuunit commented Jan 8, 2025

Interesting this will most definitely be a breaking change for some people :/

@Ph0tonic
Copy link
Author

Ph0tonic commented Jan 9, 2025

Yes, but if documented correctly and deployed in a major version we could avoid major disruptions/issues. And I strongly believe that fixing this issue would help quite some people being stuck with this very unexpected behavior of oauth2 breaking non GET requests.

Any chance to integrate this feature to the future v8 ?

@Ph0tonic Ph0tonic closed this Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Redirections return 302 instead of 307 code
2 participants