The_Exchange_Team Thanks a lot for the blog. I'm using JavaMail to connect with IMAP and SMTP to implement some functionality.
I tried the steps from the https://docs.microsoft.com/en-us/exchange/client-developer/legacy-protocols/how-to-authenticate-an-imap-pop-smtp-application-by-using-oauth and add properties mentioned in https://javaee.github.io/javamail/OAuth2 I always get Authenticate Failed. Saw some post to add scope https://outlook.office365.com/IMAP.AccessAsUser.All but they are no longer available which indeed made me to add scope https://graph.microsoft.com/https://outlook.office365.com/IMAP.AccessAsUser.All , but it didn't help always ended up with Authenticate Failed issue. I've submitted my finding to the https://stackoverflow.com/questions/62715227/javamail-connecting-to-office-365-xoauth2-for-imap-authentication-fails
can someone from your team have a look at this? Can we still able to add scope https://outlook.office365.com/IMAP.AccessAsUser.All ? Any body did it certainly ? Or it's an permission issue with me only
Thanks,
Vinayak