public class OneDriveAuthorizationCodeFlow extends com.google.api.client.auth.oauth2.AuthorizationCodeFlow
AuthorizationCodeFlow
as OneDrive for Business needs the resource parameter for
token and refresh token requests. Furthermore their response don't follow OAuth standard for expires_in field. See
https://github.com/google/google-oauth-java-client/issues/62Modifier and Type | Class and Description |
---|---|
static class |
OneDriveAuthorizationCodeFlow.Builder |
Modifier | Constructor and Description |
---|---|
protected |
OneDriveAuthorizationCodeFlow(OneDriveAuthorizationCodeFlow.Builder builder) |
Modifier and Type | Method and Description |
---|---|
com.google.api.client.auth.oauth2.Credential |
loadCredential(String userId) |
com.google.api.client.auth.oauth2.AuthorizationCodeTokenRequest |
newTokenRequest(String authorizationCode) |
createAndStoreCredential, getAuthorizationServerEncodedUrl, getClientAuthentication, getClientId, getClock, getCredentialDataStore, getCredentialStore, getJsonFactory, getMethod, getRefreshListeners, getRequestInitializer, getScopes, getScopesAsString, getTokenServerEncodedUrl, getTransport, newAuthorizationUrl
protected OneDriveAuthorizationCodeFlow(OneDriveAuthorizationCodeFlow.Builder builder)
public com.google.api.client.auth.oauth2.AuthorizationCodeTokenRequest newTokenRequest(String authorizationCode)
newTokenRequest
in class com.google.api.client.auth.oauth2.AuthorizationCodeFlow
public com.google.api.client.auth.oauth2.Credential loadCredential(String userId) throws IOException
loadCredential
in class com.google.api.client.auth.oauth2.AuthorizationCodeFlow
IOException
Copyright © 2018 Nuxeo. All rights reserved.