Replace an auth server client
Changed onReplace a client for a given auth server. The client ID and secret can be provided to update an existing client, or to create a client with the matching ID and secret.
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Path parameters
The auth server ID
The OAuth 2.0 client ID
The OAuth 2.0 client ID. A client whose client_id is the URL of its Client ID Metadata Document is registered and managed by that document: it is not addressable through these endpoints, and any request that targets it is rejected.
Request body
The name of the client
Secret of the client
List of OAuth 2.0 grant types
List of OAuth 2.0 response types
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.
Pre-release Feature This feature is currently in beta and is subject to change.
The URI of the login page where the user is redirected to authenticate in interactive flows. The login page must be secure (HTTPS).
The duration of the minted token is valid for, in seconds
The duration of the minted token is valid for, in seconds
The duration of the minted refresh token is valid for, in seconds
Specifies whether the client is allowed to request all scopes
Specifies the scopes IDs that the client is allowed to request
Requested authentication method for OAuth 2.0 endpoints.
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 "_".
Example request
{
"labels": {
"env": "test"
}
}Response
A client
The OAuth 2.0 client ID
The name of the client
List of OAuth 2.0 grant types
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.
Pre-release Feature This feature is currently in beta and is subject to change.
The URI of the login page where the user is redirected to authenticate in interactive flows. The login page must be secure (HTTPS).
The duration of the minted token is valid for, in seconds
The duration of the minted token is valid for, in seconds
The duration of the minted refresh token is valid for, in seconds
Specifies whether the client is allowed to request all scopes
Specifies the scopes IDs that the client is allowed to request
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 "_".
List of OAuth 2.0 response types
Requested authentication method for OAuth 2.0 endpoints.
An ISO-8601 timestamp representation of entity creation date.
An ISO-8601 timestamp representation of entity update date.
Example response
{
"id": "kYa9iQFU5xPDSIUH9z1z",
"labels": {
"env": "test"
},
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z"
}Changes
- breaking
the response's body type changed from no type to
objectfor status - breaking
the response's body type changed from no type to
objectfor status - breaking
the response's body type changed from no type to
objectfor status
24 more changes in this revision
- breaking