Using Application Default Credentials

You can configure the connector to authenticate the connection with Application Default Credentials. When you authenticate your connection this way, the connector parses the JSON keyfile specified by the GOOGLE_APPLICATION_CREDENTIALS environment variable. No other connection properties are required to use the Application Default Credentials authentication flow.

To configure Application Default Credentials authentication:

  1. To access authentication options, open the ODBC Data Source Administrator where you created the DSN, then select the DSN, and then click Configure.
  2. From the OAuth Mechanism drop-down list, select Application Default Credentials Authentication.

    Note: For more information about Application Default Credentials, refer to "How Application Default Credentials works" and "Set up Application Default Credentials" in the Google Cloud documentation: https://cloud.google.com/docs/authentication/application-default-credentials and https://cloud.google.com/docs/authentication/provide-credentials-adc, respectively.