How to impersonate user using SwitchUserFilter in Spring?
I do not have knowledge on Spring Impersonating user. I have gone through some sample code of configuration for impersonating user and noticed that SwitchUserFilter is used for this implementation. How to implement impersonate user using Spring SwitchUserFilter Filter and how does it works ? What is the internal flow of impersonating user ? In my application I am using spring security also. Can anyone please help me with simple description or any sample example to achieve this ? You first need to create an instance of SwitchUserFilter , like this: @Bean public SwitchUserFilter switchUserFilter