A AuthMS API Wiki API Reference iam.tianv.com →

POST /internal/api-keys/validate

供 gateway 内部调用,验证 API Key 合法性并返回租户信息

租户服务 - 内部接口 None application/json

Request Body

Schema: dto.InternalValidateApiKeyRequest

FieldTypeRequiredExampleConstraintsDescription
api_key string Yes

Responses

StatusDescriptionSchema
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

FieldTypeRequiredExampleConstraintsDescription
name string No
scope string No
tenant_id string No
valid boolean No

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No