The driver supports OAuth 2.0 access to Snowflake resources. The driver may be configured to use either Snowflake OAuth or External OAuth. Snowflake OAuth is Snowflake's built-in OAuth service, while External OAuth allows you to use an external authorization service.

The following workflow describes the process for setting up OAuth 2.0 access.

  1. Create an OAuth security integration and obtain client information. See this topic for guidance on creating the security integration and obtaining client information, such as client ID, client secret, authorization URI, redirect URI, and token URI.
  2. Obtain access and refresh tokens using the Configuration Manager. If you want to use the access token flow or refresh token grant, see this topic for directions on obtaining access and refresh tokens using the Configuration Manager.
  3. Configure the driver to use OAuth 2.0. You can configure the driver to access Snowflake resources using any supported OAuth 2.0 grant types. The driver supports the following grant types: