From 71b946cd99edd5f3b71a452f0fa77662c3c73643 Mon Sep 17 00:00:00 2001 From: yucheng Date: Fri, 2 Oct 2026 20:53:25 +0000 Subject: [PATCH] refactor(mcp): drop the explanatory comment on the AADSTS assertion prefix Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .../mcp_server/outbound_credentials/token_exchange_provider.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/litellm/proxy/_experimental/mcp_server/outbound_credentials/token_exchange_provider.py b/litellm/proxy/_experimental/mcp_server/outbound_credentials/token_exchange_provider.py index ad503996155..7c68224ab1a 100644 --- a/litellm/proxy/_experimental/mcp_server/outbound_credentials/token_exchange_provider.py +++ b/litellm/proxy/_experimental/mcp_server/outbound_credentials/token_exchange_provider.py @@ -35,8 +35,6 @@ from litellm.proxy._experimental.mcp_server.outbound_credentials.token_exchanger _GATEWAY_FAULT_OAUTH_ERRORS: Final = frozenset( {"invalid_client", "unauthorized_client", "unsupported_grant_type", "invalid_target", "invalid_scope"} ) -# Entra reports a forged or garbled assertion as ``invalid_client`` with an AADSTS50027xx sub-code, -# the same top-level code as a bad gateway secret; the sub-code is what says the caller has to fix it. _INVALID_ASSERTION_AADSTS_PREFIX: Final = "50027"