检验二次验证 MFA 邮箱验证码
POST
/api/v2/applications/mfa/email/verify请求头 Authorization:填写 MFA Token,在登录后返回的响应数据里
请求参数
Header 参数
x-authing-userpool-id
string
用户池 ID
示例值:
59f86b4832eb28071bdd9214
Authorization
string
必需
MFA Token,登录返回的响应中获取
示例值:
token
Body 参数application/json
email
string
邮箱号
code
string
邮箱验证码
示例
{
"email": "string",
"code": "string"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
message
string
必需
data
object
必需
thirdPartyIdentity
object
必需
id
string
必需
createdAt
string
必需
updatedAt
string
必需
userPoolId
string
必需
isRoot
boolean
必需
status
string
必需
oauth
null
必需
email
string
必需
phone
null
必需
username
null
必需
unionid
null
必需
openid
null
必需
nickname
null
必需
company
null
必需
photo
string
必需
browser
string
必需
device
string
必需
password
string
必需
salt
string
必需
loginsCount
integer
必需
lastIp
string
必需
name
null
必需
givenName
null
必需
familyName
null
必需
middleName
null
必需
profile
null
必需
preferredUsername
null
必需
website
null
必需
gender
string
必需
birthdate
null
必需
zoneinfo
null
必需
locale
null
必需
address
null
必需
formatted
null
必需
streetAddress
null
必需
locality
null
必需
region
null
必需
postalCode
null
必需
city
null
必需
province
null
必需
country
null
必需
registerSource
array[string]
必需
secretInfo
null
必需
emailVerified
boolean
必需
phoneVerified
boolean
必需
lastLogin
string
必需
blocked
boolean
必需
isDeleted
boolean
必需
sendSmsCount
integer
必需
sendSmsLimitCount
integer
必需
encryptedPassword
string
必需
signedUp
string
必需
externalId
null
必需
mainDepartmentId
null
必需
mainDepartmentCode
null
必需
lastMfaTime
null
必需
passwordSecurityLevel
integer
必需
resetPasswordOnFirstLogin
boolean
必需
syncExtInfo
null
必需
phoneCountryCode
string
必需
lastIP
string
必需
token
string
必需
tokenExpiredAt
string
必需
identities
array[string]
必需
customData
object
必需
positions
array[string]
必需
示例
{
"code": 200,
"message": "二次验证成功",
"data": {
"thirdPartyIdentity": {
"provider": null,
"refreshToken": null,
"accessToken": null,
"scope": null,
"expiresIn": null,
"updatedAt": null
},
"id": "613f197ea1cbd802a49bdb27",
"createdAt": "2021-09-13T09:27:26.414Z",
"updatedAt": "2022-01-18T08:11:39.754Z",
"userPoolId": "59f86b4832eb28071bdd9214",
"isRoot": false,
"status": "Activated",
"oauth": null,
"email": "hibzliu123@163.com",
"phone": null,
"username": null,
"unionid": null,
"openid": null,
"nickname": null,
"company": null,
"photo": "https://files.authing.co/authing-console/default-user-avatar.png",
"browser": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36",
"device": "Mac OS",
"password": "f336ae767c56e6e9ef33ff06d787d2fb",
"salt": "99g94bh35l9",
"loginsCount": 18,
"lastIp": "::1",
"name": null,
"givenName": null,
"familyName": null,
"middleName": null,
"profile": null,
"preferredUsername": null,
"website": null,
"gender": "U",
"birthdate": null,
"zoneinfo": null,
"locale": null,
"address": null,
"formatted": null,
"streetAddress": null,
"locality": null,
"region": null,
"postalCode": null,
"city": null,
"province": null,
"country": null,
"registerSource": [
"basic:email"
],
"secretInfo": null,
"emailVerified": true,
"phoneVerified": false,
"lastLogin": "2022-01-18T08:11:39.746Z",
"blocked": false,
"isDeleted": false,
"sendSmsCount": 0,
"sendSmsLimitCount": 1000,
"encryptedPassword": "gHHC5qnc6l12y3KXvUmAZfltGf/Jc+17yuMkM12TyQmbQw99ntTFEOpTwhp/Zjpzzc2mGKBtoiwTjkGLnKAjqQfbpje46O+nyJXnUTX6SD69xYmM8CtZNcGw0N0qpPkbnkoC7wVk8dgH3PkZ65JSnVyH6zAnaN03w1/ujPX4fLw=",
"signedUp": "2021-09-13T09:27:26.414Z",
"externalId": null,
"mainDepartmentId": null,
"mainDepartmentCode": null,
"lastMfaTime": null,
"passwordSecurityLevel": 1,
"resetPasswordOnFirstLogin": false,
"syncExtInfo": null,
"phoneCountryCode": "+86",
"lastIP": "::1",
"token": "eyJhbGciOiJ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jpudWxsLCJlbWFpbCI6ImhpYnpsaXUxMjNAMTYzLmNvbSIsInVzZXJuYW1lIjpudWxsLCJ1bmlvbmlkIjpudWxsLCJvcGVuaWQiOm51bGwsImNsaWVudElkIjoiNTlmODZiNDgzMmViMjgwNzFiZGQ5MjE0In0sInVzZXJwb29sX2lkIjoiNTlmODZiNDgzMmViMjgwNzFiZGQ5MjE0IiwiYXVkIjoiNjFlNTA4ZjAwYWRiZjk1NDFjNmE3ZTkwIiwiZXhwIjoxNjQzNzAzMDk5LCJpYXQiOjE2NDI0OTM0OTksImlzcyI6Imh0dHA6Ly9xd3dlLmF1dGhpbmcubG9jYWxob3N0OjMwMDAvb2lkYyJ9.wQ3Om5tcdQYeF91ppStEolh4MEQlYCP1O_QVo9QgBW4",
"tokenExpiredAt": "2022-02-01T08:11:39.738Z",
"identities": [],
"customData": {},
"positions": []
}
}
最后修改时间: 3 年前