mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #23670] Bug: AddToolServerModal sends tool server ID as client_id during OAuth 2.1 static registration #58708
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 @dhruvalgupta2003 on GitHub (Apr 13, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23670
Summary
When an admin registers an MCP tool server with
auth_type: oauth_2.1_static, the frontend POSTs the tool server's internal ID (the value bound toidin the form) asclient_idinstead of the OAuth Client ID entered into the "Client ID" input (oauthClientId). The correctclient_secretis sent, but theclient_idis wrong.Location
src/lib/components/AddToolServerModal.svelte,registerOAuthClientHandler():The correct binding exists just a few lines down — when building
infofor the save payload (line ~340):So the UI state has the right value; it just isn't used at registration time.
Impact
client_id, which the IdP rejects (or, worse, silently accepts and stores a useless record).Suggested fix
Line 92:
@tjbck commented on GitHub (Apr 13, 2026):
Addressed in dev.