Multi-login is an example of how to configure Spring Security so that we have different login pages for different URL path patterns. It also shows how to test such configuration. This project is described in one of my blog posts: bartslota.blogspot.com
mvn clean install
mvn spring-boot:run
mvnw spring-boot:run
./mvnw spring-boot:run
java -jar target/multi-login-0.0.1-SNAPSHOT.jar
- Regular home page: localhost:8080/regular/home
- Regular login page: localhost:8080/regular/login
- Special home page: localhost:8080/special/home
- Special login page: localhost:8080/special/login