404labfr / laravel-impersonate

Laravel Impersonate is a plugin that allows you to authenticate as your users.
https://marceau.casals.fr
2k stars 202 forks source link

Cross domnain impersonation #184

Open valkedev opened 1 year ago

valkedev commented 1 year ago

Hello, my project is multidomain. Not just subdomains but absolutely different domains. Admin is on main domain but he also should be able to impersonate users from another domains.

Any suggestions how i can impersonate with other domians? Thank you!

tonypartridge commented 1 year ago

You would need to use a JWT for this, then for the user you want to impersonate, get their JWT token and open a new tab with a JWT Authenticated route.