You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
creds = pydata_google_auth.get_user_credentials(scopes=SCOPES) now fails when getting executed from a machine without a browser (such as a notebook) after the deprecation of OOB.
This is because the default is to use local server and the local server expects the OAuth flow to be executed in the current host (which isn’t possible since there isn’t a browser). This wasn't the issue before, as with OOB the local server was simply waiting to get a token (and the flow could be done on another host).
I think there are two approaches to this:
Set use_local_webserver=False by default and let the proxy handle the traffic.
Check if there is browser installed (as done in the gcloud SDK) and route to proxy if there isn't.
If it's on localhost, it could default to use the nicer web server auth flow.
The text was updated successfully, but these errors were encountered: