fix: avoid losing the original '_include_email' parameter in impersonated credentials (#626)
Co-authored-by: Tres Seaver <tseaver@palladion.com>
diff --git a/google/auth/impersonated_credentials.py b/google/auth/impersonated_credentials.py
index d96c05b..4d15837 100644
--- a/google/auth/impersonated_credentials.py
+++ b/google/auth/impersonated_credentials.py
@@ -341,6 +341,7 @@
return self.__class__(
target_credentials=self._target_credentials,
target_audience=target_audience,
+ include_email=self._include_email,
quota_project_id=self._quota_project_id,
)
@@ -348,6 +349,7 @@
return self.__class__(
target_credentials=self._target_credentials,
target_audience=target_audience,
+ include_email=self._include_email,
quota_project_id=self._quota_project_id,
)