mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #21296] [CLOSED] fix: correct MCP OAuth authorization server metadata discovery URL #26014
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/21296
Author: @thoov
Created: 2/10/2026
Status: ❌ Closed
Base:
main← Head:fix/mcp-oauth-discovery-url-construction📝 Commits (1)
8a71bf0fix: correct MCP OAuth authorization server metadata discovery URL construction📊 Changes
2 files changed (+27 additions, -3 deletions)
View changed files
📝
backend/open_webui/routers/configs.py(+1 -1)📝
backend/open_webui/utils/oauth.py(+26 -2)📄 Description
Summary
get_authorization_server_discovery_urls()to comply with RFC 8414 §3 — the/.well-known/segment is now inserted between the host and the path instead of appended to the end of the issuer URLawaiton asyncget_discovery_urls()call in the verify endpoint, which caused aTypeErrorwhen iterating over the unawaited coroutineTest plan
https://foo.com/oauthproduces discovery URLhttps://foo.com/.well-known/oauth-authorization-server/oauth(nothttps://foo.com/oauth/.well-known/oauth-authorization-server)https://example.comstill produceshttps://example.com/.well-known/oauth-authorization-server/tool_servers/verify) completes withoutTypeErrorcontributor license agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.