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.