app.schemas.auth¶
Request and response models for identity, dev tokens and poll triggers.
MeOut–GET /api/v1/me.DevTokenIn/DevTokenOut–POST /auth/dev/token(mounted only when dev auth is enabled).DevRoleOut/DevRolesOut–GET /auth/dev/roles(mounted only when dev auth is enabled).PollAcceptedOut–POST /api/v1/sources/pollandPOST /api/v1/sources/{id}/poll.
- class app.schemas.auth.ReviewerOut(*, eligible, reason)¶
Bases:
BaseModelWhether the caller may record approval decisions, and why.
- class app.schemas.auth.MeOut(*, issuer, subject, display, email, roles, permissions, reviewer)¶
Bases:
BaseModelThe authenticated caller and what they may do.
- permissions: list[Permission]¶
- reviewer: ReviewerOut¶
- class app.schemas.auth.DevTokenIn(*, sub, name=None, email=None, roles=<factory>)¶
Bases:
BaseModelIdentity to put into a dev token.
- class app.schemas.auth.DevTokenOut(*, access_token, token_type='Bearer', expires_in)¶
Bases:
BaseModelA minted dev access token (OAuth 2 token-response shape).
- class app.schemas.auth.DevRoleOut(*, name, permissions)¶
Bases:
BaseModelOne
rbacrole of the loaded catalog and what it grants.- model_config: ClassVar[ConfigDict] = {'from_attributes': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- permissions: list[Permission]¶
- class app.schemas.auth.DevRolesOut(*, roles, reviewer_roles)¶
Bases:
BaseModelRole names of the loaded catalog, for dev sign-in presets.
- model_config: ClassVar[ConfigDict] = {'from_attributes': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- roles: list[DevRoleOut]¶