cred_funs: Credential function registry

Description Usage Arguments Value Functions See Also Examples

Description

Functions to query or manipulate the registry of credential functions consulted by token_fetch().

Usage

1
2
3
4
5
6
7
8
9

Arguments

...

One or more functions with the right signature: its first argument is named scopes, and it includes ... as an argument.

ls

A list of credential functions.

Value

A list of credential functions or NULL.

Functions

See Also

token_fetch(), which is where the registry is actually used.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
names(cred_funs_list())

creds_one <- function(scopes, ...) {}
cred_funs_add(creds_one)
cred_funs_add(one = creds_one)
cred_funs_add(one = creds_one, two = creds_one)
cred_funs_add(one = creds_one, creds_one)

# undo all of the above and return to default
cred_funs_set_default()

r-pkgs/gargle documentation built on Aug. 20, 2019, 8:42 a.m.