Skip to content

Conversation

@pietrodn
Copy link
Contributor

In IDTokenCredentials.with_target_audience(), IDTokenCredentials.from_credentials(), don't discard the original self._include_email parameter of the original credentials instance.

@pietrodn pietrodn requested a review from a team as a code owner October 14, 2020 12:31
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Oct 14, 2020
Copy link
Contributor

@tseaver tseaver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR needs new unit tests / assertions to verify that the includ_email value is propagated.

@pietrodn
Copy link
Contributor Author

@tseaver the unit tests are updated and I checked that they are red without the fix, and green with the fix.

@pietrodn
Copy link
Contributor Author

It seems that Conventional Commits is complaining about a commit message that I didn't include. Weird.
Just rebased on top of master.

@busunkim96 busunkim96 changed the title Impersonated Credentials: avoid losing the original _include_email parameter fix: avoid losing the original _include_email parameter in impersonated credentials Oct 28, 2020
@busunkim96 busunkim96 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 28, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 28, 2020
@tseaver
Copy link
Contributor

tseaver commented Nov 10, 2020

@pietrodn lint is failing. Please run nox -s blacken and then commit and push the changes. Also, please rebase against current master.

pietrodn and others added 2 commits November 11, 2020 08:39
Fix on the Impersonated Credentials class.
In IDTokenCredentials.with_target_audience(),
IDTokenCredentials.from_credentials(),
don't discard the original self._include_email parameter.
@pietrodn
Copy link
Contributor Author

@tseaver reformatted and rebased. ✅

@tseaver tseaver added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 11, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 11, 2020
@tseaver tseaver added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 11, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 11, 2020
@tseaver tseaver merged commit fd9b5b1 into googleapis:master Dec 11, 2020
@tseaver
Copy link
Contributor

tseaver commented Dec 11, 2020

@pietrodn Thanks for your persistence!

gcf-merge-on-green bot pushed a commit that referenced this pull request Dec 11, 2020
🤖 I have created a release \*beep\* \*boop\* 
---
## [1.24.0](https://www.github.com/googleapis/google-auth-library-python/compare/v1.23.0...v1.24.0) (2020-12-11)


### Features

* add Python 3.9 support, drop Python 3.5 support ([#655](https://www.github.com/googleapis/google-auth-library-python/issues/655)) ([6de753d](https://www.github.com/googleapis/google-auth-library-python/commit/6de753d585254c813b3e6cbde27bf5466261ba10)), closes [#654](https://www.github.com/googleapis/google-auth-library-python/issues/654)


### Bug Fixes

* avoid losing the original '_include_email' parameter in impersonated credentials ([#626](https://www.github.com/googleapis/google-auth-library-python/issues/626)) ([fd9b5b1](https://www.github.com/googleapis/google-auth-library-python/commit/fd9b5b10c80950784bd37ee56e32c505acb5078d))


### Documentation

* fix typo in import ([#651](https://www.github.com/googleapis/google-auth-library-python/issues/651)) ([3319ea8](https://www.github.com/googleapis/google-auth-library-python/commit/3319ea8ae876c73a94f51237b3bbb3f5df2aef89)), closes [#650](https://www.github.com/googleapis/google-auth-library-python/issues/650)
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants