Skip to contents

Gets an OAuth authentication client (httr2 OAuth client object)

Usage

GetOAuthClient(id, secret, url = getOption("CDSE.auth_url"))

Arguments

id

character, user OAuth client id

secret

character, user OAuth client secret

url

character, endpoint for requesting tokens. Default: Copernicus Data Space Ecosystem OAuth endpoint

Value

httr2 OAuth client object

Details

The client can be used in queries requiring the authentication.

See also

Examples

if (FALSE) { # \dontrun{
id <- "..."
secret <- "..."
OAuthClient <- GetOAuthClient(id = id, secret = secret)
} # }