- Authing 开放 API
- 认证 API
- 管理 API
- 获取 Token
- 权限管理
- 管理分组
- 审计日志
- 资源管理
- 管理应用
- 管理用户
- 管理注册白名单
- 管理组织机构
- 管理角色
- 管理策略
- 个人中心
- 用户池管理
- 账号绑定
- 身份源
- 租户
- 租户成员
确认绑定 MFA
POST
/api/v2/mfa/totp/associate/confirm
请求参数
Header 参数
Authorization
string
用户 Token
示例值:
Bearer sdsdfsdfsdff
x-authing-userpool-id
string
用户池 Token
示例值:
59f86b4832eb28071bdd9214
Body 参数application/json
totp
string
安全码
authenticator_type
string
认证器类型
source
string
必需
示例
{
"totp": "234456",
"authenticator_type": "totp",
"source": "SELF"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://core.authing.cn/api/v2/mfa/totp/associate/confirm' \
--header 'Authorization: Bearer sdsdfsdfsdff ' \
--header 'x-authing-userpool-id: 59f86b4832eb28071bdd9214' \
--header 'Content-Type: application/json' \
--data-raw '{
"totp": "234456",
"authenticator_type": "totp",
"source": "SELF"
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
null
必需
示例
{
"code": 200,
"message": "TOTP MFA 绑定成功",
"data": null
}
修改于 2022-01-18 07:29:09