Replies: 1 comment 4 replies
-
I believe you need to grant the "email", "IMAP.AccessAsUser.All", and "offline_access" permissions before it will work. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I'm currently developing a desktop application C# that connects to an Office 365 mailbox using IMAP, with the Mailkit library. However, I keep running into an AuthenticationException:
i've created an Azure AD and granted all the permissions with admin consent and i used example code from the repo and Successfully retrieved the OAuth2 token using Microsoft Identity.
Is there a specific MailKit configuration for handling OAuth2 with Office 365's IMAP that I might be missing?
Thanks in advance for the help!
Beta Was this translation helpful? Give feedback.
All reactions