A1 NO AUTHENTICATE failed. Error1 AUTHENTICATE failed. Error1 AUTHENTICATE failed.

Mani Gupta 21 Reputation points
2022-03-15T14:04:55.393+00:00

Hi Team

I am facing issue while try to access the microsoft mailbox using the access token and oAuth.
I am using the javamail to connect, but getting the below error

DEBUG IMAP: trying to connect to host "outlook.office365.com", port 993, isSSL true
* OK The Microsoft Exchange IMAP4 service is ready. [**********************************]
A0 CAPABILITY
* CAPABILITY IMAP4 IMAP4rev1 AUTH=PLAIN AUTH=XOAUTH2 SASL-IR UIDPLUS MOVE ID UNSELECT CHILDREN IDLE NAMESPACE LITERAL+
A0 OK CAPABILITY completed.
DEBUG IMAP: AUTH: PLAIN
DEBUG IMAP: AUTH: XOAUTH2
DEBUG IMAP: protocolConnect login, host=outlook.office365.com, user=coolmani9717@harsh.com .com, password=<non-null>
A1 AUTHENTICATE XOAUTH2 dXNlcj1jb29sbWFuaTk3MT***************
A1 NO AUTHENTICATE failed.
Error1 AUTHENTICATE failed.
Error1 AUTHENTICATE failed.

Community Center | Not monitored
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2022-03-15T14:58:27.09+00:00

    I'd try asking for help in dedicated forums here.
    https://community.oracle.com/tech/developers/categories/javamail

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.