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.jiwhiz.SecurityConfig.java

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

From source file:de.sainth.recipe.backend.security.SecurityTokenAdapter.java

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

From source file:es.galvarez.rest.config.SpringSecurityConfiguration.java

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

From source file:org.apache.nifi.minifi.c2.security.SecurityConfiguration.java

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

From source file:fr.mycellar.configuration.SpringSecurityConfiguration.java

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

From source file:io.syndesis.runtime.SecurityConfiguration.java

@Override
protected void configure(AuthenticationManagerBuilder authenticationManagerBuilder) {
    authenticationManagerBuilder.authenticationProvider(authenticationProvider());
}

From source file:com.hp.autonomy.frontend.find.idol.beanconfiguration.IdolSecurity.java

@SuppressWarnings("ProhibitedExceptionDeclared")
@Override/*from w w  w. j av  a2  s.c  om*/
protected void configure(final AuthenticationManagerBuilder auth) throws Exception {
    auth.authenticationProvider(
            new DefaultLoginAuthenticationProvider(configService, FindRole.CONFIG.toString()));

    for (final AuthenticationProvider authenticationProvider : idolSecurityCustomizer
            .getAuthenticationProviders()) {
        auth.authenticationProvider(authenticationProvider);
    }
}

From source file:com.mec.Security.WebSecurityConfig.java

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

From source file:com.allanditzel.dashboard.config.SecurityConfig.java

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

From source file:org.osiam.configuration.WebApplicationSecurity.java

@Override
protected void configure(final AuthenticationManagerBuilder auth) throws Exception {
    auth.authenticationProvider(internalAuthenticationProvider);
    if (osiamLdapAuthenticationProvider != null) {
        auth.authenticationProvider(osiamLdapAuthenticationProvider);
    }/*from   w w w.j  av  a 2s  . c o m*/
}