File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
examples/clients/conformance-auth-client/mcp_conformance_auth_client Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 1717from urllib .parse import parse_qs , urlparse
1818
1919import httpx
20- from pydantic import AnyUrl
21-
2220from mcp import ClientSession
2321from mcp .client .auth import OAuthClientProvider , TokenStorage
2422from mcp .client .streamable_http import streamablehttp_client
2523from mcp .shared .auth import OAuthClientInformationFull , OAuthClientMetadata , OAuthToken
24+ from pydantic import AnyUrl
2625
2726# Set up logging to stderr (stdout is for conformance test output)
2827logging .basicConfig (
@@ -97,9 +96,7 @@ async def handle_redirect(self, authorization_url: str) -> None:
9796 else :
9897 raise RuntimeError (f"No redirect location received from { authorization_url } " )
9998 else :
100- raise RuntimeError (
101- f"Expected redirect response, got { response .status_code } from { authorization_url } "
102- )
99+ raise RuntimeError (f"Expected redirect response, got { response .status_code } from { authorization_url } " )
103100
104101 async def handle_callback (self ) -> tuple [str , str | None ]:
105102 """Return the captured auth code and state, then clear them for potential reuse."""
You can’t perform that action at this time.
0 commit comments