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

CLN: use pydata-google-auth for auth flow #241

Merged
merged 3 commits into from
Jan 4, 2019

Conversation

tswast
Copy link
Collaborator

@tswast tswast commented Dec 20, 2018

Only private_key logic and customized path for credentials cache remain.
At some point in the future private_key logic will be removed, as that
parameter is deprecated in favor of the credentials argument.

Also removes the _try_credentials logic, as that slows down the
authentication process and is largely unnecessary now that credentials
can be explicitly created and supplied via the credentials argument.

Closes #161

Only private_key logic and customized path for credentials cache remain.
At some point in the future private_key logic will be removed, as that
parameter is deprecated in favor of the credentials argument.

Also removes the _try_credentials logic, as that slows down the
authentication process and is largely unnecessary now that credentials
can be explicitly created and supplied via the credentials argument.
@tswast tswast requested a review from max-sixty December 20, 2018 19:09
Copy link
Contributor

@max-sixty max-sixty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! It's awesome to see how far auth has moved!

docs/source/howto/authentication.rst Show resolved Hide resolved
@@ -12,40 +12,34 @@
logger = logging.getLogger(__name__)


CREDENTIALS_CACHE_DIRNAME = "pandas_gbq"
CREDENTIALS_CACHE_FILENAME = "bigquery_credentials.dat"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To confirm, you think we should have something specific for pandas_gbq rather than anything using pydata_google_auth?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was mostly to be backwards compatible. I guess people won't be too annoyed if we change the credentials location and they have to reauth?

Another concern is if they use the pydata_google_auth location, it may get confusing if they use that library with different scopes somewhere else.

pandas_gbq/auth.py Outdated Show resolved Hide resolved
@tswast tswast merged commit ecc695f into googleapis:master Jan 4, 2019
@tswast tswast deleted the issue161-pydata-google-auth branch January 4, 2019 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants