jam.ext.fastapi¶
fastapi
¶
FastAPI integration.
FastAPI docs: https://fastapi.tiangolo.com/
Classes:
| Name | Description |
|---|---|
JWTBackend |
JWT Backend for litestar. |
PASETOBackend |
PASETO auth backend. |
SessionBackend |
Session backend. |
JWTBackend
¶
JWTBackend(
config: str | dict[str, Any] | None = None,
pointer: str = GENERIC_POINTER,
cookie_name: str | None = None,
header_name: str | None = None,
use_list: bool = False,
user: type[BaseUser] = SimpleUser,
**kwargs,
)
PASETOBackend
¶
PASETOBackend(
config: str | dict[str, Any] | None = None,
pointer: str = GENERIC_POINTER,
cookie_name: str | None = None,
header_name: str | None = None,
bearer: bool = False,
user: type[BaseUser] = SimpleUser,
**kwargs,
)
SessionBackend
¶
SessionBackend(
config: str | dict[str, Any] | None = None,
pointer: str = GENERIC_POINTER,
cookie_name: str | None = None,
header_name: str | None = None,
bearer: bool = False,
user: type[BaseUser] = SimpleUser,
**kwargs,
)