Skip to content

Commit

Permalink
revert: pluggable auth support #995 (#1039)
Browse files Browse the repository at this point in the history
  • Loading branch information
arithmetic1728 committed May 11, 2022
1 parent 5367aac commit 513d999
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 1,071 deletions.
11 changes: 1 addition & 10 deletions google/auth/_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,23 +324,14 @@ def _get_external_account_credentials(
google.auth.exceptions.DefaultCredentialsError: if the info dictionary
is in the wrong format or is missing required information.
"""
# There are currently 3 types of external_account credentials.
# There are currently 2 types of external_account credentials.
if info.get("subject_token_type") == _AWS_SUBJECT_TOKEN_TYPE:
# Check if configuration corresponds to an AWS credentials.
from google.auth import aws

credentials = aws.Credentials.from_info(
info, scopes=scopes, default_scopes=default_scopes
)
elif (
info.get("credential_source") is not None
and info.get("credential_source").get("executable") is not None
):
from google.auth import pluggable

credentials = pluggable.Credentials.from_info(
info, scopes=scopes, default_scopes=default_scopes
)
else:
try:
# Check if configuration corresponds to an Identity Pool credentials.
Expand Down
349 changes: 0 additions & 349 deletions google/auth/pluggable.py

This file was deleted.

Loading

0 comments on commit 513d999

Please sign in to comment.