mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
bug: Server error on Signout with Microsoft Oauth Authentication flow #4868
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 @frk-ti8m on GitHub (Apr 16, 2025).
Check Existing Issues
Installation Method
Docker
Open WebUI Version
main
Ollama Version (if applicable)
none
Operating System
Ubuntu 22.04
Browser (if applicable)
Google Chrome 134.0.6998.166 (Official Build) (arm64)
Confirmation
README.md.Expected Behavior
The signout should succeed. And if I receiver a signout error from the backend, then a more desriptive error message should be displayed. Currently I receive no useful information to debug my configuration (in case something is configured wrong).
Actual Behavior
Logout fails and I receive error status 500 from the backend. See screenshot below.
Steps to Reproduce
Logs & Screenshots
Additional Information
I am using standard Open WebUI without Ollama. I have disabled Open WebUI Login Form and I am using Microsoft Oauth as the only login modality. I set the following environment variables:
ENABLE_SIGNUP=True
ENABLE_LOGIN_FORM=False
USE_CUDA_DOCKER=False
WEBUI_SESSION_COOKIE_SAME_SITE=lax
WEBUI_AUTH=True
OFFLINE_MODE=False
ENABLE_OAUTH_SIGNUP=True
ENABLE_API_KEY=True
ENABLE_OAUTH_ROLE_MANAGEMENT=False
OAUTH_MERGE_ACCOUNTS_BY_EMAIL=True
OAUTH_EMAIL_CLAIM="email"
OAUTH_PICTURE_CLAIM="picture"
MICROSOFT_CLIENT_ID=redacted
MICROSOFT_CLIENT_SECRET=redacted
MICROSOFT_CLIENT_TENANT_ID=redacted
MICROSOFT_OAUTH_SCOPE="offline_access openid profile email"
MICROSOFT_REDIRECT_URI=redacted/oauth/microsoft/callback
@almajo commented on GitHub (Apr 16, 2025):
Not sure if you did cut it out for GitHub but the redirect_url needs to include your endpoint, e.g. "http://localhost:8080/oauth/microsoft/callback"
@frk-ti8m commented on GitHub (Apr 16, 2025):
Sorry Github markdown fucked it up, I redacted that part of the url, but that redirect is functional.
@frk-ti8m commented on GitHub (Apr 16, 2025):
The exact same bug has actually been reported here: https://github.com/open-webui/open-webui/issues/12581
But still no solution exists as of now.