You must configure OAuth authentication so that the connector can authenticate with Google Cloud Storage. Micro Focus 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
oauth_tool.cfg
in a text editor.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
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.
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.
|