I have multipart web project. Web Admin part contains:
compile('org.springframework.boot:spring-boot-starter-web') compile("org.springframework.boot:spring-boot-starter-thymeleaf") compile("org.springframework.boot:spring-boot-starter-jetty") compile("org.springframework.boot:spring-boot-starter-actuator") Main project build file contains:
compile group: 'org.springframework', name: "spring-webmvc", version: springVersion compile(group: 'org.springframework.security', name: "spring-security-web", version: springSecurityVersion) { exclude(module: 'spring-jdbc') } Spring Boot application file:
@SpringBootApplication(exclude = {SecurityAutoConfiguration.class}) public class WebAdminApplication { public static void main(String[] args) { SpringApplication.run(WebAdminApplication.class, args); } } But when I'm doing http request to my admin part I'm getting user and password in my AuthenticationProvider:
auth.getPrincipal() -> user auth.getCredentials() -> caeebd3a-307b-4edf-8f2f-833fad9ebc00 How I can disable auto security?