Different user restrictions in same session

后端 未结 2 2067
深忆病人
深忆病人 2021-01-22 06:59

We\'re developing a website and we\'ve encountered this issue: for this website there are 2 types of users: the customer and an administrator. The administrator can see all prod

2条回答
  •  无人共我
    2021-01-22 07:22

    @Krt_Malta: If you are using Spring Security, then you don't need to have the administrator to log out and then log back in as a user. To accomplish that, you will need to configure SwitchUserFilter... it allows the user to switch from one role to another without the need to log out, which is what you want.

提交回复
热议问题