From 8bb74015ca47ccca37cb5077bae265a257bec8cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Swe=C3=B1a=20=28Swast=29?= Date: Tue, 3 Jun 2025 14:17:37 -0500 Subject: [PATCH 1/2] fix: remove pandas-gbq client ID for authentication (#927) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: remove pandas-gbq client ID for authentication pandas-gbq's client ID has been failing for some time due to `Error 400: redirect_uri_mismatch`. Since it's only used for a fallback if no application default credentials are available, it's probably OK to use pydata-google-auth's client ID instead. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- pandas_gbq/auth.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/pandas_gbq/auth.py b/pandas_gbq/auth.py index 0dbc2a07..704f15be 100644 --- a/pandas_gbq/auth.py +++ b/pandas_gbq/auth.py @@ -13,19 +13,6 @@ CREDENTIALS_CACHE_FILENAME = "bigquery_credentials.dat" SCOPES = ["https://www.googleapis.com/auth/bigquery"] -# The following constants are used for end-user authentication. -# It identifies (via credentials from the pandas-gbq-auth GCP project) the -# application that is requesting permission to access the BigQuery API on -# behalf of a G Suite or Gmail user. -# -# In a web application, the client secret would be kept secret, but this is not -# possible for applications that are installed locally on an end-user's -# machine. -# -# See: https://cloud.google.com/docs/authentication/end-user for details. -CLIENT_ID = "725825577420-unm2gnkiprugilg743tkbig250f4sfsj.apps.googleusercontent.com" -CLIENT_SECRET = "4hqze9yI8fxShls8eJWkeMdJ" - def get_credentials( private_key=None, @@ -47,12 +34,6 @@ def get_credentials( method from the google-auth package.""" ) - if client_id is None: - client_id = CLIENT_ID - - if client_secret is None: - client_secret = CLIENT_SECRET - credentials, default_project_id = pydata_google_auth.default( SCOPES, client_id=client_id, From bcd5c3cc9061d23394ca00816985f1e6d998d20c Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 9 Jun 2025 09:18:25 -0500 Subject: [PATCH 2/2] chore(main): release 0.29.1 (#928) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- CHANGELOG.md | 7 +++++++ pandas_gbq/version.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b16acdab..5e60c5bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [0.29.1](https://github.com/googleapis/python-bigquery-pandas/compare/v0.29.0...v0.29.1) (2025-06-03) + + +### Bug Fixes + +* Remove pandas-gbq client ID for authentication ([#927](https://github.com/googleapis/python-bigquery-pandas/issues/927)) ([8bb7401](https://github.com/googleapis/python-bigquery-pandas/commit/8bb74015ca47ccca37cb5077bae265a257bec8cc)) + ## [0.29.0](https://github.com/googleapis/python-bigquery-pandas/compare/v0.28.1...v0.29.0) (2025-05-14) diff --git a/pandas_gbq/version.py b/pandas_gbq/version.py index e9724daf..90bd1ac4 100644 --- a/pandas_gbq/version.py +++ b/pandas_gbq/version.py @@ -2,4 +2,4 @@ # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. -__version__ = "0.29.0" +__version__ = "0.29.1"