Multiple login pages with spring security ※ Download: http://hatsmypergterp.tiogalo.ru/?dl&keyword=multiple+login+pages+with+spring+security&source=bitbin.it2 The SecurityContext within such an annotated test will contain an implementation of the authentication interface UsernamePasswordAuthenticationToken. Typically these implementations will determine the URL after login and perform a redirect to that URL. I replaced the xsd contained in spring-security-config-3. If I browse to this URL, the xsd loaded declares the attribute authentication-manager-ref to the http element, but the xsd in spring-security-config-3. We have three tests written here. Hi Robert, I used your sugestion and works fine. I need the pages to be distinct as they will be styled and accessed differently. We needed to have different login pages for different URLs being accessed within the same application. I north different login form, different url paths, be able to have a different authentication manager for each one too. This post also seems to say that if you change your loginProcessingUrl you will succeed : I also encountered this problem and found out that I missed the first filtering part. For project of Spring MVC App with multiple login forms. Application Requirement - There's a detailed tutorial here: I would use only one security:http, but register two UsernamePasswordLoginFilters. I just announced the new Spring Security 5 modules primarily focused on OAuth2 in the course: 1. Overview A common requirement for a web application is to redirect different types of users to different pages after login. This article will show how to quickly and safely implement this mechanism using Spring Security. The article is also building on top of the which deals with setting up the core MVC stuff necessary for the project. The Spring Security Configuration Spring Security provides a component that has the direct responsibility of deciding what to do after a successful authentication — the AuthenticationSuccessHandler. } } The parts of this configuration to focus on are the definition of t he custom authentication success handler bean and using the successHandler method to add the bean to the security configuration. And the equivalent xml configuration: 3. The Custom Authentication Success Handler Besides the AuthenticationSuccessHandler interface, Spring also provides a sensible default for this strategy component — the AbstractAuthenticationTargetUrlRequestHandler and a simple implementation — the SimpleUrlAuthenticationSuccessHandler. Typically these implementations will determine the URL after login and perform a redirect to that URL. Conclusion As always, the code presented in this article is available. This is a Maven based project, so it should be easy to import and run as it is. Hey Billy — so, the implementation of the Aut