Accessing emails on Office 365 via OAuth

I started the solution on 2022.06, but I think it works at least from 2022.03 onwards.

You could try using

oauthOffice365.additionalParameters({'response_type':'code'})
oauthOffice365.additionalParameters({'response_mode':'query'})

to manually add the parameters, perhaps that helps.

Hi Robert,
thanks for your answer,
I just downloaded the 2202.06 and copy the oauth plugins to my 2201.3.2 installation and could run your test solution now.
I just want to confirm that it is a excellent way of demontrating how things work !!
Appreciate you created and shared it with us !
Best regards
Nam

I tried to use IMAP authentication and I get this error: stackTrace:javax.mail.AuthenticationFailedException: AUTHENTICATE failed
I was able to get a token after I registered the app in Azure. The Graph approach works well, but I could not make IMAP work. Is it still working? Did you have to do some special configuration on the Microsoft account in order to make it work?

ionelioras:
I tried to use IMAP authentication and I get this error: stackTrace:javax.mail.AuthenticationFailedException: AUTHENTICATE failed
I was able to get a token after I registered the app in Azure. The Graph approach works well, but I could not make IMAP work. Is it still working? Did you have to do some special configuration on the Microsoft account in order to make it work?

Sorry, I could only now check the IMAP-Part, we moved to Graph after IMAP gave us reliability issues, some days users could fetch mails, some days they got messages about closed mailboxes.

So yeah, it doesn’t work right now, there were general problems on Microsofts side, Thunderbird didn’t work due to strange problems with IPv6, I’ll keep an eye on it, hopefully I can do some work on this next weekend.

And since I finished some more work on Graph I’ll complete some more infos about Folders and delta-tokens to speed up fetching mails via Graph.