casbin-sqlx-watcher 0.1.1

Casbin watcher implementation using sqlx and postgres
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[request_definition]
r = sub, dom, obj, act

[policy_definition]
p = sub, dom, obj, act

[role_definition]
# party1, party2, tenant
g = _, _, _

[policy_effect]
e = some(where (p.eft == allow))


[matchers]
m = g(r.sub, p.sub, r.dom) && globMatch(r.dom, p.dom) && keyMatch(r.obj, p.obj) && (r.act == p.act || p.act == "*")