PUT /admin/oauth/clients/{client_id}/secrets/{secret_id}/deactivate
将指定密钥状态设为停用(仍可验证现有令牌,但不接受新令牌)
OAuth 客户端管理 `bearerAuth` application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
client_id |
path |
string |
Yes |
|
|
|
客户端ID |
secret_id |
path |
string |
Yes |
|
|
|
密钥ID |
Referenced Schemas
dto.OAuthClientSecretDetailResponse
dto.OAuthClientSecretResponse
OAuth客户端密钥信息,不含实际密钥值
| Field | Type | Required | Example | Constraints | Description |
created_at |
string |
No |
2026-04-15T10:30:00Z |
|
|
description |
string |
No |
Secondary client secret |
|
|
expires_at |
string |
No |
2026-05-15T10:30:00Z |
|
|
last_used_at |
string |
No |
2026-04-15T12:00:00Z |
|
|
secret_id |
string |
No |
secret-abc123 |
|
|
status |
string |
No |
active |
|
|
updated_at |
string |
No |
2026-04-15T10:30:00Z |
|
|
gitee_com_linmes_authms_base_dto.SimpleResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|