From c857f3d69959b009d3c21bf8ba3c7d95c56f7a10 Mon Sep 17 00:00:00 2001 From: "Michael B. McCoy" Date: Wed, 29 Jun 2022 20:01:27 -0700 Subject: [PATCH] fix: IDTokenCredentials Constructor bug The `from_credentials` method should use the specified `target_credentials`. --- google/auth/impersonated_credentials.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google/auth/impersonated_credentials.py b/google/auth/impersonated_credentials.py index 29eab1684..4d0c4f0f1 100644 --- a/google/auth/impersonated_credentials.py +++ b/google/auth/impersonated_credentials.py @@ -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,