Skip to content

Commit db13169

Browse files
committed
add scope for apis
1 parent 03990f9 commit db13169

File tree

10 files changed

+91
-10
lines changed

10 files changed

+91
-10
lines changed

en/asgardeo/docs/apis/restapis/oauth-dcr.yaml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ paths:
1515
- OAuth2 DCR
1616
summary: |
1717
Get application by name
18-
description: "This API is used to get/retrieve an OAuth2 application by `client_name`. \n\n <b>Scope required:</b> `internal_dcr_view`."
18+
description: |
19+
"This API is used to get/retrieve an OAuth2 application by `client_name`. \n\n <b>Scope required:</b> `internal_dcr_view`."
20+
<b>Scope(Permission) required:</b> `internal_dcr_view`
1921
operationId: getApplicationByName
2022
parameters:
2123
- name: client_name
@@ -59,6 +61,7 @@ paths:
5961
\n If your want to create your application to use the `implicit` or `authorization_code` grant types, you need to provide the `redirect_uri` field in your request.\
6062
\n If you are using any other grant type, \nsuch as `password`, you don't need to send the `redirect_uri` field in the request.
6163
\n Check the sample request given below.\n\n <b>Scope required:</b> `internal_dcr_create`."
64+
<b>Scope(Permission) required:</b> `internal_dcr_create`
6265
operationId: registerApplication
6366
requestBody:
6467
description: Application information to register.
@@ -135,7 +138,9 @@ paths:
135138
- OAuth2 DCR
136139
summary: |
137140
Get application by ID
138-
description: "This API is used to retrieve an OAuth2 application by `client_id`. \n\n <b>Scope required:</b> `internal_dcr_view`."
141+
description: |
142+
"This API is used to retrieve an OAuth2 application by `client_id`. \n\n <b>Scope required:</b> `internal_dcr_view`."
143+
<b>Scope(Permission) required:</b> `internal_dcr_view`
139144
operationId: getApplication
140145
parameters:
141146
- name: client_id
@@ -175,7 +180,9 @@ paths:
175180
- OAuth2 DCR
176181
summary: |
177182
Update an OAuth2 app
178-
description: "This API is used to update an OAuth2 application.\n\n <b>Scope required:</b> `internal_dcr_update`."
183+
description: |
184+
"This API is used to update an OAuth2 application.\n\n <b>Scope required:</b> `internal_dcr_update`."
185+
<b>Scope(Permission) required:</b> `internal_dcr_update`
179186
operationId: updateApplication
180187
parameters:
181188
- name: client_id
@@ -244,7 +251,9 @@ paths:
244251
- OAuth2 DCR
245252
summary: |
246253
Delete an OAuth2 app
247-
description: "This API is used to delete an OAuth2 application by `client_id`.\n\n <b>Scope required:</b> `internal_dcr_delete`."
254+
description: |
255+
"This API is used to delete an OAuth2 application by `client_id`.\n\n <b>Scope required:</b> `internal_dcr_delete`."
256+
<b>Scope(Permission) required:</b> `internal_dcr_delete`
248257
operationId: deleteApplication
249258
parameters:
250259
- name: client_id

en/identity-server/7.0.0/docs/apis/restapis/oauth-dcr.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ paths:
2121
Get OAuth2 application information
2222
description: |
2323
This API is used to get/retrieve an OAuth2 application by client_name.
24+
<b>Scope(Permission) required:</b> `internal_dcr_view`
2425
operationId: getApplicationByName
2526
parameters:
2627
- name: client_name
@@ -76,6 +77,7 @@ paths:
7677
\ If you are using any other grant type, \nsuch as password, you don't need\
7778
\ to send the redirect_uri field in the request. Check the sample request\
7879
\ given below.\n"
80+
<b>Scope(Permission) required:</b> `internal_dcr_create`
7981
operationId: registerApplication
8082
requestBody:
8183
description: Application information to register.
@@ -168,6 +170,7 @@ paths:
168170
Get OAuth2 application information
169171
description: |
170172
This API is used to get/retrieve an OAuth2 application by client_id.
173+
<b>Scope(Permission) required:</b> `internal_dcr_view`
171174
operationId: getApplication
172175
parameters:
173176
- name: client_id
@@ -219,6 +222,7 @@ paths:
219222
Updates an OAuth2 application
220223
description: |
221224
This API is used to update an OAuth2 application.
225+
<b>Scope(Permission) required:</b> `internal_dcr_update`
222226
operationId: updateApplication
223227
parameters:
224228
- name: client_id
@@ -303,6 +307,7 @@ paths:
303307
Delete OAuth2 application
304308
description: |
305309
This API is used to delete an OAuth2 application by client_id.
310+
<b>Scope(Permission) required:</b> `internal_dcr_delete`
306311
operationId: deleteApplication
307312
parameters:
308313
- name: client_id

