issue: 🐞 Sign-out Fails with Microsoft SSO – 500 Internal Server Error #5720

Closed
opened 2025-11-11 16:31:36 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @samuelpetermoshi on GitHub (Jul 8, 2025).

Check Existing Issues

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

Installation Method

Docker

Open WebUI Version

v0.6.15

Ollama Version (if applicable)

0.9.3

Operating System

Ubuntu 24.04

Browser (if applicable)

Chrome latest

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 provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

Expected behavior
The user should be signed out successfully and redirected to the login screen.

Actual Behavior

Clicking the Sign Out button fails to log users out when using Microsoft SSO. The frontend UI updates to reflect the user's intent to sign out, but the backend returns a 500 Internal Server Error on the /api/v1/auths/signout endpoint.

Steps to Reproduce

To Reproduce
Steps to reproduce the behavior:

  1. Log in using Microsoft SSO
  2. Click on the Sign Out button from the left sidebar
  3. Observe that the user remains signed in
  4. Check logs and see multiple repeated 500 errors

Logs & Screenshots

Screenshots / Logs

  • UI shows no effect after clicking sign out
  • Server logs show repeated errors:
2025-07-08 03:02:04.275 | INFO     | uvicorn.protocols.http.httptools_impl:send:476 - 2a09:bac0:1000:200::2e5:4d:0 - "GET /_app/version.json HTTP/1.1" 200 - {}

2025-07-08 03:02:05.405 | INFO     | uvicorn.protocols.http.httptools_impl:send:476 - 2a09:bac0:1000:4d9::1f1:1fa:0 - "GET /_app/version.json HTTP/1.1" 200 - {}

2025-07-08 03:02:10.176 | INFO     | uvicorn.protocols.http.httptools_impl:send:476 - 2a09:bac0:1000:200::2e5:4d:0 - "GET /api/usage HTTP/1.1" 200 - {}

2025-07-08 03:02:10.540 | INFO     | uvicorn.protocols.http.httptools_impl:send:476 - 2a09:bac0:1000:200::2e5:4d:0 - "GET /api/usage HTTP/1.1" 200 - {}

2025-07-08 03:02:11.162 | ERROR    | open_webui.routers.auths:signout:699 - OpenID signout error:  - {}

2025-07-08 03:02:11.164 | INFO     | uvicorn.protocols.http.httptools_impl:send:476 - 2a09:bac0:1000:200::2e5:4d:0 - "GET /api/v1/auths/signout HTTP/1.1" 500 - {}

2025-07-08 03:02:11.370 | ERROR    | open_webui.routers.auths:signout:699 - OpenID signout error:  - {}

2025-07-08 03:02:11.372 | INFO     | uvicorn.protocols.http.httptools_impl:send:476 - 2a09:bac0:1000:200::2e5:4d:0 - "GET /api/v1/auths/signout HTTP/1.1" 500 - {}

2025-07-08 03:02:11.547 | ERROR    | open_webui.routers.auths:signout:699 - OpenID signout error:  - {}

2025-07-08 03:02:11.549 | INFO     | uvicorn.protocols.http.httptools_impl:send:476 - 2a09:bac0:1000:200::2e5:4d:0 - "GET /api/v1/auths/signout HTTP/1.1" 500 - {}

2025-07-08 03:02:11.779 | ERROR    | open_webui.routers.auths:signout:699 - OpenID signout error:  - {}

2025-07-08 03:02:11.780 | INFO     | uvicorn.protocols.http.httptools_impl:send:476 - 2a09:bac0:1000:200::2e5:4d:0 - "GET /api/v1/auths/signout HTTP/1.1" 500 - {}

2025-07-08 03:02:11.899 | ERROR    | open_webui.routers.auths:signout:699 - OpenID signout error:  - {}

2025-07-08 03:02:11.901 | INFO     | uvicorn.protocols.http.httptools_impl:send:476 - 2a09:bac0:1000:200::2e5:4d:0 - "GET /api/v1/auths/signout HTTP/1.1" 500 - {}

2025-07-08 03:02:12.080 | ERROR    | open_webui.routers.auths:signout:699 - OpenID signout error:  - {}

2025-07-08 03:02:12.081 | INFO     | uvicorn.protocols.http.httptools_impl:send:476 - 2a09:bac0:1000:200::2e5:4d:0 - "GET /api/v1/auths/signout HTTP/1.1" 500 - {}

2025-07-08 03:02:12.352 | INFO     | uvicorn.protocols.http.httptools_impl:send:476 - 2a09:bac0:1000:200::2e5:4d:0 - "GET /api/v1/chats/912d7018-ac31-4f8f-b2c9-9fe3631e14ff HTTP/1.1" 200 - {}

Environment :

  • OpenWebUI version: (latest at time of report)
  • Auth provider: Microsoft SSO
  • Browser: Chrome (macOS)
Image Image

Additional Information

No response

