The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
test(mcp): keep the SSO assertion round trip from matching its refresh token inside random ciphertext (#44494)
devin-ai-integration[bot]a2bf67a03707
diff --git a/tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_sso_assertion_store.py b/tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_sso_assertion_store.pyindex 5d6d47b8c38..088b232f3b6 100644--- a/tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_sso_assertion_store.py+++ b/tests/unit/proxy/_experimental/mcp_server/outbound_credentials/test_sso_assertion_store.py@@ -210,18 +210,18 @@ async def test_persist_and_fetch_round_trip_encrypted_at_rest():stored = {}prisma = _make_prisma(stored)token = _make_id_token()- assertion = assertion_from_sso_login(token, "rt_1")+ assertion = assertion_from_sso_login(token, "refresh.token")with patch("litellm.proxy.proxy_server.prisma_client", prisma):await persist_sso_identity_assertion("user-a", assertion)fetched = await fetch_sso_identity_assertion("user-a")assert fetched is not Noneassert fetched.id_token.get_secret_value() == tokenassert fetched.refresh_token is not None- assert fetched.refresh_token.get_secret_value() == "rt_1"+ assert fetched.refresh_token.get_secret_value() == "refresh.token"assert fetched.issuer == assertion.issuerassert fetched.expires_at == assertion.expires_atassert token not in stored["user-a"]- assert "rt_1" not in stored["user-a"]+ assert "refresh.token" not in stored["user-a"]decrypted = decrypt_value_helper(stored["user-a"], "test", exception_type="debug")assert json.loads(decrypted)["id_token"] == token