Class OAuthRegistrationServicesImpl

    • 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

      All Methods Instance Methods Concrete Methods 
      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)  
    • Constructor Detail

      • OAuthRegistrationServicesImpl

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

      • 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