Skip to content

Commit fe8056f

Browse files
authored
Added import of AuthProxy to auth __init__ (#1568)
1 parent 0d01b74 commit fe8056f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/servers/auth/oauth-proxy.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ The `OAuthProxy` class provides the complete proxy implementation:
165165

166166
```python
167167
from fastmcp import FastMCP
168-
from fastmcp.server.auth.proxy import OAuthProxy
168+
from fastmcp.server.auth import OAuthProxy
169169
from fastmcp.server.auth.providers.jwt import JWTVerifier
170170

171171
# Configure token validation for your provider

src/fastmcp/server/auth/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
AuthProvider,
77
)
88
from .providers.jwt import JWTVerifier, StaticTokenVerifier
9+
from .oauth_proxy import OAuthProxy
910

1011

1112
__all__ = [
@@ -16,6 +17,7 @@
1617
"StaticTokenVerifier",
1718
"RemoteAuthProvider",
1819
"AccessToken",
20+
"OAuthProxy",
1921
]
2022

2123

0 commit comments

Comments
 (0)