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

DELETE /mfa/totp/devices/{id}

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

MFA `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes 设备ID

Request Body

Schema: dto.TOTPDeviceRevokeRequest

FieldTypeRequiredExampleConstraintsDescription
code string Yes 123456

Responses

StatusDescriptionSchema
200设备已撤销dto.DisabledDetailResponse
400参数错误gitee_com_linmes_authms_base_dto.SimpleResponse
401未认证gitee_com_linmes_authms_base_dto.SimpleResponse
404设备未找到gitee_com_linmes_authms_base_dto.SimpleResponse
500服务器内部错误gitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.DisabledDetailResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.DisabledResponse No
message string No
timestamp string No

dto.DisabledResponse

FieldTypeRequiredExampleConstraintsDescription
disabled boolean No True

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No