POST /internal/mfa/totp/disable

内部禁用用户的TOTP多因素认证,无需密码验证,供其他服务(identity-service)调用。需要X-Tenant-ID和InternalAPIKey认证。参考:RFC 6238 (TOTP)、OWASP ASVS V2.8.3。

多因素认证 None application/json

请求体

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

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

响应

状态描述Schema
200禁用成功service-core/base/dto.SimpleResponse
400参数错误service-core/base/dto.SimpleResponse
401缺少内部API认证service-core/base/dto.SimpleResponse
500服务器内部错误service-core/base/dto.SimpleResponse

引用的 Schema

service-core/base/dto.SimpleResponse

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