获取 MFA 认证器
GET
/api/v2/mfa/authenticator参数说明:type 该接口用的是 totp
请求参数
Query 参数
type
string
类型
示例值:
totp
source
string
必需
SELF-用户自主开启,APPLICATION-应用强制开启
示例值:
APPLICATION
Header 参数
Authorization
string
用户 Token
示例值:
Bearer sdsdfsdfsdff
x-authing-userpool-id
string
用户池 Token
示例值:
59f86b4832eb28071bdd9214
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
message
string
必需
data
array [object {9}]
必需
id
string
可选
createdAt
string
可选
updatedAt
string
可选
userId
string
可选
enable
boolean
可选
secret
string
可选
authenticatorType
string
可选
recoveryCode
string
可选
source
string
可选
示例
{
"code": 200,
"message": "获取 MFA Authenticator 成功",
"data": [
{
"id": "61de9108ba0dcb4136850be9",
"createdAt": "2022-01-12T08:27:52.235Z",
"updatedAt": "2022-01-17T09:28:00.472Z",
"userId": "5a597f35085a2000144a10ed",
"enable": false,
"secret": "KQTR6XTTCILXYMLB",
"authenticatorType": "totp",
"recoveryCode": "8889-b2de-9472-b565-7508-4f5a",
"source": "SELF"
}
]
}
最后修改时间: 3 年前