-
-
Notifications
You must be signed in to change notification settings - Fork 361
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
google/gmail blocks offlineimap due to security #228
Comments
I've just been thru this with another project. |
Thanks for the info. |
Welcome. php code with details to create access token: |
Concretely, how do I solve this? |
Never mind, I found a solution: in the admin console of the user (we have a Google Apps account), disable the login challenge (it's for 10 minutes only), then launch the synchronization. |
I've been doing some Perl (wich did not exist) if it can help https://github.com/fser/google-imap-oauth |
There was WIP on OAUTH support but could never hit the mainline. Someone could find it in github, update and submit. |
OAUTH2 was implemented and merged in |
For those who use offlineimap for an occasional sync of their gmail content, one can simply toggle access (must be logged in) for what google deems less secure apps here: |
Interesting. This worth to be written in the documentation of the website, IMHO. |
Here is some python code to do the OAuth2 login to gmail. |
Hello, How do I use OAUTH with offlineimap? Is it documented somewhere? Shouldn't I get an URL after using it the first time so I can authorize the app on gmail? I remember to have done something similar on rainbowstream (a Twitter terminal client written in Python with OAUTH support). Thank you very much. |
Otherwise it won't work with gmail. See https://github.com/OfflineIMAP/offlineimap/blob/master/offlineimap.conf#L764 for how to configure properly. The related issue is here: OfflineIMAP/offlineimap#228 The easy way out is to remove this check: https://www.google.com/settings/security/lesssecureapps Also I have setup notmuch and offlineimap in a more XDG compatible way.
Hi, |
I wonder I might be missing something here. Isn't the |
Perhaps it would be useful to learn how another gmail backup utility works This utility handles the oauth process by opening a web browser page (while On 12 April 2016 at 07:53, Nicolas Sebrecht [email protected]
|
https://github.com/insanum/gcalcli has an interesting automated approach for that. |
Make sure you remove |
Sorry for the slow reply, I tried removing |
@jbouttier Please, open a new issue and put the error message inline. |
https://accounts.google.com/o/oauth2/token { |
This is what happens when I run offlineimap:
Visiting the url above (https://support.google.com/accounts/answer/6010255) indicates that google does not feel offlineimap is secure enough, and blocks it from logging in.
Google apparantly has the option to "allowing less secure apps to access your account" by toggling a switch, but they don't recommend it (of course).
Is this a won't (can't) fix?
The text was updated successfully, but these errors were encountered: