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: aaronw, allergy, boba_fit, bugs.kde.org, jerome.pouiller, 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).