Skip to content
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

fix: avoid losing the original _include_email parameter in impersonated credentials #626

Merged
merged 4 commits into from Dec 11, 2020

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!

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.

None yet

4 participants