Update OAuth client's secret
PUT {{baseUrl}}/provider/oauth/clients/:id/secrets
Replaces current client's secret(s) with new one. If a new secret is not provided, it will be automatically generated. If the scope is prv.oc.sec.ch
, then the client can change it's own secret and needs to provide its old secret. If the scope is prv.oc.sec.admin
, then it can change arbitrary client secret in the tenant. This is for technical users only.
Request Body
{"newSecret"=>"<string>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Current-Secret | string | Required, unless your have prv.oc.sec.admin scope. It is used to make sure the requestor has permission to modify the given client's secret. | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"secret":"reprehenderit"}