Userinfo Endpoint

The UserInfo endpoint can be used to retrieve identity information about a user (see spec).

The caller needs to send a valid access token representing the user. Depending on the granted scopes, the UserInfo endpoint will return the mapped claims (at least the openid scope is required).

Sample Request #

GET https://auth.10npay.com/connect/userinfo
Authorization: Bearer <access_token>

Sample Response #

HTTP/1.1 200 OK
Content-Type: application/json{    “sub”: “10001”,    “email”: “mail@example.com“,    “tenant”: “1”,    “role”: [        “user”,        “admin”    ],    “preferred_username”: “mail@example.com“,    “name”: “Bob Smith”,    “email_verified”: “true”,    “phone_number”: “+1234567890”,    “phone_number_verified”: “true”} 

Powered by BetterDocs