Configure connection to Google Drive
This page explains how to configure your Datalore On-Premises instance to allow users to connect their Google Drive accounts and access data directly from the notebook environment.
Step 1. Register an application in the Google Cloud console
Open the Google Cloud console and select your project in the top menu dropdown.
Open the left navigation menu by clicking on the hamburger icon at the top left.
Select .
In User type, select Internal and click Create.
On the OAuth consent screen step, provide the necessary information and click Save and continue.
On the Scopes step, scroll down and click Save and continue.
On the Summary review the details and click Save.
Step 2. Create credentials
In the left sidebar, select Credentials
In the top menu, select .
In Application type, select Web application.
(Optional) In Name, enter the name for your client. This name is only shown in the Google Cloud console.
In Authorized JavaScript origins, click
Add URI and enter the URI your Datalore instance is available at.
In Authorized redirect URIs, click
Add URI and enter the redirect URI in the
https://YOUR_DOMAIN/api/resources/v1/authformat.Click Create.
Note the client ID and client secret. You will need to add them to the Datalore Admin panel later.
Step 3. Enable Google Drive API
In the left sidebar, select Enabled APIs & services.
In the top menu, click Enable APIs and services.
Scroll down and select Google Drive API.
Click Enable.
Step 4. Add Google credentials to the Datalore Admin panel
Click the avatar at the top right and select Admin panel.
Select Configuration in the sidebar.
Click Set up Google OAuth connection.
In the Set up Google Drive connection dialog, enter the Google client ID and secret you copied in the Google Cloud console.
Click Add credentials.
Next steps
Connect Google Drive as a data source in a workspace or notebook.