邮箱登录
测试中/api/v2/login/login-by-email
请求参数
Header 参数
x-authing-userpool-id
string
用户池 ID
示例值:
61b95d6c96d42670da568408
Body 参数application/json
input
object {2}
必需
email
string
邮箱
password
string
必需
加密后的密码,加密方式参考《密码加密帮助文档》
示例
{
"input": {
"email": "string",
"password": "string"
}
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSON
数据结构
code
integer
必需
message
string
必需
data
object {70}
必需
thirdPartyIdentity
object {6}
必需
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
null
必需
device
null
必需
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
string
必需
mainDepartmentCode
string
必需
lastMfaTime
null
必需
passwordSecurityLevel
integer
必需
resetPasswordOnFirstLogin
boolean
必需
syncExtInfo
null
必需
phoneCountryCode
null
必需
lastIP
string
必需
token
string
必需
tokenExpiredAt
string
必需
_id
string
必需
registerMethod
string
必需
registerInClient
string
必需
decryptedToken
object {13}
必需
arn
string
必需
customData
array [object {4}]
必需
示例
{
"code": 200,
"message": "成功",
"data": {
"thirdPartyIdentity": {
"provider": null,
"refreshToken": null,
"accessToken": null,
"scope": null,
"expiresIn": null,
"updatedAt": null
},
"id": "61d53903cb1a30bff1f691f6",
"createdAt": "2022-01-05T06:21:55.396Z",
"updatedAt": "2022-01-24T04:05:57.452Z",
"userPoolId": "61b95d6c96d42670da568408",
"isRoot": false,
"status": "Activated",
"oauth": null,
"email": "1@qq.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": null,
"device": null,
"password": "02e398db5ed88e7231306bc9c3874a68",
"salt": "3lap909ookp4",
"loginsCount": 2,
"lastIp": "::ffff:127.0.0.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": false,
"phoneVerified": false,
"lastLogin": "2022-01-24T04:05:57.435Z",
"blocked": false,
"isDeleted": false,
"sendSmsCount": 0,
"sendSmsLimitCount": 1000,
"encryptedPassword": "lzRZjPhvMRge4igeivUaDYli8HXAP1qCeY+7NFVX55xY8nK5R8MEYhWiX/HrB9GecwdHCMvP2xUFXNoiOxoSO5Oc4z/+K57CIgM05PLyNkG5et3hXBgNKBMXTItlTJgQ4GiH8DA3MgP4qPTq1yFsieaS9V1jI7OuOFst97H1kEc=",
"signedUp": "2022-01-05T06:21:55.396Z",
"externalId": null,
"mainDepartmentId": "61d697bbddb85f749e19830d",
"mainDepartmentCode": "6437",
"lastMfaTime": null,
"passwordSecurityLevel": 1,
"resetPasswordOnFirstLogin": false,
"syncExtInfo": null,
"phoneCountryCode": null,
"lastIP": "::ffff:127.0.0.1",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7InR5cGUiOiJ1c2VyIiwidXNlclBvb2xJZCI6IjYxYjk1ZDZjOTZkNDI2NzBkYTU2ODQwOCIsImFwcElkIjpudWxsLCJhcm4iOiJhcm46Y246YXV0aGluZzo2MWI5NWQ2Yzk2ZDQyNjcwZGE1Njg0MDg6dXNlcjo2MWQ1MzkwM2NiMWEzMGJmZjFmNjkxZjYiLCJpZCI6IjYxZDUzOTAzY2IxYTMwYmZmMWY2OTFmNiIsInVzZXJJZCI6IjYxZDUzOTAzY2IxYTMwYmZmMWY2OTFmNiIsIl9pZCI6IjYxZDUzOTAzY2IxYTMwYmZmMWY2OTFmNiIsInBob25lIjpudWxsLCJlbWFpbCI6IjFAcXEuY29tIiwidXNlcm5hbWUiOm51bGwsInVuaW9uaWQiOm51bGwsIm9wZW5pZCI6bnVsbCwiY2xpZW50SWQiOiI2MWI5NWQ2Yzk2ZDQyNjcwZGE1Njg0MDgifSwiaWF0IjoxNjQyOTk3MTU3LCJleHAiOjE2NDQyOTMxNTd9.b43eGJsUBOTGDbObRWhcfaR4MmDbVBnqk_v5m8bIzmI",
"tokenExpiredAt": "2022-02-08T04:05:57.422Z",
"_id": "61d53903cb1a30bff1f691f6",
"registerMethod": "basic:email",
"registerInClient": "61b95d6c96d42670da568408",
"decryptedToken": {
"type": "user",
"userPoolId": "61b95d6c96d42670da568408",
"appId": null,
"arn": "arn:cn:authing:61b95d6c96d42670da568408:user:61d53903cb1a30bff1f691f6",
"id": "61d53903cb1a30bff1f691f6",
"userId": "61d53903cb1a30bff1f691f6",
"_id": "61d53903cb1a30bff1f691f6",
"phone": null,
"email": "1@qq.com",
"username": null,
"unionid": null,
"openid": null,
"clientId": "61b95d6c96d42670da568408"
},
"arn": "arn:cn:authing:61b95d6c96d42670da568408:user:61d53903cb1a30bff1f691f6",
"customData": [
{
"key": "sdfsdfsdf",
"value": "333444",
"dataType": "STRING",
"label": "第一个自定义字段"
},
{
"key": "swe",
"value": "111222",
"dataType": "STRING",
"label": "第二个自定义字段"
}
]
}
}
修改时间 2 年前