mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 14:24:24 -05:00
[PR #15999] [CLOSED] fix: oauth logout #95038
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/15999
Author: @guenhter
Created: 7/24/2025
Status: ❌ Closed
Base:
dev← Head:fix-oauth-logout📝 Commits (1)
98c12bcfix: oauth logout📊 Changes
5 files changed (+64 additions, -12 deletions)
View changed files
📝
CHANGELOG.md(+6 -0)📝
backend/open_webui/config.py(+11 -2)📝
backend/open_webui/routers/auths.py(+17 -7)📝
backend/open_webui/utils/auth.py(+17 -2)📝
backend/open_webui/utils/oauth.py(+13 -1)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
The current logout handling requried the variable
OPENID_PROVIDER_URLto be set. If not, the logout gets an error and the user stays logged in. But this variable is usually only necessary for the generic OIDC provider but not for Google, Microsoft, or Github because theier variables are well known an contained in the code.This PR reuses the correct logout variable depending on the used provider.
Details can be found: https://github.com/open-webui/open-webui/discussions/15007
Fixed
Additional Information
I probably have not considered all use cases for all providers, but this PR makes it definitely better as before (where no logout at all was possible).
Screenshots or Videos
Logout when Microsoft is used:

Contributor 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.