POP3 with OAuth

Microsoft Q & A 381 Reputation points
2023-08-14T18:53:55.3766667+00:00

Getting below error with IMAP Oauth while Authentication.

Caused by: javax.mail.AuthenticationFailedException: Authentication failure: unknown user name or bad password.
DEBUG POP3: connecting to host "outlook.office365.com", port 995, isSSL true +OK The Microsoft Exchange POP3 service is ready. [QWERRTYUHNJKIOLLUUUUUUtttttttAEYAUgBBAFAAMgA2ADQALgBQAFIATwBEAC4ATwBVAFQATABPAE8ASwASDFRujuuuu==]
DEBUG POP3: mail.pop3.auth.xoauth2.two.line.authentication.format: true DEBUG POP3: AUTH XOAUTH2 using two line authentication format DEBUG POP3: AUTH XOAUTH2 failed

Microsoft Exchange Online
Exchange Server Development
Exchange Server Development
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Development: The process of researching, productizing, and refining new or existing technologies.
549 questions
{count} votes

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.