POST /admin/oauth/clients/{client_id}/rotate-secret
为指定客户端生成新密钥,旧密钥立即失效(移至历史表,仍可验证4小时)
OAuth 客户端管理 `bearerAuth` application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
client_id |
path |
string |
Yes |
|
|
|
客户端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 |
|
|
|