Skip to content

Commit

Permalink
Fix IDTokenCredentials update 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 committed Jun 30, 2022
1 parent 77f1704 commit 4b84750
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 4b84750

Please sign in to comment.