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
Define the contract shared by every resource policy.
A permission answers "may this identity perform this capability?". A policy answers "may this identity perform this operation on this resource?", so it receives the resource together with the identity.
| Async Method | before |
Short circuit the policy before the ability method runs. |
| Class Variable | __slots__ |
Undocumented |
overridden in
orionis.auth.authorization.PolicyShort circuit the policy before the ability method runs.
| Parameters | |
identity:object | Authenticated identity being evaluated. |
ability:str | Name of the ability requested on the resource. |
| Returns | |
bool | None | True to allow and False to deny without calling the ability method, or None to continue the normal evaluation. |