I’m working with the quick guide Symfony PHP. While intercepting the responses in the Auth0 flow I discovered something I dont quite understand. The bundle is configured to use scopes
scope: "openid email"
And right enough if I inspect the id_token
on jtw.io it only showed the scoped details of the user. What is baffling is I also see an object derived from the class HWI\Bundle\OAuthBundle\OAuth\Response\PathUserResponse
that contains the whole user profile. All data available. When I try calling the https://{{auth0_domain}}/userinfo
with the access_token
I get the whole user profile and not the scope I would expect from an access_token
with scope. Am I missing something? I thought scopes limited the data returned from using an access_token
.
Calling https://{{auth0_domain}}/tokeninfo
with the scoped id_token
seems to return the whole user as well.