Generating valid oauth token and secret for gmail imap?
问题 I have been searching everywhere for a Java port of xoauth.py. As I really want to use the same authentication process in my java web app. I have tried using the GoogleOAuthHelper to generate the token and secret but when I plugin them in to the google mail java sample, I get errors back saying invalid credentials. If anyone can help I would be very appreciative. I have been stuck on this for sooo long now. 回答1: Have you tried the links on this page https://developers.google.com/google-apps