public interface OAuth2ServiceProvider
Modifier and Type | Method and Description |
---|---|
String |
getAuthorizationServerURL() |
String |
getAuthorizationUrl(javax.servlet.http.HttpServletRequest request)
Returns the authorization URL
|
String |
getAuthorizationUrl(String serverURL)
Returns the authorization URL
|
String |
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 store
|
void |
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) |
String getAuthorizationUrl(javax.servlet.http.HttpServletRequest request)
String getAuthorizationUrl(String serverURL)
com.google.api.client.auth.oauth2.Credential handleAuthorizationCallback(javax.servlet.http.HttpServletRequest request)
com.google.api.client.auth.oauth2.Credential loadCredential(String user)
void setDescription(String description)
void setAuthorizationServerURL(String authorizationServerURL)
void setTokenServerURL(String tokenServerURL)
void setUserAuthorizationURL(String userAuthorizationURL)
void setServiceName(String serviceName)
void setClientId(String clientId)
void setClientSecret(String clientSecret)
String getServiceName()
String getDescription()
String getTokenServerURL()
String getUserAuthorizationURL()
String getClientId()
String getClientSecret()
String getAuthorizationServerURL()
boolean isEnabled()
void setEnabled(Boolean enabled)
boolean isProviderAvailable()
Copyright © 2018 Nuxeo. All rights reserved.