Skip to content

GbqConnector should be able to fetch default credentials on Google Compute Engine #13577

Closed
@mhaseebtariq

Description

@mhaseebtariq

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions