taolib.testing.oauth.server.config
OAuth 应用配置模块。
使用 pydantic-settings 定义 OAuth 服务的所有配置项。
Module Contents
-
class taolib.testing.oauth.server.config.OAuthSettings
Bases: pydantic_settings.BaseSettings
OAuth 服务设置。
-
model_config
-
mongo_url: str
-
mongo_db: str
-
redis_url: str
-
jwt_secret: str
-
jwt_algorithm: str
-
access_token_expire_minutes: int
-
refresh_token_expire_days: int
-
encryption_key: str
-
state_ttl_seconds: int
-
session_ttl_hours: int
-
default_redirect_uri: str
-
google_client_id: str
-
google_client_secret: str
-
github_client_id: str
-
github_client_secret: str
-
host: str
-
port: int
-
debug: bool
-
cors_origins: list[str]
-
_validate_secrets() → OAuthSettings
-
taolib.testing.oauth.server.config.settings