Search in sources :

Example 1 with WebAnnoDaoAuthenticationProvider

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;
}
Also used : WebAnnoDaoAuthenticationProvider(de.tudarmstadt.ukp.clarin.webanno.security.WebAnnoDaoAuthenticationProvider) DaoAuthenticationProvider(org.springframework.security.authentication.dao.DaoAuthenticationProvider) WebAnnoDaoAuthenticationProvider(de.tudarmstadt.ukp.clarin.webanno.security.WebAnnoDaoAuthenticationProvider) Autowired(org.springframework.beans.factory.annotation.Autowired) Profile(org.springframework.context.annotation.Profile) Bean(org.springframework.context.annotation.Bean)

Aggregations

WebAnnoDaoAuthenticationProvider (de.tudarmstadt.ukp.clarin.webanno.security.WebAnnoDaoAuthenticationProvider)1 Autowired (org.springframework.beans.factory.annotation.Autowired)1 Bean (org.springframework.context.annotation.Bean)1 Profile (org.springframework.context.annotation.Profile)1 DaoAuthenticationProvider (org.springframework.security.authentication.dao.DaoAuthenticationProvider)1