You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are working on updating some of our code to use google.auth.impersonated_credentials in place of google.oauth2.service_account credentials. Some of our code needs to know the email address associated with credentials it's using. Currently our code looks at the my_creds.signer_email property. With impersonated credentials we have to look at my_creds._target_principal. It would be nice if the base Credentials class implemented a way to get the email address directly and each implementation handled returning it correctly.
The text was updated successfully, but these errors were encountered:
We are working on updating some of our code to use
google.auth.impersonated_credentials
in place ofgoogle.oauth2.service_account
credentials. Some of our code needs to know the email address associated with credentials it's using. Currently our code looks at themy_creds.signer_email
property. With impersonated credentials we have to look atmy_creds._target_principal
. It would be nice if the base Credentials class implemented a way to get the email address directly and each implementation handled returning it correctly.The text was updated successfully, but these errors were encountered: