Replies: 1 comment
-
Have you granted permissions to your app? Make sure to follow all of the steps in the "Web services" section: https://github.com/jstedfast/MailKit/blob/master/ExchangeOAuth2.md |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am creating an automated application that runs without user interaction to log in to a Microsoft 365 email account to read emails and move them to another folder.
I have registered the app within Microsoft Entra and believe I have all the settings correct.
I do receive a token back and a TokenEndpoint.
However, I am receiving an "Authentication failed." error.
Below is my C# code.
I have spent a good bit of time on this but I am just stuck. I assume that there may be something simple I am missing and would appreciate it if anyone can point me in the right direction.
THANKS!
Beta Was this translation helpful? Give feedback.
All reactions