Hi
I have a user in an Auth0 tenant that has the given_name and family_name profile attributes configured via the User Management API.
When I request a token for this user via the implicit flow the first time I get following claims:
{
"example.com/favorite_color": "test",
"example.com/test": "test",
"given_name": "John",
"family_name": "Smith",
"nickname": "john",
"name": "John Smith",
"picture": "...",
"updated_at": "2020-01-22T14:04:03.985Z",
"email": "john.smith@example.com",
"email_verified": true,
"iss": "....",
"sub": "auth0|5e26be6c21830d0f1b68643e",
"aud": "dWvjaYXGm51KzW8R17bT1spiZQjSjUsi",
"iat": 1579701844,
"exp": 1579737844,
"nonce": "NONCE"
}
(the "example.com/… claims come from a rule).
That’s working fine. However if I send another request via the implicit flow in the same browser session I get following claims:
{
"example.com/favorite_color": "test",
"example.com/test": "test",
"iss": "....",
"sub": "auth0|5e26be6c21830d0f1b68643e",
"aud": "dWvjaYXGm51KzW8R17bT1spiZQjSjUsi",
"iat": 1579702006,
"exp": 1579738006,
"nonce": "1234"
}
all the user profile claims are gone. Only the core claims and the claims coming from the rule
Note that this is not some kind of odd scenario. If a single page application is force-reloaded via the refresh button then it has no other choice but to request a new token via the authorization end point.
Why is this happening and how can I prevent it?
Best regards
Vasil