The /userinfo resta-pi is returning a different response

The /userinfo api is returning a different response ( then promised )

I am sharing the api response I am getting :

This is what I was promised :

The most likely reason for you only obtaining the sub claim in the response is that your application is only including scope=openid when starting the OIDC authentication request.

For OIDC compliant requests that endpoint will return the standard claims associated with the scopes that were requested (see Final: OpenID Connect Core 1.0 incorporating errata set 1). In other words, if you update the client application to request scope=openid profile email you’ll receive additional information.

Having said all of that I understand that the documentation for that endpoint could be much more clearer and the response sample could also be made inline to the now common scenario where requests are following the OIDC specification; I’ll report this to the documentation team.

1 Like

Hi @jmangelo ,
So how should I send this “scope” ?
As parameters in a GET-REQUEST?
In body as json (POST-REQUEST)
in headers ?? (GET )
Please point me towards the right direction in docs .

Hi @jmangelo ,
I was able to get the required user-data , using the scope: ‘openid email profile’ , in the auth0.WebAuth() method .

Are there any other scopes that I can use ?

What I got back from /userinfo : {
“sub”: “google-oauth2|2575749834579325793257”,
“given_name”: “apple”,
“family_name”: “apple”,
“nickname”: “apple_inc”,
“name”: “Apple Apple”,
“picture”: “”,
“locale”: “en”,
“updated_at”: “2019-01-01T07:10:31.450Z”,
“email”: “”,
“email_verified”: true

Thanks …

As mentioned in the previous link OpenID Connect also specifies the scopes address and phone.

1 Like

Thanks for the quick response @jmangelo
Happy day.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.