Example usage for org.springframework.security.openid OpenIDAuthenticationProvider setAuthenticationUserDetailsService

List of usage examples for org.springframework.security.openid OpenIDAuthenticationProvider setAuthenticationUserDetailsService

Introduction

In this page you can find the example usage for org.springframework.security.openid OpenIDAuthenticationProvider setAuthenticationUserDetailsService.

Prototype

public void setAuthenticationUserDetailsService(
        AuthenticationUserDetailsService<OpenIDAuthenticationToken> userDetailsService) 

Source Link

Document

Used to load the UserDetails for the authenticated OpenID user.

Usage

From source file:com.erudika.para.security.SecurityConfig.java

/**
 * Configures the authentication providers
 *
 * @param auth a builder/*from  w w w .  ja v a 2  s.  c om*/
 * @throws Exception ex
 */
@Override
protected void configure(AuthenticationManagerBuilder auth) throws Exception {
    OpenIDAuthenticationProvider openidProvider = new OpenIDAuthenticationProvider();
    openidProvider.setAuthenticationUserDetailsService(new SimpleUserService());
    auth.authenticationProvider(openidProvider);

    RememberMeAuthenticationProvider rmeProvider = new RememberMeAuthenticationProvider(Config.APP_SECRET_KEY);
    auth.authenticationProvider(rmeProvider);
}