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

DELETE /mfa/methods/{method_type}

删除指定类型的MFA认证方式。参考:OWASP ASVS V2.8。

MFA `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
method_type path string Yes MFA方法类型(totp/sms/email)
user_id query string Yes 用户ID

Responses

StatusDescriptionSchema
200删除成功dto.MFAMethodDeleteDetailResponse
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.MFADeletedResponse

FieldTypeRequiredExampleConstraintsDescription
deleted boolean No True
type string No sms

dto.MFAMethodDeleteDetailResponse

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

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No