> ## 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 Cloud Storage

export const CommonAuthSchemeGcpinstanceaccount = ({siteName = "CData Sync", siteNameShort = "Sync", datasource = "the data source"}) => {
  return <>
      <p>
        When you run {siteName} on a GCP virtual machine, {siteNameShort} can authenticate by using the service account that is tied to the virtual machine. Select <strong>GCPInstanceAccount</strong> for <strong>Auth Scheme</strong> to use that account. No additional properties are required.
      </p>
    </>;
};

export const CommonAuthSchemeOauthEmbedded = ({siteName = "CData Sync", siteNameShort = "Sync", datasource = "the data source"}) => {
  return <>
      <p>
        {siteName} provides an embedded OAuth application with which to connect. To use the application, select <strong>OAuth</strong> for <strong>Auth Scheme</strong>. No additional properties are required.
      </p>
    </>;
};

export const siteName = "CData Sync";

In {siteName}, you can connect to Google Cloud Storage 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 a Google 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.
