Skip to main content
Question

Use Azure based OAuth connection to connect to Snowflake

  • March 10, 2021
  • 2 replies
  • 123 views

Has anyone successfully connected to Snowflake using OAuth? We have been using a local account to connect to Snowflake but have recently been requested to use an Azure based OAuth connection. We have an assigned client ID, key and refresh url available but need to understand how to make the calls. Thanks!

2 replies

Forum|alt.badge.img+2

Hi @samhayashi​ 

 

My strength is in (oauth) web connections, not jdbc, but it looks like you could try the things in this snowflake doc (search for oauth on that page and it should bring up the right section). There's also a few stack overflow posts that might help if you get stuck.

 

If you want to connect using the HTTPCaller then you could set up a web connection in FME using those details from Azure and configure it (you could use sharepoint as an example/guide)

The Snowflake Reader/Writer in FME uses JDBC, so creating the web connection wouldn't be useful unless you're using the HTTPCaller.


desiree_at_safe
Safer
Forum|alt.badge.img+20

Hi there! I understand this thread is a bit dated, but I figured sharing the resource might help other users running into a similar issue. We now have the steps to configure OAuth for Snowflake using Azure AD as the auth provider. The steps are outlined here in our article: How to Authenticate with Snowflake: External OAuth with Azure AD

 

It walks through the setup for authorization code grant (with browser login) and client credentials (server-to-server flow) in Form and Flow

 

Our Getting Started article is also a great resource for other authentication options and working with Snowflake in FME: Getting Started with Snowflake

Hope this helps! 🙂