|
@@ -91,16 +91,22 @@ public class LdapSecurityConfig extends AbstractAuthSecurityConfig {
|
|
log.info("Active Directory support for LDAP has been enabled.");
|
|
log.info("Active Directory support for LDAP has been enabled.");
|
|
}
|
|
}
|
|
|
|
|
|
- http
|
|
|
|
|
|
+ return http
|
|
.authorizeExchange()
|
|
.authorizeExchange()
|
|
.pathMatchers(AUTH_WHITELIST)
|
|
.pathMatchers(AUTH_WHITELIST)
|
|
.permitAll()
|
|
.permitAll()
|
|
.anyExchange()
|
|
.anyExchange()
|
|
.authenticated()
|
|
.authenticated()
|
|
|
|
+
|
|
|
|
+ .and()
|
|
|
|
+ .formLogin()
|
|
|
|
+
|
|
.and()
|
|
.and()
|
|
- .httpBasic();
|
|
|
|
|
|
+ .logout()
|
|
|
|
|
|
- return http.csrf().disable().build();
|
|
|
|
|
|
+ .and()
|
|
|
|
+ .csrf().disable()
|
|
|
|
+ .build();
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|