Skip to content

Commit b757b80

Browse files
committed
fix: mypy errors
1 parent 318718a commit b757b80

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/golf/auth/factory.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,8 @@ def _create_oauth_proxy_provider(config: OAuthProxyConfig) -> "AuthProvider":
452452
"Please install it with: pip install golf-mcp-enterprise"
453453
) from None
454454

455-
return create_oauth_proxy_provider(
455+
# Create a new config with resolved values for the enterprise package
456+
resolved_config = OAuthProxyConfig(
456457
authorization_endpoint=authorization_endpoint,
457458
token_endpoint=token_endpoint,
458459
client_id=client_id,
@@ -464,6 +465,8 @@ def _create_oauth_proxy_provider(config: OAuthProxyConfig) -> "AuthProvider":
464465
token_verifier_config=config.token_verifier_config,
465466
)
466467

468+
return create_oauth_proxy_provider(resolved_config)
469+
467470

468471
def create_simple_jwt_provider(
469472
*,

0 commit comments

Comments
 (0)