taolib.testing.oauth.server.app#
FastAPI 应用工厂模块。
创建和配置 OAuth 服务的 FastAPI 应用实例。
Functions#
|
应用生命周期管理。 |
|
从环境变量引导 OAuth 凭证。 |
|
创建 FastAPI 应用实例。 |
Module Contents#
- async taolib.testing.oauth.server.app.lifespan(app: fastapi.FastAPI) collections.abc.AsyncGenerator[None]#
应用生命周期管理。
- async taolib.testing.oauth.server.app._bootstrap_credentials(db, cred_repo: taolib.testing.oauth.repository.credential_repo.OAuthAppCredentialRepository) None#
从环境变量引导 OAuth 凭证。
- taolib.testing.oauth.server.app.create_app() fastapi.FastAPI#
创建 FastAPI 应用实例。