Skip to content
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

key pair authentication #27

Open
scottporter opened this issue Nov 22, 2019 · 2 comments
Open

key pair authentication #27

scottporter opened this issue Nov 22, 2019 · 2 comments

Comments

@scottporter
Copy link

Is it yet possible to connect using dplyr-snowflakedb and key pair authentication?

I think maybe key pair authentication is new to snowflakedb, and I don't see how to pass in the right info to connect.

In other words, if you've followed the directions at: https://docs.snowflake.net/manuals/user-guide/jdbc-configure.html#using-key-pair-authentication then how would you connect using your private key?

@kepiej
Copy link

kepiej commented Jan 16, 2020

You can do this by adding a "private_key_file" to the list of options:

snowflake_con <- src_snowflakedb(user = <your username>, host = <host url>, opts = list(private_key_file = <path to private key file>, warehouse = <your warehouse>, db = <your db>, schema = <your schema>))

I hope this helps! :)

@anilguptausa
Copy link

Hi @kepiej, I tried your syntax and but unfortunately wasn't able to get it working. Do you know what the syntax would look like if the private key file has a password?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants