@@ -67,7 +67,6 @@ Format:
6767
6868 Array<{
6969 action: string
70- object?: string
7170 scope?: string
7271 }>
7372
@@ -78,13 +77,11 @@ Example:
7877 [
7978 {
8079 "action" : " act:read" ,
81- "object" : " lib:test-lib" ,
82- "scope" : " org:OpenedX"
80+ "scope" : " lib:DemoX:CSPROB"
8381 },
8482 {
8583 "action" : " act:edit" ,
86- "object" : " lib:test-lib" ,
87- "scope" : " org:OpenedX"
84+ "scope" : " lib:DemoX:CSPROB"
8885 }
8986 ]
9087
@@ -105,7 +102,6 @@ Format:
105102
106103 Array<{
107104 action: string
108- object?: string
109105 scope?: string
110106 allowed: boolean
111107 }>
@@ -117,14 +113,12 @@ Example:
117113 [
118114 {
119115 "action" : " act:read" ,
120- "object" : " lib:test-lib" ,
121- "scope" : " org:OpenedX" ,
116+ "scope" : " lib:DemoX:CSPROB" ,
122117 "allowed" : true
123118 },
124119 {
125120 "action" : " act:edit" ,
126- "object" : " lib:test-lib" ,
127- "scope" : " org:OpenedX" ,
121+ "scope" : " lib:DemoX:CSPROB" ,
128122 "allowed" : false
129123 }
130124 ]
@@ -137,9 +131,9 @@ Possible response codes:
137131 required format.
138132- 401: Unauthorized, happens when the user is not authenticated/logged in.
139133
140- **Please note: ** There is no “404 not found” case here, if the action,
141- object or scope doesn't exist, the “allowed” value in the response will
142- be whatever Casbin evaluates in this case.
134+ **Please note: ** There is no “404 not found” case here, if the action or
135+ scope doesn't exist, the “allowed” value in the response will be whatever
136+ Casbin evaluates in this case.
143137
144138II. Frontend integration
145139========================
0 commit comments