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
Fetchmail: add support for Oauth2 #42552
Comments
@mart-e I guess you're a good person to give initial feedback on this one :) I saw some topic about this in the past but can't find it anymore. Not even sure if it was on Github. |
This comment has been minimized.
This comment has been minimized.
Ah sorry, wrong blog post. Here is the blog post mentioning the cutoff dates: https://gsuiteupdates.googleblog.com/2019/12/less-secure-apps-oauth-google-username-password-incorrect.html. I'll update the issue description. |
I think SMTP will be affected too: accessing to gmail accounts with SMTP does not work without enabling less secure apps (an old issue at #1810) |
We are reviewing this question internally and should get back to you soon (internal task: 2170676) |
Any news about this topic? |
@rim-odoo Hello what's the status on this issue? |
@gurneyalex The task has been validated and is worked on internally :) |
@rim-odoo any update on that issue. Is there a PR somewhere ? |
I got the confirmation that our R&D team is still working on developing a fix for this issue. Please also note that Google has postponed the removal of basic password authentication, sine die : https://gsuiteupdates.googleblog.com/2020/03/less-secure-app-turn-off-suspended.html |
@rim-odoo Any notice about that? |
@rim-odoo any news yet about the progress? |
@rim-odoo any update/news on this? |
Access to non-secure apps is banned for google accounts with 2 factor authentication. The only alternative right now is application passwords, that it is not recommended by Google and it should be reconfigured each time the account owner updates his password |
Yes indeed, I've noticed so too. Sadly still not any update/support about this matter from Odoo. |
Any news after 19 months ? |
This is kinda getting ridiculous. @rim-odoo any update? "should get back to you soon" should be any day now, right? 🤦 |
@rim-odoo is no longer working at Odoo. |
Is there still anyone working at Odoo besides the 1700 account managers ? I really think this a basic security requirement pushed both by Google and Microsoft and the fix is rather easy and straightforward. OAuth 2 is not a rocket science. |
There has been zero movements in 9 months though :/ |
Office365 stops with basic authentication in october 2022 |
We've gone ahead and opted for smtp for incoming mail, because this is what odoo is using too. https://gitlab.com/Apertoso/docker/odoo-lmtp/-/blob/main/odoo-lmtpd.py |
Hello @gurneyalex , Master version PR was used mainly for review, dev and testing. We plan to merge in all major versions (13+) and we will try to backport in 12 if code applies without too much changes (seems to be the case so currently still in our plans). Rationale is that even if 12.0 is EOL people may take time to migrate towards 13.0, hence trying to support it. Cheers ! |
google announced they will be requiring oauth from May 30th |
backport to earlier odoo versions: OCA/social#860 |
This can be closed, right? |
@yajo yes |
With odoo 12 I am getting
after clicking on Did anyone managed to connect to gmail? Thanks |
Anyway, we are enabling "apps passwords" as a workaround |
@eLBati try configuring the access for a Desktop app instead of a web application. |
Code exists, no documentation. Typical Odoo. Ran into the same error message as @eLBati. Changing the application type to a "Desktop app" didn't help. But luckily, I found a workaround for setting up the incoming email using OAuth2.
Not sure whether the |
IMAP access to G-Suite will be removed in the near future: https://gsuiteupdates.googleblog.com/2019/12/less-secure-apps-oauth-google-username-password-incorrect.html
If I understand correctly, the critical path seems to be that new installations won't be able to connect to G-Suite for IMAP after 20th of June 2020. It is less clear to me if SMTP access is also being curtailed.
While imaplib has supported Oauth2 authentication for a long time (
http://rakeshmukundan.in/2013/01/23/access-gmail-python-imaplib-and-python-with-oauth2/), it looks like the integration in Odoo is not yet present (https://github.com/odoo/odoo/blob/master/addons/fetchmail/models/fetchmail.py#L103-L108).
The text was updated successfully, but these errors were encountered: