DELETE /mfa/totp/devices/{device_id}

Revoke a specified TOTP device, requiring the current TOTP verification code for verification. Reference: RFC 6238 (TOTP), OWASP ASVS V2.8.3.

Multi-Factor Authentication `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes Device ID

Request Body

Schema: dto.TOTPDeviceRevokeRequest

FieldTypeRequiredExampleConstraintsDescription
code string Yes 123456

Responses

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_autional_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No