为指定用户生成 MFA 密钥、二维码和备份码,并保存到数据库(状态为未激活)
API路径:POST /api/mfa/bind
{ "userId": "string", "tenantId": "string", "deviceType": "string" }
curl --location --globoff '/${platform.component.mfa.management.api-prefix:/mfa}/bind' \ --header 'Content-Type: application/json' \ --data '{ "userId": "string", "tenantId": "string", "deviceType": "string" }'
{ "data": { "qrCodeUrl": "", "secretKey": "", "backupCodes": [ "" ], "expiresIn": 0 }, "code": "", "msg": "", "i18nDict": { "": { "": "" } }, "timestamp": 0 }