[PR #22126] [CLOSED] feat: add OAUTH_LOGOUT_CUSTOM_REDIRECT_URI for SSO custom logout #42135

Closed
opened 2026-04-25 14:07:31 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/22126
Author: @VedantMadane
Created: 3/2/2026
Status: Closed

Base: devHead: feat/sso-custom-logout-uri


📝 Commits (1)

  • 6c012eb feat: add OAUTH_LOGOUT_CUSTOM_REDIRECT_URI for SSO custom logout

📊 Changes

2 files changed (+12 additions, -6 deletions)

View changed files

📝 backend/open_webui/env.py (+4 -0)
📝 backend/open_webui/routers/auths.py (+8 -6)

📄 Description

Fixes #19182.

This PR introduces a new environment variable \OAUTH_LOGOUT_CUSTOM_REDIRECT_URI\ that allows users to specify a complete custom logout URL for OAuth/OIDC providers.

Testing Confirmation

I have personally tested these changes by:

  1. Setting \OAUTH_LOGOUT_CUSTOM_REDIRECT_URI\ to a test endpoint.
  2. Initiating a sign-out flow.
  3. Verifying that the application correctly redirects to the custom URI instead of the default OIDC logout URL.
  4. Verifying that when the variable is NOT set, the default behavior (OIDC end_session_endpoint) is preserved.

I agree to the contributor license agreement.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/22126 **Author:** [@VedantMadane](https://github.com/VedantMadane) **Created:** 3/2/2026 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `feat/sso-custom-logout-uri` --- ### 📝 Commits (1) - [`6c012eb`](https://github.com/open-webui/open-webui/commit/6c012eb89612de8ebbad620e870199dcf376ca06) feat: add OAUTH_LOGOUT_CUSTOM_REDIRECT_URI for SSO custom logout ### 📊 Changes **2 files changed** (+12 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/env.py` (+4 -0) 📝 `backend/open_webui/routers/auths.py` (+8 -6) </details> ### 📄 Description Fixes #19182. This PR introduces a new environment variable \OAUTH_LOGOUT_CUSTOM_REDIRECT_URI\ that allows users to specify a complete custom logout URL for OAuth/OIDC providers. ### Testing Confirmation I have personally tested these changes by: 1. Setting \OAUTH_LOGOUT_CUSTOM_REDIRECT_URI\ to a test endpoint. 2. Initiating a sign-out flow. 3. Verifying that the application correctly redirects to the custom URI instead of the default OIDC logout URL. 4. Verifying that when the variable is NOT set, the default behavior (OIDC end_session_endpoint) is preserved. I agree to the contributor license agreement. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-25 14:07:31 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#42135