litellm/ui/litellm-dashboard/src
mateo-berri 0511b76ada
Gate MCP OAuth pass-through on delegate_auth_to_upstream flag
Sameer's review on #28356/#28008 flagged that the new pass-through
behaviors (preemptive 401 challenges, /.well-known/oauth-protected-
resource proxying, upstream 401/403 propagation as MCPUpstreamAuthError,
and Authorization-stripping when no x-litellm-api-key is supplied)
were implicitly enabled for every server with auth_type=none plus
Authorization in extra_headers. Existing users doing static bearer
pass-through for non-OAuth reasons would have silently regressed.

Make the detection rule explicit: extend the existing
delegate_auth_to_upstream flag (previously oauth2-only) to also gate
is_oauth_passthrough. Now requires flag + auth_type=None + Authorization
in extra_headers, per Sameer's suggested detection rule. The UI toggle
now appears for both modes (oauth2 PKCE passthrough and auth_type=none
OAuth pass-through) with mode-appropriate copy.

Update test fixtures to set the flag where the test intent is to
exercise OAuth pass-through behavior, and add negative tests covering
the new default-false case.
2026-05-21 16:17:16 +00:00
..
app Litellm oss staging 1 (#28337) 2026-05-20 17:27:03 -07:00
components Gate MCP OAuth pass-through on delegate_auth_to_upstream flag 2026-05-21 16:17:16 +00:00
contexts [Fix] UI: Migrate AntD message API to use context-based MessageManager 2026-03-19 23:29:38 -07:00
data feat: Add Canadian PII protection (PIPEDA) (#22951) 2026-03-06 18:27:31 -08:00
hooks feat(mcp): add delegate_auth_to_upstream flag for PKCE passthrough (#27834) 2026-05-13 12:06:13 -07:00
lib added and ran prettier autoformatter 2025-10-04 18:19:48 -07:00
utils Fix internal tag usage scoping (#27315) 2026-05-11 10:44:50 -07:00
types.ts added and ran prettier autoformatter 2025-10-04 18:19:48 -07:00