Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gar_setup_auth_key

Create a service account for googleCloudRunner


Description

This will use your Google OAuth2 user to create a suitable service account

Usage

gar_setup_auth_key(
  email = Sys.getenv("GARGLE_EMAIL"),
  file = "googleauthr-auth-key.json",
  session_user = NULL,
  client_json = "GAR_CLIENT_JSON",
  roles = NULL,
  default_key = "googleauthr"
)

Arguments

email

What email to open OAuth2 with

file

Where to save the authentication file

session_user

1 for user level, 2 for project level, leave NULL to be prompted

client_json

The location of the env arg holding client json

roles

Whether to assign roles to the service key

default_key

The default name of the service key

Value

TRUE if the file is ready to be setup, FALSE if need to stop

See Also


googleAuthR

Authenticate and Create Google APIs

v1.4.0
MIT + file LICENSE
Authors
Mark Edmondson [aut, cre] (<https://orcid.org/0000-0002-8434-3881>), Jennifer Bryan [ctb], Johann deBoer [ctb], Neal Richardson [ctb], David Kulp [ctb], Joe Cheng [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.