When running certain gcloud commands in Google Cloud Shell, e.g.
- gcloud auth list
- gcloud auth print-access-token
The following popup appears:
Is there a way to stop or auto accept this prompt?
I'd like to run some automation through Cloud Shell and this popup interrupts the process. I'm not sure why it's needed because the same commands can be run on a locally installed SDK without any interruption. In both cases the active users are the same and I've also experimented with service accounts but I get the same results.
When I script the process to use a service account (json key, activate, use account) I can even click on "Reject" authorization and it still works. Suggesting this prompt isn't providing any useful security.
Does anyone have any ideas? Thanks.
