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 IPermissionRepository(ABC): (source)
Known subclasses: orionis.auth.authorization.repository.DatabasePermissionRepository
Define how the effective permissions of an identity are loaded.
| Async Method | load |
Load the permissions and roles owned by an identity. |
| Class Variable | __slots__ |
Undocumented |
@abstractmethod
async def loadFor(self, authorizable: IAuthorizable) -> tuple[ frozenset[ str], frozenset[ str]]:
(source)
¶
Load the permissions and roles owned by an identity.
| Parameters | |
authorizable:IAuthorizable | Identity whose authorization must be resolved. |
| Returns | |
tuple[frozenset[str], frozenset[str]] | Pair holding the effective permission names first and the role names second. Permissions already include the ones inherited from the roles of the identity. |