1. MFA管理接口
platform
  • MFA管理接口
    • 绑定MFA设备
      POST
    • 激活MFA设备
      POST
    • 解绑MFA设备
      POST
    • 查询MFA状态
      GET
    • 注册可信设备
      POST
    • 查询可信设备列表
      GET
    • 撤销可信设备
      DELETE
    • 撤销所有可信设备
      DELETE
    • 设置主管理设备
      PUT
    • 验证并消耗备份码
      POST
  • 数据模型
    • MfaBindResponse
    • key
    • MapMapString
    • ResultVOMfaBindResponse
    • MfaBindRequest
    • ResultVOVoid
    • MfaActivateRequest
    • MfaUnbindRequest
    • MfaStatusResponse
    • ResultVOMfaStatusResponse
    • TrustedDeviceVO
    • ResultVOTrustedDeviceVO
    • TrustedDeviceRegisterRequest
    • TrustedDeviceListResponse
    • ResultVOTrustedDeviceListResponse
    • ResultVOInteger
    • SetPrimaryTrustedDeviceRequest
    • MfaBackupCodeVerifyRequest
  1. MFA管理接口

激活MFA设备

POST
/${platform.component.mfa.management.api-prefix:/mfa}/activate

验证用户输入的验证码,如果正确则激活 MFA 设备(状态改为已启用)

API路径:POST /api/mfa/activate

请求参数

Body 参数application/json

示例
{
    "userId": "string",
    "tenantId": "string",
    "code": "string",
    "deviceId": "string",
    "deviceName": "string",
    "deviceFingerprint": "string",
    "trustDevice": true
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --globoff '/${platform.component.mfa.management.api-prefix:/mfa}/activate' \
--header 'Content-Type: application/json' \
--data '{
    "userId": "string",
    "tenantId": "string",
    "code": "string",
    "deviceId": "string",
    "deviceName": "string",
    "deviceFingerprint": "string",
    "trustDevice": true
}'

返回响应

🟢200
application/json
Bodyapplication/json

示例
{
  "data": null,
  "code": "",
  "msg": "",
  "i18nDict": {
    "": {
      "": ""
    }
  },
  "timestamp": 0
}
修改于 2026-02-03 14:05:35
上一页
绑定MFA设备
下一页
解绑MFA设备
Built with