POST /internal/mfa/totp/validate

内部验证用户TOTP码,无需JWT认证,供其他服务(identity-service)在登录时调用。需要InternalAPIKey认证。参考:RFC 6238 (TOTP)、OWASP ASVS V2.8.3。

多因素认证 None application/json

请求体

Schema: service-mfa/internal/handler/dto.InternalTOTPValidateRequest

字段类型必填示例约束描述
code string 是
user_id string 是
tenant_id string 否

响应

引用的 Schema

service-core/base/dto.SimpleResponse

字段类型必填示例约束描述
code integer 否
message string 否
timestamp string 否

service-mfa/internal/handler/dto.ValidDetailResponse

字段类型必填示例约束描述
code integer 否
data service-mfa/internal/handler/dto.ValidResponse 否
message string 否
timestamp string 否

service-mfa/internal/handler/dto.ValidResponse

字段类型必填示例约束描述
valid boolean 否 True