Skip to content

Commit

Permalink
fix: IDTokenCredentials Constructor bug
Browse files Browse the repository at this point in the history
The `from_credentials` method should use the specified `target_credentials`.
  • Loading branch information
mbmccoy authored and clundin25 committed Aug 2, 2022
1 parent f8d776a commit c857f3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google/auth/impersonated_credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ def __init__(

def from_credentials(self, target_credentials, target_audience=None):
return self.__class__(
target_credentials=self._target_credentials,
target_credentials=target_credentials,
target_audience=target_audience,
include_email=self._include_email,
quota_project_id=self._quota_project_id,
Expand Down

0 comments on commit c857f3d

Please sign in to comment.