spring-security-ldap

multiple authentication mechanisms in a single app using java config

北城以北 提交于 2019-11-26 09:17:58
问题 Currently I have a single authentication mechanism in my application which is to use LDAP for authentication and authorization. My security configuration looks like this @Configuration @EnableWebMvcSecurity public class SecurityConfig extends WebSecurityConfigurerAdapter { @Override protected void configure(HttpSecurity http) throws Exception { http .csrf().disable() .authorizeRequests() .anyRequest().fullyAuthenticated() .and() .httpBasic(); } @Configuration protected static class