Skip to content

Commit 6113d81

Browse files
committed
Update the authentication credentials.
These auth credentials for the browser authentication flow belong to the pandas-gbq-auth GCP project. The reason for the fresh project is that this allows us to explicitly enable APIs needed for new functionality, such as the BigQuery Storage API.
1 parent c840dbb commit 6113d81

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

docs/source/changelog.rst

+6-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ Changelog
66
0.10.0 / TBD
77
------------
88

9-
- This fixes a bug where pandas-gbq could not upload an empty database. (:issue:`237`)
9+
- Fix a bug where pandas-gbq could not upload an empty DataFrame. (:issue:`237`)
10+
- Update the authentication credentials. **Note:** You may need to set
11+
``reauth=True`` in order to update your credentials to the most recent
12+
version. This is required to use new functionality such as the BigQuery
13+
Storage API. (:issue:`TBD`)
1014

1115
Dependency updates
1216
~~~~~~~~~~~~~~~~~~
@@ -23,7 +27,7 @@ Internal changes
2327
Enhancements
2428
~~~~~~~~~~~~
2529
- Allow ``table_schema`` in :func:`to_gbq` to contain only a subset of columns,
26-
with the rest being populated using the DataFrame dtypes (:issue:`218`)
30+
with the rest being populated using the DataFrame dtypes (:issue:`218`)
2731
(contributed by @johnpaton)
2832
- Read ``project_id`` in :func:`to_gbq` from provided ``credentials`` if
2933
available (contributed by @daureg)

pandas_gbq/auth.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,19 @@
1717
SCOPES = ["https://www.googleapis.com/auth/bigquery"]
1818

1919
# The following constants are used for end-user authentication.
20-
# It identifies the application that is requesting permission to access the
21-
# BigQuery API on behalf of a G Suite or Gmail user.
20+
# It identifies (via credentials from the pandas-gbq-auth GCP project) the
21+
# application that is requesting permission to access the BigQuery API on
22+
# behalf of a G Suite or Gmail user.
2223
#
2324
# In a web application, the client secret would be kept secret, but this is not
2425
# possible for applications that are installed locally on an end-user's
2526
# machine.
2627
#
2728
# See: https://cloud.google.com/docs/authentication/end-user for details.
2829
CLIENT_ID = (
29-
"495642085510-k0tmvj2m941jhre2nbqka17vqpjfddtd.apps.googleusercontent.com"
30+
"725825577420-unm2gnkiprugilg743tkbig250f4sfsj.apps.googleusercontent.com"
3031
)
31-
CLIENT_SECRET = "kOc9wMptUtxkcIFbtZCcrEAc"
32+
CLIENT_SECRET = "4hqze9yI8fxShls8eJWkeMdJ"
3233

3334

3435
def get_credentials(

0 commit comments

Comments
 (0)