Examples of SpringSocialProfile


Examples of org.socialsignin.springsocial.security.api.SpringSocialProfile

  @Override
  public UserDetails loadUserByUsername(String userName)
      throws UsernameNotFoundException {
    ConnectionRepository connectionRepository = usersConnectionRepository
        .createConnectionRepository(userName);
    SpringSocialProfile springSocialProfile = signUpService.getUserProfile(userName);
    List<Connection<?>> allConnections = getConnections(connectionRepository,userName);
    if (allConnections.size() > 0) {
       
        Authentication authentication = authenticationFactory
            .createAuthenticationForAllConnections(userName,
                springSocialProfile.getPassword(),
                allConnections);
        return new User(userName, authentication.getCredentials()
            .toString(), true, true, true, true,
            authentication.getAuthorities());
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.