Interface OAuthRegistrationService

All Known Implementing Classes:
OAuthRegistrationServiceImpl

public interface OAuthRegistrationService
  • Method Details

    • isRegistrationOnFly

      boolean isRegistrationOnFly(OAuthProviderType<? extends AccessTokenContext> oauthProviderType)
    • detectGateInUser

      org.exoplatform.services.organization.User detectGateInUser(javax.servlet.http.HttpServletRequest request, OAuthPrincipal<? extends AccessTokenContext> principal)
      attempts to detect if a user account already exists for current social network user
      Parameters:
      request -
      principal -
      Returns:
      existing user
    • createGateInUser

      org.exoplatform.services.organization.User createGateInUser(OAuthPrincipal<? extends AccessTokenContext> principal)
      Creates a new User with oAuth authenticated user attributes
      Parameters:
      principal - OAuthPrincipal of authenticated user
      Returns:
      newly created user
    • updateUserProfileAttributes

      void updateUserProfileAttributes(String username, OAuthProviderType<?> providerType) throws Exception
      Saves user OAuth profile attributes in UserProfile entity
      Parameters:
      username - existing User entity username attribute
      providerType - OAuthProviderType
      Throws:
      Exception - when error occurs while saving user profile
    • updateUserIdentityAvatar

      void updateUserIdentityAvatar(String username, OAuthPrincipal<? extends AccessTokenContext> principal)
      Saves User Avatar from oAuth Provider into user Identity
      Parameters:
      username - existing User entity username attribute
      principal - OAuthPrincipal of authenticated user