# Step 3: Configure BigQuery Authentication in Integration Hub

The BigQuery authentication configuration establishes the connection between Treasure AI and your BigQuery project.

## Steps

1. In the Treasure AI console, navigate to **Integration Hub** > **Authentications**.
2. Search for **Google BigQuery** and select it.
3. Click **New Authentication** and fill in the connection details:


| Parameter | Description | Example |
|  --- | --- | --- |
| Name | A descriptive name for this connection | `bigquery-cas-connection` |
| JSON Keyfile | Paste the full contents of the JSON key file from GCP Step 3 | `{ "type": "service_account", ... }` |


Note
Only JSON keyfile authentication is supported. OAuth user credentials are not supported for CDW connections used in CAS.

1. Click **Continue** and complete the setup.
2. Save the configuration.


## Record the Connection ID

After saving, the authentication is assigned a `connectionId`. You can find it in the URL of the authentication detail page (e.g., `console.<region>.treasuredata.com/app/integrations/authentications/bigquery/123456` — the `connectionId` is `123456`). You will need this ID in the next step.

You can also retrieve it via the CLI:

```shell
tdx connection show "bigquery-cas-connection"
# Look for the "id" field in the output
```