Skip to content

Conversation

@mikeedjones
Copy link

@mikeedjones mikeedjones commented Nov 20, 2025

Fixes #1850

#1809 changed _refresh_token on auth.Credentials but not oauth2.Credentials which are used interchangeably in other google SKDs. This PR propagates the same changes as in #1809 to oauth.Credentials

@mikeedjones mikeedjones requested review from a team as code owners November 20, 2025 13:15
@mikeedjones mikeedjones changed the title fix: propagate https://github.com/googleapis/google-auth-library-python/pull/1809 to oath.Credentials fix: propagate #1809 to oath.Credentials Nov 21, 2025
@mikeedjones mikeedjones changed the title fix: propagate #1809 to oath.Credentials fix: propagate #1809 to oauth.Credentials Nov 21, 2025
…d add _refresh_token wrapper

Rename the stored refresh token attribute from _refresh_token to _refresh_token_val to avoid a name collision with a newly added _refresh_token(request) wrapper that delegates to refresh(request). Update all references and tests accordingly to match changes in fix test_aws_based_external_account system test

Fixes googleapis#1850
@mikeedjones mikeedjones force-pushed the bugfix/propagate-change-of-refresh-token-to-oauth-credentials branch from a5b9161 to bec5843 Compare November 23, 2025 11:35
@mikeedjones mikeedjones requested a review from a team as a code owner November 23, 2025 11:35
)
self.token = None
self._refresh_token = None
self._refresh_token_val = None
Copy link
Author

Choose a reason for hiding this comment

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

I think this and the associated test was missed in #1809

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.

[2.42.0] Bug with impersonated account token refresh

1 participant