src.models.auth module#

Data models for authentication.

class src.models.auth.CsrfSettings(*, secret_key: str = None, cookie_secure: bool = False)[source]#

Bases: BaseModel

Cross-site request forgery protection config

_abc_impl = <_abc._abc_data object>#
cookie_secure: bool#
secret_key: str#
class src.models.auth.OAuth2PasswordBearerWithCookie(tokenUrl: str, scheme_name: Optional[str] = None, scopes: Optional[dict] = None, auto_error: bool = True)[source]#

Bases: OAuth2

Custom OAuth2PasswordBearer class to allow cookie authentication

model: SecurityBase#
scheme_name: str#