> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cognite.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Ingest data from Snowflake with OAuth

> Configure the DB extractor to ingest data from Snowflake using OAuth 2.0 authentication with Microsoft Entra ID.

## Before you start

<Info>
  Connect the DB extractor to a Snowflake database. Follow the steps in the Knowledge Base Article from Snowflake about creating external OAuth tokens using Azure AD for the OAuth client.
</Info>

When the connection is set up, use these attributes to configure the DB extractor:

* Client ID
* Client secret
* Token endpoint
* OAuth scopes

## Configuration example

This is a configuration example for a Snowflake database using OAuth.

```yaml theme={"languages":{"custom":["/_languages/kuiper.json","../_languages/kuiper.json"]}}
databases:
  - name: Snowflake_OAuth
    type: snowflake
    authentication_type: oauth
    
    # Credentials
    client-id: ${Client ID}
    client-secret: ${Client Secret}
    access_token_generate_url: ${Token Endpoint}
    oauth_scopes: ${OAuth Scopes}

    # Account Info
    account: ${Snowflake Account ID}
    organization: ${Snowflake Organization ID}
    database: ${Snowflake Database}
    schema: ${Snowflake Schema}
    compute-warehouse: ${Snowflake Compute Warehouse}
```
