IMAP OAuth2 Authentication (Office 365)

0 votes
asked Apr 20 by apriemyshev (160 points)

Are there any code examples for accessing an Office 365 mailbox using IMAP with an OAuth 2.0 token?

Applies to: Rebex Secure Mail

1 Answer

+1 vote
answered Apr 21 by Pavel Matyska (13,220 points)
selected Apr 21 by apriemyshev
 
Best answer

Hi,

In the time of writing this answer, it is still not possible to use OAuth token for IMAP protocol targeting outlook.office365.com server.

As one of Microsoft person claimed, it is still work in progress. When it is done, they'll make an announcement.
Thay also claim, "We’re planning on adding OAuth support to both POP and IMAP in the next few months".

When Microsoft has implemented this in their side, we'll post an updated answer to this question.

...