Bug 4590 - Exchange requires two line AUTH XOAUTH2
Summary: Exchange requires two line AUTH XOAUTH2
Status: RESOLVED FIXED
Alias: None
Product: Claws Mail
Classification: Unclassified
Component: OAuth2 (show other bugs)
Version: 4.1.0
Hardware: PC Linux
: P3 normal
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2022-04-19 03:09 UTC by M
Modified: 2022-11-19 01:31 UTC (History)
1 user (show)

See Also:


Attachments
Patch to split AUTH XOAUTH over two lines (4.27 KB, patch)
2022-04-19 03:09 UTC, M
Details | Diff

Description M 2022-04-19 03:09:09 UTC
Created attachment 2283 [details]
Patch to split AUTH XOAUTH over two lines

I recently needed to use Microsoft Exchange, and followed the very helpful instructions at https://www.claws-mail.org/faq/index.php/Oauth2 . To get POP to work with their servers, in a addition to patching bug 4587, I needed to adjust the authentication command; as noted by https://docs.microsoft.com/en-us/exchange/client-developer/legacy-protocols/how-to-authenticate-an-imap-pop-smtp-application-by-using-oauth , the base64 encoded string following AUTH XOAUTH2 needs to be put on a separate line.

I've attached the patch that I use here in case anyone else has the same problem. Note: it will break with servers that want single line AUTH XOAUTH2 requests.
Comment 1 M 2022-11-19 01:31:11 UTC
Fixed by 15f792b7ecc27a055afe119bb3caf812fdeada79.

Note You need to log in before you can comment on or make changes to this bug.