Example usage for org.springframework.security.config.annotation.authentication.builders AuthenticationManagerBuilder userDetailsService

List of usage examples for org.springframework.security.config.annotation.authentication.builders AuthenticationManagerBuilder userDetailsService

Introduction

In this page you can find the example usage for org.springframework.security.config.annotation.authentication.builders AuthenticationManagerBuilder userDetailsService.

Prototype

public <T extends UserDetailsService> DaoAuthenticationConfigurer<AuthenticationManagerBuilder, T> userDetailsService(
        T userDetailsService) throws Exception 

Source Link

Document

Add authentication based upon the custom UserDetailsService that is passed in.

Usage

From source file:com.ueag.auth.WebSecurityConfig.java

@Autowired
public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
    auth.userDetailsService(userDetailsService).passwordEncoder(bCryptPasswordEncoder());
}

From source file:com.melayer.camzia.config.MeConfigWebSecurity.java

@Override
protected void configure(AuthenticationManagerBuilder auth) throws Exception {

    auth.userDetailsService(serviceUserDetails);
}

From source file:spring.SecurityConfig.java

@Autowired
public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
    auth.userDetailsService(logServise).passwordEncoder(new Md5PasswordEncoder());
}

From source file:ca.qhrtech.security.BGLAuthenticationConfiguration.java

@Override
public void init(AuthenticationManagerBuilder auth) throws Exception {
    auth.userDetailsService(userDetailsService()).passwordEncoder(new BCryptPasswordEncoder());
}

From source file:com.tamnd2.basicwebapp.security.SecurityConfig.java

@Autowired
public void configAuthBuilder(AuthenticationManagerBuilder builder) throws Exception {
    builder.userDetailsService(userDetailService);
}

From source file:com.gtp.tradeapp.configuration.WebSecurityConfiguration.java

@Override
protected void configure(AuthenticationManagerBuilder auth) throws Exception {
    auth.userDetailsService(userDetailsService).passwordEncoder(new BCryptPasswordEncoder());
}

From source file:rzd.vivc.documentexamination.configuration.WebSecurityConfig.java

@Override
protected void configure(AuthenticationManagerBuilder auth) throws Exception {
    auth.userDetailsService(new UserService(accountRepository));
}

From source file:capital.scalable.restdocs.example.security.WebSecurityConfiguration.java

@Override
protected void configure(AuthenticationManagerBuilder auth) throws Exception {
    auth.userDetailsService(userDetailsService);
}

From source file:com.banco.config.SecurityConfig.java

@Autowired
protected void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
    auth.userDetailsService(userDetailsService());
}

From source file:bookmarks.WebSecurityConfiguration.java

@Override
public void init(AuthenticationManagerBuilder auth) throws Exception {
    auth.userDetailsService(userDetailsService());
}