POST /mfa/totp/validate
用户登录时验证TOTP动态码,支持备用恢复码。参考:RFC 6238 (TOTP)、OWASP ASVS V2.8.3。
MFA `bearerAuth` application/json
Request Body
Schema: dto.TOTPValidateRequest
| Field | Type | Required | Example | Constraints | Description |
code |
string |
Yes |
|
|
|
user_id |
string |
Yes |
|
|
|
Referenced Schemas
dto.ValidDetailResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
dto.ValidResponse |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|
dto.ValidResponse
| Field | Type | Required | Example | Constraints | Description |
valid |
boolean |
No |
True |
|
|
gitee_com_linmes_authms_base_dto.SimpleResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|