use of de.tudarmstadt.ukp.clarin.webanno.security.WebAnnoDaoAuthenticationProvider in project webanno by webanno.
the class WebAnnoSecurity method internalAuthenticationProvider.
@Bean(name = "authenticationProvider")
@Profile("auto-mode-builtin")
@Autowired
public DaoAuthenticationProvider internalAuthenticationProvider(UserDetailsManager aUserDetailsService, PasswordEncoder aPasswordEncoder) {
DaoAuthenticationProvider authProvider = new WebAnnoDaoAuthenticationProvider();
authProvider.setUserDetailsService(aUserDetailsService);
authProvider.setPasswordEncoder(aPasswordEncoder);
return authProvider;
}
Aggregations