-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
remote: oauth2: migrate from deprecated oauth2client library #242
Conversation
I'm not a python developer... but I've tried :) the "key storage" looked a bit smart with the "oauth2client.file" library, now it's just a simple wrapper that writes the credentials in json format to the disk. not sure if there's anything better to do? opinions? Also, the "argparser" from the "oauth2client.tools" doesn't seem to have an equivalent... opinions? :) Hope this helps, PS: on Gentoo, the oauth2client python package has been removed... which triggered the need to provide the patch. |
Nice, have you tested this throughly? I don't have a good setup for that at the moment. |
I should have given that precision in the previous message.
I'm struggling to test out the refresh case, can't seem to generate short lived credentials? I also haven't tried to re-use the previously created credential file by oauth2client, json looks different, so unless the new lib implements backward compatibility, user will probably have to delete their old credential file and re-request and authorization. |
That would be nice to test, or if possible, manually migrate to a new file (use a different file name so that users can roll-back). |
I've massaged this a bit locally.. The first issue with this PR is that I get timeouts on my large sync. Is there a way to increase it do you think?
|
Sorry I'm not very reactive...
I haven't been able to reproduce this, my inbox is roughly 10GB big and my internet connection is far from what you would call "fast".
|
I have been able to test further, it has been a pain to navigate the google cloud web interface... anyway... but what's tested (and works):
I haven't tested the migration from the previous json file, as I've deleted them from my system and the oauth2client python library is no more part of my system (I could reinstall using pip/venv though) |
At least, this solved my problem and I could successfully |
I've used this to do a full pull from scratch, including the whole authentication flow. I've also tried syncing and sending emails. So far, so good. |
Sounds good, looks like this can probably be merged soon since the current solution is not really working anymore. Might require reauthorization, but that is not the end of the world. |
The list of requirements in |
oauth2client lib is deprecated and hasn't been updated in a while. replace it with google-auth. fix gauteh#230 Signed-off-by: Guillaume Ranquet <granquet@baylibre.com>
6f47213
to
2ccc4b4
Compare
Thanks. Finally got around to merging this. |
oauth2client lib is deprecated and hasn't been updated in a while.
replace it with google-auth.