en/identity-server/7.0.0/docs/apis/restapis/oauth2-scope-endpoint.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ paths:
1919
Return all available scopes
2020
description: |
2121
This API is used to get all the available scopes.
22+
<b>Scope(Permission) required:</b> `internal_oauth_scope_view`
2223
operationId: getScopes
2324
parameters:
2425
- name: startIndex
@@ -85,6 +86,7 @@ paths:
8586
Register a scope
8687
description: |
8788
This API is used to create a scope.
89+
<b>Scope(Permission) required:</b> `internal_oauth_scope_create`
8890
operationId: registerScope
8991
requestBody:
9092
description: Define a scope with bindings to register it
@@ -161,6 +163,7 @@ paths:
161163
Return a scope by name
162164
description: |
163165
This API is used to retrieve details of a scope by a given scope name.
166+
<b>Scope(Permission) required:</b> `internal_oauth_scope_view`
164167
operationId: getScope
165168
parameters:
166169
- name: name
@@ -211,6 +214,7 @@ paths:
211214
Update a scope
212215
description: |
213216
This API is used to update a scope by a given scope name.
217+
<b>Scope(Permission) required:</b> `internal_oauth_scope_update`
214218
operationId: updateScope
215219
parameters:
216220
- name: name
@@ -286,6 +290,7 @@ paths:
286290
Delete a scope
287291
description: |
288292
This API is used to delete a scope by a given scope name.
293+
<b>Scope(Permission) required:</b> `internal_oauth_scope_delete`
289294
operationId: deleteScope
290295
parameters:
291296
- name: name
@@ -337,6 +342,7 @@ paths:
337342
Check scope existence using scope name
338343
description: |
339344
This API is used to check a scope's existence using a given scope name.
345+
<b>Scope(Permission) required:</b> `internal_oauth_scope_view`
340346
operationId: isScopeExists
341347
parameters:
342348
- name: name

en/identity-server/7.0.0/docs/apis/restapis/oidc-scope-management.yaml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ paths:
2525
- OIDC Scope Endpoint
2626
summary: Retrieve the list of scopes
2727
operationId: getScopes
28-
description: This REST API can be used to get details of the available scopes.
28+
description: |
29+
This REST API can be used to get details of the available scopes.
30+
<b>Scope(Permission) required:</b> `internal_oidc_scope_mgt_view`
2931
security:
3032
- BasicAuth: []
3133
- OAuth2: []
@@ -59,6 +61,9 @@ paths:
5961
- OIDC Scope Endpoint
6062
summary: Add a new OIDC scope
6163
operationId: addScope
64+
description: |
65+
This REST API can be used to create OIDC scope.
66+
<b>Scope(Permission) required:</b> `internal_oidc_scope_mgt_create`
6267
security:
6368
- BasicAuth: []
6469
- OAuth2: []
@@ -102,7 +107,9 @@ paths:
102107
- OIDC Scope Endpoint
103108
summary: Get a scope
104109
operationId: getScope
105-
description: This REST API can be used to get the scope.
110+
description: |
111+
This REST API can be used to get the scope.
112+
<b>Scope(Permission) required:</b> `internal_oidc_scope_mgt_view`
106113
security:
107114
- BasicAuth: []
108115
- OAuth2: []
@@ -140,6 +147,9 @@ paths:
140147
- OIDC Scope Endpoint
141148
summary: Update an OIDC scope
142149
operationId: updateScope
150+
description: |
151+
This REST API can be used to update OIDC scope.
152+
<b>Scope(Permission) required:</b> `internal_oidc_scope_mgt_update`
143153
security:
144154
- BasicAuth: []
145155
- OAuth2: []
@@ -190,6 +200,9 @@ paths:
190200
- OIDC Scope Endpoint
191201
summary: Delete an OIDC scope
192202
operationId: deleteScope
203+
description: |
204+
This REST API can be used to delete OIDC scope.
205+
<b>Scope(Permission) required:</b> `internal_oidc_scope_mgt_delete`
193206
security:
194207
- BasicAuth: []
195208
- OAuth2: []

