ee_Authenticate {rgee} | R Documentation |
Prompts the user to authorize access to Earth Engine via OAuth2.
Description
Prompts the user to authorize access to Earth Engine via OAuth2.
Usage
ee_Authenticate(
user = NULL,
earthengine = TRUE,
drive = FALSE,
gcs = FALSE,
authorization_code = NULL,
code_verifier = NULL,
auth_mode = "notebook",
scopes = NULL,
quiet = FALSE,
verbose = TRUE
)
Arguments
user |
Character (optional). If is a character, the credentials are saved in the dirpath: ~/.config/earthengine/$user. If is NULL, the credentials are stored in ~/.config/earthengine. |
earthengine |
Logical (optional). If TRUE, the EarthEngine credential
is cached in the path |
drive |
Logical (optional). If TRUE, the drive credential
is cached in the path |
gcs |
Logical (optional). If TRUE, the Google Cloud Storage
credential is cached in the path |
authorization_code |
An optional authorization code. |
code_verifier |
PKCE verifier to prevent auth code stealing. |
auth_mode |
The authentication mode. One of:
|
scopes |
List of scopes to use for authentication. Defaults to 'https://www.googleapis.com/auth/earthengine' or 'https://www.googleapis.com/auth/devstorage.full_control' |
quiet |
If TRUE, do not require interactive prompts and force –no-browser mode for gcloud. |
verbose |
Logical. Suppress info messages. |
Examples
## Not run:
library(rgee)
# Simple init - Load just the Earth Engine credential
ee_Authenticate()
# At Server side
ee_Authenticate(quiet=TRUE)
## End(Not run)