Skip to content

Class tigrbl_auth.typing.Principal

tigrbl_auth.typing.Principal

Bases: Protocol

Minimum surface needed by downstream code.

Any object (DTO, ORM instance, dict) satisfying this Protocol can be passed into auth helpers such as require_scope.

id instance-attribute

id

tenant_id instance-attribute

tenant_id