Сгенерировать новый секрет клиента
POST
/api/v1/security/oauth/clients/{id}/rotate-secretAuthorizationBearer <токен>
Access token, привязанный к ключу клиента по RFC 9449: заголовок Authorization: DPoP <token> и заголовок DPoP с доказательством для каждого запроса. Сервер выдаёт DPoP-Nonce, который клиент включает в доказательство.
Передаётся в: header
Параметры пути
id*string
Внутренний идентификатор записи клиента
Параметры заголовков
idempotency-key?string
Ключ идемпотентности для безопасного повтора запроса: 8–255 символов из набора A-Za-z0-9_.:+/=-, ответ кэшируется на 24 ч
Совпадение
^[A-Za-z0-9_.:+/=-]{8,255}$Длина
8 <= length <= 255Тело ответа
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/api/v1/security/oauth/clients/string/rotate-secret" \ -H "Authorization: Bearer <access_token>"{ "client": { "allowedAudiences": [ "string" ], "applicationType": "web", "clientId": "string", "clientType": "public", "clientUri": "string", "contacts": [ "string" ], "createdAt": "2019-08-24T14:15:22Z", "description": "string", "grantTypes": [ "string" ], "id": "string", "isActive": true, "jwksUri": "string", "lastUsedAt": "2019-08-24T14:15:22Z", "logoUri": "string", "name": "string", "policyUri": "string", "redirectUris": [ "string" ], "requireDpop": true, "requirePkce": true, "scopes": [ "string" ], "tokenEndpointAuthMethod": "string", "tosUri": "string", "updatedAt": "2019-08-24T14:15:22Z" }, "clientSecret": "string"}