Interface OAuth2ServiceProvider
-
- All Known Implementing Classes:
AbstractLiveConnectOAuth2ServiceProvider,AbstractOAuth2UserEmailProvider,BoxOAuth2ServiceProvider,GoogleOAuth2ServiceProvider,NuxeoOAuth2ServiceProvider
public interface OAuth2ServiceProvider- Since:
- 7.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetAuthorizationServerURL()StringgetAuthorizationUrl(String serverURL)Returns the authorization URLStringgetAuthorizationUrl(javax.servlet.http.HttpServletRequest request)Returns the authorization URLStringgetClientId()StringgetClientSecret()StringgetDescription()LonggetId()List<String>getScopes()StringgetServiceName()StringgetTokenServerURL()StringgetUserAuthorizationURL()com.google.api.client.auth.oauth2.CredentialhandleAuthorizationCallback(javax.servlet.http.HttpServletRequest request)Handles the authorization response and stores the token(s)booleanisEnabled()booleanisProviderAvailable()com.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)voidsetId(Long id)voidsetScopes(String... strings)voidsetServiceName(String serviceName)voidsetTokenServerURL(String tokenServerURL)voidsetUserAuthorizationURL(String userAuthorizationURL)
-
-
-
Method Detail
-
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()
-
getAuthorizationServerURL
String getAuthorizationServerURL()
-
isEnabled
boolean isEnabled()
-
setEnabled
void setEnabled(Boolean enabled)
-
isProviderAvailable
boolean isProviderAvailable()
- Since:
- 7.4
-
-