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