en/identity-server/7.1.0/docs/apis/restapis/oauth-dcr.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ paths:
2121
Get OAuth2 application information
2222
description: |
2323
This API is used to get/retrieve an OAuth2 application by client_name.
24+
<b>Scope(Permission) required:</b> `internal_dcr_view`
2425
operationId: getApplicationByName
2526
parameters:
2627
- name: client_name
@@ -76,6 +77,7 @@ paths:
7677
\ If you are using any other grant type, \nsuch as password, you don't need\
7778
\ to send the redirect_uri field in the request. Check the sample request\
7879
\ given below.\n"
80+
<b>Scope(Permission) required:</b> `internal_dcr_create`
7981
operationId: registerApplication
8082
requestBody:
8183
description: Application information to register.
@@ -168,6 +170,7 @@ paths:
168170
Get OAuth2 application information
169171
description: |
170172
This API is used to get/retrieve an OAuth2 application by client_id.
173+
<b>Scope(Permission) required:</b> `internal_dcr_view`
171174
operationId: getApplication
172175
parameters:
173176
- name: client_id
@@ -219,6 +222,7 @@ paths:
219222
Updates an OAuth2 application
220223
description: |
221224
This API is used to update an OAuth2 application.
225+
<b>Scope(Permission) required:</b> `internal_dcr_update`
222226
operationId: updateApplication
223227
parameters:
224228
- name: client_id
@@ -303,6 +307,7 @@ paths:
303307
Delete OAuth2 application
304308
description: |
305309
This API is used to delete an OAuth2 application by client_id.
310+
<b>Scope(Permission) required:</b> `internal_dcr_delete`
306311
operationId: deleteApplication
307312
parameters:
308313
- name: client_id

en/identity-server/7.1.0/docs/apis/restapis/oauth2-scope-endpoint.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ paths:
1919
Return all available scopes
2020
description: |
2121
This API is used to get all the available scopes.
22+
<b>Scope(Permission) required:</b> `internal_oauth_scope_view`
2223
operationId: getScopes
2324
parameters:
2425
- name: startIndex
@@ -85,6 +86,7 @@ paths:
8586
Register a scope
8687
description: |
8788
This API is used to create a scope.
89+
<b>Scope(Permission) required:</b> `internal_oauth_scope_create`
8890
operationId: registerScope
8991
requestBody:
9092
description: Define a scope with bindings to register it
@@ -161,6 +163,7 @@ paths:
161163
Return a scope by name
162164
description: |
163165
This API is used to retrieve details of a scope by a given scope name.
166+
<b>Scope(Permission) required:</b> `internal_oauth_scope_view`
164167
operationId: getScope
165168
parameters:
166169
- name: name
@@ -211,6 +214,7 @@ paths:
211214
Update a scope
212215
description: |
213216
This API is used to update a scope by a given scope name.
217+
<b>Scope(Permission) required:</b> `internal_oauth_scope_update`
214218
operationId: updateScope
215219
parameters:
216220
- name: name
@@ -286,6 +290,7 @@ paths:
286290
Delete a scope
287291
description: |
288292
This API is used to delete a scope by a given scope name.
293+
<b>Scope(Permission) required:</b> `internal_oauth_scope_delete`
289294
operationId: deleteScope
290295
parameters:
291296
- name: name
@@ -337,6 +342,7 @@ paths:
337342
Check scope existence using scope name
338343
description: |
339344
This API is used to check a scope's existence using a given scope name.
345+
<b>Scope(Permission) required:</b> `internal_oauth_scope_view`
340346
operationId: isScopeExists
341347
parameters:
342348
- name: name

