开发者

can not use authentication with OAuth 2.0 with JavaMail 1.4

I want to use oauth with IMAP to authenticate to Microsoft Exchange Online in my project. I have log4j that has a dependency of javax.mail 1.4 so in all my project this version is used. To use oauth I have to update javax.mail to 1.6 and I was not successful to do that.

I tried to use javax.mail 1.6 and import it without log4j but it broke my project:

<dependency>
       <groupId>com.sun.mail</groupId>
       <artifactId>javax.mail</artifactId>
       <version>1.6.2</version>
</dependency>

I tried to find a version of log4j that uses javax.mail that supports oauth, but I didn't find anything. Javax.mail is used in other parts of my project, so I don't want to touch those parts if possible.

I'm working on a legacy code, so for me it's important b开发者_JAVA技巧ackwards compatibility and to not break my base code.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