Skip to content

Commit 3d32db9

Browse files
committed
Add FGA APIs
1 parent 8dee0de commit 3d32db9

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

descope/management/common.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ class MgmtV1:
131131
authz_re_target_with_relation = "/v1/mgmt/authz/re/targetwithrelation"
132132
authz_get_modified = "/v1/mgmt/authz/getmodified"
133133

134+
# FGA (new style Authz)
135+
fga_save_schema = "/v1/mgmt/fga/schema"
136+
fga_create_relations = "/v1/mgmt/fga/relations"
137+
fga_delete_relations = "/v1/mgmt/fga/relations/delete"
138+
fga_check = "/v1/mgmt/fga/check"
139+
134140
# Project
135141
project_update_name = "/v1/mgmt/project/update/name"
136142
project_update_tags = "/v1/mgmt/project/update/tags"

descope/mgmt.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from descope.management.access_key import AccessKey # noqa: F401
33
from descope.management.audit import Audit # noqa: F401
44
from descope.management.authz import Authz # noqa: F401
5+
from descope.management.fga import FGA # noqa: F401
56
from descope.management.flow import Flow # noqa: F401
67
from descope.management.group import Group # noqa: F401
78
from descope.management.jwt import JWT # noqa: F401
@@ -31,6 +32,7 @@ def __init__(self, auth: Auth):
3132
self._flow = Flow(auth)
3233
self._audit = Audit(auth)
3334
self._authz = Authz(auth)
35+
self._fga = FGA(auth)
3436
self._project = Project(auth)
3537

3638
@property
@@ -81,6 +83,10 @@ def audit(self):
8183
def authz(self):
8284
return self._authz
8385

86+
@property
87+
def fga(self):
88+
return self._fga
89+
8490
@property
8591
def project(self):
8692
return self._project

0 commit comments

Comments
 (0)