Skip to content

CLN: Update the authentication credentials. #267

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

Merged
merged 1 commit into from
Apr 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ Changelog
0.10.0 / TBD
------------

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

Dependency updates
~~~~~~~~~~~~~~~~~~
Expand All @@ -23,7 +27,7 @@ Internal changes
Enhancements
~~~~~~~~~~~~
- Allow ``table_schema`` in :func:`to_gbq` to contain only a subset of columns,
with the rest being populated using the DataFrame dtypes (:issue:`218`)
with the rest being populated using the DataFrame dtypes (:issue:`218`)
(contributed by @johnpaton)
- Read ``project_id`` in :func:`to_gbq` from provided ``credentials`` if
available (contributed by @daureg)
Expand Down
9 changes: 5 additions & 4 deletions pandas_gbq/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,19 @@
SCOPES = ["https://www.googleapis.com/auth/bigquery"]

# The following constants are used for end-user authentication.
# It identifies the application that is requesting permission to access the
# BigQuery API on behalf of a G Suite or Gmail user.
# 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 = (
"495642085510-k0tmvj2m941jhre2nbqka17vqpjfddtd.apps.googleusercontent.com"
"725825577420-unm2gnkiprugilg743tkbig250f4sfsj.apps.googleusercontent.com"
)
CLIENT_SECRET = "kOc9wMptUtxkcIFbtZCcrEAc"
CLIENT_SECRET = "4hqze9yI8fxShls8eJWkeMdJ"


def get_credentials(
Expand Down