I think a basic code example from auth0 team with a react implementation should help a lot of people using auth0, and providing impersonation, or something similar
cc @john.gateley @konrad.sopala @tyf @dominic1
Cf
Hello guys,
I have a question regarding user impersonation.
Since I saw that this functionality is deprecated from Auth0 side, I would like to ask you if you know what is the best way to achieve this?
I would like to be able to login from an admin account and see the customer view.
Any suggestions and guides will be welcome!
Regards
Hey there @aevlanov !
Let me check that and get back to you with the news soon!
Understanding that true user impersonation isn’t possible, my proposed solution to mimic impersonation by adding a claim to the JWT so that my JWT still has my user’s sub but it also has metadata that the app can reference to treat the admin as another user.
Is there a way to refresh a user’s JWT with mutated claims out of scope of their login? When I log in, my JWT might look like this:
{
"sub": "1234567890",
"name": "John Doe",
"iat": 1516239022
}
and then when I take an action to act…
Hello! Having trouble with User Impersonation.
We are doing this.
Logged in as User A in our software
Try impersonating User B
Login callback logs User A into the software instead of User B.
Any thoughts what could be the issue?