POST /mfa/step-up

对已登录用户的敏感操作进行二次MFA认证验证,支持TOTP、短信、邮箱三种方式。使用限流保护。参考:NIST SP 800-63B §5.1.7、OWASP ASVS V2.8。

多因素认证 `bearerAuth` application/json

请求体

Schema: service-mfa/internal/handler/dto.StepUpRequest

字段类型必填示例约束描述
code string 是 123456
method string 是 totp enum: `totp`, `sms`, `email`
user_id string 是 usr_abc123

响应

引用的 Schema

service-core/base/dto.SimpleResponse

字段类型必填示例约束描述
code integer 否
message string 否
timestamp string 否

service-mfa/internal/handler/dto.StepUpDetailResponse

字段类型必填示例约束描述
code integer 否
data service-mfa/internal/handler/dto.StepUpResponse 否
message string 否
timestamp string 否

service-mfa/internal/handler/dto.StepUpResponse

字段类型必填示例约束描述
expires_in integer 否 300
message string 否 step-up authentication successful
step_up_token string 否 eyJ...
valid boolean 否 True