issue: logout returns 500 error unless user delete his cookie with SSO #5188

Closed
opened 2025-11-11 16:14:03 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @yalattas on GitHub (May 15, 2025).

Check Existing Issues

  • I have searched the existing issues and discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Other

Open WebUI Version

v0.6.5

Ollama Version (if applicable)

No response

Operating System

K8s environment

Browser (if applicable)

Brave

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have listed steps to reproduce the bug in detail.

Expected Behavior

Logout user once user clicks on logout button.

Actual Behavior

System is returning 500 to logout.

I am using Google SSO only without setting the following environment variable OPENID_PROVIDER_URL

chart only set client key and client secret

Steps to Reproduce

use open-webui helm chart

configure google SSO.

login

then logout

Logs & Screenshots

response from signout endpoint

{"detail":"Failed to sign out from the OpenID provider."}

Additional Information

the line causing the issue is here
4ce1e88750/backend/open_webui/routers/auths.py (L571C44-L571C63)

Originally created by @yalattas on GitHub (May 15, 2025). ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Other ### Open WebUI Version v0.6.5 ### Ollama Version (if applicable) _No response_ ### Operating System K8s environment ### Browser (if applicable) Brave ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have listed steps to reproduce the bug in detail. ### Expected Behavior Logout user once user clicks on logout button. ### Actual Behavior System is returning 500 to logout. I am using Google SSO only without setting the following environment variable `OPENID_PROVIDER_URL` chart only set client key and client secret ### Steps to Reproduce use open-webui helm chart configure google SSO. login then logout ### Logs & Screenshots response from signout endpoint ``` {"detail":"Failed to sign out from the OpenID provider."} ``` ### Additional Information the line causing the issue is here https://github.com/open-webui/open-webui/blob/4ce1e88750c6da2f94b834697902ceb9f5524726/backend/open_webui/routers/auths.py#L571C44-L571C63
GiteaMirror added the bug label 2025-11-11 16:14:03 -06:00
Author
Owner

@yalattas commented on GitHub (May 15, 2025):

quick solution just to add the following env var if you're using google. Yet, chart should handle this case

extraEnvVars:
    - name: OPENID_PROVIDER_URL
      value: "https://accounts.google.com/.well-known/openid-configuration"
@yalattas commented on GitHub (May 15, 2025): quick solution just to add the following env var if you're using google. Yet, chart should handle this case ```Yaml extraEnvVars: - name: OPENID_PROVIDER_URL value: "https://accounts.google.com/.well-known/openid-configuration" ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#5188