cja_auth.RdNote: cja_auth() is the primary function used for authorization. auth_s2s()
and auth_jwt() should typically not be called directly.
cja_auth(type = "s2s", ...)
auth_jwt(
file = Sys.getenv("CJA_AUTH_FILE"),
private_key = Sys.getenv("CJA_PRIVATE_KEY"),
jwt_token = NULL,
...
)
auth_s2s(file = Sys.getenv("CJA_AUTH_FILE"), s2s_token = NULL, ...)
auth_oauth(
client_id = Sys.getenv("CJA_CLIENT_ID"),
client_secret = Sys.getenv("CJA_CLIENT_SECRET"),
use_oob = TRUE
)Either 'jwt' or 's2s' (default). This can be set explicitly, but a best practice is
to run cja_auth_with() to set the authorization type as an environment variable before
running cja_auth()
Additional arguments passed to auth functions.
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 or CLIENT_ID, CLIENT_SECRET, ORG_ID,
and TECHNICAL_ACCOUNT_ID.
Filename of the private key for JWT authentication.
(Optional) A custom, encoded, signed JWT claim. If used,
client_id and client_secret are still required.
(Optional) A custom, encoded, signed JWT claim. If used,
client_id and client_secret are still required.
The client ID, defined by a global variable or manually defined
The client secret, defined by a global variable or manually defined
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 the httr_oob_default default, or TRUE if
httpuv is not installed.
The path of the cached token. This is returned invisibly.
auth_jwt(): Authenticate with JWT token
auth_s2s(): Authenticate with S2S token
auth_oauth(): Authorize via OAuth 2.0