File tree 1 file changed +20
-1
lines changed
1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ Installation / Usage
8
8
9
9
To install use pip:
10
10
```
11
- $ pip install flask-casbin
11
+ TBD
12
12
```
13
13
14
14
Or clone the repo:
@@ -40,6 +40,25 @@ def make_casbin_change(manager):
40
40
# Manager is an casbin.enforcer.Enforcer object to make changes to Casbin
41
41
return jsonify({' message' : ' If you see this you have access' })
42
42
```
43
+ Example casbinmodel.conf
44
+ ``` ini
45
+ [request_definition]
46
+ r = sub, obj, act
47
+
48
+ [policy_definition]
49
+ p = sub, obj, act
50
+
51
+ [role_definition]
52
+ g = _, _
53
+
54
+ [policy_effect]
55
+ e = some(where (p.eft == allow))
56
+
57
+ [matchers]
58
+ m = g(r.sub, p.sub) && r.obj == p.obj && r.act == p.act
59
+ ```
60
+ This example file can be found in ` tests/casbin_files ` along with an example
61
+ RBAC policy file.
43
62
44
63
Development
45
64
------------
You can’t perform that action at this time.
0 commit comments