Hi,
When I make a call to /oauth/token with username and password I get an access token that, once decoded, contains something like this:
{
"iss": "https://...auth0.com/",
"sub": "auth0|...",
"aud": "https://...auth0.com/api/v2/",
"iat": 1563474178,
"exp": 1563560578,
"azp": "...",
"scope": "email read:current_user update:current_user_metadata delete:current_user_metadata create:current_user_metadata create:current_user_device_credentials delete:current_user_device_credentials update:current_user_identities",
"gty": "password"
}
When I log in to our website using the integrated OAuth web form, I get an access token that contains much more information, like this:
{
"https://.../roles": [
"employee"
],
"email": "...",
"name": "...",
"picture": "...",
"nickname": "...",
"last_password_reset": "2019-01-25T15:21:38.953Z",
"app_metadata": {
"roles": [
"employee"
]
},
"roles": [
"employee"
],
"email_verified": true,
"clientID": "...",
"updated_at": "2019-07-17T18:43:19.910Z",
"user_id": "auth0|...",
"identities": [
{
"user_id": "...",
"provider": "auth0",
"connection": "Username-Password-Authentication",
"isSocial": false
}
],
"created_at": "2018-09-17T12:43:07.133Z",
"https://.../roles": [
"employee"
],
"iss": "https://.../",
"sub": "auth0|...",
"aud": "...",
"iat": 1563389000,
"exp": 1563561800
}
How can I make the /oauth/token request return a “complete” access token? I’ve tried everything in the scope (email openid profile offline_access), and the id token returned when using profile includes some of that info, but I want the full access token, not a split up thing.
Thanks!