Add new OAuth client's secret

POST {{baseUrl}}/provider/oauth/clients/:id/secrets

Introduce new secret. If a new secret is not provided, it will be automatically generated. Up to two client secrets are supported. 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

KeyDatatypeRequiredDescription
Current-SecretstringRequired, 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-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;secret&quot;:&quot;reprehenderit&quot;}