Skip to content

Commit cd15337

Browse files
committed
- Removed unused parameters from the EnterpriseAuthOAuthClientProvider class.
- Updated docstring for decode_id_jag method.
1 parent bd5f741 commit cd15337

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/mcp/client/auth/extensions/enterprise_managed_auth.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"""
66

77
import logging
8-
from collections.abc import Awaitable, Callable
98
from typing import cast
109

1110
import httpx
@@ -185,8 +184,6 @@ def __init__(
185184
storage: TokenStorage,
186185
idp_token_endpoint: str,
187186
token_exchange_params: TokenExchangeParameters,
188-
redirect_handler: Callable[[str], Awaitable[None]] | None = None,
189-
callback_handler: Callable[[], Awaitable[tuple[str, str | None]]] | None = None,
190187
timeout: float = 300.0,
191188
) -> None:
192189
"""Initialize Enterprise Auth OAuth Client.
@@ -197,16 +194,12 @@ def __init__(
197194
storage: Token storage implementation
198195
idp_token_endpoint: Enterprise IdP token endpoint URL
199196
token_exchange_params: Token exchange parameters
200-
redirect_handler: Optional redirect handler
201-
callback_handler: Optional callback handler
202197
timeout: Request timeout in seconds
203198
"""
204199
super().__init__(
205200
server_url=server_url,
206201
client_metadata=client_metadata,
207202
storage=storage,
208-
redirect_handler=redirect_handler,
209-
callback_handler=callback_handler,
210203
timeout=timeout,
211204
)
212205
self.idp_token_endpoint = idp_token_endpoint
@@ -384,7 +377,7 @@ def decode_id_jag(id_jag: str) -> IDJAGClaims:
384377
Decoded ID-JAG claims
385378
386379
Note:
387-
For verification, use server-side validation instead.
380+
This function does not verify the JWT, instead relying on the receiving server to validate it.
388381
"""
389382
# Decode without verification for inspection
390383
claims = jwt.decode(id_jag, options={"verify_signature": False})

0 commit comments

Comments
 (0)