Full course available at https://www.codereviewvideos.com/cour...
In this video we will implement the ability to quickly Switch / Impersonate Users inside your Symfony application.
This feature is incredibly useful if one of your Users has a problem which is proving difficult to replicate, and you would like to be able to log in as that User and see the issue for yourself.
What's cool about being able to Impersonate a User in Symfony is that you won't need to reset their password, or know their password at all.
As long as you are logged in with a User account that has the required Role, you will be able to switch to, or impersonate any(*) User on your system.
- sometimes being able to impersonate any User is not what you would want. For example, having a helpdesk member being able to impersonate standard Users is good. Having that same helpdesk member being able to impersonate a Super Admin account? Baddddd. If you want to restrict this down further, start off with this post, and I also recommend Joshua's Security Deep Dive book.
https://codereviewvideos.com/course/g...
Watch video FOSUserBundle [9/15] - Impersonating a Different User online without registration, duration hours minute second in high quality. This video was added by user Code Review Videos 18 March 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 684 once and liked it 3 people.