-
Notifications
You must be signed in to change notification settings - Fork 61
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
createConnectionDetails() with snowflake dbms #285
Comments
Hi, I haven't seen an example with using JWT to authenticate to Snowflake but it seems similar to what is done when we are connecting to Google BigQuery as shown here: FeatureExtraction/tests/testthat/setup.R Lines 111 to 126 in 437570a
So you may want to skip using the |
Thanks for this - we ended up creating a separate user account that didn't go through single sign on to better access SNOWFLAKE using connectionDetails. However, now that the connectionDetails are "working", I tried running getDbCovariateData with the connection details and ran into a different issue: script run: covariateData <- getDbCovariateData( error message: |
Sorry for the delay - it is hard to determine what is causing the issue here - are you using the latest Snowflake JDBC driver? Perhaps you can try to simply query the database with DatabaseConnector to verify that you can download a simple results set? |
Hi,
Trying to use createConnectionDetails() to them use as a parameter in getDbCovariateData(). However, I am trying to connect to snowflake where we use a JWT authenticator rather than individual passwords.
connectionDetails <- createConnectionDetails( dbms = "snowflake", server = keyring::key_get("server"), user = keyring::key_get("user"), connectionString = keyring::key_get("connectionString"), extraSettings = list(AUTHENTICATOR = "SNOWFLAKE_JWT", PRIV_KEY_FILE = fs::path_home(".p8/private_key.p8"), PRIV_KEY_FILE_PWD = Sys.getenv("PRIVATE_KEY_PWD")), pathToDriver = fs::path_home("...") )
I've tried capturing my authenticator connection information under extraSettings but getting an error message:
Connecting using Snowflake driver
Error in
connectUsingJdbcDriver()
:! Connection propery 'password' is NULL.
Can someone advise? Thanks!
The text was updated successfully, but these errors were encountered: