O365 IMAP Authentication: OAuth and MFA Solution

There is much confusion and worry about Microsoft’s plans to disable standard password authentication for the IMAP, and POP3  protocols. Here is the announcement posted on 20-Sept-2019 on the Office 365 blog: https://developer.microsoft.com/en-us/office/blogs/end-of-support-for-basic-authentication-access-to-exchange-online-apis-for-office-365-customers/ Chilkat already supports OAuth2 for the IMAP, POP3, and SMTP protocols. (Microsoft will continue to support basic auth for SMTP)  In all three protocols, an application can […]

IMAP Authentication using OAUTH

Using the Chilkat IMAP component/library, it is possible to authenticate using OAUTH via the SendRawCommand method. Instead of calling the imap.Login method, you would instead call imap.SendRawCommand as shown here: string response = imap.SendRawCommand(“AUTHENTICATE XOAUTH <base64_data>”); Your application will need to compute the OAUTH base64 string. Chilkat does not implement that computations required for generating the OAUTH data.