mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 04:16:03 -05:00
[GH-ISSUE #23344] issue: MCP-Server OAuth not working in v0.8.12 #58623
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 @aleex1848 on GitHub (Apr 2, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23344
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.8.12
Ollama Version (if applicable)
No response
Operating System
Windows 11
Browser (if applicable)
Chrome
Confirmation
README.md.Expected Behavior
Login via OAuth/OIDC should set a cookie namend "oauth_session_id"
Actual Behavior
Login via OAuth/OIDC does not set a cookie namend "oauth_session_id".
Steps to Reproduce
Setup with OAUTH Login.
Add MCP-Server with Auth Method "OAuth".
Make a MCP-Request.
Inspect the request and see that no authorization header is sent.
Logs & Screenshots
Failed to store OAuth session server-side
Additional Information
In v0.8.10 it's working fine.
After updating to v0.8.12 it does not work anymore.
I would guess the problem sits here in line 1597
https://github.com/open-webui/open-webui/commit/bb3526f4e#diff-18f89641054f18680b1073ddaf7fb3e8d5b193533ee6dd79b89b60477d2dca61R1597
cookie_expires is not set so response.set_cookie is failing and never sets the cookie.
@tjbck commented on GitHub (Apr 2, 2026):
Addresseed in dev.