-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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 an user when using REMOTE_USER #18406
Comments
REMOTE_USER is meant to be a stateless auth model. The browser sends the auth with each request. |
I think this should be considered as a documentation issue, which should explain the limitations of the feature |
I agree with @stof. I've proposed adding a note about this in the docs: symfony/symfony-docs#6423 Therefore, I'm closing this issue as "fixed". Thanks! |
Makes sense. I need to find another solution to fix this. It's important to impersonate in our REMOTE_USER based application :-) |
@bertoost did you ever find a solution? We're facing a similar issue. |
Tried different things with sessions and listeners but no luck.. we disabled this admin feature in our application:-( |
When switching user when you're using the REMOTE_USER setup, it will switch you back every time within a couple of seconds. It's not possible to swich user this way.
Tried to overwrite the security token etc. but that also ends in the same result.
The "impersonated" user does get an updated last login time (FOSUserBundle) in both situations, but the REMOTE_USER is still leading and I am still myself :-)
Anyone facing this issue?
Would be great to use Symfony's switch feature.
The text was updated successfully, but these errors were encountered: