Google Cloud Application Configuration
The Google Drive connector requires a Google Cloud application configured with OAuth 2.0 authentication.
Once you have the application set up, you can use the connector for multiple users and Google Drives.
| Create a separate Google Cloud application for each ONE instance (for example, DEV, TEST, PROD), as only one refresh token is issued per application. |
Prerequisites
-
A Google Cloud account with permissions to create projects and OAuth credentials.
-
The redirect URL from ONE (found in Credentials > Redirect URL when configuring a Google Drive connection).
Setup overview
Follow the Google documentation to complete these steps:
-
Create a Google Cloud project – Note that the number of projects for individual users is limited.
-
Configure the OAuth consent screen – If you don’t know which user type to select, choose Internal. Note, however, that internal applications can access only Google Drives within their organization.
When configuring scopes, add:
https://www.googleapis.com/auth/drive.readonly. -
Create OAuth client credentials – Use the settings in OAuth client settings.
OAuth client settings
When creating OAuth client credentials, use the following:
-
Application type: Web application
-
Authorized JavaScript origins:
https://<your-one-domain> -
Authorized redirect URIs:
https://<your-one-domain>/oauth_responseCopy this from Credentials > Redirect URL in ONE. See Google Drive Connection > Add credentials.
Google OAuth 2.0 doesn’t accept localhost as a valid domain.
|
| Changes might take five minutes to several hours to take effect. |
Next steps
After setup, copy the Client ID and Client Secret from your OAuth credentials and return to ONE to complete your connection. See Google Drive Connection.
Was this page useful?