public abstract class AbstractOAuth2UserEmailProvider extends NuxeoOAuth2ServiceProvider
OAuth2ServiceProvider that relies on the user's email as key.CODE_URL_PARAMETER, description, ERROR_URL_PARAMETER, HTTP_TRANSPORT, id, JSON_FACTORY, SCHEMA, serviceName, serviceUserStore, tokenStore, userAuthorizationURL| Constructor and Description | 
|---|
AbstractOAuth2UserEmailProvider()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected String | 
getOrCreateServiceUser(javax.servlet.http.HttpServletRequest request,
                      String accessToken)
Retrieves or creates a service user. 
 | 
protected String | 
getServiceUserId(String email)
Returns the userId to use for token entries. 
 | 
protected abstract String | 
getUserEmail(String accessToken)  | 
getAuthorizationCode, getAuthorizationCodeFlow, getAuthorizationServerURL, getAuthorizationUrl, getAuthorizationUrl, getCallbackUrl, getCallbackUrl, getClientId, getClientSecret, getCredentialDataStore, getDescription, getError, getId, getScopes, getServiceName, getServiceUserStore, getTokenServerURL, getUserAuthorizationURL, handleAuthorizationCallback, isEnabled, isProviderAvailable, loadCredential, setAuthorizationServerURL, setClientId, setClientSecret, setDescription, setEnabled, setId, setScopes, setServiceName, setTokenServerURL, setUserAuthorizationURLpublic AbstractOAuth2UserEmailProvider()
protected String getOrCreateServiceUser(javax.servlet.http.HttpServletRequest request, String accessToken) throws IOException
NuxeoOAuth2ServiceProvidergetOrCreateServiceUser in class NuxeoOAuth2ServiceProviderIOExceptionprotected String getServiceUserId(String email)
NuxeoOAuth2ServiceProvidergetServiceUserId in class NuxeoOAuth2ServiceProviderprotected abstract String getUserEmail(String accessToken) throws IOException
IOExceptionCopyright © 2019 Nuxeo. All rights reserved.