Skip to content

Commit 8bb7401

Browse files
fix: remove pandas-gbq client ID for authentication (#927)
* 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 <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 3ad6a4a commit 8bb7401

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

pandas_gbq/auth.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,6 @@
1313
CREDENTIALS_CACHE_FILENAME = "bigquery_credentials.dat"
1414
SCOPES = ["https://www.googleapis.com/auth/bigquery"]
1515

16-
# The following constants are used for end-user authentication.
17-
# It identifies (via credentials from the pandas-gbq-auth GCP project) the
18-
# application that is requesting permission to access the BigQuery API on
19-
# behalf of a G Suite or Gmail user.
20-
#
21-
# In a web application, the client secret would be kept secret, but this is not
22-
# possible for applications that are installed locally on an end-user's
23-
# machine.
24-
#
25-
# See: https://cloud.google.com/docs/authentication/end-user for details.
26-
CLIENT_ID = "725825577420-unm2gnkiprugilg743tkbig250f4sfsj.apps.googleusercontent.com"
27-
CLIENT_SECRET = "4hqze9yI8fxShls8eJWkeMdJ"
28-
2916

3017
def get_credentials(
3118
private_key=None,
@@ -47,12 +34,6 @@ def get_credentials(
4734
method from the google-auth package."""
4835
)
4936

50-
if client_id is None:
51-
client_id = CLIENT_ID
52-
53-
if client_secret is None:
54-
client_secret = CLIENT_SECRET
55-
5637
credentials, default_project_id = pydata_google_auth.default(
5738
SCOPES,
5839
client_id=client_id,

0 commit comments

Comments
 (0)