Skip to content

Commit

Permalink
Use non-deprecated security method
Browse files Browse the repository at this point in the history
  • Loading branch information
bencalegari committed Jul 7, 2023
1 parent 3e775c8 commit ed2fcc4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer;
import org.springframework.security.web.SecurityFilterChain;
import org.springframework.web.filter.ForwardedHeaderFilter;

Expand All @@ -14,7 +15,7 @@ public class SecurityConfiguration {

@Bean
SecurityFilterChain securityFilterChain(HttpSecurity httpSecurity) throws Exception {
httpSecurity.formLogin().disable();
httpSecurity.formLogin(AbstractHttpConfigurer::disable);
return httpSecurity.build();
}

Expand Down

0 comments on commit ed2fcc4

Please sign in to comment.