Difference between revisions of "Gcloud auth application-default login"

From wikieduonline
Jump to navigation Jump to search
Line 21: Line 21:
 
== See also ==
 
== See also ==
 
* {{gcloud auth}}
 
* {{gcloud auth}}
* {{gcloud}}
+
* {{gcloud init}}
  
 
[[Category:GCP]]
 
[[Category:GCP]]

Revision as of 19:48, 4 December 2023

gcloud auth application-default login
The environment variable [GOOGLE_APPLICATION_CREDENTIALS] is set to:
  [/Users/YOUR_USER/your_path/your-gcloud-auth-file.json]
Credentials will still be generated to the default location:
  [/Users/YOUR_USER/.config/gcloud/application_default_credentials.json]
To use these credentials, unset this environment variable before
running your application.

Do you want to continue (Y/n)?

Related

 curl \
 -H "Authorization: Bearer "$(gcloud auth application-default print-access-token) \
 -H "Content-Type: application/json; charset=utf-8" \
 https://analyticsadmin.googleapis.com/v1alpha/accounts

See also

Advertising: