Interface OAuth2ServiceProvider

All Known Implementing Classes:
AbstractLiveConnectOAuth2ServiceProvider, AbstractOAuth2UserEmailProvider, BoxOAuth2ServiceProvider, GoogleOAuth2ServiceProvider, NuxeoOAuth2ServiceProvider

public interface OAuth2ServiceProvider
Since:
7.3
  • Method Details

    • getAuthorizationUrl

      String getAuthorizationUrl(javax.servlet.http.HttpServletRequest request)
      Returns the authorization URL
    • getAuthorizationUrl

      String getAuthorizationUrl(String serverURL)
      Returns the authorization URL
      Since:
      9.2
    • handleAuthorizationCallback

      com.google.api.client.auth.oauth2.Credential handleAuthorizationCallback(javax.servlet.http.HttpServletRequest request)
      Handles the authorization response and stores the token(s)
    • loadCredential

      com.google.api.client.auth.oauth2.Credential loadCredential(String user)
      Loads a credential from the token store
    • setId

      void setId(Long id)
    • setDescription

      void setDescription(String description)
      Since:
      9.2
    • setAuthorizationServerURL

      void setAuthorizationServerURL(String authorizationServerURL)
    • setTokenServerURL

      void setTokenServerURL(String tokenServerURL)
    • setUserAuthorizationURL

      void setUserAuthorizationURL(String userAuthorizationURL)
      Since:
      9.2
    • setServiceName

      void setServiceName(String serviceName)
    • setClientId

      void setClientId(String clientId)
    • setClientSecret

      void setClientSecret(String clientSecret)
    • setScopes

      void setScopes(String... strings)
    • getServiceName

      String getServiceName()
    • getId

      Long getId()
    • getDescription

      String getDescription()
      Since:
      9.2
    • getTokenServerURL

      String getTokenServerURL()
    • getUserAuthorizationURL

      String getUserAuthorizationURL()
      Since:
      9.2
    • getClientId

      String getClientId()
    • getClientSecret

      String getClientSecret()
    • getScopes

      List<String> getScopes()
    • getAuthorizationServerURL

      String getAuthorizationServerURL()
    • isEnabled

      boolean isEnabled()
    • setEnabled

      void setEnabled(Boolean enabled)
    • isProviderAvailable

      boolean isProviderAvailable()
      Since:
      7.4