> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sync.cdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connecting to Google Drive

export const CommonAuthSchemeGcpinstanceaccount = ({siteName = "CData Sync", siteNameShort = "Sync", datasource = "the data source"}) => {
  return <>
      <p>
        GCP 仮想マシンで{siteName} を実行すると、{siteNameShort} は仮想マシンに紐づけられたサービスアカウントを使用して認証できます。そのアカウントを使用するには、<strong>Auth Scheme</strong> で<strong>GCPInstanceAccount</strong> を選択します。追加のプロパティは必要ありません。
      </p>
    </>;
};

export const CommonAuthSchemeOauthEmbedded = ({siteName = "CData Sync", siteNameShort = "Sync", datasource = "the data source"}) => {
  return <>
      <p>
        {siteName} は、接続するための組み込みOAuth アプリケーションを提供します。アプリケーションを使用するには、<strong>Auth Scheme</strong> で<strong>OAuth</strong> を選択します。追加のプロパティは必要ありません。
      </p>
    </>;
};

export const siteName = "CData Sync";

In {siteName}, you can connect to Google Drive in several ways. Select your authentication method below, then proceed to the relevant section and follow those instructions.

* [**OAuth**](#oauth)
* [**OAuth JWT**](#oauth-jwt)
* [**GCP Instance Account**](#gcp-instance-account)

### OAuth

<CommonAuthSchemeOauthEmbedded siteName={siteName} />

After you complete this section, go to *Complete Your Connection* on the connection page to finish setting up the connection.

### OAuth JWT

To connect with an OAuth service account, set the following properties:

* **Auth Scheme:** Select **OAuthJWT**.
* **OAuth JWT Cert:** Enter the multi-line key that is provided by Google.
* **OAuth JWT Cert Type:** Select **GOOGLEJSONBLOB**.
* (Optional) **OAuth JWT Cert Subject:** Only set this value if the service account is part of a GSuite domain and you want to enable delegation. The value of this property should be the email address of the user whose data you want to access.

After you complete this section, go to *Complete Your Connection* on the connection page to finish setting up the connection.

### GCP Instance Account

<CommonAuthSchemeGcpinstanceaccount siteName={siteName} />

After you complete this section, go to *Complete Your Connection* on the connection page to finish setting up the connection.
