用 access_token 换取用户信息
GET
/oidc/me
请求参数
Header 参数
Authorization
string
Token
示例值:
Bearer token
示例代码
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/oidc/me' \
--header 'Authorization: Bearer token'
返回响应
🟢200成功
application/json
Body
sub
string
必需
phone_number
string
必需
phone_number_verified
boolean
必需
address
object
必需
country
null
必需
postal_code
null
必需
region
null
必需
formatted
null
必需
email
string | null
必需
email_verified
boolean
必需
birthdate
string | null
必需
family_name
string | null
必需
gender
string
必需
given_name
string | null
必需
locale
string | null
必需
middle_name
string | null
必需
name
string | null
必需
nickname
string | null
必需
picture
string
必需
preferred_username
string | null
必需
profile
string | null
必需
updated_at
string
必需
website
string | null
必需
zoneinfo
string | null
必需
示例
{
"sub": "61b17a652676b552e68fb2e7",
"phone_number": "13100000000",
"phone_number_verified": true,
"address": {
"country": null,
"postal_code": null,
"region": null,
"formatted": null
},
"email": null,
"email_verified": false,
"birthdate": null,
"family_name": null,
"gender": "U",
"given_name": null,
"locale": null,
"middle_name": null,
"name": null,
"nickname": null,
"picture": "https://files.authing.co/authing-console/default-user-avatar.png",
"preferred_username": null,
"profile": null,
"updated_at": "2022-01-17T09:57:51.032Z",
"website": null,
"zoneinfo": null
}
修改于 2022-01-18 07:29:31