mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
issue: Error Logout with Google Oauth #4754
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?
Originally created by @mballesterosc on GitHub (Apr 7, 2025).
Check Existing Issues
Installation Method
Pip Install
Open WebUI Version
0.6.2
Ollama Version (if applicable)
No response
Operating System
Windows Server 2016
Browser (if applicable)
Chrome
Confirmation
README.md.Expected Behavior
When user is login with Google Oauth, he can logout without problem
Actual Behavior
After version 0.6 when user is login with Google Oauth, it is missing to logout:
Steps to Reproduce
Logs & Screenshots
Additional Information
No response
@matthew-kusz commented on GitHub (Apr 8, 2025):
Missed this when checking issues before posting a discussion about OIDC: https://github.com/open-webui/open-webui/discussions/12605.
@tjeerdhans commented on GitHub (Apr 9, 2025):
I think I have the same problem using Microsoft oauth.
@mintplo commented on GitHub (Apr 10, 2025):
I'm experiencing the same issue with Google OAuth on Chrome.
but it doesn't appear on Firefox.
OS: Amazon Linux release 2023.6.20250317 (Amazon Linux)
OpenWebUI Version: 0.6.2
Browser: Google Chrome 135.0.7049.42
@goveebee commented on GitHub (Apr 10, 2025):
I cannot log out at all from the default user. Using verision 0.6.2. No auth, just standard user/password logged in user.
@Davidliu012 commented on GitHub (Apr 11, 2025):
I can logout from user/password logged in user, but not able to log out with Microsoft oauth. (0.6.2)
@MarouaneZhani commented on GitHub (Apr 11, 2025):
on 0.6.0 everything is working as expected
on 0.6.1 I cannot log out from user/password AND from Microsoft oauth.
on 0.6.2 I can logout from user/password logged in user, but not able to log out with Microsoft oauth.
@ucchash111 commented on GitHub (Apr 11, 2025):
same
@tzesoon commented on GitHub (Apr 14, 2025):
I managed to fix unable to Sign Out issue by setting env
OPENID_PROVIDER_URL=https://accounts.google.com/.well-known/openid-configuration.For context, previously I only had these Google related envs
GOOGLE_CLIENT_IDGOOGLE_CLIENT_SECRET@gvo commented on GitHub (Apr 14, 2025):
Using Microsoft OAuth authentication here, saw the suggestion to set OPENID_PROVIDER_URL which fixed the issue for me.
@MarouaneZhani commented on GitHub (Apr 14, 2025):
@gvo didnt work for me, to which url you set it to ?
I have tried both https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration and https://login.microsoftonline.com/{my_tenant_id}/v2.0/.well-known/openid-configuration
but didnt work...
@gvo commented on GitHub (Apr 14, 2025):
Exactly as you have https://login.microsoftonline.com/{redacted_tenant_id}/v2.0/.well-known/openid-configuration. Tested on both 0.6.2 and 0.6.5
@MarouaneZhani commented on GitHub (Apr 15, 2025):
@gvo for me not working... could you share with me please the other env. variables (related to Oauth) that you are setting ? maybe I m not setting all needed variables
@frk-ti8m commented on GitHub (Apr 16, 2025):
I have the same issue, and created a duplicate ticket, before I became aware of this one. https://github.com/open-webui/open-webui/issues/12920
Any updates, regarding suggested solutions? I am using Microsoft Oauth.
@frk-ti8m commented on GitHub (Apr 16, 2025):
As of v0.6.5:
@athoik commented on GitHub (Apr 22, 2025):
Hi,
I had that problem as well, using v0.6.5 and Microsoft.
Adding OPENID_PROVIDER_URL seem to solve the problem, together with setting the "Front-channel logout URL" in Entra Id.
@KevinRohn commented on GitHub (Apr 22, 2025):
Thank you @athoik ! Just a note, you can find the URI under this section:
Browse to Identity > Applications > App registrations > > Endpoints.
Locate the URI under OpenID Connect metadata document.
@Her-shey commented on GitHub (Apr 22, 2025):
If we provide a wrong or empty OPENID_PROVIDER_URL, the sign out function will raise error when aiohttp client session try to get an invalid url address. The error type would be <class 'aiohttp.client_exceptions.InvalidUrlClientError'> and its string representation repr is InvalidUrlClientError.
https://github.com/open-webui/open-webui/blob/main/backend/open_webui/routers/auths.py#L558
The python logger as following is catch the string of client_exceptions which is the URL input for get function. In this issue, since OPENID_PROVIDER_URL is empty string "", the str of the exception for InvalidUrlClientError is also an empty string. Thus, maybe for stronger log mode, we can provide exception type or repr.
@spammenotinoz commented on GitHub (May 20, 2025):
Same issue, I don't see Open-Webui even attempting to make a logout call to the end_session_endpoint
Rest of the OIDC config works fine.
Quick check looks like logout call is only made when ENABLE_OAUTH_SIGNUP=true, being a persistent variable appears you can only set before the first run and cannot be changed via the GUI.
So if this was not defined on first run, OIDC seems to partially work.
Perhaps a manual DB update?
Perhaps I am reading the code wrong in /backend/open_webui/routers/auths.py