Google Drive Integration

Integration Setup

Google Drive Oauth 2.0

To create a Google Drive OAuth 2.0 app, first make sure you have a Google Developer account - you can sign up at https://console.cloud.google.com/. Then:

  • Open up the Google Drive API console - https://console.cloud.google.com/apis/api/drive.googleapis.com
  • Click CREATE PROJECT if you would like to create a new GCP project, or select an existing project.
  • You will be prompted to enable Google Drive API for your project. Click ENABLE.
  • On the sidebar, select Credentials.
  • An OAuth 2.0 app includes a "Consent Screen" (the page that asks "Do you want to allow (Your Company) to access Google Drive on your behalf?"). Click CONFIGURE CONSENT SCREEN.
    • Your app will be externally available to your customers, so choose a User Type of External.
    • Fill out the OAuth consent screen with an app name (your company or product's name), support email, app logo, domain, etc.
    • You can ignore domains for now.
    • On the next page, add the scope https://www.googleapis.com/auth/drive.
    • Enter some test users for your testing purposes. Your app will only work for those testing users until it is "verified" by Google. When you are ready for verification (they verify your privacy policy statement, etc), click PUBLISH APP on the OAuth consent screen. That'll allow you to authorize your integration to access their Google Drive.
  • Once your "Consent Screen" is configured open the Credentials page from the sidebar again.
  • Click +CREATE CREDENTIALS and select OAuth client ID.

Take note of the Client ID and Client Secret that are generated.