Download OpenAPI specification:Download
List all auth servers
| page[size] | integer Example: page[size]=10 The maximum number of items to include per page. The last page of a collection may include fewer items. |
| page[number] | integer Example: page[number]=1 Determines which page of the entities to retrieve. |
{- "data": [
- {
- "id": "f44567da-a0b1-4eef-86c9-b27ab2e22048",
- "name": "Auth Server 1",
- "description": "Auth Server 1 Description",
- "audience": "api://default",
- "labels": {
- "env": "production"
}, - "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}, - {
- "id": "5e051473-3b98-45c9-aa99-75b18c158bbf",
- "name": "Auth Server 2",
- "description": "Auth Server 2 Description",
- "audience": "api://default",
- "labels": {
- "env": "production"
}, - "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}
], - "meta": {
- "page": {
- "number": 1,
- "size": 2,
- "total": 2
}
}
}Create a new auth server
Auth server to be created
| name required | string (AuthServerName) The name of the auth server. |
| description | string (AuthServerDescription) The description of the auth server. |
| audience required | string (Audience) The recipients that the tokens are intended for. This becomes the 'aud' claim in an access token. |
object (Labels) <= 50 properties Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_". |
{- "name": "Auth Server",
- "description": "Auth Server Description",
- "audience": "api://default"
}{- "id": "f44567da-a0b1-4eef-86c9-b27ab2e22048",
- "name": "Auth Server 1",
- "description": "Auth Server 1 Description",
- "audience": "api://default",
- "labels": {
- "env": "production"
}, - "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}Get an auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
{- "id": "f44567da-a0b1-4eef-86c9-b27ab2e22048",
- "name": "Auth Server 1",
- "description": "Auth Server 1 Description",
- "audience": "api://default",
- "labels": {
- "env": "production"
}, - "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}Update an auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
Auth server to be updated
| name | string (AuthServerName) The name of the auth server. |
| description | string (AuthServerDescription) The description of the auth server. |
| audience | string (Audience) The recipients that the tokens are intended for. This becomes the 'aud' claim in an access token. |
object or null (LabelsUpdate) <= 50 properties Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types. Labels are intended to store INTERNAL metadata. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_". |
{- "name": "Updated Auth Server",
- "description": "Updated Auth Server Description",
- "audience": "api://default"
}{- "id": "f44567da-a0b1-4eef-86c9-b27ab2e22048",
- "name": "Auth Server 1",
- "description": "Auth Server 1 Description",
- "audience": "api://default",
- "labels": {
- "env": "production"
}, - "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}Delete an auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
{- "status": 404,
- "title": "Not Found",
- "instance": "kong:trace:6816496025408232265",
- "detail": "Not Found"
}List all the claims for a given auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
{- "data": [
- {
- "id": "07d05309-45cc-4b37-92fb-1524846deec3",
- "name": "Claim 1",
- "value": "Claim 1 Value",
- "include_in_token": true,
- "include_in_all_scopes": false,
- "include_in_scopes": [
- "c5e12516-182c-4928-ae04-05374b3b1cca",
- "b5525b78-f3a0-4bd6-befc-7696be58717e"
], - "enabled": true,
- "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}, - {
- "id": "5e051473-3b98-45c9-aa99-75b18c158bbf",
- "name": "Claim 2",
- "value": "Claim 2 Value",
- "include_in_token": true,
- "include_in_all_scopes": false,
- "include_in_scopes": [
- "c5e12516-182c-4928-ae04-05374b3b1cca",
- "b5525b78-f3a0-4bd6-befc-7696be58717e"
], - "enabled": true,
- "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}
], - "meta": {
- "page": {
- "number": 1,
- "size": 2,
- "total": 2
}
}
}Create a new claim for a given auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
Claim to be created
| name required | string (ClaimName) The name of the claim. |
| value required | string (ClaimValue) Specifies the value of the claim. |
| include_in_token | boolean (ClaimIncludeInToken) Default: false Specifies whether to include claim in the token. If the value is set to 'false' for a claim, the client instead uses the access token to get claims from the '/userinfo' endpoint. |
| include_in_all_scopes | boolean (ClaimIncludeInAllScopes) Default: false Specifies whether to include the claim in all scopes. If the value is set to 'false' for a claim, the claim is only included in the scopes that explicitly list it. |
| include_in_scopes | Array of strings (ClaimIncludeInScopes) Specifies the scopes in which the claim is included. |
| enabled | boolean (ClaimEnabled) Default: true Specifies whether the claim is enabled. |
{- "name": "Claim",
- "value": "Claim Value",
- "include_in_token": true,
- "include_in_all_scopes": false,
- "include_in_scopes": [
- "c5e12516-182c-4928-ae04-05374b3b1cca",
- "b5525b78-f3a0-4bd6-befc-7696be58717e"
], - "enabled": true
}{- "id": "07d05309-45cc-4b37-92fb-1524846deec3",
- "name": "Claim 1",
- "value": "Claim 1 Value",
- "include_in_token": true,
- "include_in_all_scopes": false,
- "include_in_scopes": [
- "c5e12516-182c-4928-ae04-05374b3b1cca",
- "b5525b78-f3a0-4bd6-befc-7696be58717e"
], - "enabled": true,
- "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}Get a claim for given auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
| claimId required | string <uuid> Example: 07d05309-45cc-4b37-92fb-1524846deec3 The claim ID |
{- "id": "07d05309-45cc-4b37-92fb-1524846deec3",
- "name": "Claim 1",
- "value": "Claim 1 Value",
- "include_in_token": true,
- "include_in_all_scopes": false,
- "include_in_scopes": [
- "c5e12516-182c-4928-ae04-05374b3b1cca",
- "b5525b78-f3a0-4bd6-befc-7696be58717e"
], - "enabled": true,
- "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}Update a claim for a given auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
| claimId required | string <uuid> Example: 07d05309-45cc-4b37-92fb-1524846deec3 The claim ID |
Claim to be updated
| name | string (ClaimName) The name of the claim. |
| value | string (ClaimValue) Specifies the value of the claim. |
| include_in_token | boolean (ClaimIncludeInToken) Default: false Specifies whether to include claim in the token. If the value is set to 'false' for a claim, the client instead uses the access token to get claims from the '/userinfo' endpoint. |
| include_in_all_scopes | boolean (ClaimIncludeInAllScopes) Default: false Specifies whether to include the claim in all scopes. If the value is set to 'false' for a claim, the claim is only included in the scopes that explicitly list it. |
| include_in_scopes | Array of strings (ClaimIncludeInScopes) Specifies the scopes in which the claim is included. |
| enabled | boolean (ClaimEnabled) Default: true Specifies whether the claim is enabled. |
{- "name": "Updated Claim",
- "value": "Updated Claim Value",
- "include_in_token": true,
- "include_in_all_scopes": true,
- "include_in_scopes": [
- "c5e12516-182c-4928-ae04-05374b3b1cca"
], - "enabled": false
}{- "id": "07d05309-45cc-4b37-92fb-1524846deec3",
- "name": "Claim 1",
- "value": "Claim 1 Value",
- "include_in_token": true,
- "include_in_all_scopes": false,
- "include_in_scopes": [
- "c5e12516-182c-4928-ae04-05374b3b1cca",
- "b5525b78-f3a0-4bd6-befc-7696be58717e"
], - "enabled": true,
- "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}Delete a claim for a given auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
| claimId required | string <uuid> Example: 07d05309-45cc-4b37-92fb-1524846deec3 The claim ID |
{- "status": 404,
- "title": "Not Found",
- "instance": "kong:trace:6816496025408232265",
- "detail": "Not Found"
}List all the scopes for a given auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
{- "data": [
- {
- "id": "c5e12516-182c-4928-ae04-05374b3b1cca",
- "name": "Scope 1",
- "description": "Scope 1 Description",
- "default": false,
- "include_in_metadata": false,
- "enabled": true,
- "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}, - {
- "id": "b5525b78-f3a0-4bd6-befc-7696be58717e",
- "name": "Scope 2",
- "description": "Scope 2 Description",
- "default": false,
- "include_in_metadata": false,
- "enabled": true,
- "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}
], - "meta": {
- "page": {
- "number": 1,
- "size": 2,
- "total": 2
}
}
}Create a new scope for a given auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
Scope to be created
| name required | string (ScopeName) The name of the scope. |
| description | string (ScopeDescription) Description of the scope. |
| default | boolean (ScopeDefault) Default: false Specifies whether the scope is a default scope. |
| include_in_metadata | boolean (ScopeIncludeInMetadata) Default: false Specifies whether to include the scope in the metadata document. |
| enabled | boolean (ScopeEnabled) Default: true Specifies whether the scope is enabled. |
{- "name": "Scope",
- "description": "Scope Description",
- "default": false,
- "include_in_metadata": false,
- "enabled": true
}{- "id": "c5e12516-182c-4928-ae04-05374b3b1cca",
- "name": "Scope 1",
- "description": "Scope 1 Description",
- "default": false,
- "include_in_metadata": false,
- "enabled": true,
- "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}Get a scope for given auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
| scopeId required | string <uuid> Example: c5e12516-182c-4928-ae04-05374b3b1cca The scope ID |
{- "id": "c5e12516-182c-4928-ae04-05374b3b1cca",
- "name": "Scope 1",
- "description": "Scope 1 Description",
- "default": false,
- "include_in_metadata": false,
- "enabled": true,
- "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}Update a scope for a given auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
| scopeId required | string <uuid> Example: c5e12516-182c-4928-ae04-05374b3b1cca The scope ID |
Scope to be updated
| name | string (ScopeName) The name of the scope. |
| description | string (ScopeDescription) Description of the scope. |
| default | boolean (ScopeDefault) Default: false Specifies whether the scope is a default scope. |
| include_in_metadata | boolean (ScopeIncludeInMetadata) Default: false Specifies whether to include the scope in the metadata document. |
| enabled | boolean (ScopeEnabled) Default: true Specifies whether the scope is enabled. |
{- "name": "Updated Scope",
- "description": "Updated Scope Description",
- "default": true,
- "include_in_metadata": true,
- "enabled": false
}{- "id": "c5e12516-182c-4928-ae04-05374b3b1cca",
- "name": "Scope 1",
- "description": "Scope 1 Description",
- "default": false,
- "include_in_metadata": false,
- "enabled": true,
- "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}Delete a scope for a given auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
| scopeId required | string <uuid> Example: c5e12516-182c-4928-ae04-05374b3b1cca The scope ID |
{- "status": 404,
- "title": "Not Found",
- "instance": "kong:trace:6816496025408232265",
- "detail": "Not Found"
}List all the clients for a given auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
| page[size] | integer Example: page[size]=10 The maximum number of items to include per page. The last page of a collection may include fewer items. |
| page[number] | integer Example: page[number]=1 Determines which page of the entities to retrieve. |
{- "data": [
- {
- "id": "kYa9iQFU5xPDSIUH9z1z",
- "name": "Client 1",
- "grant_types": [
- "authorization_code",
- "implicit"
], - "allow_all_scopes": false,
- "allow_scopes": [
- "c5e12516-182c-4928-ae04-05374b3b1cca",
- "b5525b78-f3a0-4bd6-befc-7696be58717e"
], - "labels": {
- "env": "prod"
}, - "response_types": [
- "token"
], - "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}, - {
- "id": "kYa9iQFU5xPDSIUH9z1z",
- "name": "Client 2",
- "grant_types": [
- "client_credentials"
], - "allow_all_scopes": true,
- "allow_scopes": [ ],
- "redirect_uris": [ ],
- "login_uri": null,
- "labels": {
- "env": "prod"
}, - "response_types": [
- "token"
], - "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}
], - "meta": {
- "page": {
- "number": 1,
- "size": 2,
- "total": 2
}
}
}Create a new client for a given auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
Client to be created
| name required | string (ClientName) The name of the client. |
| grant_types required | Array of strings (GrantTypes) unique Items Enum: "authorization_code" "implicit" "client_credentials" Array of OAuth 2.0 grant type strings. |
| response_types required | Array of strings (ResponseTypes) Items Enum: "none" "token" "code" "id_token" array of OAuth 2.0 reponse type string. |
| redirect_uris | Array of strings <uri> (RedirectURIs) The URIs that the client is allowed to redirect to after authentication in interactive flows. All redirect URIs must be absolute URIs, be secure (HTTPS), and must not include a fragment component. |
| login_uri | string or null <uri> (LoginURI) The URI of the login page where the user is redirected to authenticate in interactive flows. The login page must be secure (HTTPS). |
| allow_all_scopes | boolean (ClientAllowAllScopes) Default: false Specifies whether the client is allowed to request all scopes. |
| allow_scopes | Array of strings (ClientAllowScopes) Specifies the scopes that the client is allowed to request. |
object (Labels) <= 50 properties Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_". |
{- "name": "Client",
- "grant_types": [
- "client_credentials"
], - "allow_all_scopes": false,
- "allow_scopes": [
- "c5e12516-182c-4928-ae04-05374b3b1cca",
- "b5525b78-f3a0-4bd6-befc-7696be58717e"
], - "response_types": [
- "token"
]
}{- "id": "kYa9iQFU5xPDSIUH9z1z",
- "name": "Client 1",
- "grant_types": [
- "client_credentials"
], - "allow_all_scopes": false,
- "allow_scopes": [
- "c5e12516-182c-4928-ae04-05374b3b1cca",
- "b5525b78-f3a0-4bd6-befc-7696be58717e"
], - "labels": {
- "env": "test"
}, - "response_types": [
- "token"
], - "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z",
- "client_secret": "YAzsyUlNZ5gNGeKS9H3VAdxVPzhPo4ae"
}Get a client for given auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
| clientId required | string (ClientId) [ 1 .. 36 ] characters [-_\w]+ Example: kYa9iQFU5xPDSIUH9z1z The OAuth 2.0 client ID |
{- "id": "kYa9iQFU5xPDSIUH9z1z",
- "name": "Client 1",
- "grant_types": [
- "client_credentials",
- "authorization_code",
- "implicit"
], - "allow_all_scopes": false,
- "allow_scopes": [
- "c5e12516-182c-4928-ae04-05374b3b1cca",
- "b5525b78-f3a0-4bd6-befc-7696be58717e"
], - "labels": {
- "env": "prod"
}, - "response_types": [
- "token"
], - "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}Update a client for a given auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
| clientId required | string (ClientId) [ 1 .. 36 ] characters [-_\w]+ Example: kYa9iQFU5xPDSIUH9z1z The OAuth 2.0 client ID |
Client to be updated
| name | string (ClientName) The name of the client. |
| client_secret | string non-empty Secret of the client |
| grant_types | Array of strings (GrantTypes) unique Items Enum: "authorization_code" "implicit" "client_credentials" Array of OAuth 2.0 grant type strings. |
| response_types | Array of strings (ResponseTypes) Items Enum: "none" "token" "code" "id_token" array of OAuth 2.0 reponse type string. |
| redirect_uris | Array of strings <uri> (RedirectURIs) The URIs that the client is allowed to redirect to after authentication in interactive flows. All redirect URIs must be absolute URIs, be secure (HTTPS), and must not include a fragment component. |
| login_uri | string or null <uri> (LoginURI) The URI of the login page where the user is redirected to authenticate in interactive flows. The login page must be secure (HTTPS). |
| allow_all_scopes | boolean (ClientAllowAllScopes) Default: false Specifies whether the client is allowed to request all scopes. |
| allow_scopes | Array of strings (ClientAllowScopes) Specifies the scopes that the client is allowed to request. |
object or null (LabelsUpdate) <= 50 properties Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types. Labels are intended to store INTERNAL metadata. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_". |
{- "name": "Updated Client"
}{- "id": "kYa9iQFU5xPDSIUH9z1z",
- "name": "Client 1",
- "grant_types": [
- "client_credentials",
- "authorization_code",
- "implicit"
], - "allow_all_scopes": false,
- "allow_scopes": [
- "c5e12516-182c-4928-ae04-05374b3b1cca",
- "b5525b78-f3a0-4bd6-befc-7696be58717e"
], - "labels": {
- "env": "prod"
}, - "response_types": [
- "token"
], - "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}Replace a client for a given auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
| clientId required | string (ClientId) [ 1 .. 36 ] characters [-_\w]+ Example: kYa9iQFU5xPDSIUH9z1z The OAuth 2.0 client ID |
Client to be replaced
| name required | string (ClientName) The name of the client. |
| client_secret required | string non-empty Secret of the client |
| grant_types required | Array of strings (GrantTypes) unique Items Enum: "authorization_code" "implicit" "client_credentials" Array of OAuth 2.0 grant type strings. |
| response_types required | Array of strings (ResponseTypes) Items Enum: "none" "token" "code" "id_token" array of OAuth 2.0 reponse type string. |
| redirect_uris | Array of strings <uri> (RedirectURIs) The URIs that the client is allowed to redirect to after authentication in interactive flows. All redirect URIs must be absolute URIs, be secure (HTTPS), and must not include a fragment component. |
| login_uri | string or null <uri> (LoginURI) The URI of the login page where the user is redirected to authenticate in interactive flows. The login page must be secure (HTTPS). |
| allow_all_scopes | boolean (ClientAllowAllScopes) Default: false Specifies whether the client is allowed to request all scopes. |
| allow_scopes | Array of strings (ClientAllowScopes) Specifies the scopes that the client is allowed to request. |
object (Labels) <= 50 properties Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_". |
{- "name": "Replace Client",
- "client_secret": "SecretPassword",
- "grant_types": [
- "client_credentials"
], - "response_types": [
- "token"
]
}{- "id": "kYa9iQFU5xPDSIUH9z1z",
- "name": "Client 1",
- "grant_types": [
- "client_credentials",
- "authorization_code",
- "implicit"
], - "allow_all_scopes": false,
- "allow_scopes": [
- "c5e12516-182c-4928-ae04-05374b3b1cca",
- "b5525b78-f3a0-4bd6-befc-7696be58717e"
], - "labels": {
- "env": "prod"
}, - "response_types": [
- "token"
], - "created_at": "2023-03-20T09:29:14.52Z",
- "updated_at": "2023-03-21T09:29:14.52Z"
}Delete a client for a given auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
| clientId required | string (ClientId) [ 1 .. 36 ] characters [-_\w]+ Example: kYa9iQFU5xPDSIUH9z1z The OAuth 2.0 client ID |
{- "status": 404,
- "title": "Not Found",
- "instance": "kong:trace:6816496025408232265",
- "detail": "Not Found"
}List all the tokens for a given client and auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
| clientId required | string (ClientId) [ 1 .. 36 ] characters [-_\w]+ Example: kYa9iQFU5xPDSIUH9z1z The OAuth 2.0 client ID |
| page[size] | integer Example: page[size]=10 The maximum number of items to include per page. The last page of a collection may include fewer items. |
| page[number] | integer Example: page[number]=1 Determines which page of the entities to retrieve. |
{- "data": [
- {
- "id": "2cec70a4-d197-495c-8f3e-c0a1199d1da4",
- "created_at": "2023-03-20T09:29:14.52Z",
- "expires_at": "2022-11-04T20:10:06.927Z"
}, - {
- "id": "8b3bd4a9-7bb3-4b4b-9447-728577bd75e2",
- "created_at": "2023-03-20T09:29:14.52Z",
- "expires_at": "2022-11-04T20:10:06.927Z"
}
], - "meta": {
- "page": {
- "number": 1,
- "size": 2,
- "total": 2
}
}
}Revoke all tokens for a given client and auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
| clientId required | string (ClientId) [ 1 .. 36 ] characters [-_\w]+ Example: kYa9iQFU5xPDSIUH9z1z The OAuth 2.0 client ID |
{- "status": 404,
- "title": "Not Found",
- "instance": "kong:trace:6816496025408232265",
- "detail": "Not Found"
}Get a token for given client and auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
| clientId required | string (ClientId) [ 1 .. 36 ] characters [-_\w]+ Example: kYa9iQFU5xPDSIUH9z1z The OAuth 2.0 client ID |
| tokenId required | string <uuid> Example: 2cec70a4-d197-495c-8f3e-c0a1199d1da4 The token ID |
{- "id": "2cec70a4-d197-495c-8f3e-c0a1199d1da4",
- "created_at": "2023-03-20T09:29:14.52Z",
- "expires_at": "2022-11-04T20:10:06.927Z"
}Revoke a token for a given client and auth server
| authServerId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The auth server ID |
| clientId required | string (ClientId) [ 1 .. 36 ] characters [-_\w]+ Example: kYa9iQFU5xPDSIUH9z1z The OAuth 2.0 client ID |
| tokenId required | string <uuid> Example: 2cec70a4-d197-495c-8f3e-c0a1199d1da4 The token ID |
{- "status": 404,
- "title": "Not Found",
- "instance": "kong:trace:6816496025408232265",
- "detail": "Not Found"
}