GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||
GeezerVison is showing github.com — fix: propagate #1809 to `oauth.Credentials` by mikeedjones · Pull Request #1875 · googleapis/google-auth-library-python
This repository was archived by the owner on Mar 6, 2026. It is now read-only.
Conversation
|
| ) | ||
| self.token = None | ||
| self._refresh_token = None | ||
| self._refresh_token_val = None |
There was a problem 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
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| def _metric_header_for_usage(self): | ||
| return metrics.CRED_TYPE_USER | ||
|
|
||
| def _refresh_token(self, request): |
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
why not remove this and revert change on.
self._source_credentials._refresh_token(request) - > self._source_credentials.refresh(request)
I think using refresh() makes sense in place of _refresh_token
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
_refresh_token has to be a method - _source_credentials._refresh_token. being called from google\auth\impersonated_credentials.py is causing #1850.
There is a bigger fix where "private" methods/attributes of source_credentials are not accessed, but that would be a much larger and more complicated change. This PR is only trying to align the interfaces of oauth2.credentials and auth.credentials since that was not done in #1809
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Apparently not! #1884
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…oauth-credentials
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[2.42.0] Bug with impersonated account token refresh
There was an error while loading. Please reload this page.