Updated the authentication field to take just the token

This commit is contained in:
Omar Abdelwahab 2025-11-05 10:48:05 -08:00
parent 8632c705aa
commit 09ef0b38c1
8 changed files with 10721 additions and 13 deletions

View file

@ -33,7 +33,7 @@ def test_mcp_authorization_bearer(compat_client, text_model_id):
"type": "mcp",
"server_label": "auth-mcp",
"server_url": "<FILLED_BY_TEST_RUNNER>",
"authorization": f"Bearer {test_token}",
"authorization": test_token, # Just the token, not "Bearer <token>"
}
],
mcp_server_info,
@ -70,7 +70,7 @@ def test_mcp_authorization_different_token(compat_client, text_model_id):
"type": "mcp",
"server_label": "auth2-mcp",
"server_url": "<FILLED_BY_TEST_RUNNER>",
"authorization": f"Bearer {test_token}",
"authorization": test_token, # Just the token, not "Bearer <token>"
}
],
mcp_server_info,
@ -106,7 +106,7 @@ def test_mcp_authorization_fallback_to_headers(compat_client, text_model_id):
"server_label": "headers-mcp",
"server_url": "<FILLED_BY_TEST_RUNNER>",
"headers": {"Authorization": f"Bearer {test_token}"},
"authorization": "Bearer should-not-override",
"authorization": "should-not-override", # Just the token
}
],
mcp_server_info,