Bug 457233

Summary: Please provide oauth2 login for IMAP - not just Gmail
Product: [Frameworks and Libraries] Akonadi Reporter: François Bissey <frp.bissey>
Component: IMAP resourceAssignee: kdepim bugs <kdepim-bugs>
Status: CONFIRMED ---    
Severity: wishlist CC: a.nolting, aaronw, allergy, boba_fit, bugs.kde.org, davidkacerek, inkbottle007, jerome.pouiller, kalzwayed, micet2004-github, miklcct, monkeyboyted, mukdenia, nalvarez
Priority: HI    
Version: 5.19.3   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
URL: https://learn.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/deprecation-of-basic-authentication-exchange-online
Latest Commit: Version Fixed In:

Description François Bissey 2022-07-28 11:15:53 UTC
My organisation has moved to office365 but has not enabled EWS. This make the akonadi EWS component useless to me.
On the other hand they have enabled IMAP with OAUTH2. Thunderbird support IMAP+OAUTH2 for both receiving and sending and therefore works in my use case. kmail sadely doesn't as I cannot select oauth2 with an IMAP server.
Comment 1 Amand Tihon 2022-10-24 12:12:39 UTC
With Microsoft having started to disable all forms of basic auth for their office365 tenants, I think this bug deserves a higher importance.
Comment 2 Nicolás Alvarez 2022-10-27 15:51:31 UTC
Given that Office365 situation, I agree. I think it's still "wishlist" because it's a feature request, but I'll increase from "normal" to "high".
Comment 3 Boba Fit 2022-11-01 18:43:05 UTC
*** This bug has been confirmed by popular vote. ***
Comment 4 Boba Fit 2022-11-01 19:19:46 UTC
Does this commit is a good base to implement it?
https://invent.kde.org/pim/kimap/-/commit/f953e1bac598388154138282a90529d7ff04aca2
It was written by @dvratil
Comment 5 Jerôme Pouiller 2023-01-20 10:35:00 UTC
Does someone tried https://github.com/simonrob/email-oauth2-proxy ?
Comment 6 Aaron Williams 2023-01-21 09:29:03 UTC
I need this badly. Our IT department just changed the settings so I can no longer access my email on Office365 via IMAP. In addition, EWS is also failing since none of the user agents are supported (and there's a bug where it's impossible to override it for the first time, but this is unrelated to IMAP).
Comment 7 Aaron Williams 2023-01-28 04:53:51 UTC
Since Microsoft now mandates the use of oauth2 for IMAP with office365, this bug is now more important than ever. It is now impossible to use KMail/Kontact with Office365 without jumping through some major hoops with proxies, etc. Many corporate organizations use office365. I'm now stuck with Thunderbird for my work email and I am not at all happy about running that CPU pig (CPU usage is pegged at well over 100% at all times).
Comment 8 Björn Bidar (Thaodan) 2023-10-14 19:42:01 UTC
*** Bug 455113 has been marked as a duplicate of this bug. ***
Comment 9 Björn Bidar (Thaodan) 2023-10-14 19:42:19 UTC
*** Bug 462042 has been marked as a duplicate of this bug. ***
Comment 10 Björn Bidar (Thaodan) 2023-10-14 19:42:30 UTC
*** Bug 444301 has been marked as a duplicate of this bug. ***
Comment 11 Chris 2023-10-15 01:27:27 UTC
(In reply to Björn Bidar (Thaodan) from comment #8)
> *** Bug 455113 has been marked as a duplicate of this bug. ***

Bug 455113 is an actual bug because it does something it shouldn't: connecting to Gmail when it's a Yahoo address. In light of this, shouldn't this bug be considered an actual one too, instead of being classified as a mere wishlist item?
Comment 12 Chris 2024-03-13 00:00:52 UTC
This bug has 3 duplicates, all of which have importance "NOR normal": 444301 455113 462042.
I think it should be fair that the present issue has the same importance.