mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-22 13:34:17 +02:00
Fix settings import pattern in OAuth providers
Use direct imports for non-deprecated items (ENV_FILE, ExtendedEnvSettingsSource, ExtendedSettingsConfigDict) and settings_module for the deprecated settings instance.
This commit is contained in:
parent
a9b77e76d0
commit
17b60c8815
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ To run:
|
|||
import os
|
||||
|
||||
from fastmcp import FastMCP
|
||||
from fastmcp.server.auth.providers.github import GitHubDCRProvider
|
||||
from fastmcp.server.auth.providers.github import GitHubProvider as GitHubDCRProvider
|
||||
|
||||
auth = GitHubDCRProvider(
|
||||
client_id=os.getenv("FASTMCP_SERVER_AUTH_GITHUB_CLIENT_ID") or "",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue