We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ddbb88 commit 65db7b6Copy full SHA for 65db7b6
src/mcp/server/auth/handlers/register.py
@@ -75,17 +75,7 @@ async def registration_handler(request: Request) -> Response:
75
client_id_issued_at=client_id_issued_at,
76
client_secret=client_secret,
77
client_secret_expires_at=client_secret_expires_at,
78
- # passthrough information from the client request
79
- redirect_uris=client_metadata.redirect_uris,
80
- token_endpoint_auth_method=client_metadata.token_endpoint_auth_method,
81
- grant_types=client_metadata.grant_types,
82
- response_types=client_metadata.response_types,
83
- client_name=client_metadata.client_name,
84
- client_uri=client_metadata.client_uri,
85
- logo_uri=client_metadata.logo_uri,
86
- scope=client_metadata.scope,
87
- contacts=client_metadata.contacts,
88
- tos_uri=client_metadata.tos_uri,
+ **client_metadata.model_dump(exclude_unset=True),
89
policy_uri=client_metadata.policy_uri,
90
jwks_uri=client_metadata.jwks_uri,
91
jwks=client_metadata.jwks,
0 commit comments