Package org.springframework.social.connect

Examples of org.springframework.social.connect.ConnectionRepository.updateConnection()


  private void updateConnections(SocialAuthenticationService<?> authService, SocialAuthenticationToken token, Authentication success) {
    if (updateConnections) {
      String userId = ((SocialUserDetails)success.getPrincipal()).getUserId();
      Connection<?> connection = token.getConnection();
      ConnectionRepository repo = getUsersConnectionRepository().createConnectionRepository(userId);
      repo.updateConnection(connection);
    }
  }
 
  private void addSignInAttempt(HttpSession session, Connection<?> connection) {
    session.setAttribute(ProviderSignInAttempt.SESSION_ATTRIBUTE, new ProviderSignInAttempt(connection, authServiceLocator, usersConnectionRepository));
View Full Code Here


  private void updateConnections(SocialAuthenticationService<?> authService, SocialAuthenticationToken token, Authentication success) {
    if (updateConnections) {
      String userId = ((SocialUserDetails)success.getPrincipal()).getUserId();
      Connection<?> connection = token.getConnection();
      ConnectionRepository repo = getUsersConnectionRepository().createConnectionRepository(userId);
      repo.updateConnection(connection);
    }
  }
 
  private void addSignInAttempt(HttpSession session, Connection<?> connection) {
    session.setAttribute(ProviderSignInAttempt.SESSION_ATTRIBUTE, new ProviderSignInAttempt(connection, authServiceLocator, usersConnectionRepository));
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.