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 IAuthorizationSnapshot(ABC): (source)
Known subclasses: orionis.auth.authorization.AuthorizationSnapshot
Define the immutable authorization picture of a single request.
The snapshot is resolved at most once per request and answers every later can() call without touching the database again.
| Method | can |
Report whether the effective authorization grants a permission. |
| Method | has |
Report whether the identity owns a role. |
| Class Variable | __slots__ |
Undocumented |
| Property | abilities |
Return the abilities restricting the current credential. |
| Property | permissions |
Return the permissions granted to the identity. |
| Property | roles |
Return the role names assigned to the identity. |