Forum Discussion
bradsalvin
Sep 26, 2023Copper Contributor
IMAP login to office365
Hello everyone I am ROR developer working on a application in which I have to read emails received on this office365 account via IMAP but currently I am not able to login via IMAP (did logged in onc...
VasilMichev
Sep 26, 2023MVP
They did, but that's not a real solution to the basic auth problem. So now that basic auth is deprecated, you have to switch to OAuth/SASL XOAUTH2.
bradsalvin
Sep 27, 2023Copper Contributor
@Vasil, actually it is urgent and at the moment I just want to retrieve emails from Inbox so conventions and rules are secondary things. So I shall be grateful to you if you can guide me in that specific way/method other than OAUTH. Surely I am going to migrate to XOAUTH2 later on. Thank you.
- VasilMichevSep 27, 2023MVPThere is no other way. If you simply want to access a give mailbox via IMAP (as a user), use a client that supports Modern auth. Thunderbird for example. If you are creating your own solution, make sure to leverage OAuth.
As mentioned above, basic auth method have been disabled in O365. Even if you toggle Security defaults, there is no way to re-enabled basic auth. Details are for example here: https://learn.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/deprecation-of-basic-authentication-exchange-online#pop-imap-and-smtp-auth