mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
fix(mcp): do not persist authorization_url from the DCR path; the build hook is the provenance-guarded writer
This commit is contained in:
parent
55a9f1917c
commit
a0d5df21da
2 changed files with 1 additions and 2 deletions
|
|
@ -1133,7 +1133,6 @@ async def _persist_dcr_client_registration(
|
|||
credentials=credentials,
|
||||
oauth2_flow="authorization_code",
|
||||
**({"token_url": mcp_server.token_url} if mcp_server.token_url else {}),
|
||||
**({"authorization_url": mcp_server.authorization_url} if mcp_server.authorization_url else {}),
|
||||
),
|
||||
touched_by="mcp_oauth_dcr",
|
||||
)
|
||||
|
|
|
|||
|
|
@ -657,7 +657,7 @@ async def test_register_client_persists_dcr_client_identity():
|
|||
update_data = mock_update.call_args.kwargs["data"]
|
||||
assert update_data.server_id == "remote_server"
|
||||
assert update_data.token_url == "https://provider.example/oauth/token"
|
||||
assert update_data.authorization_url == "https://provider.example/oauth/authorize"
|
||||
assert "authorization_url" not in update_data.fields_set()
|
||||
assert update_data.credentials["client_id"] == "generated-client"
|
||||
assert update_data.credentials["client_secret"] == "generated-secret"
|
||||
assert update_data.credentials["token_endpoint_auth_method"] == "client_secret_basic"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue