rotate_oauth_client_secret
Rotate an OAuth client's secret to revoke a compromised credential. The old secret stops working immediately, so update all services with the new secret before rotating.
Instructions
Issue a NEW secret for an API client. THE OLD ONE STOPS WORKING IMMEDIATELY.
`id` is the client's record id from `list_oauth_clients`.
This is the remediation tool for a leaked secret, and it is disruptive on
purpose: the moment it returns, EVERY SERVICE STILL USING THE OLD SECRET IS
BROKEN and will fail to obtain a token. Know what uses the client before rotating
it, and have somewhere to put the new secret first.
The new secret is SHOWN ONCE in this response and cannot be retrieved again. If
you lose it you must rotate again, breaking everything a second time.
Rotating does not revoke tokens already issued — those live until they expire.
Use `revoke_refresh_token` for any refresh token you know of.
Requires the `clients:write` OAuth scope, and the `admin` capability profile.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | No | ||
| warning | No | ||
| client_id | No | ||
| is_active | No | ||
| created_at | No | ||
| description | No | ||
| ip_allowlist | No | ||
| client_secret | No | ||
| scope_codenames | No |