-
Notifications
You must be signed in to change notification settings - Fork 310
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
Conversation
@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`.
Thanks @mbmccoy. I have updated your commit to match our conventional commits style guide. |
@sai-sunder-s can you take a look as well? |
@@ -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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
The
from_credentials
method should use the specifiedtarget_credentials
.