RStudio Workbench on GCP : gcloud auth login without browser

Running our stack GCP Compute Engine

Users want to authenticate the Gcloud CLI from the IDE terminal.

gcloud auth login

This won't work because there is no browser on the machine

gcloud auth login --no-launch-browser

Is getting deprecated.

gcloud auth login --no-browser

This will give you a link and tell you to login from a computer that has a browser.

Would it be possible to use rpostback to use the same browser as the one connecting to Workbench and open the IDE's terminal link in it?

I'm pretty sure the IDE's terminal is already communicating with the browser through websockets. Just trying to figure out a way to gcloud auth login without users having to use another computer.

Thanks

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.