[PLT-3581] Add configurable sign-out URL via --sign-out-url / OAUTH2_PROXY_SIGN_OUT_URL#32
Open
majimenez-stratio wants to merge 4 commits into
Open
[PLT-3581] Add configurable sign-out URL via --sign-out-url / OAUTH2_PROXY_SIGN_OUT_URL#32majimenez-stratio wants to merge 4 commits into
majimenez-stratio wants to merge 4 commits into
Conversation
…OUT_URL The flag was already registered but not wired to any struct. This connects it so deployments can override the provider's default sign-out redirect URL without changing the SIS root URL (needed for non-standard IdP logout flows like Autentica). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
url.Values{} was overwriting SignOutURL's query string entirely,
dropping params like ?appId=5784 when adding the rd redirect.
Use redirect.Query() to merge instead.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--sign-out-url/OAUTH2_PROXY_SIGN_OUT_URLflag so operators can override the post-logout browser redirect URLSISProvider.GetSignOutURLwhere existing query params in the sign-out URL were silently dropped (e.g.?appId=5784from Autentica/REDSARA)docs/docs/configuration/alpha_config.mdto document the new fieldBackport of #29 (master) targeting
branch-0.4.Closes PLT-3581
Use case
Autentica (REDSARA) requires a non-standard logout URL with a query param:
This can now be set with:
Test plan
go test ./providers/... -run TestSISProviderGetSignOutURLpasses (3 cases: no redirect, redirect added, existing query params preserved)--sign-out-urlwith a URL containing query params and verify redirect works end-to-end🤖 Generated with Claude Code