Example usage for org.springframework.security.core.userdetails AuthenticationUserDetailsService interface-usage

List of usage examples for org.springframework.security.core.userdetails AuthenticationUserDetailsService interface-usage

Introduction

In this page you can find the example usage for org.springframework.security.core.userdetails AuthenticationUserDetailsService interface-usage.

Usage

From source file mx.edu.um.dii.general.service.UserDetailsServiceImpl.java

/**
 *
 * @author edermtz
 */
public class UserDetailsServiceImpl
        implements UserDetailsService, AuthenticationUserDetailsService<OpenIDAuthenticationToken> {

From source file mx.edu.um.eventosum.service.impl.UserDetailsServiceImpl.java

/**
 *
 * @author PC3
 */
@Service
public class UserDetailsServiceImpl extends BaseService

From source file org.jasig.portlet.survey.security.PortalPreAuthenticatedUserDetailsService.java

@Service
public class PortalPreAuthenticatedUserDetailsService implements AuthenticationUserDetailsService {

    @Override
    public UserDetails loadUserDetails(Authentication authentication) throws UsernameNotFoundException {
        UserDetails userDetails = (UserDetails) authentication.getPrincipal();

From source file org.callistasoftware.netcare.mvk.authentication.service.MvkPreAuthenticationService.java

public interface MvkPreAuthenticationService
        extends AuthenticationUserDetailsService<PreAuthenticatedAuthenticationToken> {

}

From source file com.rd.adchallenge.security.OpenIdUserDetailsService.java

/** 
 * Grant role USER for any user logged in through Open ID
 */
public class OpenIdUserDetailsService implements AuthenticationUserDetailsService<OpenIDAuthenticationToken> {
    public UserDetails loadUserDetails(OpenIDAuthenticationToken token) throws UsernameNotFoundException {
        return new User(token.getName(), "", AuthorityUtils.createAuthorityList("ROLE_USER"));

From source file org.mitre.provenance.openid.OpenId2AuthenticationUserDetailsService.java

public class OpenId2AuthenticationUserDetailsService
        implements AuthenticationUserDetailsService<OpenIDAuthenticationToken> {
    public UserDetails loadUserDetails(OpenIDAuthenticationToken auth) throws UsernameNotFoundException {
        Set<SimpleGrantedAuthority> authorities = new HashSet<SimpleGrantedAuthority>();
        authorities.add(new SimpleGrantedAuthority("ROLE_USER"));

From source file jp.pigumer.app.UserDetailsServiceImpl.java

@Service
public class UserDetailsServiceImpl
        implements AuthenticationUserDetailsService<PreAuthenticatedAuthenticationToken> {

    private static final Logger LOG = LoggerFactory.getLogger(UserDetailsServiceImpl.class);

From source file at.ac.univie.isc.asio.security.RoleUserService.java

/**
 * A user service that generates user details based on existing {@link Role roles}.
 * If an authentication token has a principal, which is equal to a role name the returned user
 * details will hold the authorities of that role.
 */
public final class RoleUserService<AUTH extends Authentication>

From source file org.cloudfoundry.identity.uaa.openid2.OpenIdUserDetailsService.java

/**
 * Custom UserDetailsService which accepts any OpenID user, "registering" new users in a map so they can be welcomed
 * back to the site on subsequent logins.
 * 
 * @author Luke Taylor
 * @author Dave Syer

From source file org.pac4j.springframework.security.authentication.CopyRolesUserDetailsService.java

/**
 * This service copies roles creates user details containing authorities based on the roles from the token's
 * userProfile.
 *
 * @author Karel Vervaeke
 * @since 1.2.4