Snowflake Data Cloud Connector > Part I: Getting Started with Snowflake Data Cloud Connector > Connections for Snowflake Data Cloud > Prepare for authentication
  

Prepare for authentication

You can configure standard, authorization code, key pair, and client credentials authentication types to access Snowflake. Consider using authorization code, key pair, or client credentials authentication to connect more securely to Snowflake.
Before you configure the connection properties, you need to keep the authentication details handy based on the authentication type that you want to use.

Standard

To connect to Snowflake using standard authentication, you need the Snowflake account name, warehouse name, user name, and either your account password or a programmatic access token (PAT).
Let's get the required details such as the Snowflake account name, warehouse, and role details from the Snowflake account.
The following image shows you where you can find the name of your Snowflake account:
The Snowflake account name that you can get from the from the first part of the URL.
The following image shows you where you can find the name of the warehouse and role details of your Snowflake account:
The values for the User Role and Warehouse name fields are available on the Worksheet tab.

Generate the programmatic access token

To connect to Snowflake using standard authentication, you can use a programmatic access token (PAT) generated in Snowflake instead of your account password.
If you use the Secure Agent deployed in your environment, serverless runtime environment, or elastic runtime environment, you need to allow the range of IP addresses to connect to Snowflake using a PAT.
To allow the range of IP addresses in Snowflake, perform the following tasks:
  1. 1Create a network rule for the allowed IP addresses.
  2. For more information about creating a network rule, see Working with network rules in the Snowflake documentation.
  3. 2Create a network policy for the network rule that you created.
  4. For more information about creating a network policy, see Working with network policies in the Snowflake documentation.
For the detailed steps to generate a PAT, see Generating a programmatic access token in the Snowflake documentation.

Authorization code

To connect to Snowflake using the OAuth 2.0 authorization code, you need the Snowflake account name, warehouse name, authorization URL, access token URL, client ID, client secret, and access token.
To get the authorization details, create a security integration in Snowflake that enables OAuth access, which acts as a secure gateway for your application to connect to Snowflake and register the following Informatica redirect URL in Security Integration:
https://<Informatica cloud hosting facility for your organization>/ma/proxy/oauthcallback
If the access token expires, Informatica redirect URL, which is outside the customer firewall, tries to connect to the endpoint and retrieves a new access token.
When you use the OAuth 2.0 authorization code to connect to Snowflake, you can use either the Snowflake OAuth provider or an external OAuth authorization server, such as Okta or Microsoft Entra ID, that uses the OAuth protocol for accessing Snowflake.
For more information about how to create a security integration and get the authorization details, see Create security integration in the Snowflake documentation.
Note: You can't use connections configured with the authorization code authentication in mappings configured in advanced mode.

Key pair

To connect to Snowflake using key pair authentication, you need the private key file and private key file password, along with your Snowflake account user name.
Generate the public and private key pair using OpenSSL. The key pair authentication method requires a 2048-bit RSA key pair. Specify the path to the private key file and password in the connection properties to access Snowflake.

Client credentials

To connect to Snowflake using the OAuth 2.0 client credentials, you need the Snowflake account name, warehouse name, access token URL, client ID, client secret, scope, and access token.
Configure the OAuth endpoint with the client credentials grant type and then create a security integration to get the authorization details.
Before you use the client credentials authentication to connect Snowflake, the organization administrator needs to perform the prerequisite tasks.
  1. 1Create a client application that is compatible with OAuth to use with Snowflake.
  2. 2Configure the authorization server with the client credentials Grant type.
  3. 3Create a security integration for an external OAuth in Snowflake.
When you use the OAuth 2.0 client credentials to connect to Snowflake, you need to use an external OAuth authorization server, such as Okta or Microsoft Entra ID, that uses the OAuth protocol for accessing Snowflake.
For more information about how to create a security integration for external OAuth authorization server and get the authorization details, see Create security integration for external OAuth in the Snowflake documentation.
Note: You can't use connections configured with the client credentials authentication in mappings configured in advanced mode.