We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f98a32a commit bb4a07dCopy full SHA for bb4a07d
src/mcp/client/auth/extensions/client_credentials.py
@@ -88,6 +88,10 @@ async def _perform_authorization(self) -> httpx.Request:
88
89
async def _exchange_token_client_credentials(self) -> httpx.Request:
90
"""Build token exchange request for client_credentials grant."""
91
+
92
+ if not self.context.client_info or not self.context.client_info.client_id:
93
+ raise OAuthTokenError("No client info available") # pragma: no cover
94
95
token_data: dict[str, Any] = {
96
"grant_type": "client_credentials",
97
"client_id": self.context.client_info.client_id,
0 commit comments