Skip to content

fix(ui): preserve post-login redirect target through oauth2-proxy sign-in - #2533

Open
onematchfox wants to merge 2 commits into
kagent-dev:mainfrom
onematchfox:fix-preserve-log-url-main
Open

fix(ui): preserve post-login redirect target through oauth2-proxy sign-in#2533
onematchfox wants to merge 2 commits into
kagent-dev:mainfrom
onematchfox:fix-preserve-log-url-main

Conversation

@onematchfox

Copy link
Copy Markdown
Contributor

#2532 - against main

…n-in

When oauth2-proxy intercepts an unauthenticated request it serves its
sign-in page carrying the original destination as `.Redirect` (e.g.
`/oauth2/sign_in?rd=%2Fagents%2Ffoo`). `sign_in.html` template ignored that and unconditionally redirected to `/login`, and `/login`'s
"Sign in with SSO" link was hardcoded to `rd=/` -- so any login, expired-
cookie or not, always landed back on the home page instead of the page
the user was trying to reach.

Signed-off-by: Brian Fox <878612+onematchfox@users.noreply.github.com>
@onematchfox
onematchfox requested review from a team, Charlesthebird and peterj as code owners August 24, 2026 11:13
@github-actions github-actions Bot added the bug Something isn't working label Aug 24, 2026
Adds env var to `oauth2-proxy`'s `Deployment` to ensure that it rolls out when content is updated. The vendored chart's `Deployment` doesn't support a checksum/config-style pod annotation for extra mounted ConfigMaps.

Signed-off-by: Brian Fox <878612+onematchfox@users.noreply.github.com>
@onematchfox
onematchfox force-pushed the fix-preserve-log-url-main branch from a0fc0e1 to 34c34e9 Compare August 24, 2026 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant