Requesting User Information

Upon receiving an Access Token, request user info by issuing a GET request from your backend to the userinfo_endpoint discovered earlier.

GET /userinfo HTTP/1.1
Host: mno.com 
Authorization: bearer {ACCESS_TOKEN}

The response contains JSON with the user information requested by your scopes and approved by the user.

{   “sub”:”mccmnc-1234567abcdefghijk”,
    “name”: {
        “value”:”Jane Doe”,
        “given_name”: “Jane”,
        “family_name”: “Doe”},
     “email”: {
        “value": “[email protected]”},
    “postal_code”: {
        “value”:“90210”},
    “phone”: {
        “value”:“+13101234567”}
}

Did this page help you?