Forum Discussion
bhillier
May 24, 2023Copper Contributor
Help with error getting POP3 Client Credential flow for OAuth2.0
Hi all I feel like I have done everything I can to resolve this and I am not quite there. Appreciate any advice or pointers anyone gives me I am using the client credentials flow to try to co...
- bhillierMay 25, 2023Copper Contributor
I have narrowed this down because I can succesfully authenticate with Curl.
< +OK The Microsoft Exchange POP3 service is ready. [UwBZADUAUAAyADgAMgBDAEEAMAAwADcAOQAuAEEAVQBTAFAAMgA4ADIALgBQAFIATwBEAC4ATwBVAFQATABPAE8ASwAuAEMATwBNAA==]
> CAPA
< +OK
< TOP
< UIDL
< SASL PLAIN XOAUTH2
< USER
< .
> AUTH XOAUTH2
< +
> dXNlcj1SZXhFc2JRwYm1Sdm<Snip>
< +OK User successfully authenticated.
> LIST
< +OK 0 0So the issue is my java mail client is sending "PASS" instead of "AUTH XOAUTH2"
I am sure I have set up my java properties correctly so how do I force it to do this?
(Thanks for replying)