spring security (3.0.x) and user impersonation

前端 未结 3 1481
Happy的楠姐
Happy的楠姐 2020-12-31 18:40

In my web application, there are times when an authenticated admin might want to impersonate another valid user of a system without having to know that user\'s password.

3条回答
  •  再見小時候
    2020-12-31 19:05

    If you want an admin user to be able to impersonate another user (eg for QA/Testing purposes), have a look at the SwitchUserFilter

    A decent example of the XML config you need is provided here

提交回复
热议问题