Google Authenticator to Snowflake (SSO / SAML)
In this tutorial, we will show how to set up authentication to Snowflake using SSO / SAML with Google Authenticator.
Video
Requirements
- Snowflake account, you can use a free trial. We also assume no complex security needs.
- Google cloud account, you can setup a free account to get started.
Setup
Lets start with some basic setup.
Snowflake
Please make sure your username is the email that is in google or else the SSO will not work. To edit your user to be a email please go to your user under admin and update it by adding double quotes and your email in the username block.
Now that we have our username setup, we'll copy our account url and add it to a worksheet. We'll need this later.
Lets start in google by going to our Google administrator account.
Click Apps > Web and mobile apps > Add app > Add custom SAML app.
Give the integration a name. This name is only used in Google.
We'll want to copy the SSO URL, Entity ID and Certificate to a Snowflake worksheet. We will need these in the next step.
Integration
Now that we have our Snowflake account URL, SSO URL, Entity ID and Certificate we can put it all together in Snowflake to enable the SSO.
Snowflake
Warning
Please remove the -----BEGIN CERTIFICATE-----
and -----END CERTIFICATE-----
from the certificate, it will give you an eror.
Now in our worksheet we'll want to add the code below with the information we've copied so far.
property | property_value |
---|---|
SAML2_SNOWFLAKE_ACS_URL | https://vpb00288.snowflakecomputing.com/fed/login |
SAML2_SNOWFLAKE_ISSUER_URL | https://vpb00288.snowflakecomputing.com |
Google.
Lets take the output of our Snowflake and finish off in Google. Take the SAML2_SNOWFLAKE_ACS_URL
-> ACS URL
and SAML2_SNOWFLAKE_ISSUER_URL
-> Entity ID
Next we'll want to enable user access. Click the User access
box.
Login
Warning
Please make sure your username is the email that is in google or else the SSO will not work. You can edit your user in the admin section as shown in part one of this tutorial.
Now you should be able to go to your Snowflake login page and see the new Google SSO
version.