Set up Google Drive Connector
Last updated
Last updated
To go to the Connector module, select the Connector menu item under the Data Integration menu.
In the Data Integration module click the [+ Connector] button.
Enter Connector name and optionally provide a description.
Select Google Drive in Connector settings.
Select any of the following three authentication types set up in Google Account :
OAuth 2.0 client (default option)
Service account key
API Key
In the Connector settings, the OAuth 2.0 client Credentials Types settings are displayed.
Enter the credentials Client ID and Client Secret generated in Google Account setup>OAuth 2.0 Client credentials and click [Save].
On clicking the [Save] button, the “Authorize by” section is activated and a redirect URL is generated.
For authorization through Redirect URL, follow the instructions below the url: ‘Copy the url and add it in google account credential OAuth 2.0 Client IDs -> Click edit or create new -> Under “Authorized redirect URIs”, Click Add URI.’
This generated URL needs to be copied and entered into Authorized Redirect URIs in OAuth 2.0 Client ID of created credentials in the Google Account. (See steps to add the Redirect URL).
When the URL is copied, click the [Sign in with Google] button which will take the user to the consent screen. In this step, the user is asked to enter information indicating their agreement to the connection Langstack is trying to establish with Google Drive.
Once the user consent is acknowledged successfully, the [Test connection] button is enabled. Click the [Test connection] button to confirm if the connection is established.
Enter the following credentials from the Json file downloaded from GCP during Google Account setup>Service Account Key credentials and click [Save]:
Client Id
Client Email address
Service account user: This is the email of the user account to impersonate, if delegating domain-wide authority to the service account.
Private Key (private_key) object for the service account in "PKCS#8" format.
Test the connection by clicking the [Test connection] button.
Enter the API Key generated in Google Account setup>API Key credentials and click [Save].
The [Test Connection] button becomes activated and the API Key gets encrypted.
Test the connection by clicking the [Test connection] button.