cagov / data-infrastructure

CalData infrastructure

Home Page:https://cagov.github.io/data-infrastructure

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Troubleshoot python errors encountered passing Okta url to snowflake connector function

melanie-logan opened this issue · comments

Per issue #287, there are two methods for connecting to Okta integrated snowflake accounts using python:We

1.) Pass authenticator='externalbrowser'
2. Pass authenticator='https://<okta_account_name>.okta.com' to the snowflake.connector.connect() function

According to online guidance:

HERE and
HERE

Option 2, generates the following error:
Failed to connect to DB: VSB79059-AAE_CDTFA_RETURN.snowflakecomputing.com:443, The specified authenticator is not accepted by your Snowflake account configuration. Please contact your local system administrator to get the correct URL to use.

I will need to continue troubleshooting this locally. A good starting point is HERE