GbqConnector should be able to fetch default credentials on Google Compute Engine · Issue #13577 · pandas-dev/pandas (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Description
https://github.com/pydata/pandas/blob/master/pandas/io/gbq.py
class GbqConnector(object):
...
def get_user_account_credentials(self):
...
...
Google Compute Engine and Google Dataproc etc. already have default application credentials on them. Therefore, there is no need of running OAuth2WebServerFlow
while the method get_user_account_credentials
is being called - instead return GoogleCredentials.get_application_default()
is all you need. This change will allow you to run GbqConnector
on commandline-only systems on Google Compute Engine without a need of a service account json key.