Token must be specified as an environment variable DATABRICKS_TOKEN
.
If DATABRICKS_TOKEN
is missing will default to using OAuth U2M flow.
Refer to api authentication docs
Usage
db_token(profile = getOption("db_profile"))
Details
The behaviour is subject to change depending if db_profile
and
use_databrickscfg
options are set.
use_databrickscfg
: Boolean (default:FALSE
), determines if credentials are fetched from profile of.databrickscfg
or.Renviron
db_profile
: String (default:NULL
), determines profile used.
See vignette on authentication for more details.
See also
Other Databricks Authentication Helpers:
db_host()
,
db_read_netrc()
,
db_wsid()