Class OAuthRegistrationServicesImpl

java.lang.Object
org.exoplatform.oauth.service.impl.OAuthRegistrationServicesImpl
All Implemented Interfaces:
OAuthRegistrationServices

public class OAuthRegistrationServicesImpl extends Object implements OAuthRegistrationServices
  • Constructor Summary

    Constructors
    Constructor
    Description
    OAuthRegistrationServicesImpl(org.exoplatform.container.xml.InitParams initParams, org.exoplatform.services.organization.OrganizationService orgService, org.exoplatform.social.core.manager.IdentityManager identityManager)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.exoplatform.services.organization.User
    createGateInUser(org.gatein.security.oauth.spi.OAuthPrincipal<? extends org.gatein.security.oauth.spi.AccessTokenContext> principal)
     
    org.exoplatform.services.organization.User
    detectGateInUser(javax.servlet.http.HttpServletRequest request, org.gatein.security.oauth.spi.OAuthPrincipal<? extends org.gatein.security.oauth.spi.AccessTokenContext> principal)
    attempts to detect if a user account already exists for current social network user
    boolean
    isRegistrationOnFly(org.gatein.security.oauth.spi.OAuthProviderType<? extends org.gatein.security.oauth.spi.AccessTokenContext> oauthProviderType)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OAuthRegistrationServicesImpl

      public OAuthRegistrationServicesImpl(org.exoplatform.container.xml.InitParams initParams, org.exoplatform.services.organization.OrganizationService orgService, org.exoplatform.social.core.manager.IdentityManager identityManager)
  • Method Details

    • isRegistrationOnFly

      public boolean isRegistrationOnFly(org.gatein.security.oauth.spi.OAuthProviderType<? extends org.gatein.security.oauth.spi.AccessTokenContext> oauthProviderType)
      Specified by:
      isRegistrationOnFly in interface OAuthRegistrationServices
    • detectGateInUser

      public org.exoplatform.services.organization.User detectGateInUser(javax.servlet.http.HttpServletRequest request, org.gatein.security.oauth.spi.OAuthPrincipal<? extends org.gatein.security.oauth.spi.AccessTokenContext> principal)
      Description copied from interface: OAuthRegistrationServices
      attempts to detect if a user account already exists for current social network user
      Specified by:
      detectGateInUser in interface OAuthRegistrationServices
      Returns:
    • createGateInUser

      public org.exoplatform.services.organization.User createGateInUser(org.gatein.security.oauth.spi.OAuthPrincipal<? extends org.gatein.security.oauth.spi.AccessTokenContext> principal)
      Specified by:
      createGateInUser in interface OAuthRegistrationServices