httr::authenticate()
for convenience.
See get_pass2()
for details.authenticate2.Rd
Use http authentication from environment variable, keychain or prompt
Wraps httr::authenticate()
for convenience.
See get_pass2()
for details.
authenticate2(user, password = NULL, type = "basic", service, keyring = NULL)
user | user name |
---|---|
password | password |
type | type of HTTP authentication. Should be one of the following types supported by Curl: basic, digest, digest_ie, gssnegotiate, ntlm, any. It defaults to "basic", the most common type. |
service |
|
keyring | For systems that support multiple keyrings, specify
the name of the keyring to use here. If |
Key and token-based authentication is more secure and convenient; use basic authentication (BA, aka. username and password) only if unavoidable and at your own risk. Read the httr vignette on managing secrets for details.