Originally created by @samuelpetermoshi on GitHub (Jul 8, 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 Docker ### Open WebUI Version v0.6.15 ### Ollama Version (if applicable) 0.9.3 ### Operating System Ubuntu 24.04 ### Browser (if applicable) Chrome latest ### 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 **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior **Expected behavior** The user should be signed out successfully and redirected to the login screen. ### Actual Behavior Clicking the **Sign Out** button fails to log users out when using Microsoft SSO. The frontend UI updates to reflect the user's intent to sign out, but the backend returns a `500 Internal Server Error` on the `/api/v1/auths/signout` endpoint. ### Steps to Reproduce **To Reproduce** Steps to reproduce the behavior: 1. Log in using Microsoft SSO 2. Click on the **Sign Out** button from the left sidebar 3. Observe that the user remains signed in 4. Check logs and see multiple repeated 500 errors ### Logs & Screenshots **Screenshots / Logs** * UI shows no effect after clicking sign out * Server logs show repeated errors: ``` 2025-07-08 03:02:04.275 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 2a09:bac0:1000:200::2e5:4d:0 - "GET /_app/version.json HTTP/1.1" 200 - {} 2025-07-08 03:02:05.405 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 2a09:bac0:1000:4d9::1f1:1fa:0 - "GET /_app/version.json HTTP/1.1" 200 - {} 2025-07-08 03:02:10.176 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 2a09:bac0:1000:200::2e5:4d:0 - "GET /api/usage HTTP/1.1" 200 - {} 2025-07-08 03:02:10.540 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 2a09:bac0:1000:200::2e5:4d:0 - "GET /api/usage HTTP/1.1" 200 - {} 2025-07-08 03:02:11.162 | ERROR | open_webui.routers.auths:signout:699 - OpenID signout error: - {} 2025-07-08 03:02:11.164 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 2a09:bac0:1000:200::2e5:4d:0 - "GET /api/v1/auths/signout HTTP/1.1" 500 - {} 2025-07-08 03:02:11.370 | ERROR | open_webui.routers.auths:signout:699 - OpenID signout error: - {} 2025-07-08 03:02:11.372 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 2a09:bac0:1000:200::2e5:4d:0 - "GET /api/v1/auths/signout HTTP/1.1" 500 - {} 2025-07-08 03:02:11.547 | ERROR | open_webui.routers.auths:signout:699 - OpenID signout error: - {} 2025-07-08 03:02:11.549 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 2a09:bac0:1000:200::2e5:4d:0 - "GET /api/v1/auths/signout HTTP/1.1" 500 - {} 2025-07-08 03:02:11.779 | ERROR | open_webui.routers.auths:signout:699 - OpenID signout error: - {} 2025-07-08 03:02:11.780 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 2a09:bac0:1000:200::2e5:4d:0 - "GET /api/v1/auths/signout HTTP/1.1" 500 - {} 2025-07-08 03:02:11.899 | ERROR | open_webui.routers.auths:signout:699 - OpenID signout error: - {} 2025-07-08 03:02:11.901 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 2a09:bac0:1000:200::2e5:4d:0 - "GET /api/v1/auths/signout HTTP/1.1" 500 - {} 2025-07-08 03:02:12.080 | ERROR | open_webui.routers.auths:signout:699 - OpenID signout error: - {} 2025-07-08 03:02:12.081 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 2a09:bac0:1000:200::2e5:4d:0 - "GET /api/v1/auths/signout HTTP/1.1" 500 - {} 2025-07-08 03:02:12.352 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 2a09:bac0:1000:200::2e5:4d:0 - "GET /api/v1/chats/912d7018-ac31-4f8f-b2c9-9fe3631e14ff HTTP/1.1" 200 - {} ``` **Environment :** * OpenWebUI version: (latest at time of report) * Auth provider: Microsoft SSO * Browser: Chrome (macOS) <img width="839" height="418" alt="Image" src="https://github.com/user-attachments/assets/8ae52150-6297-4aa9-a3c4-960e6c0c0453" /> <img width="1311" height="550" alt="Image" src="https://github.com/user-attachments/assets/d830c7d2-ac76-4ed5-b0cb-327fc56f5620" /> ### Additional Information _No response_
GiteaMirror added the bug label 2025-11-11 16:31:36 -06:00
Author
Owner

@Classic298 commented on GitHub (Jul 8, 2025):

https://github.com/open-webui/open-webui/issues/15104

Duplicate issue. Please search for existing issues and discussions bedore opening yet another one.

This was raised in an issue a week ago or so and then also fixed the next day.

Please test the dev branch and confirm that the dev branch fixes your issue.

And follow the extact steps to set up oauth correctly, specifically the redirect uri

@Classic298 commented on GitHub (Jul 8, 2025): https://github.com/open-webui/open-webui/issues/15104 Duplicate issue. Please search for existing issues and discussions bedore opening yet another one. This was raised in an issue a week ago or so and then also fixed the next day. Please test the dev branch and confirm that the dev branch fixes your issue. And follow the extact steps to set up oauth correctly, specifically the redirect uri
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#5720