ORIONIS API REFERENCE

THE ORIONIS API

Build with clarity.

Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.

class documentation

class AccessToken: (source)

View In Hierarchy

Describe a stored personal access token.

The secret itself is never part of this entity, only the metadata needed to accept, restrict and audit the credential.

Method toDict Serialize token metadata without any usable credential material.
Instance Variable abilities Abilities the token may use, or None when the token keeps the full authorization of the identity.
Instance Variable created_at Moment the token was issued.
Instance Variable expires_at Moment the token stops being accepted.
Instance Variable id Primary key of the token row.
Instance Variable last_used_at Moment the token was last presented on a request.
Instance Variable name Human readable label describing the token.
Instance Variable revoked_at Moment the token was revoked.
Instance Variable tokenable_id Identifier of the identity owning the token.
Instance Variable tokenable_type Polymorphic type of the identity owning the token.
def toDict(self) -> dict[str, object]: (source)

Serialize token metadata without any usable credential material.

Returns
dict[str, object]Metadata suitable for listing or auditing issued credentials.
abilities: frozenset[str] | None = (source)

Abilities the token may use, or None when the token keeps the full authorization of the identity.

created_at: datetime | None = (source)

Moment the token was issued.

expires_at: datetime | None = (source)

Moment the token stops being accepted.

Primary key of the token row.

last_used_at: datetime | None = (source)

Moment the token was last presented on a request.

Human readable label describing the token.

revoked_at: datetime | None = (source)

Moment the token was revoked.

tokenable_id: object = (source)

Identifier of the identity owning the token.

tokenable_type: str = (source)

Polymorphic type of the identity owning the token.