-
Notifications
You must be signed in to change notification settings - Fork 653
Description
Currently the authorization for gcloud-code is done via a service account but it would be great if the client could be authorized via an oAuth token as an alternative.
This would make it easy to quickly iterate on solutions, and also share solutions with other people without needing to pass around keys etc.
For example, the quickstart.js guide for the Gmail API materializes an oAuth token with a given scope. It would be simple to add GCP scopes to this so I could re-use the one auth token to talk to both GMail and GCP resources (one using googleapis and one using gcloud)
This would mean I could create a snippet of code that depends on certain scopes and share that code with anyone else without them needing to create a service account to execute the code.