You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: include resource_metadata in WWW-Authenticate for strict auth mode
When mcp_require_auth=True, the 401 response was missing the RFC 9728
resource_metadata attribute in the WWW-Authenticate header. This prevented
MCP clients (Open WebUI, VS Code) from discovering the OAuth authorization
server and initiating the OAuth 2.1 flow.
The fix moves the per-server OAuth enforcement check before the strict-mode
and empty-bearer checks, so the resource_metadata URL is always included
when the target virtual server has oauth_enabled=true.
0 commit comments