Auth Server Clients

Update a client secret

Changed on

Update a client secret for a given client, such as enabling or disabling the secret.

patch/v1/auth-servers/{authServerId}/clients/{clientId}/secrets/{clientSecretId}

Request

  • Base URL
    https://global.api.konghq.com
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Path parameters

authServerId, string uuid required
Example:d32d905a-ed33-46a3-a093-d8f536af9a8a

The auth server ID

clientId, string required

The OAuth 2.0 client ID

Example:kYa9iQFU5xPDSIUH9z1z
clientSecretId, string uuid required
Example:07d05309-45cc-4b37-92fb-1524846deec3

The client secret ID

Request body

UpdateSecretPayload required
enabled, boolean

Specifies whether the secret is enabled. If the secret is not enabled, it will not be usable during authentication phase.

Response

A Client Secret item

ClientSecretItem required

The client secret. The secret value is only returned when creating a new secret item.

id, string uuid required

The ID of the client secret

enabled, boolean required

Specifies whether the secret is enabled. If the secret is not enabled, it will not be usable during authentication phase.

secret, string

The OAuth 2.0 client secret

created_at, string date-time required

An ISO-8601 timestamp representation of entity creation date.

updated_at, string date-time required

An ISO-8601 timestamp representation of entity update date.

Example response

{
  "secret": "YAzsyUlNZ5gNGeKS9H3VAdxVPzhPo4ae",
  "created_at": "2022-11-04T20:10:06.927Z",
  "updated_at": "2022-11-04T20:10:06.927Z"
}

Changes

    • info

      the enabled request property default value true was removed

    • breaking

      added to the invalid_parameters/items response property oneOf list for the response status

    • warning

      added the new key_invalid enum value to the invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule response property for the response status

    1 more change in this revision