From fe8056fe30f75bccec0aff29a4f13915cf7e845a Mon Sep 17 00:00:00 2001 From: Sebastian Kalisz Date: Thu, 21 Aug 2025 22:28:02 +0200 Subject: [PATCH] Added import of AuthProxy to auth __init__ (#1568) --- docs/servers/auth/oauth-proxy.mdx | 2 +- src/fastmcp/server/auth/__init__.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/servers/auth/oauth-proxy.mdx b/docs/servers/auth/oauth-proxy.mdx index 435168cfd..dec952cb1 100644 --- a/docs/servers/auth/oauth-proxy.mdx +++ b/docs/servers/auth/oauth-proxy.mdx @@ -165,7 +165,7 @@ The `OAuthProxy` class provides the complete proxy implementation: ```python from fastmcp import FastMCP -from fastmcp.server.auth.proxy import OAuthProxy +from fastmcp.server.auth import OAuthProxy from fastmcp.server.auth.providers.jwt import JWTVerifier # Configure token validation for your provider diff --git a/src/fastmcp/server/auth/__init__.py b/src/fastmcp/server/auth/__init__.py index cdc3310ae..e7111ec97 100644 --- a/src/fastmcp/server/auth/__init__.py +++ b/src/fastmcp/server/auth/__init__.py @@ -6,6 +6,7 @@ from .auth import ( AuthProvider, ) from .providers.jwt import JWTVerifier, StaticTokenVerifier +from .oauth_proxy import OAuthProxy __all__ = [ @@ -16,6 +17,7 @@ __all__ = [ "StaticTokenVerifier", "RemoteAuthProvider", "AccessToken", + "OAuthProxy", ]