-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to force bigrquery to re-authorize #449
Comments
With current gargle (v1.1.0), you should be able to do |
Also: what is your intent ... to use the regular OAuth2 web flow + gargle's token cache or to use Application Default Credentials (ADC)? Above I see evidence of both.
"Also, in the RStudio terminal I can run gcloud auth login, set up auth, and then ..." is associated with ADC. Which do you mean to use? |
@jennybc I did try that, as well as deleting the .httr_oauth file. On my local machine as well as AI notebook when I do as you suggested I get a query in the terminal to choose an email, then a browser window opens for authentication. Any other ideas? I realize I didn't directly answer your question, but I don't actually understand your question. I have no idea at that level of detail. I just know that it usually "works" but on the particular platform I described, it "doesn't work." |
I'm not getting enough info to provide more help.
What exactly happens in the case where you do this and it does not work? What does the failure mode look like?
When you say "Also, in the RStudio terminal I can run gcloud auth login, set up auth, and then: ..." are we talking about your local computer, your AI notebook life, or your GCP VM? |
On the GCP VM, nothing happens? You do not get taken to the account picker? (You'll have to forgive me, but I don't actually use these packages in many of these cloud settings and can't easily stand up the exact environment you are dealing with). I wouldn't imagine that could work. Depending on the context, I think you'll need to specify out-of-band auth, with |
I think the VERY first time I ran my code that did happen, but then I lost my permissions. Some progress: I allowed popups. I thought I was close, but even after authenticating via email,
|
I can tell from the above that this is not the currently released version of gargle. So you should update gargle before you do anything else. Also you should not call gargle directly, i.e. you should not call |
The reason I was calling gargle directly is because that was the only way I could get the credentials operation to run. |
Ah, re: my version claim, my bad. This cache path is what's currently used on linux. I was confused because we no longer use this path on macOS or Windows. |
Bumping this---still having the same problem. The only time I can't properly authorize to bigquery is when I'm working on a VM actually on GCP. |
Still having this problem. RStudio Server in cloud VM, and can't authenticate. |
Brief description of the problem
I have an RStudio Server instance running on a GCP VM. I'm getting the following error
Created on 2021-05-11 by the reprex package (v2.0.0)
However, this code runs fine on my local machine and in AI notebooks.
Also, in the RStudio terminal I can run
gcloud auth login
, set up auth.So the VM can connect to data in my project, but for some reason
bigrquery
can't auth.How can I reset the auth information in
bigrquery
?The text was updated successfully, but these errors were encountered: