Skip to content

Commit

Permalink
Fix for #51
Browse files Browse the repository at this point in the history
Update the code to avoid deprecated methods.

Thanks for Steve Reisenberg for puzzling out the solution.
  • Loading branch information
Jay Bryant committed Jan 9, 2024
1 parent 3dc856d commit 0ef27b3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ public class WebSecurityConfig {
@Bean
public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
http
.authorizeRequests()
.authorizeHttpRequests((authorize) -> authorize
.anyRequest().fullyAuthenticated()
.and()
.formLogin();
)
.formLogin(Customizer.withDefaults());

return http.build();
}
Expand Down

0 comments on commit 0ef27b3

Please sign in to comment.