POST /admin/oauth/clients/{client_id}/rotate-secret
Generates a new secret for a specified client; the old secret is immediately invalidated (moved to history table, still verifiable for 4 hours).
OAuth Client Management `bearerAuth` application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
client_id |
path |
string |
Yes |
|
|
|
Client ID |
Referenced Schemas
dto.RotateSecretDetailResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
dto.RotateSecretResponse |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|
dto.RotateSecretResponse
| Field | Type | Required | Example | Constraints | Description |
client_id |
string |
No |
|
|
|
new_secret |
string |
No |
|
|
|
rotated_at |
string |
No |
|
|
|
gitee_com_linmes_authms_base_dto.SimpleResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|