mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
style(mcp): format the caller sign-in subject parametrization
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
ea7666685f
commit
e3a56fab9b
1 changed files with 6 additions and 4 deletions
|
|
@ -6983,7 +6983,11 @@ class TestMCPServerManager:
|
|||
("raw_headers", "api_key", "custom_auth", "expected_subject"),
|
||||
[
|
||||
pytest.param(
|
||||
{"authorization": "Bearer eyJ.x.y"}, "eyJ.x.y", True, "eyJ.x.y", id="custom-auth-idp-bearer-is-the-subject"
|
||||
{"authorization": "Bearer eyJ.x.y"},
|
||||
"eyJ.x.y",
|
||||
True,
|
||||
"eyJ.x.y",
|
||||
id="custom-auth-idp-bearer-is-the-subject",
|
||||
),
|
||||
pytest.param(
|
||||
{"authorization": "Bearer eyJ.x.y"},
|
||||
|
|
@ -6992,9 +6996,7 @@ class TestMCPServerManager:
|
|||
"eyJ.x.y",
|
||||
id="built-in-oauth2-admission-bearer-is-the-subject",
|
||||
),
|
||||
pytest.param(
|
||||
{"authorization": "Bearer sk-1234"}, "sk-1234", True, None, id="virtual-key-is-not-a-subject"
|
||||
),
|
||||
pytest.param({"authorization": "Bearer sk-1234"}, "sk-1234", True, None, id="virtual-key-is-not-a-subject"),
|
||||
pytest.param(
|
||||
{"x-litellm-api-key": "ca-key", "authorization": "Bearer ca-key"},
|
||||
"ca-key",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue