mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[PR #22071] [CLOSED] feat: add OAUTH_LOGOUT_URI for custom OAuth logout endpoints #42091
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/22071
Author: @Br1an67
Created: 3/1/2026
Status: ❌ Closed
Base:
dev← Head:feat/oauth-logout-uri📝 Commits (1)
c5d0209feat: add OAUTH_LOGOUT_URI for custom OAuth logout endpoints📊 Changes
2 files changed (+18 additions, -1 deletions)
View changed files
📝
backend/open_webui/config.py(+7 -1)📝
backend/open_webui/routers/auths.py(+11 -0)📄 Description
Pull Request Checklist
devOAUTH_LOGOUT_URIis setChangelog Entry
Description
Add a new
OAUTH_LOGOUT_URIenvironment variable that allows specifying a full custom logout URI for OAuth providers that do not support the standard OIDCend_session_endpointdiscovery (e.g. AWS Cognito).Closes #19182
Added
OAUTH_LOGOUT_URIPersistentConfig inconfig.py— accepts a full custom logout URL via environment variable/signouthandler: whenOAUTH_LOGOUT_URIis set and an OAuth session exists, redirect to it directly instead of attempting OIDC discoveryChanged
OAUTH_LOGOUT_URI— the "logout will not work" warning is suppressed when eitherOPENID_PROVIDER_URLorOAUTH_LOGOUT_URIis configuredFixed
client_id+logout_uri) instead of the standard OIDCend_session_endpointwithid_token_hintAdditional Information
https://<domain>/logout?client_id=<id>&logout_uri=<uri>— this cannot be discovered via OIDC metadata""), the existing OIDC discovery flow is used unchangedContributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.