/admin/oauth/clients/{client_id}/secrets
返回指定客户端的所有密钥元数据(不含密钥值)
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
|---|---|---|---|---|---|---|---|
client_id |
path |
string |
Yes | 客户端ID |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | 密钥列表(含 secret_id, status, created_at, last_used_at 等) | dto.OAuthClientSecretListDetailResponse |
| 400 | 请求参数错误 | gitee_com_linmes_authms_base_dto.SimpleResponse |
| 401 | 未认证:请提供有效的 Bearer Token | gitee_com_linmes_authms_base_dto.SimpleResponse |
| 403 | 权限不足:需要管理员权限 | gitee_com_linmes_authms_base_dto.SimpleResponse |
| 404 | 客户端不存在或不属于当前租户 | gitee_com_linmes_authms_base_dto.SimpleResponse |
| 500 | 服务内部错误 | gitee_com_linmes_authms_base_dto.SimpleResponse |
Referenced Schemas
dto.OAuthClientSecretListData
OAuth客户端密钥列表
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
secrets |
array of |
No |
dto.OAuthClientSecretListDetailResponse
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
code |
integer |
No | |||
data |
dto.OAuthClientSecretListData |
No | |||
message |
string |
No | |||
timestamp |
string |
No |
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 |