mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-11 00:04:08 -05:00
issue: MCP OAuth 2.1 client registration fails when policy_uri, client_uri, logo_uri or tos_uri are not set #6890
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 @xqqp on GitHub (Nov 11, 2025).
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.36
Ollama Version (if applicable)
No response
Operating System
Linux
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
MCP OAuth 2.1 does not fail when policy_uri, client_uri, logo_uri or tos_uri are left empty.
Actual Behavior
Registration of a new tool server via MCP streamable HTTP with OAuth 2.1 client discovery fails if the OAuth server responds with client information containing empty URLs for policy_uri, client_uri, logo_uri or tos_uri .
Steps to Reproduce
Logs & Screenshots
open-webui | 2025-11-11 11:37:07.770 | ERROR | open_webui.utils.oauth:get_oauth_client_info_with_dynamic_client_registration:354 - Error parsing client registration response: 4 validation errors for OAuthClientInformationFull
open-webui | client_uri
open-webui | Input should be a valid URL, input is empty [type=url_parsing, input_value='', input_type=str]
open-webui | For further information visit https://errors.pydantic.dev/2.11/v/url_parsing
open-webui | logo_uri
open-webui | Input should be a valid URL, input is empty [type=url_parsing, input_value='', input_type=str]
open-webui | For further information visit https://errors.pydantic.dev/2.11/v/url_parsing
open-webui | tos_uri
open-webui | Input should be a valid URL, input is empty [type=url_parsing, input_value='', input_type=str]
open-webui | For further information visit https://errors.pydantic.dev/2.11/v/url_parsing
open-webui | policy_uri
open-webui | Input should be a valid URL, input is empty [type=url_parsing, input_value='', input_type=str]
open-webui | For further information visit https://errors.pydantic.dev/2.11/v/url_parsing
open-webui | 2025-11-11 11:37:07.770 | ERROR | open_webui.utils.oauth:get_oauth_client_info_with_dynamic_client_registration:362 - Exception during dynamic client registration: Dynamic client registration failed
Additional Information
The mentioned URLs should be just ignored, while parsing the client information, as they are not necessary for the OAuth client to function.