diff --git a/shogun-proxy/src/main/java/de/terrestris/shogun/config/HttpProxyWebSecurityConfig.java b/shogun-proxy/src/main/java/de/terrestris/shogun/config/HttpProxyWebSecurityConfig.java index d91ada1d..c031b8a7 100644 --- a/shogun-proxy/src/main/java/de/terrestris/shogun/config/HttpProxyWebSecurityConfig.java +++ b/shogun-proxy/src/main/java/de/terrestris/shogun/config/HttpProxyWebSecurityConfig.java @@ -16,22 +16,19 @@ */ package de.terrestris.shogun.config; -import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.web.builders.HttpSecurity; -import org.springframework.security.web.SecurityFilterChain; @Configuration public class HttpProxyWebSecurityConfig implements DefaultWebSecurityConfig { - @Bean - public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { + @Override + public void customHttpConfiguration(HttpSecurity http) throws Exception { http .authorizeHttpRequests((auths) -> auths .anyRequest() .authenticated() ); - return http.build(); } }