-
Notifications
You must be signed in to change notification settings - Fork 309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug in with_target_audience
method of google.auth.compute_engine.IDTokenCredentials
#359
Comments
Hi @lmiglio, thank you for the report! Would you be able to open a PR with the change? |
…rget_audience method (googleapis#359)
pls take a look at what that change does is alters how i've left the edit, #348 I'll file an issue for that separately but that PR cited is just for the id_token. fyi, tried to repro the issue you've filed here with the changes i've got on pr 362 and it works fine: on a gce instance
|
…rget_audience method (googleapis#359)
@busunkim96 & @bshaffer - could I trouble y'all to team up on this one? |
Closed by #438 |
Hi, I think I found a problem with
google.auth.compute_engine.credentials.IDTokenCredentials
. When the methodswith_target_audience
and thenrefresh
are called, aTypeError: 'Signer' object is not callable
is raised.Environment details
google-auth
version: 1.6.3Steps to reproduce
vm
shellpython
Possible fix
I believe that the problem is in this line of code. When the copy of the credentials is created, the constructor of
IDTokenCredentials
is called and theself._signer
is passed as first parameter instead of the Request object. That is why it fails withTypeError: 'Signer' object is not callable
.A possible clean solution could consist in adding
signer
as parameter to the constructor.The text was updated successfully, but these errors were encountered: