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: Fix IDTokenCredentials update bug #1072

Merged
merged 10 commits into from
Aug 4, 2022
Merged

Conversation

mbmccoy
Copy link
Contributor

@mbmccoy mbmccoy commented Jun 30, 2022

The from_credentials method should use the specified target_credentials.

@arithmetic1728 arithmetic1728 changed the title Fix IDTokenCredentials update bug fix: Fix IDTokenCredentials update bug Jul 1, 2022
@arithmetic1728
Copy link
Contributor

@mbmccoy could you change the commit message to "fix: Fix IDTokenCredentials update bug" (with a "fix:" prefix) so it can pass the commit message format check? Also could you add a simple unit test for this change?

The `from_credentials` method should use the specified `target_credentials`.
@mbmccoy mbmccoy requested a review from a team as a code owner August 2, 2022 00:19
@clundin25
Copy link
Contributor

Thanks @mbmccoy. I have updated your commit to match our conventional commits style guide.

@clundin25
Copy link
Contributor

@sai-sunder-s can you take a look as well?

@clundin25 clundin25 added the kokoro:run Add this label to force Kokoro to re-run the tests. label Aug 2, 2022
@yoshi-kokoro yoshi-kokoro removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Aug 2, 2022
@clundin25 clundin25 added the kokoro:run Add this label to force Kokoro to re-run the tests. label Aug 2, 2022
@yoshi-kokoro yoshi-kokoro removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Aug 2, 2022
@@ -473,6 +473,7 @@ def test_id_token_from_credential(

assert id_creds.token == ID_TOKEN_DATA
assert id_creds._include_email is True
assert id_creds._target_credentials is credentials
Copy link
Contributor

Choose a reason for hiding this comment

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

the same creds are used in ln 469 and 471. So there is no point of making the from_credentials call in 471 I think?

Copy link
Contributor

Choose a reason for hiding this comment

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

Updated with a fix for that

@clundin25 clundin25 added the kokoro:run Add this label to force Kokoro to re-run the tests. label Aug 3, 2022
@yoshi-kokoro yoshi-kokoro removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Aug 3, 2022
@clundin25 clundin25 added the kokoro:run Add this label to force Kokoro to re-run the tests. label Aug 3, 2022
@yoshi-kokoro yoshi-kokoro removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Aug 3, 2022
@clundin25 clundin25 added the kokoro:run Add this label to force Kokoro to re-run the tests. label Aug 4, 2022
@yoshi-kokoro yoshi-kokoro removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Aug 4, 2022
@yoshi-kokoro yoshi-kokoro removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Aug 4, 2022
@clundin25 clundin25 added the kokoro:run Add this label to force Kokoro to re-run the tests. label Aug 4, 2022
@yoshi-kokoro yoshi-kokoro removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Aug 4, 2022
@clundin25 clundin25 added the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 4, 2022
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 4, 2022
@clundin25 clundin25 added kokoro:run Add this label to force Kokoro to re-run the tests. owlbot:run Add this label to trigger the Owlbot post processor. labels Aug 4, 2022
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 4, 2022
@yoshi-kokoro yoshi-kokoro removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Aug 4, 2022
@clundin25 clundin25 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 4, 2022
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 4, 2022
@clundin25 clundin25 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 4, 2022
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 4, 2022
@clundin25 clundin25 merged commit b62c25c into googleapis:main Aug 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants