Note: aw_auth()
is the primary function used for authorization. auth_oauth()
and auth_s2s()
should typically not be called directly.
Usage
aw_auth(type = aw_auth_with(), ...)
auth_jwt(
file = Sys.getenv("AW_AUTH_FILE"),
private_key = Sys.getenv("AW_PRIVATE_KEY"),
jwt_token = NULL,
...
)
auth_s2s(
file = Sys.getenv("AW_AUTH_FILE"),
s2s_token = NULL,
type = "s2s",
...
)
auth_oauth(
client_id = Sys.getenv("AW_CLIENT_ID"),
client_secret = Sys.getenv("AW_CLIENT_SECRET"),
use_oob = TRUE
)
Arguments
- type
Either 's2s' or 'oauth'. This can be set explicitly, but a best practice is to run
aw_auth_with()
to set the authorization type as an environment variable before runningaw_auth()
- ...
Additional arguments passed to auth functions.
- file
A JSON file containing service account credentials required for JWT authentication. This file can be downloaded directly from the Adobe Console, and should minimally have the fields
API_KEY
,CLIENT_SECRET
,ORG_ID
, andTECHNICAL_ACCOUNT_ID
.- private_key
Filename of the private key for JWT authentication.
- jwt_token
(Optional) A custom, encoded, signed JWT claim. If used,
client_id
andclient_secret
are still required.- s2s_token
(Optional) A custom, encoded, S2S authentication token.
- client_id
The client ID, defined by a global variable or manually defined
- client_secret
The client secret, defined by a global variable or manually defined
- use_oob
if
FALSE
, use a local webserver for the OAuth dance. Otherwise, provide a URL to the user and prompt for a validation code. Defaults to the value of thehttr_oob_default
default, or TRUE ifhttpuv
is not installed.
Functions
auth_jwt()
: Authenticate with JWT tokenauth_s2s()
: Authenticate with S2S tokenauth_oauth()
: Authorize via OAuth 2.0