易盾一键登录
测试中
POST
/api/v2/ecConn/oneAuth/login
请求参数
Header 参数
x-authing-userpool-id
string
用户池 ID
示例值:
61b95d6c96d42670da568408
x-authing-app-id
string
应用 ID
示例值:
62356d37e1dc5bb66e108584
Body 参数application/json
token
string
必需
accessToken
string
必需
示例
{
"token": "string",
"accessToken": "string"
}
示例代码
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/ecConn/oneAuth/login' \
--header 'x-authing-app-id: 62356d37e1dc5bb66e108584' \
--header 'Content-Type: application/json' \
--data-raw '{
"token": "string",
"accessToken": "string"
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
id
string
必需
createdAt
string
必需
updatedAt
string
必需
userPoolId
string
必需
isRoot
boolean
必需
status
string
必需
oauth
null
必需
email
null
必需
phone
string
必需
username
string
必需
unionid
null
必需
openid
null
必需
nickname
string
必需
company
null
必需
photo
string
必需
browser
null
必需
device
null
必需
password
null
必需
salt
null
必需
loginsCount
integer
必需
lastIp
null
必需
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
必需
phoneCountryCode
null
必需
lastIP
null
必需
token
string
必需
tokenExpiredAt
string
必需
identities
array [object {16}]
必需
示 例
{
"code": 0,
"message": "string",
"data": {
"id": "string",
"createdAt": "string",
"updatedAt": "string",
"userPoolId": "string",
"isRoot": true,
"status": "string",
"oauth": null,
"email": null,
"phone": "string",
"username": "string",
"unionid": null,
"openid": null,
"nickname": "string",
"company": null,
"photo": "string",
"browser": null,
"device": null,
"password": null,
"salt": null,
"loginsCount": 0,
"lastIp": null,
"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": [
"string"
],
"secretInfo": null,
"emailVerified": true,
"phoneVerified": true,
"lastLogin": "string",
"blocked": true,
"isDeleted": true,
"phoneCountryCode": null,
"lastIP": null,
"token": "string",
"tokenExpiredAt": "string",
"identities": [
{
"id": "string",
"createdAt": "string",
"updatedAt": "string",
"userPoolId": "string",
"provider": "string",
"isSocial": true,
"extIdpId": "string",
"userId": "string",
"origianlProfile": null,
"userIdInIdp": "string",
"type": "string",
"userInfoInIdp": {
"nickname": "string",
"photo": "string",
"phone": "string",
"email": "string",
"gender": "string",
"blocked": true
},
"openid": null,
"accessToken": "string",
"refreshToken": null,
"syncIdentityProviderId": null
}
]
}
}
修改于 2022-07-01 08:51:33