Skip to content

Oidc logout redirect uri - #1178

Merged
lovasoa merged 1 commit into
mainfrom
cursor/oidc-logout-redirect-uri-cb05
Jan 8, 2026
Merged

Oidc logout redirect uri#1178
lovasoa merged 1 commit into
mainfrom
cursor/oidc-logout-redirect-uri-cb05

Conversation

@lovasoa

Copy link
Copy Markdown
Collaborator

Fixes OIDC logout redirect URI to use the configured application scheme, resolving incorrect redirects behind proxies.

Previously, the post_logout_redirect_uri was constructed using the scheme of the incoming request, which could be HTTP even if the application was configured for HTTPS (e.g., when behind a TLS-terminating proxy). This led to the OIDC provider redirecting back to an insecure HTTP URL after logout, causing issues like those described in #1174. This change ensures the post_logout_redirect_uri is derived from the OIDC client's configured redirect URL, maintaining the correct scheme and host. A new test case test_oidc_logout_uses_correct_scheme has been added to verify this behavior.


Open in CursorOpen in Web

@cursor

cursorBot commented Jan 8, 2026

Copy link
Copy Markdown

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@lovasoa
lovasoaforce-pushed the cursor/oidc-logout-redirect-uri-cb05 branch from 72427de to d4f1671CompareJanuary 8, 2026 13:40
@lovasoalovasoa linked an issue Jan 8, 2026 that may be closed by this pull request
This commit refactors the OIDC tests to use a more robust fake OIDC provider and improves the logout URL generation to correctly handle the scheme.
Fixes#1174
@lovasoa
lovasoaforce-pushed the cursor/oidc-logout-redirect-uri-cb05 branch from d4f1671 to 629087bCompareJanuary 8, 2026 13:59
@lovasoa
lovasoa marked this pull request as ready for review January 8, 2026 14:00
@lovasoa
lovasoa merged commit 72eff80 into mainJan 8, 2026
10 checks passed
@lovasoa
lovasoa deleted the cursor/oidc-logout-redirect-uri-cb05 branch July 24, 2026 21:41
Sign up for freeto 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.

sqlpage.oidc_logout_url http instead https

1 participant

@lovasoa