mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #23666] Bug: tool listing never sets 'authenticated' flag for auth_type 'oauth_2.1_static' #35567
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/23666
Summary
In the MCP tool listing endpoint, the session-token lookup and the
authenticatedflag on the response are both gated onauth_type == 'oauth_2.1'. For servers withauth_type == 'oauth_2.1_static', the frontend never receives theauthenticatedkey, so the OAuth status badge / re-auth button renders incorrectly (or not at all) for static-OAuth MCP servers.Location
backend/open_webui/routers/tools.py— lines 123 and 151:Impact
Admin UI can't tell whether a static-OAuth MCP server is currently authorized; users can't discover that they need to (re-)authorize.
Suggested fix
Replace both checks with
auth_type in ('oauth_2.1', 'oauth_2.1_static').@tjbck commented on GitHub (Apr 13, 2026):
Already addressed in dev.