get_credentials: retrieves or requests and stores credentials as necessary for...

View source: R/credentials.R

get_credentialsR Documentation

retrieves or requests and stores credentials as necessary for ODBC connection

Description

On Mac and Unix, credentials are stored in keyring (can be forced on Windows with forcekeyring=F)

Usage

get_credentials(
  server = NULL,
  reset = F,
  urlencode = F,
  forcekeyring = F,
  domain = T
)

Arguments

server

server name (or any other identifier string that identifies username–password pair

reset

whether to reset credentials should they be already recorded in the registry

urlencode

URL-encode the password

forcekeyring

force keyring credential storage on Windows (on Mac and Unix keyring is used by default)

domain

require username to have a domain prefix ("domain\username")

Details

On Windows, ODBC Data Source Administrator is called (no credentials are explicitly retrieved – list with NULL entries is returned

Value

list(uid="myusername", pwd="password") # on Mac / Unix and list(uid=NULL, pwd=NULL) # on Windows


BCHSI/credbl documentation built on April 16, 2023, 4:17 a.m.