Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logout after impersonate #53

Open
accentinteractive opened this issue Jun 18, 2019 · 2 comments
Open

Logout after impersonate #53

accentinteractive opened this issue Jun 18, 2019 · 2 comments

Comments

@accentinteractive
Copy link

Hi, thank you creating this package. At first everything worked fine but later when I had to seperate admin users and normal users in different tables I ran into trouble. When I login as admin in Nova and impersonate a user it seems I get logged out and returned to the login screen.

The admin users have a "admins" database database, admin guard and are only used for Nova. The other users are just regular Laravel Users with the web guard. So what I'm trying to do is login to Nova as admin and impersonate a regular web user but that doesn't work.

Is it possible to use your impersonate package like this?

@giancanuz
Copy link

Hi,
I am actually in the same scenario and it works.
btw: I have a single database schema, but different tables for nova and regular users (users_nova and users).
No need to customize config here, but if I were you I'll try to publish config, enable multi-guard option and specify default_impersonator_guard (admins or web) and impersonator_guards (["admins","web"]), maybe playing around helps you to discover which is your problem.

@soap
Copy link

soap commented Apr 26, 2022

I am in the same situation. I have normal user that should be able to impersonate student (students table as provider). User can impersonate student but cannot reverse impersonate. It redirects back to login page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants