I was debugging my Google Cloud Run Python code over SSH in VSCode and it would ask for a password. I figured out it was google cloud SDK re-authentication was required.
I got passed the password prompt, but now got
google.auth.exceptions.RefreshError: Reauthentication is needed. Please run `gcloud auth application-default login` to reauthenticate.
Because I'm doing this over SSH, have to add --no-launch-browser
gcloud auth application-default login --no-launch-browser
Enter the authorization code in gcloud CLI on the machine you want to log into. This is a credential similar to your password and should not be shared with others.
Success! I'm now debugging my Python code!
Python dependencies I'm using:
- google-auth-oauthlib==0.7.0
- google-auth-httplib2==0.1.0
- google-api-python-client==2.65.0
- google-cloud-secret-manager==2.12.6
- google-cloud-bigquery==3.3.5
Comments
0 comments
Please sign in to leave a comment.