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, setUserAuthorizationURL
public AbstractOAuth2UserEmailProvider()
protected String getOrCreateServiceUser(javax.servlet.http.HttpServletRequest request, String accessToken) throws IOException
NuxeoOAuth2ServiceProvider
getOrCreateServiceUser
in class NuxeoOAuth2ServiceProvider
IOException
protected String getServiceUserId(String email)
NuxeoOAuth2ServiceProvider
getServiceUserId
in class NuxeoOAuth2ServiceProvider
protected abstract String getUserEmail(String accessToken) throws IOException
IOException
Copyright © 2018 Nuxeo. All rights reserved.