Skip to content

Commit

Permalink
Update _default.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuan Ren committed Apr 19, 2022
1 parent c9d304d commit ac6c360
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions google/auth/_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,15 @@ def _get_external_account_credentials(
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

0 comments on commit ac6c360

Please sign in to comment.