Skip to content

Commit

Permalink
FIX: re-enable auth_local_webserver on default() auth method.
Browse files Browse the repository at this point in the history
  • Loading branch information
tswast committed Dec 12, 2019
1 parent 00e2b84 commit d0644d2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Changelog
=========

.. _changelog-0.2.1:

0.2.1 / (2019-12-12)
--------------------

- Re-enable ``auth_local_webserver`` in ``default`` method. Show warning,
rather than fallback to console.

.. _changelog-0.2.0:

0.2.0 / (2019-12-12)
Expand Down
3 changes: 3 additions & 0 deletions pydata_google_auth/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ def default(
pydata_google_auth.exceptions.PyDataCredentialsError
If unable to get valid credentials.
"""
if auth_local_webserver is not None:
use_local_webserver = auth_local_webserver

# Try to retrieve Application Default Credentials
credentials, default_project = get_application_default_credentials(scopes)

Expand Down

0 comments on commit d0644d2

Please sign in to comment.