I’ve read the linked documentation several times now, and as far as I can tell, there’s no way for automated (non-interactive) applications or daemons to access Exchange Online mailboxes using IMAP with OAuth. Or am I missing something? The issue is requesting tokens. The doc suggests that only two OAuth flows - Authorization Code Flow and Device Authorization Grant Flow - are supported by IMAP. Neither of which appears to be suitable for non-interactive auth. The doc also states that “OAuth access to IMAP, POP, SMTP AUTH protocols via OAuth2 client credentials grant flow is not supported” and that is the flow recommended by Microsoft for server to server or non-interactive apps! The suggestion is to use Graph API “if your application needs persistent access to all mailboxes in an tenant”. But we just need individual non-interactive applications to have access to specific mailboxes via IMAP using OAuth. Or can we use any OAuth flow via the MSAL client libraries, including ROPC or Windows Integrated Authentication that should support non-interactive auth? We have many non-interactive apps that use IMAP to programmatically access EXO mailboxes. If not, how are these apps supposed to migrate to OAuth?