OpenID Connect scope management API
Base URL: https://localhost:9443/t/carbon.super/api/server/v1
The OIDC Scope Management API (version 1.0.0-oas3).
Download the OpenAPI definition (YAML)
OIDC Scope Endpoint
Retrieve the list of scopes
GET /oidc/scopes
This REST API can be used to get details of the available scopes.
Scope(Permission) required: internal_oidc_scope_mgt_view
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK. | array of Scope |
400 | Bad Request. | ErrorResponse |
401 | Unauthorized. | |
403 | Resource Forbidden. | |
404 | Resource Not Found. | ErrorResponse |
500 | Internal Server Error. | ErrorResponse |
Add a new OIDC scope
POST /oidc/scopes
This REST API can be used to create OIDC scope.
Scope(Permission) required: internal_oidc_scope_mgt_create
Request body: application/json
Schema: Scope
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | |
displayName | string | Yes | |
description | string | ||
claims | array of string | Yes |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Created | |
400 | Invalid input request. | ErrorResponse |
401 | Unauthorized. | |
403 | Resource Forbidden. | |
409 | Scope already Exists. | ErrorResponse |
500 | Internal Server Error. | ErrorResponse |
Get a scope
GET /oidc/scopes/{id}
This REST API can be used to get the scope.
Scope(Permission) required: internal_oidc_scope_mgt_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | scope name as the id |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK. | Scope |
401 | Unauthorized. | |
403 | Resource Forbidden. | |
404 | Resource Not Found. | ErrorResponse |
500 | Internal Server Error. | ErrorResponse |
Update an OIDC scope
PUT /oidc/scopes/{id}
This REST API can be used to update OIDC scope.
Scope(Permission) required: internal_oidc_scope_mgt_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | scope name as the ID |
Request body: application/json
Schema: ScopeUpdateRequest
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
displayName | string | Yes | |
description | string | ||
claims | array of string | Yes |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK. | |
400 | Invalid input request. | ErrorResponse |
401 | Unauthorized. | |
403 | Resource Forbidden. | |
404 | Resource Not Found. | ErrorResponse |
500 | Internal Server Error. | ErrorResponse |
Delete an OIDC scope
DEL /oidc/scopes/{id}
This REST API can be used to delete OIDC scope.
Scope(Permission) required: internal_oidc_scope_mgt_delete
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | scope name as the ID |
Responses
| Code | Description | Schema |
|---|---|---|
204 | No Content. | |
401 | Unauthorized. | |
403 | Resource Forbidden. | |
500 | Internal Server Error. | ErrorResponse |
Schemas
Scope
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | |
displayName | string | Yes | |
description | string | ||
claims | array of string | Yes |
ScopeUpdateRequest
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
displayName | string | Yes | |
description | string | ||
claims | array of string | Yes |
ErrorResponse
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | |
message | string | Yes | |
description | string | ||
traceId | string |
Was this page helpful?