is the issue resolved
We are getting the same error
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
We need to read emails for a batch process using OAUTH2 with IMAP in our Java Code. We followed the instructions from here: https://learn.microsoft.com/en-us/exchange/client-developer/legacy-protocols/how-to-authenticate-an-imap-pop-smtp-application-by-using-oauth.
We are now getting this error : A1 NO AUTHENTICATE failed.
The java code I followed is from here : https://ralph.blog.imixs.com/2022/10/24/how-to-access-outlook-office365-com-imap-form-java-with-oauth2/
Below are the following things I did:
Install-Module -Name ExchangeOnlineManagement
Import-module ExchangeOnlineManagement
Install-Module -Name ExchangeOnlineManagement <organization id>
New-ServicePrincipal -AppId <Application id> -ServiceId <serviceid> -Organization <org id>
Add-MailboxPermission -Identity "useremaild" -User <serviceid> -AccessRights FullAccess
This is what I'm trying to achieve: https://techcommunity.microsoft.com/t5/exchange-team-blog/announcing-oauth-2-0-client-credentials-flow-support-for-pop-and/ba-p/3562963
is the issue resolved
We are getting the same error
Hello Vishnu,
Can you try adding the following permissions to the registered app?
(cited from https://learn.microsoft.com/en-us/answers/questions/1230605/a1-no-authenticate-failed-using-javamail-and-oauth)
Perhaps you are missing some permissions and this is causing issue when trying to authenticate.
If this is helpful please accept answer.