We strongly recommend using Key Pair Authentication for a stable, long-lived connection. OAuth connections expire after a maximum of 90 days, after which you will need to reconnect. Key pair authentication does not have this limitation.
OAuth Authentication
Expires after up to 90 days
Key Pair Authentication
Recommended for stable, long-lived connections
OAuth Authentication
Follow these steps to configure OAuth authentication for BonData.Step 1: Create a Security Integration
Run this SQL in Snowflake as an ACCOUNTADMIN:Step 2: Get OAuth Credentials
Run these commands to retrieve your credentials:- OAUTH_CLIENT_ID - your Client ID
- OAUTH_CLIENT_SECRET - your Client Secret
Step 3: Get Your Account URL
Your Snowflake URL is in the format:https://<account_identifier>.snowflakecomputing.com
Step 4: Enter Credentials
Enter your Client ID, Client Secret, and Snowflake URL in BonData, then click Connect to authorize via OAuth.Required Fields (OAuth)
| Field | Description |
|---|---|
| Client ID | OAuth Client ID from security integration |
| Client Secret | OAuth Client Secret from security integration |
| URL | Your Snowflake account URL |
Key Pair Authentication
Follow these steps to set up key pair authentication for Snowflake.Step 1: Generate a Key Pair
Run these commands in your terminal:Step 2: Create a Snowflake User
Run this SQL in Snowflake:Step 3: Grant Permissions
Step 4: Get Your Account Identifier
Your account identifier is in your Snowflake URL:- URL:
https://abc12345.us-east-1.snowflakecomputing.com - Account:
abc12345.us-east-1
Step 5: Enter Credentials
Enter the URL, User, Account, and upload your private key file in BonData.Required Fields (Key Pair)
| Field | Description |
|---|---|
| URL | Your Snowflake account URL |
| User | The Snowflake user with the public key |
| Account | Your Snowflake account identifier |
| Private Key | The private key file (rsa_key.p8) |
| Passphrase | The passphrase for your private key |


