Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

OAuth, JavaMail, and Exchange

21957f39-fa79-4ac4-a27e-1ac2bb9688b9Apr 9 2020 — edited Apr 9 2020

I have been having trouble trying to build JavaMail mailboxes after making a request for the auth token for OAuth. The way our system works as of right now is the user inputs a username, password, server, and port and chooses either IMAP or POP as a protocol. The properties is built and a URL is passed to create an IMAPStore or POP3Store and the same for the SSL store. I read that for OAuth you just create an IMAPSSLStore, but I am not sure what URL needs to be passed in when creating that store. I know when you try and connect to the store instead of passing in the host, username, password you pass in the authorization token in place of the password and it should connect. I hope this question is sort of clean, but I am not sure exactly where to go from here. I can answer any question that you have. Thank you in advance.

Comments
Post Details
Added on Apr 9 2020
0 comments
639 views