DELETE /mfa/totp/devices/{device_id}

撤销指定的TOTP设备,需要提供当前TOTP验证码进行验证。参考:RFC 6238 (TOTP)、OWASP ASVS V2.8.3。

多因素认证 `bearerAuth` application/json

请求参数

名称位置类型必填默认值示例约束描述
device_id path string 是 设备ID

请求体

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

字段类型必填示例约束描述
code string 是 123456

响应

引用的 Schema

service-core/base/dto.SimpleResponse

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

service-mfa/internal/handler/dto.DisabledDetailResponse

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

service-mfa/internal/handler/dto.DisabledResponse

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