Make sure that you have the following information :
  1. OpenID Provider Metadata (autodiscovery URL) : Your admin can provide you with the URL which lives in https://${realm.url}/oauth/${realm.name}/.well-known/openid-configuration
  2. an access_token with the openid, profile, email, address, id

Userinfo request

The userinfo_endpoint accepts either GET or POST requests
POST /userinfo_endpoint HTTP/1.1
Host: oauth.server
Content-Type: application/x-www-form-urlencoded
Content-Length: 0
Authorization: Bearer AN_ACCESS_TOKEN
GET /userinfo_endpoint HTTP/1.1
Host: oauth.server
Content-Type: application/x-www-form-urlencoded
Authorization: Bearer AN_ACCESS_TOKEN

Userinfo response

The response of the userinfoendpoint includes information about the user. Based on the scopes granted to the _access_token, you will receive the following parameters :
HTTP/1.1 200 OK
Content-Type: application/json
Cache-Control: no-store
Pragma: no-cache
{
"iss": "https://openid.provider",
"aud": "YOUR_CLIENT_ID",
"iat": 1599212524,
"nbf": 1599212524,
"exp": 1599216524,
"sub": "jane.doe.2134567781",
"name": "Jane Doe",
"given_name": "Jane",
"family_name": "Doe",
"profile": "https://openid.provider/users/jd.32454354"
}