ccproxy.auth.dependencies¶
ccproxy.auth.dependencies
¶
FastAPI dependency injection utilities for authentication.
get_settings
¶
get_auth_manager
async
¶
Return an authentication manager when credentials are required.
Source code in ccproxy/auth/dependencies.py
require_auth
async
¶
Enforce authentication, translating failures into HTTP errors.
Source code in ccproxy/auth/dependencies.py
get_access_token
async
¶
Retrieve an access token from an authenticated manager.
Source code in ccproxy/auth/dependencies.py
get_conditional_auth_manager
async
¶
Return an auth manager only when the configuration requires it.