If I pass in the following scope :
oidcConformant: true,
allowedConnections: 'Username-Password-Authentication'],
auth: {
redirectUrl: myConfig.callbackURL + 'pages/dashboard',
responseType: 'token id_token',
audience: `https://${myConfig.domain}/userinfo`,
params: {
scope: 'openid name email picture roles'
}
},
I am only getting this :
{"sub":"auth0|587a426c797fd715d804blabla","email":"blabla@gmail.com","emailVerified":true}
With the getProfile method I used to get everything I need based on the idToken. Now with the getUserProfile and based on the accesToken I am not able to retrieve everything.
If I pass in the profile scope which is not recommended. I am getting almost everything except a crucial part.
ROLES AND GROUPS they are missing.
{"sub":"auth0|587a426c797fd715d8040f27","name":"blabla@gmail.com","nickname":"apixxx","picture":"https://s.gravatar.com/avatar/10bc62166892f53bd05bcb2df4f2c424?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fap.png","updatedAt":"2017-01-19T18:18:44.752Z"}
How to get the roles and groups now from the Auth0 Authorization Extension?!!