-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Soda Test Snowflake add oauth #556
Comments
OK, this should be doable, as it is supported in soda-core-snowflake: https://github.com/sodadata/soda-core/blob/main/soda/snowflake/soda/data_sources/snowflake_data_source.py#L80 |
Hi Jochen thanks for your support. Yes I see it will be supported by soda. datacontracts: Thanks again for your help. Jan |
Try to also set these ENV parameters to use oauth:
|
Hi Jochen, thanks for your quick response but it does not work. datacontracts: I getting the following error message. ERROR:soda.scan:[18:05:32] Could not connect to data source "snowflake": 250001 (08001): Failed to connect to DB: xxxx.eu-central-1.snowflakecomputing.com:443. Invalid OAuth access token. Thanks and I wish you a great weekend. |
Hello datacontract-team,
please can you add oauth login for snowflake?
sf = snowflake.connector.connect(
account=os.getenv("SNOWFLAKE_ACCOUNT"),
user= snf_user + "XXX",
password="",
role=os.getenv("SNOWFLAKE_ROLE"),
warehouse=os.getenv("SNOWFLAKE_WAREHOUSE"),
database=sf_db,
authenticator="oauth",
token= token
)
Thanks for your support.
best regards
Jan
The text was updated successfully, but these errors were encountered: