Skip to content

Class tigrbl.types.authn_abc.AuthNProvider

tigrbl.types.authn_abc.AuthNProvider

Bases: ABC

Marker‑interface that any AuthN extension must implement so that Tigrbl can plug itself in at run‑time.

get_principal abstractmethod async

get_principal(request)

Return {"sub": user_id, "tid": tenant_id, ...} or raise HTTP 401.

Source code in tigrbl/types/authn_abc.py
14
15
16
@abstractmethod
async def get_principal(self, request: Request):  # -> dict[str, str]
    """Return {"sub": user_id, "tid": tenant_id, ...} or raise HTTP 401."""