Spring Security 3.2.1 Multiple login forms with distinct WebSecurityConfigurerAdapters

后端 未结 4 2256
我寻月下人不归
我寻月下人不归 2020-12-15 02:05

I\'m using Spring Security 3.2.1.RELEASE with Spring MVC 4.0.4.RELEASE

I\'m trying to setup Spring Security for a web application that will have two distinct login

4条回答
  •  忘掉有多难
    2020-12-15 02:50

    Maybe this post could help you : Multiple login forms

    It's a different version of spring security but the same problem : only the first configuration is taken.

    It seems it has been solved by changing login-processing-url for one of the two login pages but people suggest to use the same url processing but a different layout using ViewResolver. It is a solution if you use the same mechanism to authenticate users (the authentication mechanism is the thing responsible for processing the credentials that the browser is sending).

    This post also seems to say that if you change your loginProcessingUrl you will succeed : Configuring Spring Security 3.x to have multiple entry points

提交回复
热议问题