org.springframework.security.core.userdetails.AuthenticationUserDetailsService Java Examples

The following examples show how to use org.springframework.security.core.userdetails.AuthenticationUserDetailsService. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CasConfig.java    From Spring-Security-Third-Edition with MIT License 5 votes vote down vote up
@Bean
public AuthenticationUserDetailsService userDetailsService(){
    GrantedAuthorityFromAssertionAttributesUserDetailsService uds =
            new GrantedAuthorityFromAssertionAttributesUserDetailsService(
                    new String[]{"role"}
                    );
    return uds;
}
 
Example #2
Source File: SecurityConfig.java    From Spring-Security-Third-Edition with MIT License 5 votes vote down vote up
@Bean
    public PreAuthenticatedAuthenticationProvider preAuthAuthenticationProvider(
//            final AuthenticationUserDetailsService<PreAuthenticatedAuthenticationToken> authenticationUserDetailsService)
            final AuthenticationUserDetailsService authenticationUserDetailsService)
    {
        return new PreAuthenticatedAuthenticationProvider(){{
            setPreAuthenticatedUserDetailsService(authenticationUserDetailsService);
        }};
    }
 
Example #3
Source File: WildflyWebSecurityConfig.java    From taskana with Apache License 2.0 4 votes vote down vote up
@Bean
public AuthenticationUserDetailsService<PreAuthenticatedAuthenticationToken>
    authenticationUserDetailsService() {
  return new PreAuthenticatedAuthenticationTokenAuthenticationUserDetailsService();
}
 
Example #4
Source File: SecurityConfig.java    From Spring-Security-Third-Edition with MIT License 4 votes vote down vote up
@Bean
public PreAuthenticatedAuthenticationProvider preAuthAuthenticationProvider(final AuthenticationUserDetailsService authenticationUserDetailsService){
    return new PreAuthenticatedAuthenticationProvider(){{
        setPreAuthenticatedUserDetailsService(authenticationUserDetailsService);
    }};
}
 
Example #5
Source File: SecurityConfig.java    From Spring-Security-Third-Edition with MIT License 4 votes vote down vote up
@Bean
public PreAuthenticatedAuthenticationProvider preAuthAuthenticationProvider(final AuthenticationUserDetailsService authenticationUserDetailsService){
    return new PreAuthenticatedAuthenticationProvider(){{
        setPreAuthenticatedUserDetailsService(authenticationUserDetailsService);
    }};
}
 
Example #6
Source File: SecurityConfig.java    From Spring-Security-Third-Edition with MIT License 4 votes vote down vote up
@Bean
public PreAuthenticatedAuthenticationProvider preAuthAuthenticationProvider(final AuthenticationUserDetailsService authenticationUserDetailsService){
    return new PreAuthenticatedAuthenticationProvider(){{
        setPreAuthenticatedUserDetailsService(authenticationUserDetailsService);
    }};
}
 
Example #7
Source File: SecurityConfig.java    From Spring-Security-Third-Edition with MIT License 4 votes vote down vote up
@Bean
public PreAuthenticatedAuthenticationProvider preAuthAuthenticationProvider(final AuthenticationUserDetailsService authenticationUserDetailsService){
    return new PreAuthenticatedAuthenticationProvider(){{
        setPreAuthenticatedUserDetailsService(authenticationUserDetailsService);
    }};
}
 
Example #8
Source File: SecurityConfiguration.java    From demo-spring-security-cas with Apache License 2.0 4 votes vote down vote up
@Bean
public AuthenticationUserDetailsService<CasAssertionAuthenticationToken> customUserDetailsService() {
	return new CustomUserDetailsService(adminList());
}
 
Example #9
Source File: FederationAuthenticationProvider.java    From cxf-fediz with Apache License 2.0 4 votes vote down vote up
public AuthenticationUserDetailsService<FederationResponseAuthenticationToken>
getAuthenticationUserDetailsService() {
    return authenticationUserDetailsService;
}
 
Example #10
Source File: FederationAuthenticationProvider.java    From cxf-fediz with Apache License 2.0 4 votes vote down vote up
public void setAuthenticationUserDetailsService(
    AuthenticationUserDetailsService<FederationResponseAuthenticationToken> authenticationUserDetailsService) {
    this.authenticationUserDetailsService = authenticationUserDetailsService;
}