Skip to main content

Integration Overview - Google Drive

This document provides a detailed overview of the integration between Legora and Google Drive, including key features, deployment timeline, security measures, and customer requirements.

Updated over a month ago

Key Features

File and Folder Selection

  • The integration includes a file and folder picker, enabling users to upload single documents or entire folders from Google Drive into Legora

  • Helps users navigate their document structure in Google Drive and select the desired files and folders.

Continuous Syncing

  • Legora offers on demand syncing to ensure documents in Legora are always updated with the latest versions from Google Drive.

  • Reduces manual updates and improves accuracy.

Secure Authentication and Connectivity

  • Legora employs Google Drive native authentication system for secure user validation.

  • No user credentials are passed through Legora; instead, an access token is used to fetch and parse documents from Google Drive.

Compatibility

  • Google Drive Deployments: Pre-established connection for a seamless integration experience.

Deployment Timeline

The integration can be deployed within 3 days from when all the details have been sent over to the Legora team.


Setup Instructions

This guide will walk you through the process of setting up a Google Cloud Project and configuring the necessary details to allow your users to upload files directly from Google Drive to Legora.

Step 1: Create an Google Drive App Registration

To enable your web application to interact with Google Drive, create a project in the Google Cloud Console and enable the necessary APIs.

  1. Create a Google Cloud Project:

    • Go to the Google Cloud Console.

    • Create a new project (or select an existing one).

    • Give it a meaningful name (e.g., “Client Drive Integration”).

  2. Enable the Google Drive API:

    • In the left sidebar, navigate to APIs & Services > Library.

    • Search for “Google Drive API” and click to Enable it.

  3. Enable the Google Picker API:

    • In APIs & Services > Library, search for “Google Picker API” (or “Google Picker”) and enable it

Step 2: Submit the following details

The OAuth consent screen is required for your app to request access to user data.

  1. In APIs & Services > OAuth consent screen, click “Get started”

  2. Fill in the requested information such as:

    • App name - Give the connection a name you will remember, eg. Legora <> Google Drive

    • User support email - The email internal people will see, if they need access support. Add here eg. your it support email address

    • Audience - Choose Internal, it's currently the only supported way and will enable using this integration for users within your own Google Workspace domain.

    • Contact email - Add the develop email addresses who should be informed about changes by Google

    • Terms & Conditions - Agree to the Google API Services: User Data Policy

  3. Navigate to the Data Access tab and select “Add or remove scopes”. Add the following required scopes:

  4. Save the changes

Step 3: Create OAuth 2.0 Credentials

  1. Back track and navigate to APIs & Services > Credentials.

  2. Click Create Credentials > OAuth client ID.

  3. Choose Web application as the application type and name the application something meaningful to you. This is just descriptive and has no effect on the connection.

  4. Under Authorized JavaScript origins, add:

  5. Under Authorized redirect URIs, add:

  6. Select “Create”

  7. Save the Client ID and Client Secret, these are needed for integration.

Step 4: Create Developer Key (API key)

  1. In APIs & Services > Credentials, click Create Credentials > API key.

  2. Save the generated API key

Step 5: Send the Authentication Credentials to [email protected] or your POC.

  1. OAuth 2.0 Client ID

  2. OAuth 2.0 Client Secret

  3. Developer Key (API key)

Did this answer your question?