changes
This commit is contained in:
parent
c8b453dabf
commit
803c076f0d
|
@ -1,15 +0,0 @@
|
||||||
[request_definition]
|
|
||||||
r = sub, obj, act
|
|
||||||
|
|
||||||
[policy_definition]
|
|
||||||
p = sub, obj, act
|
|
||||||
|
|
||||||
[role_definition]
|
|
||||||
g = _, _
|
|
||||||
g2 = _, _
|
|
||||||
|
|
||||||
[policy_effect]
|
|
||||||
e = some(where (p.eft == allow))
|
|
||||||
|
|
||||||
[matchers]
|
|
||||||
m = g(r.sub, p.sub) && g2(r.obj, p.obj) && r.act == p.act || r.sub == "管理员"
|
|
|
@ -6,6 +6,5 @@ uvicorn
|
||||||
Werkzeug~=2.2.2
|
Werkzeug~=2.2.2
|
||||||
PyJWT~=2.5.0
|
PyJWT~=2.5.0
|
||||||
requests~=2.28.1
|
requests~=2.28.1
|
||||||
casbin~=1.17.1
|
|
||||||
cryptography
|
cryptography
|
||||||
pycryptodome
|
pycryptodome
|
Loading…
Reference in New Issue