See the documentation for more information about authenticating for Google Cloud APIs.
-
Install dependencies from
package.json$ npm install -
Set the environment variable
GOOGLE_CLOUD_PROJECTto the project ID, set the environment variableGOOGLE_APPLICATION_CREDENTIALSto the credential you're using, and set the environment variableBUCKET_NAMEto a bucket you created in the project. -
To run the individual auth.js test, you can do:
$ npm run test:auth
This section contains samples for Downscoping with Credential Access Boundaries.
-
Your environment must be setup with authentication information. If you're running on Cloud Shell or Compute Engine, this is already setup. You can also use
gcloud auth application-default login. -
Install dependencies from
package.json$ npm install -
Set the environment variable
GOOGLE_CLOUD_PROJECTto the project ID. -
To run the individual downscoping.js test, you can do:
$ npm run test:downscoping
For more information on downscoped credentials you can visit:
