Skip to content

Commit d56f550

Browse files
committed
merge
1 parent 325f3a3 commit d56f550

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/mcp/client/auth/oauth2.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,7 @@ def _get_discovery_urls(self, server_url: str | None = None) -> list[str]:
215215
def _create_oauth_metadata_request(self, url: str) -> httpx.Request:
216216
return httpx.Request("GET", url, headers={MCP_PROTOCOL_VERSION: LATEST_PROTOCOL_VERSION})
217217

218-
async def _handle_oauth_metadata_response(
219-
self, response: httpx.Response
220-
) -> tuple[bool, OAuthMetadata | None]:
218+
async def _handle_oauth_metadata_response(self, response: httpx.Response) -> tuple[bool, OAuthMetadata | None]:
221219
ok, metadata = await handle_auth_metadata_response(response)
222220
if metadata:
223221
self._metadata = metadata
@@ -351,9 +349,7 @@ async def _handle_protected_resource_response(self, response: httpx.Response) ->
351349
)
352350
return False
353351

354-
async def _handle_oauth_metadata_response(
355-
self, response: httpx.Response
356-
) -> tuple[bool, OAuthMetadata | None]:
352+
async def _handle_oauth_metadata_response(self, response: httpx.Response) -> tuple[bool, OAuthMetadata | None]:
357353
ok, asm = await super()._handle_oauth_metadata_response(response)
358354
if asm:
359355
self.context.oauth_metadata = asm

0 commit comments

Comments
 (0)