|
|
|
@ -34,10 +34,6 @@ import org.springframework.core.annotation.Order;
|
|
|
|
|
import org.springframework.security.config.Customizer;
|
|
|
|
|
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
|
|
|
|
|
import org.springframework.security.web.SecurityFilterChain;
|
|
|
|
|
import org.springframework.security.web.context.DelegatingSecurityContextRepository;
|
|
|
|
|
import org.springframework.security.web.context.HttpSessionSecurityContextRepository;
|
|
|
|
|
import org.springframework.security.web.context.RequestAttributeSecurityContextRepository;
|
|
|
|
|
import org.springframework.security.web.context.SecurityContextRepository;
|
|
|
|
|
import org.springframework.util.ClassUtils;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -71,8 +67,6 @@ public class ManagementWebSecurityAutoConfiguration {
|
|
|
|
|
}
|
|
|
|
|
http.formLogin(Customizer.withDefaults());
|
|
|
|
|
http.httpBasic(Customizer.withDefaults());
|
|
|
|
|
http.setSharedObject(SecurityContextRepository.class, new DelegatingSecurityContextRepository(
|
|
|
|
|
new RequestAttributeSecurityContextRepository(), new HttpSessionSecurityContextRepository()));
|
|
|
|
|
return http.build();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|