Provides operations to manage custom token scopes for the given authServerId and scopeId. See scope properties.
Lists all custom token scopes
| q | string Searches the |
| filter | string Filter expression for Custom Token Scopes |
| after | string Specifies the pagination cursor for the next page of scopes. Treat the after cursor as an opaque value and obtain it through the next link relationship. See Pagination. |
| limit | integer <= 200 Specifies the number of objects to return per page.
If there are multiple pages of results, the Link header contains a |
Success
Forbidden
Not Found
Too Many Requests
[- {
- "id": "scp5yu8kLOnDzo7lh0g4",
- "name": "car:drive",
- "description": "Drive car",
- "system": false,
- "default": false,
- "displayName": "Saml Jackson",
- "consent": "REQUIRED",
- "optional": false,
- "metadataPublish": "NO_CLIENTS",
- "_links": {
- "self": {
- "hints": {
- "allow": [
- "GET",
- "PUT",
- "DELETE"
]
}
}
}
}
]Creates a custom token scope
Success
Bad Request
Forbidden
Not Found
Too Many Requests
{- "name": "car:drive",
- "description": "Drive car",
- "consent": "REQUIRED",
- "displayName": "Saml Jackson"
}{- "id": "scp5yu8kLOnDzo7lh0g4",
- "name": "car:drive",
- "description": "Drive car",
- "system": false,
- "default": false,
- "displayName": "Saml Jackson",
- "consent": "REQUIRED",
- "optional": false,
- "metadataPublish": "NO_CLIENTS",
- "_links": {
- "self": {
- "hints": {
- "allow": [
- "GET",
- "PUT",
- "DELETE"
]
}
}
}
}Retrieves a custom token scope
Success
Forbidden
Not Found
Too Many Requests
{- "id": "scp5yu8kLOnDzo7lh0g4",
- "name": "car:drive",
- "description": "Drive car",
- "system": false,
- "default": false,
- "displayName": "Saml Jackson",
- "consent": "REQUIRED",
- "optional": false,
- "metadataPublish": "NO_CLIENTS",
- "_links": {
- "self": {
- "hints": {
- "allow": [
- "GET",
- "PUT",
- "DELETE"
]
}
}
}
}Replaces a custom token scope
Success
Bad Request
Forbidden
Not Found
Too Many Requests
{- "description": "Order car",
- "name": "car:order",
- "metadataPublish": "ALL_CLIENTS"
}{- "id": "scp5yu8kLOnDzo7lh0g4",
- "name": "car:order",
- "description": "Order car",
- "system": false,
- "default": false,
- "displayName": "Saml Jackson",
- "consent": "REQUIRED",
- "optional": false,
- "metadataPublish": "ALL_CLIENTS",
- "_links": {
- "self": {
- "hints": {
- "allow": [
- "GET",
- "PUT",
- "DELETE"
]
}
}
}
}Deletes a custom token scope
No Content
Forbidden
Not Found
Too Many Requests
{- "errorCode": "E0000006",
- "errorSummary": "You do not have permission to perform the requested action",
- "errorLink": "E0000006",
- "errorId": "sampleNUSD_8fdkFd8fs8SDBK",
- "errorCauses": [ ]
}