Here is how I initiate the authorization process
CODE
Api api = ApiFactory.getApiInstance(API_KEY, SHARED_SECRET,
"http://app.pickemfirst.com/simpleyqlcallback/",
false, null);
try {
api.askAuthorization(req, resp, "http://app.pickemfirst.com/"/verifyYahoo");
} catch (OAuthException e) {
log.severe("OAuth: " + e.getMessage());
}
users are then redirected to Yahoo, then Yahoo redirect to /simpleyqlcallback/
and randomly the token exchange fails with the 401/token_rejected
if users retries, then it works (most of the time)
can I put more logs in the simpleyql source code to debug this issue ?
I've already been able to print the urls, but it did not give me any clue...