-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Add an option to preserve the ForwardAuth Server Location header #11318
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
Conversation
|
Hello @Nelwhix and thanks for this contribution, The way you address the issue is breaking because some users may rely on the current behavior of the ForwardAuth middleware. We may have not been clear enough, but the issue should be addressed in a non-breaking way. This means that an option should be added to the middleware to control whether the location header should be left as is (the new behavior) or resolved against the auth server address. Also, as this is an enhancement, could you please rebase it on the master branch? |
ed848d3 to
4ea9aaa
Compare
|
Hi @kevinpollet, I understand what you mean. Now to find a new name for this field. What do you think of http:
middlewares:
test-auth:
forwardAuth:
preserveLocationHeader: true |
@Nelwhix Thanks, it looks good to me. |
|
@kevinpollet made the changes |
|
Hello @Nelwhix, Thanks for your changes. |
|
Hi @rtribotte, I have made the updates. |
|
Hello @Nelwhix, Thanks for last changes! |
|
No problem.
…On Thu, Dec 12, 2024 at 4:41 PM Romain ***@***.***> wrote:
Hello @Nelwhix <https://github.com/Nelwhix>,
Thanks for last changes!
Do you mind if I rebase you branch and push a review commit?
—
Reply to this email directly, view it on GitHub
<#11318 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AN5IDMQXFW7F433GBQE66DD2FGVEJAVCNFSM6AAAAABS6W36D6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMZZGMYTSMRYGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
3298379 to
05209f7
Compare
rtribotte
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
kevinpollet
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 👍
What does this PR do?
Fixing issue #11313 where ForwardAuth middleware modifys the Location header instead of sending it as is.
Fixes #11313
More