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 String
getAuthorizationServerURL()
String
getAuthorizationUrl(String serverURL)
Returns the authorization URLString
getAuthorizationUrl(javax.servlet.http.HttpServletRequest request)
Returns the authorization URLString
getClientId()
String
getClientSecret()
String
getDescription()
Long
getId()
List<String>
getScopes()
String
getServiceName()
String
getTokenServerURL()
String
getUserAuthorizationURL()
com.google.api.client.auth.oauth2.Credential
handleAuthorizationCallback(javax.servlet.http.HttpServletRequest request)
Handles the authorization response and stores the token(s)boolean
isEnabled()
boolean
isProviderAvailable()
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
setId(Long id)
void
setScopes(String... strings)
void
setServiceName(String serviceName)
void
setTokenServerURL(String tokenServerURL)
void
setUserAuthorizationURL(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
-
-