We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a5dfff commit 78e92b5Copy full SHA for 78e92b5
1 file changed
openedx_authz/engine/enforcer.py
@@ -1,5 +1,19 @@
1
"""
2
-Extended Casbin enforcer with watcher integration.
+Core authorization enforcer for Open edX AuthZ system.
3
+
4
+Provides a Casbin FastEnforcer instance with extended adapter for database policy
5
+storage and Redis watcher for distributed policy synchronization.
6
7
+Components:
8
+ - enforcer: Main FastEnforcer instance for policy evaluation
9
+ - adapter: ExtendedAdapter for filtered database policy loading
10
+ - watcher: Redis-based watcher for real-time policy updates
11
12
+Usage:
13
+ from openedx_authz.engine.enforcer import enforcer
14
+ allowed = enforcer.enforce(user, resource, action)
15
16
+Requires `CASBIN_MODEL` setting and Redis configuration for watcher functionality.
17
18
19
import logging
0 commit comments