-
Notifications
You must be signed in to change notification settings - Fork 213
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
Impersonate is working perfectly on local, but logs user out on production #186
Comments
Usually a redirect to login means the user wasn't authorized to access the resource at that URL. (ie: So if all the application code is truly identical in both places, you may need to look into configuration differences between local and production in the areas of sessions, cookies, and other environmental factors. ... and/or dig into the code that this package uses to do the impersonation, and If you're writing tests for this area of your code, perhaps there's a situation you've not written tests for yet, like another angle or contributing factor not considered in the tests. Those are just a bunch of thoughts to hopefully help in your investigation... |
Thank you for your suggestions @drbyte ! I appreciate it. I found that when typing the urls out instead of hitting my buttons, that impersonation did work. Well kind of. It would log me out afterwards. #162 had a workaround in it that ended up being a solution though. |
I used similar and set the password for web and sanctum as different routes different guards and all was good. |
On my localhost, I've had no issues at all. I can impersonate users as expected.
Now that I'm on production and really need it though, I click my impersonate link which uses the routes for take/{id}
And it does a 302 redirect from
take/{id}
to the correct pageprojects
. But then it does another 302 redirect back to the login page.Nothing was written to my logs.
Any ideas why it's doing this. Or why might it be doing this on my production server?
The text was updated successfully, but these errors were encountered: