mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #24141] [CLOSED] fix: apply OAUTH_TIMEOUT to MCP tool server OAuth 2.1 path #66375
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/24141
Author: @SymbolStar
Created: 4/26/2026
Status: ❌ Closed
Base:
main← Head:fix/mcp-oauth-timeout📝 Commits (1)
7a6b336fix: apply OAUTH_TIMEOUT to MCP tool server OAuth 2.1 path (#24138)📊 Changes
1 file changed (+2 additions, -0 deletions)
View changed files
📝
backend/open_webui/utils/oauth.py(+2 -0)📄 Description
Summary
Fixes #24138 —
OAUTH_TIMEOUThas no effect on the MCP tool server OAuth 2.1 path, causinghttpx.ReadTimeoutfor token endpoints that respond in >5 seconds.Root Cause
PR #15366 added
OAUTH_TIMEOUTto OIDC SSO login flows inconfig.py, but the MCP tool server OAuth 2.1 path inoauth.py'sadd_client()was not updated. Theclient_kwargsdict is built without readingOAUTH_TIMEOUT, so the default httpx timeout (5s) applies regardless of the env var.Fix
Import
OAUTH_TIMEOUTfromconfigand apply the same timeout pattern used in all OIDCclient_kwargsentries:Testing
OAUTH_TIMEOUT=60→ succeeds ✅OAUTH_TIMEOUTset → default httpx timeout applies (unchanged behavior) ✅🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.