Repository navigation
Conversation
…ct_uri - Emit FutureWarning in pandas_gbq.auth.get_credentials() when auth_local_webserver=False or auth_redirect_uri is provided, while keeping behavior non-breaking. - Switch pydata_google_auth.default() call from deprecated auth_local_webserver= to use_local_webserver=. - Raise minimum dependency versions to google-auth-oauthlib >=1.5.0 (default PKCE + ExclusiveWSGIServer loopback protections) and pydata-google-auth >=1.9.1 (native Colab auth) in setup.py and testing/constraints-3.11.txt. - Update read_gbq/to_gbq docstrings and authentication docs to deprecate auth_local_webserver=False and auth_redirect_uri and guide headless users to gcloud auth application-default login --no-browser, service accounts/WIF, or Colab auth. BUG=581917075
Contributor
There was a problem hiding this comment.
Code Review
This pull request deprecates the auth_local_webserver=False and auth_redirect_uri workflows due to OAuth security risks. It adds deprecation warnings in get_credentials, read_gbq, and to_gbq, updates the documentation with recommended alternatives (such as Application Default Credentials), bumps minimum versions for pydata-google-auth and google-auth-oauthlib, and adds unit tests to verify the warnings. There are no review comments, so I have no feedback to provide.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BUG=581917075
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: