Authentication to Microsoft Office365 via OAUTH2 for IMAP and SMTP clients

0
Hi, we are trying to authenticate O365 using OAUTH2 but getting Authenticate failed. ImapClient.Connect("outlook.office365.com", 993, ComponentPro.Net.SslSecurityMode.Implicit); ImapClient.AuthenticateAsync(token, ImapAuthenticationMethod.OAuth20); SmtpClient.Connect("outlook.office365.com", 587, ComponentPro.Net.SslSecurityMode.Explicit); SmtpClient.AuthenticateAsync(token, ImapAuthenticationMethod.OAuth20); Token is for Client App flow. We couldn't find any example for ComponentPro. What are the correct API permissions to accomplish this and what scopes need to be set for Client APP flow? Thanks
 
asked 9/2/2022 2:39:56 PM
add a comment

1 Answers

0
Hi yurienricardo, We do not have a specific sample for this API. We suggest you also check API of office 365. Thanks for contacting us.
 
answered 9/5/2022 2:02:26 PM
add a comment

Your Answer

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