[Oauth 2.0] imap Office 365

0
Hi Martin, I'm trying to authenticate on microsoft office 365 using Oauth 2.0. I always have the following error with the dll : "AUTHENTICATE failed (NO)." My Azure App, and my token are OK, **i can authenticate using another librairy** (MailKit). My app ressources are : ![enter image description here][1] And the token is : ![enter image description here][2] the scope seems to be OK, and I use directly the acces_token to authenticate, but unsuccessfull [1]: https://download.isi-com.com/tmp/api.png [2]: https://download.isi-com.com/tmp/token.png My code : using (Imap _imap = new Imap()) { _imap.Connect("outlook.office365.com", 993, ComponentPro.Net.SslSecurityMode.Implicit); _imap.Authenticate(_return.access_token.Value, ImapAuthenticationMethod.OAuth20); _imap.Disconnect(); } Could you help me ?
 
asked 8/12/2022 1:32:28 PM
add a comment

1 Answers

0
Hi S├ębastien, This issue is related to Microsoft. I can think of one of these two things: This is part of the recent major outage within MS Basic Auth has been disabled for their Exchange Online Since they manage their own XO, it's been pushed back to the customer at this point, with reference https://www.kraftkennedy.com/how-to-temporarily-re-enable-basic-authentication-in-exchange-online/ Thanks for contacting us.
 
answered 8/21/2022 7:39:26 AM
add a comment

Your Answer

Not the answer you're looking for? Browse other questions tagged imap or ask your own question.