Snowflake is a cloud data platform. Use the Snowflake component to access and update data in a Snowflake Database.Component key: snowflake
Snowflake is a cloud data platform. Use the Snowflake component to access and update data in a Snowflake Database.
Snowflake Oauth 2.0
Snowflake OAuth 2.0 Connection
Snowflake will use OAuth 2.0 for authentication and making API calls on behalf of customers.
Follow these steps to set up an OAuth integration on your snowflake. More information for these steps can be found here https://docs.snowflake.com/en/user-guide/oauth-custom
- Login to Snowflake and create a worksheet to set a new integration.
- Create a new security integration by copying the following SQL statement into Snowflake and selecting the ‘Play’ button at the top right of the screen. Make sure to change the “INTEGRATIONNAME” to something you will remember
CREATE SECURITY INTEGRATION
TYPE = OAUTH
OAUTH_CLIENT = CUSTOM
OAUTH_REDIRECT_URI = 'https://oauth2.prismatic.io/callback'
OAUTH_CLIENT_TYPE = 'PUBLIC'
- Run The following SQL statement to get your Auth URL, Token URL, and Client ID. Change “INTEGRATIONNAME” to the name you used during the create statement.
DESCRIBE INTEGRATION INTEGRATIONNAME
Run the following SQL statement to get your Client Secret.
a. Its important that you use the secret listed as AUTH_CLIENT_SECRET from the return in Prismatic
- Run the following SQL statement to enable the Integration.
ALTER SECURITY INTEGRATION INTEGRATIONNAME SET ENABLED = TRUE
Enter your Authorization URL, Token URL, Client ID, and Client Secret into Prismatic.
a. Once attempting to authenticate its important to note that users with the roles of ACCOUNTADMIN, SECURITYADMIN, and ORGADMIN will receive an “invalid consent request error” message as snowflake blocks these roles by default. We suggest authenticating with a different user without these roles assigned.
Execute SQL statements | key: executeSql