mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
issue: I can't log in with OPENID+Microsoft Entra ID (The button does not apear) #6207
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 @brunesIT on GitHub (Aug 25, 2025).
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.25
Ollama Version (if applicable)
No response
Operating System
Ubuntu 24.04.2 LTS
Browser (if applicable)
Edge
Confirmation
README.md.Expected Behavior
When entering openwebUI, I expected to see the Log In button with OpenID.
Actual Behavior
open-webui | AssertionError
open-webui | Exception in ASGI application
open-webui | Traceback (most recent call last):
open-webui | File "/usr/local/lib/python3.11/site-packages/uvicorn/protocols/websockets/websockets_impl.py", line 244, in run_asgi
open-webui | result = await self.app(self.scope, self.asgi_receive, self.asgi_send) # type: ignore[func-returns-value]
open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui | File "/usr/local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in call
open-webui | return await self.app(scope, receive, send)
open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui | File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in call
open-webui | await super().call(scope, receive, send)
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 112, in call
open-webui | await self.middleware_stack(scope, receive, send)
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 152, in call
open-webui | await self.app(scope, receive, send)
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 77, in call
open-webui | await self.app(scope, receive, send)
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 100, in call
open-webui | await self.app(scope, receive, send)
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 100, in call
open-webui | await self.app(scope, receive, send)
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 100, in call
open-webui | await self.app(scope, receive, send)
open-webui | [Previous line repeated 2 more times]
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette_compress/init.py", line 86, in call
open-webui | return await self.app(scope, receive, send)
open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 62, in call
open-webui | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
open-webui | raise exc
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
open-webui | await app(scope, receive, sender)
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 715, in call
open-webui | await self.middleware_stack(scope, receive, send)
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 735, in app
open-webui | await route.handle(scope, receive, send)
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 460, in handle
open-webui | await self.app(scope, receive, send)
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/staticfiles.py", line 91, in call
open-webui | assert scope["type"] == "http"
open-webui | ^^^^^^^^^^^^^^^^^^^^^^^
open-webui | AssertionError
Steps to Reproduce
start docker
set up docker compose
docker compose up
see the logs
Logs & Screenshots
Additional Information
DOCKER COMPOSE BELOW
services:
open-webui:
image: ghcr.io/open-webui/open-webui:v0.6.25
container_name: open-webui
ports:
- "8080:8080"
environment:
OPENAI_API_KEY: "sk-xxx"
OPENAI_API_BASE_URL: "https://api.deepseek.com/v1"
MODEL_NAME: "deepseek-chat"
DEFAULT_MODELS: "deepseek-chat"
volumes:
open-webui: {}
I'M USING NGINX PROXY MANAGER
CONFIG:
http://open-webui:8080 | Let's Encrypt
Advanced:
Disable caching for login / OAuth / websockets endpoints
location ~* ^/(api|oauth|callback|login|ws|websocket) {
proxy_no_cache 1;
proxy_cache_bypass 1;
}
I'M NEW AT GITHUB ISSUES
@Classic298 commented on GitHub (Aug 26, 2025):
It seems you did not set ENABLE_OAUTH_SIGNUP and ENABLE_LOGIN_FORM
There might be other variables you also did not set.
Please check the env var docs here https://docs.openwebui.com/getting-started/env-configuration
And the SSO Docs here https://docs.openwebui.com/features/sso/
And troubleshooting here
https://docs.openwebui.com/troubleshooting/sso
@JARZcorp commented on GitHub (Aug 26, 2025):
Is there a reason you are using the OpenID env variables instead of the Microsoft env varialbes since you are using Entra ID?
You also need to create an app registration in Azure, but as Ckassuc298 pointed out check out the documentation around SSO.
MICROSOFT_CLIENT_ID
Type: str
Description: Sets the client ID for Microsoft OAuth.
Persistence: This environment variable is a PersistentConfig variable.
MICROSOFT_CLIENT_SECRET
Type: str
Description: Sets the client secret for Microsoft OAuth.
Persistence: This environment variable is a PersistentConfig variable.
MICROSOFT_CLIENT_TENANT_ID
Type: str
Description: Sets the tenant ID for Microsoft OAuth.
Persistence: This environment variable is a PersistentConfig variable.
MICROSOFT_OAUTH_SCOPE
Type: str
Default: openid email profile
Description: Sets the scope for Microsoft OAuth authentication.
Persistence: This environment variable is a PersistentConfig variable.
MICROSOFT_REDIRECT_URI
Type: str
Default: /oauth/microsoft/callback
Description: Sets the redirect URI for Microsoft OAuth.
Persistence: This environment variable is a PersistentConfig variable.
@brunesIT commented on GitHub (Aug 26, 2025):
@JARZcorp @Classic298 First of all Thank you for the help. Would it be better for me to use OPEN ID or Microsoft auth?
I have used OpenID with Librechat (another WebUI) and it worked. What would be best to integrate with n8n?