Not able read outlook email messages using oauth2 accessToken
test16 1028
0
Reputation points
i am trying to connect office 365 email by using oauth2 accessToken by using javax.mail library.
but was not able to connect to the Imap sever and read am getting always authentication failed exception.
Did the following steps:
- create app in AD.
- added following scope in it
please help me out what exactly am doing wrong here.
Microsoft 365 and Office | Development | Other
Microsoft 365 and Office | Development | Other
Building custom solutions that extend, automate, and integrate Microsoft 365 apps.
Outlook | Windows | Classic Outlook for Windows | For business
Microsoft Security | Microsoft Graph
Microsoft Security | Microsoft Graph
An API that connects multiple Microsoft services, enabling data access and automation across platforms
Sign in to answer