public class OneDriveOAuth2ServiceProvider extends AbstractLiveConnectOAuth2ServiceProvider
CODE_URL_PARAMETER, description, ERROR_URL_PARAMETER, HTTP_TRANSPORT, id, JSON_FACTORY, SCHEMA, serviceName, serviceUserStore, tokenStore, userAuthorizationURL
Constructor and Description |
---|
OneDriveOAuth2ServiceProvider() |
Modifier and Type | Method and Description |
---|---|
Function<String,org.nuxeo.onedrive.client.OneDriveAPI> |
getAPIInitializer()
Returns the
OneDriveAPI initializer which takes an access token. |
com.google.api.client.auth.oauth2.AuthorizationCodeFlow |
getAuthorizationCodeFlow() |
protected Optional<String> |
getOneDriveForBusinessResource() |
protected String |
getUserEmail(String accessToken) |
getServiceUser
getOrCreateServiceUser, getServiceUserId
getAuthorizationCode, 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 OneDriveOAuth2ServiceProvider()
protected String getUserEmail(String accessToken) throws IOException
getUserEmail
in class AbstractOAuth2UserEmailProvider
IOException
protected Optional<String> getOneDriveForBusinessResource()
public Function<String,org.nuxeo.onedrive.client.OneDriveAPI> getAPIInitializer()
OneDriveAPI
initializer which takes an access token.OneDriveAPI
initializer which takes an access token.public com.google.api.client.auth.oauth2.AuthorizationCodeFlow getAuthorizationCodeFlow()
getAuthorizationCodeFlow
in class NuxeoOAuth2ServiceProvider
Copyright © 2017 Nuxeo. All rights reserved.