在用户完成 MFA 验证后,将当前设备注册为可信设备,以便后续登录可以跳过 MFA 验证。
API路径:POST /api/mfa/trusted-devices
{ "tenantId": "string", "userId": "string", "deviceId": "string", "deviceName": "string", "deviceFingerprint": "string" }
curl --location --globoff '/${platform.component.mfa.management.api-prefix:/mfa}/trusted-devices' \ --header 'Content-Type: application/json' \ --data '{ "tenantId": "string", "userId": "string", "deviceId": "string", "deviceName": "string", "deviceFingerprint": "string" }'
{ "data": { "deviceId": "", "deviceName": "", "deviceType": "", "trustedUntil": "", "lastUsedTime": "", "createdAt": "", "isPrimary": false }, "code": "", "msg": "", "i18nDict": { "": { "": "" } }, "timestamp": 0 }