sso 检测登录态
GET
/cas/session
请求参数
Cookie 参数
authing_session
string
可选
示例值:
s%3A594D7KjGtUeudyZ6P06caxODTMBoYXE9.z0nB110i75UvpgJxkYZGPACrXByT6WcTeaIdqZhJkaI
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://core.authing.cn/cas/session'
返回响应
🟢200成功
application/json
Body
session
object
必需
_id
string
必需
cookie
object
必需
appId
string
必需
type
string
必需
userId
string
必需
userInfo
object
必需
thirdPartyIdentity
object
必需
id
string
必需
createdAt
string
必需
updatedAt
string
必需
userPoolId
string
必需
isRoot
boolean
必需
status
string
必需
oauth
null
必需
email
string
必需
phone
null
必需
username
string
必需
unionid
null
必需
openid
null
必需
nickname
null
必需
company
null
必需
photo
string
必需
browser
null
必需
device
null
必需
password
string
必需
salt
string
必需
loginsCount
integer
必需
lastIp
string
必需
name
string
必需
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
null
必需
signedUp
string
必需
externalId
null
必需
mainDepartmentId
string
必需
mainDepartmentCode
string
必需
lastMfaTime
null
必需
passwordSecurityLevel
null
必需
resetPasswordOnFirstLogin
boolean
必需
syncExtInfo
null
必需
phoneCountryCode
null
必需
lastIP
string
必需
token
string
必需
tokenExpiredAt
string
必需
_id
string
必需
registerMethod
string
必需
registerInClient
string
必需
metadata
object
必需
示例
{
"session": {
"_id": "594D7KjGtUeudyZ6P06caxODTMBoYXE9",
"cookie": {
"originalMaxAge": 1209599997,
"expires": "2022-01-25T11:45:00.884Z",
"secure": false,
"httpOnly": true,
"path": "/",
"sameSite": "lax"
},
"appId": "6138204c194f27599a163da7",
"type": "oidc",
"userId": "5a597f35085a2000144a10ed"
},
"userInfo": {
"thirdPartyIdentity": {
"provider": null,
"refreshToken": null,
"accessToken": null,
"scope": null,
"expiresIn": null,
"updatedAt": null
},
"id": "5a597f35085a2000144a10ed",
"createdAt": "2021-09-08T02:30:36.194Z",
"updatedAt": "2022-01-06T08:08:30.433Z",
"userPoolId": "59f86b4832eb28071bdd9214",
"isRoot": true,
"status": "Activated",
"oauth": null,
"email": "root@authing.cn",
"phone": null,
"username": "root",
"unionid": null,
"openid": null,
"nickname": null,
"company": null,
"photo": "https://files.authing.co/authing-console/default-user-avatar.png",
"browser": null,
"device": null,
"password": "1b6d4d10e6796e7e6a1264fda709e64d",
"salt": "eZHMHdBGOESdsOI8jCDcCGVZMA8qay",
"loginsCount": 13,
"lastIp": "::1",
"name": "xiaoliu",
"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": [
"offcial:import"
],
"secretInfo": null,
"emailVerified": false,
"phoneVerified": false,
"lastLogin": "2022-01-06T08:08:30.421Z",
"blocked": false,
"isDeleted": false,
"sendSmsCount": 0,
"sendSmsLimitCount": 1000,
"encryptedPassword": null,
"signedUp": "2021-09-08T02:30:36.194Z",
"externalId": null,
"mainDepartmentId": "",
"mainDepartmentCode": "",
"lastMfaTime": null,
"passwordSecurityLevel": null,
"resetPasswordOnFirstLogin": false,
"syncExtInfo": null,
"phoneCountryCode": null,
"lastIP": "::1",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1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hdXRoaW5nLmNuIiwidXNlcm5hbWUiOiJyb290IiwidW5pb25pZCI6bnVsbCwib3BlbmlkIjpudWxsLCJjbGllbnRJZCI6IjU5Zjg2YjQ4MzJlYjI4MDcxYmRkOTIxNCJ9LCJ1c2VycG9vbF9pZCI6IjU5Zjg2YjQ4MzJlYjI4MDcxYmRkOTIxNCIsImF1ZCI6IjYxMzgyMDRjMTk0ZjI3NTk5YTE2M2RhNyIsImV4cCI6MTY0MjY2NjExMCwiaWF0IjoxNjQxNDU2NTEwLCJpc3MiOiJodHRwOi8vY29uc29sZS5hdXRoaW5nLmxvY2FsaG9zdDozMDAwL29pZGMifQ.v_RmwiORW4Q9fGR787XSAY5lqZW79M1k-2x3IPCvy9c",
"tokenExpiredAt": "2022-01-20T08:08:30.408Z",
"_id": "5a597f35085a2000144a10ed",
"registerMethod": "offcial:import",
"registerInClient": "59f86b4832eb28071bdd9214",
"metadata": {
"cip": "erre"
}
}
}
修改于 2022-01-18 10:21:57