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

Handle the old python3-google-auth in Debian (1.5.x) #276

Merged
merged 1 commit into from
Apr 7, 2024

Conversation

julian-klode
Copy link
Contributor

Implement our own to_json() method and adjust the code handling the refresh of the credentials: Old versions of the library did not read expiry or token from the file, needing you to refresh the token, but we did not trigger refresh because the token was never considered expired, hence check whether we have a token, and , if not, also consider it expired.

Additionally, make the credential storage atomic such that we do not accidentally write an empty credential file on errors.

Implement our own to_json() method and adjust the code handling
the refresh of the credentials: Old versions of the library did
not read expiry or token from the file, needing you to refresh
the token, but we did not trigger refresh because the token was
never considered expired, hence check whether we have a token, and
, if not, also consider it expired.

Additionally, make the credential storage atomic such that we do
not accidentally write an empty credential file on errors.
@julian-klode
Copy link
Contributor Author

This is a bit sad, I have no idea why the library is stuck on 1.5.x in Debian, but I figured let's just make this work. This means doing a refresh on every sync which is annoying but that is the old library version for you.

@gauteh gauteh merged commit 54c7201 into gauteh:master Apr 7, 2024
6 checks passed
@gauteh
Copy link
Owner

gauteh commented Apr 7, 2024

Thanks. Finally merged this.

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 participants