We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dc856d commit 0ef27b3Copy full SHA for 0ef27b3
complete/src/main/java/com/example/authenticatingldap/WebSecurityConfig.java
@@ -16,10 +16,10 @@ public class WebSecurityConfig {
16
@Bean
17
public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
18
http
19
- .authorizeRequests()
+ .authorizeHttpRequests((authorize) -> authorize
20
.anyRequest().fullyAuthenticated()
21
- .and()
22
- .formLogin();
+ )
+ .formLogin(Customizer.withDefaults());
23
24
return http.build();
25
}
0 commit comments