Configure OAuth Authentication (Service Account)

You must configure OAuth authentication so that the connector can authenticate with Google Cloud Storage. OpenText recommends that you use the OAuth configuration tool that is supplied with the connector.

NOTE: There is no need to complete this procedure if you ran the OAuth configuration tool during the installation process.

To configure OAuth authentication

  1. Open the folder where you installed the connector.
  2. Open the file oauth_tool.cfg in a text editor.
  3. In the [Default] section, specify any proxy settings necessary to connect to Google Cloud Storage:

    ProxyHost The host name or IP address of the proxy server that the connector must use.
    ProxyPort The port of the proxy server that the connector must use.

    For example:

    ProxyHost=proxy.example.com
    ProxyPort=8080
  4. In the [GoogleServiceAccount] section, find the CustomJson parameter. Replace the <client_email> and <private_key> placeholders with the service account email address and private key. For example:

    CustomJson={"GoogleServiceAccount": "MyServiceAccount@myproject.iam.gserviceaccount.com", "GoogleServiceAccountPrivateKey":"-----BEGIN PRIVATE KEY-----\nBASE64\nENCODED\nPRIVATE\nKEY=\n-----END PRIVATE KEY-----\n"}

    Do not modify the other parameters in this section.

  5. Open a command-line window and run the OAuth configuration tool:

    oauth_tool.exe oauth_tool.cfg GoogleServiceAccount

    The OAuth tool generates a file named oauth.cfg, which contains the parameters that the connector requires to authenticate with Google Cloud Storage. Import these parameters into your fetch tasks in the connector configuration file:

    [MyTask] < "oauth.cfg" [OAUTH]

    For more information about including parameters from another file, see Include an External Configuration File.

  6. You can now configure a task to retrieve data. See Retrieve Information from Google Cloud Storage.