layout: docs-default
用户信息 Endpoint
UserInfo endpoint 可以用来获取实体身份信息,它需要一个有效的访问令牌和至少'openid' 作用域.
请看 规格
例子
GET /connect/userinfo
Authorization: Bearer <access_token>
HTTP/1.1 200 OK
Content-Type: application/json
{
"sub": "248289761001",
"name": "Bob Smith",
"given_name": "Bob",
"family_name": "Smith",
"role": [
"user",
"admin"
]
}