{"id":27942931,"url":"https://github.com/posit-dev/snowflakeauth","last_synced_at":"2025-05-07T11:58:57.351Z","repository":{"id":260693975,"uuid":"881999598","full_name":"posit-dev/snowflakeauth","owner":"posit-dev","description":"Support for R users authenticating with the 'Snowflake' platform","archived":false,"fork":false,"pushed_at":"2025-04-22T18:11:42.000Z","size":38,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-07T11:58:50.387Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/posit-dev.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-11-01T17:03:07.000Z","updated_at":"2025-04-22T18:11:46.000Z","dependencies_parsed_at":"2025-01-08T09:43:58.969Z","dependency_job_id":"b6b83b0c-7aff-4bcc-b440-5c36c5ffcd82","html_url":"https://github.com/posit-dev/snowflakeauth","commit_stats":null,"previous_names":["atheriel/snowflakeauth","posit-dev/snowflakeauth"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posit-dev%2Fsnowflakeauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posit-dev%2Fsnowflakeauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posit-dev%2Fsnowflakeauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posit-dev%2Fsnowflakeauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/posit-dev","download_url":"https://codeload.github.com/posit-dev/snowflakeauth/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252873975,"owners_count":21817711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-07T11:58:56.619Z","updated_at":"2025-05-07T11:58:57.341Z","avatar_url":"https://github.com/posit-dev.png","language":"R","readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n# snowflakeauth\n\n\u003c!-- badges: start --\u003e\n[![lifecycle](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html)\n\u003c!-- badges: end --\u003e\n\n`snowflakeauth` is a toolkit for authenticating with Snowflake. It aims for\ncompatibility with the `connections.toml` and `config.toml` files used by the\n[Python Connector for\nSnowflake](https://docs.snowflake.com/en/developer-guide/python-connector/python-connector-connect)\nand the [Snowflake\nCLI](https://docs.snowflake.com/en/developer-guide/snowflake-cli/connecting/configure-connections),\nso that R users can use a consistent approach to Snowflake credentials across\nboth languages.\n\n`snowflakeauth` is not intended for direct use by regular R users. Instead, it\nprovides low-level utilities for R package authors targeting the Snowflake\nplatform.\n\n## Installation\n\nYou can install the development version of `snowflakeauth` from\n[GitHub](https://github.com/) with:\n\n``` r\n# install.packages(\"pak\")\npak::pak(\"atheriel/snowflakeauth\")\n```\n\n## Example\n\n`snowflakeauth` can pick up on the default Snowflake connection parameters from\nthe `connections.toml` and `config.toml` files used by the Python Connector for\nSnowflake and the Snowflake CLI (or any other named connection, for that\nmatter):\n\n```{r default-connection, error = TRUE}\nlibrary(snowflakeauth)\n\nsnowflake_connection()\n\nsnowflake_connection(name = \"testing\")\n```\n\nor you can define the parameters of a connection manually:\n\n```{r connections}\nsnowflake_connection(\n  account = \"myaccount\",\n  user = \"me\",\n  private_key_file = \"rsa_key.p8\",\n  private_key_file_pwd = \"supersecret\"\n)\n\nsnowflake_connection(\n  account = \"myaccount\",\n  user = \"me\",\n  authenticator = \"externalbrowser\"\n)\n```\n\nThese parameters can then be used to retrieve credentials, which take the form\nof a one or more of HTTP headers:\n\n```{r credentials}\nconn \u003c- snowflake_connection(\n  account = \"myaccount\",\n  user = \"me\",\n  authenticator = \"oauth\",\n  token = \"token\"\n)\n\nsnowflake_credentials(conn)\n```\n\n## Limitations\n\n- No support for SSO authentication using a browser.\n\n- No support for key-pair authentication with [password-protected private\n  keys](https://docs.snowflake.com/en/user-guide/key-pair-auth#generate-the-private-key).\n\n- No support for [connection\n  caching](https://docs.snowflake.com/en/user-guide/admin-security-fed-auth-use#using-connection-caching-to-minimize-the-number-of-prompts-for-authentication-optional).\n\n- No support for direct username/password authentication, username/password\n  authentication with MFA, or [\"Native SSO\"\n  authentication](https://docs.snowflake.com/en/user-guide/admin-security-fed-auth-use#native-sso-okta-only),\n  (which is Okta-only). These are not planned; please migrate to OAuth or\n  key-pair authentication when a browser is not available.\n\n## License\n\nMIT (c) [Posit Software, PBC](https://posit.co)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposit-dev%2Fsnowflakeauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fposit-dev%2Fsnowflakeauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposit-dev%2Fsnowflakeauth/lists"}