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

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

Introduction

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

Prototype

public AuthenticationManagerBuilder authenticationProvider(AuthenticationProvider authenticationProvider) 

Source Link

Document

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

Usage

From source file:com.github.djabry.platform.service.security.config.MethodSecurityConfig.java

@Autowired
public void registerAuthenticationProvider(AuthenticationManagerBuilder auth) throws Exception {
    auth.authenticationProvider(authenticationProvider);
    auth.userDetailsService(defaultUserDetailsService);

}

From source file:jp.pigumer.security.WebSecurityConfig.java

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

From source file:se.omegapoint.facepalm.client.config.SecurityConfig.java

@Override
public void configure(final AuthenticationManagerBuilder managerBuilder) throws Exception {
    managerBuilder.authenticationProvider(new DbAuthenticationProvider(userRepository));
}

From source file:com.github.cherimojava.orchidae.config.cfgSecurity.java

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

From source file:com.juliuskrah.multipart.security.SecurityConfig.java

@Inject
public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
    auth.authenticationProvider(authenticationProvider());
}

From source file:com.lennonjesus.auth.security.SecurityConfiguration.java

@Autowired
public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
    auth.authenticationProvider(securityAuthenticationProvider);
}

From source file:jp.pigumer.app.WebSecurityConfig.java

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

From source file:com.hp.autonomy.frontend.find.hod.beanconfiguration.InMemoryHodSecurity.java

@SuppressWarnings("ProhibitedExceptionDeclared")
@Override//from w  ww .j av  a  2s .  co  m
protected void configure(final AuthenticationManagerBuilder auth) throws Exception {
    auth.authenticationProvider(
            new DefaultLoginAuthenticationProvider(configService, FindRole.CONFIG.toString()));
    auth.authenticationProvider(new SingleUserAuthenticationProvider(configService, FindRole.ADMIN.toString()));
}

From source file:cz.muni.pa165.carparkapp.configuration.MySecurityConfig.java

@Autowired
protected void configure(AuthenticationManagerBuilder auth) throws Exception {
    auth.authenticationProvider(provider);
    //        for(EmployeeDTO e : service.getAllEmployees())
    //        {// w w  w  . j a  v  a2s .c o  m
    //            System.out.println(e);
    //            auth.inMemoryAuthentication()
    //                    .withUser(e.getUserName()).password(e.getPassword()).roles(e.getRole());
    //        }
    //        auth.userDetailsService(userDetailsService);
    //                
    //        auth
    //                .inMemoryAuthentication()
    //                .withUser("user").password("password").roles("USER").and()
    //                .withUser("admin").password("password").roles("ADMIN");
}

From source file:com.econcept.init.SecurityConfig.java

@Override
protected void configure(AuthenticationManagerBuilder pAuth) throws Exception {
    pAuth.authenticationProvider(mAuthenticationProvider);
}