en/identity-server/7.1.0/docs/apis/restapis/oidc-scope-management.yaml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ paths:
2525
- OIDC Scope Endpoint
2626
summary: Retrieve the list of scopes
2727
operationId: getScopes
28-
description: This REST API can be used to get details of the available scopes.
28+
description: |
29+
This REST API can be used to get details of the available scopes.
30+
<b>Scope(Permission) required:</b> `internal_oidc_scope_mgt_view`
2931
security:
3032
- BasicAuth: []
3133
- OAuth2: []
@@ -59,6 +61,9 @@ paths:
5961
- OIDC Scope Endpoint
6062
summary: Add a new OIDC scope
6163
operationId: addScope
64+
description: |
65+
This REST API can be used to create OIDC scope.
66+
<b>Scope(Permission) required:</b> `internal_oidc_scope_mgt_create`
6267
security:
6368
- BasicAuth: []
6469
- OAuth2: []
@@ -102,7 +107,9 @@ paths:
102107
- OIDC Scope Endpoint
103108
summary: Get a scope
104109
operationId: getScope
105-
description: This REST API can be used to get the scope.
110+
description: |
111+
This REST API can be used to get the scope.
112+
<b>Scope(Permission) required:</b> `internal_oidc_scope_mgt_view`
106113
security:
107114
- BasicAuth: []
108115
- OAuth2: []
@@ -140,6 +147,9 @@ paths:
140147
- OIDC Scope Endpoint
141148
summary: Update an OIDC scope
142149
operationId: updateScope
150+
description: |
151+
This REST API can be used to update OIDC scope.
152+
<b>Scope(Permission) required:</b> `internal_oidc_scope_mgt_update`
143153
security:
144154
- BasicAuth: []
145155
- OAuth2: []
@@ -190,6 +200,9 @@ paths:
190200
- OIDC Scope Endpoint
191201
summary: Delete an OIDC scope
192202
operationId: deleteScope
203+
description: |
204+
This REST API can be used to delete OIDC scope.
205+
<b>Scope(Permission) required:</b> `internal_oidc_scope_mgt_delete`
193206
security:
194207
- BasicAuth: []
195208
- OAuth2: []

en/identity-server/next/docs/apis/restapis/oauth-dcr.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ paths:
2121
Get OAuth2 application information
2222
description: |
2323
This API is used to get/retrieve an OAuth2 application by client_name.
24+
<b>Scope(Permission) required:</b> `internal_dcr_view`
2425
operationId: getApplicationByName
2526
parameters:
2627
- name: client_name
@@ -76,6 +77,7 @@ paths:
7677
\ If you are using any other grant type, \nsuch as password, you don't need\
7778
\ to send the redirect_uri field in the request. Check the sample request\
7879
\ given below.\n"
80+
<b>Scope(Permission) required:</b> `internal_dcr_create`
7981
operationId: registerApplication
8082
requestBody:
8183
description: Application information to register.
@@ -168,6 +170,7 @@ paths:
168170
Get OAuth2 application information
169171
description: |
170172
This API is used to get/retrieve an OAuth2 application by client_id.
173+
<b>Scope(Permission) required:</b> `internal_dcr_view`
171174
operationId: getApplication
172175
parameters:
173176
- name: client_id
@@ -219,6 +222,7 @@ paths:
219222
Updates an OAuth2 application
220223
description: |
221224
This API is used to update an OAuth2 application.
225+
<b>Scope(Permission) required:</b> `internal_dcr_update`
222226
operationId: updateApplication
223227
parameters:
224228
- name: client_id
@@ -303,6 +307,7 @@ paths:
303307
Delete OAuth2 application
304308
description: |
305309
This API is used to delete an OAuth2 application by client_id.
310+
<b>Scope(Permission) required:</b> `internal_dcr_delete`
306311
operationId: deleteApplication
307312
parameters:
308313
- name: client_id

0 commit comments

Comments
 (0)