/internal/api-keys/validate
供 gateway 内部调用,验证 API Key 合法性并返回租户信息
Request Body
Schema: dto.InternalValidateApiKeyRequest
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
api_key |
string |
Yes |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | 验证结果 | dto.InternalValidateApiKeyResponse |
| 400 | 请求参数错误 | gitee_com_linmes_authms_base_dto.SimpleResponse |
| 401 | 未认证 | gitee_com_linmes_authms_base_dto.SimpleResponse |
| 500 | 服务器内部错误 | gitee_com_linmes_authms_base_dto.SimpleResponse |
Referenced Schemas
dto.InternalValidateApiKeyResponse
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
name |
string |
No | |||
scope |
string |
No | |||
tenant_id |
string |
No | |||
valid |
boolean |
No |
gitee_com_linmes_authms_base_dto.SimpleResponse
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
code |
integer |
No | |||
message |
string |
No | |||
timestamp |
string |
No |