Create a new auth server client
Changed onCreate a new client for a given auth server. The client ID and secret will be generated automatically. The name attribute must be unique within the auth server. The grant_types and response_types attributes define the OAuth 2.0 and OpenID Connect capabilities of the client.
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
Request body
The name 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
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 "_".
Requested authentication method for OAuth 2.0 endpoints.
The OAuth 2.0 client ID
Secret of the client - will be used when ID is also set.
Example request
{
"labels": {
"env": "test"
},
"id": "kYa9iQFU5xPDSIUH9z1z"
}Response
A client with a secret
The OAuth 2.0 client secret
Example response
{
"id": "kYa9iQFU5xPDSIUH9z1z",
"labels": {
"env": "test"
},
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z",
"client_secret": "YAzsyUlNZ5gNGeKS9H3VAdxVPzhPo4ae"
}Changes
- breaking
the
allOf[#/components/schemas/Client]/idresponse property's maxLength was increased from36to48for the response status - breaking
added to the
invalid_parameters/itemsresponse propertyoneOflist for the response status - warning
added the new
key_invalidenum value to theinvalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/ruleresponse property for the response status
2 more changes in this revision
- breaking