Interface OAuth2ServiceProvider
- All Known Implementing Classes:
AbstractLiveConnectOAuth2ServiceProvider,AbstractOAuth2UserEmailProvider,BoxOAuth2ServiceProvider,GoogleOAuth2ServiceProvider,NuxeoOAuth2ServiceProvider
public interface OAuth2ServiceProvider
- Since:
- 7.3
-
Method Summary
Modifier and TypeMethodDescriptiongetAuthorizationUrl(String serverURL) Returns the authorization URLgetAuthorizationUrl(javax.servlet.http.HttpServletRequest request) Returns the authorization URLgetId()com.google.api.client.auth.oauth2.CredentialhandleAuthorizationCallback(javax.servlet.http.HttpServletRequest request) Handles the authorization response and stores the token(s)booleanbooleancom.google.api.client.auth.oauth2.CredentialloadCredential(String user) Loads a credential from the token storevoidsetAuthorizationServerURL(String authorizationServerURL) voidsetClientId(String clientId) voidsetClientSecret(String clientSecret) voidsetDescription(String description) voidsetEnabled(Boolean enabled) voidvoidvoidsetServiceName(String serviceName) voidsetTokenServerURL(String tokenServerURL) voidsetUserAuthorizationURL(String userAuthorizationURL)
-
Method Details
-
getAuthorizationUrl
Returns the authorization URL -
getAuthorizationUrl
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
Loads a credential from the token store -
setId
-
setDescription
- Since:
- 9.2
-
setAuthorizationServerURL
-
setTokenServerURL
-
setUserAuthorizationURL
- Since:
- 9.2
-
setServiceName
-
setClientId
-
setClientSecret
-
setScopes
-
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
-
getAuthorizationServerURL
String getAuthorizationServerURL() -
isEnabled
boolean isEnabled() -
setEnabled
-
isProviderAvailable
boolean isProviderAvailable()- Since:
- 7.4
-