Skip to content
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

Provide a way to override requested scopes #38

Closed
tswast opened this issue May 16, 2017 · 6 comments
Closed

Provide a way to override requested scopes #38

tswast opened this issue May 16, 2017 · 6 comments

Comments

@tswast
Copy link
Collaborator

tswast commented May 16, 2017

Additional scopes are required when using BigQuery to access external data sources such as Google Drive or Bigtable.

It looks like the GbqConnector class currently only uses the https://www.googleapis.com/auth/bigquery scope and does not override the scopes in the constructor.

@ghost
Copy link

ghost commented May 17, 2017

Well, it's not Pandas-GoogleBigQuery package then anymore. Bigtable API has very different schema, and for drive I cannot see any general use case for getting data to a pandas DF.

@tswast
Copy link
Collaborator Author

tswast commented May 17, 2017

@mremes You can query those data sources using the BigQuery API, you just need to create an external data source in BigQuery and have the right scopes.

@ghost
Copy link

ghost commented May 26, 2017

Yup, sorry my bad! :)

@LauraRichter
Copy link

Hi. I'm having this same issue. I'e created an external bq data source that links to a google sheet. But reading it in with pd.read_gbq gives "BigQuery BigQuery: No OAuth token with Google Drive scope was found."
If not in pandas_gbq, where should the drive scope be set? Or are you saying that pandas_gbq shouldn't be used for this at all?

@tswast
Copy link
Collaborator Author

tswast commented Sep 12, 2017

Pandas-GBQ does not yet support scopes other than BigQuery. If someone were to work on this feature request, there are several ways credentials can be fetched, so there are several places to update.

@tswast
Copy link
Collaborator Author

tswast commented Apr 7, 2018

I have accounted for this feedback in my auth proposal at #161.

I hope to add a new pandas_gbq.get_user_credentials() function which takes a scopes argument. Closing this issue as a duplicate of #161.

@tswast tswast closed this as completed Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants