openedx_authz.constants package#
Submodules#
openedx_authz.constants.permissions module#
Default permission constants.
openedx_authz.constants.roles module#
Default roles and their associated permissions.
openedx_authz.constants.schema module#
Shared constants for the static authorization schema (ADR 0023/0025).
This is the single source of truth for the base / extension origin
values. SchemaOriginKind is a plain str enum with no Django or Casbin
dependency, so both the engine schema types
(openedx_authz.engine.schema.types) and the Django models layer
(openedx_authz.models.schema.OriginKind) can share the same values without
either layer depending on the other.
- class openedx_authz.constants.schema.SchemaOriginKind(*values)
-
Whether a schema contribution is a base definition or an extension.
BASEcomes from a role’s own definition;EXTENSIONis added by arole_extensionsentry (ADR 0023/0025). Subclassingstrkeeps the members interchangeable with their raw string values, which is why the persistence layer can store them directly.- BASE = 'base'
- EXTENSION = 'extension'
Module contents#
Shared low-level constants for openedx_authz. Defined here rather than in api.data so that models and other modules at the bottom of the import chain can use them without creating circular imports.