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.Credential
handleAuthorizationCallback
(javax.servlet.http.HttpServletRequest request) Handles the authorization response and stores the token(s)boolean
boolean
com.google.api.client.auth.oauth2.Credential
loadCredential
(String user) Loads a credential from the token storevoid
setAuthorizationServerURL
(String authorizationServerURL) void
setClientId
(String clientId) void
setClientSecret
(String clientSecret) void
setDescription
(String description) void
setEnabled
(Boolean enabled) void
void
void
setServiceName
(String serviceName) void
setTokenServerURL
(String tokenServerURL) void
setUserAuthorizationURL
(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
-