Autional Autional
API Reference GitHub autional.com →

POST /mfa/totp/enable

Enable Time-based One-Time Password (TOTP) authentication for the user, generating a key and QR code, and returning backup recovery codes. Reference: RFC 6238 (TOTP), OWASP ASVS V2.8.3.

Multi-Factor Authentication `bearerAuth` application/json

Request Body

Schema: dto.TOTPEnableRequest

FieldTypeRequiredExampleConstraintsDescription
account string No
device_name string No

Responses

StatusDescriptionSchema
200TOTP configuration information, including key URL and QR codedto.TOTPEnableDetailResponse
400Invalid Parameters or TOTP Already Enabledgitee_com_linmes_authms_base_dto.SimpleResponse
401Unauthenticatedgitee_com_linmes_authms_base_dto.SimpleResponse
500Internal Server Errorgitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.TOTPEnableDetailResponse

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

dto.TOTPEnableResponse

FieldTypeRequiredExampleConstraintsDescription
backup_codes array of

string

No ['["12345678"', '"23456789"]']
qr_code string No data:image/png;base64,iVBORw0KGgo...
qr_code_url string No otpauth://totp/AuthMS:user@example.com?secret=JBSWY3DPEHPK3PXP&issuer=AuthMS
secret string No JBSWY3DPEHPK3PXP
setup_url string No https://auth.example.com/mfa/totp/setup

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No