Fix auth client example URL handling for oauth provider (#1549)
Some checks failed
Main branch checks / checks (push) Has been cancelled

This commit is contained in:
Paul Carleton 2025-10-30 15:35:44 +00:00 • committed by GitHub
commit 6f2cd0cef0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -187,7 +187,7 @@ class SimpleAuthClient:
# Create OAuth authentication handler using the new interface
oauth_auth = OAuthClientProvider(
server_url=self.server_url.replace("/mcp", ""),
server_url=self.server_url,
client_metadata=OAuthClientMetadata.model_validate(client_metadata_dict),
storage=InMemoryTokenStorage(),
redirect_handler=_default_redirect_handler,