I've followed the tutorial given on the org.scribe page but it appears that out-of-band callbacks aren't supported. Can someone point me in the right direction as to how to solve this? Moreover, a more comprehensive tutorial or documentation for the org.scribe library would be helpful.
Exception in thread "main" org.scribe.exceptions.OAuthException: Response body is incorrect. Can't extract token and secret from this: 'Out-of-band ("oob") callbacks are not supported by this implementation.'
at org.scribe.extractors.TokenExtractorImpl.extract(TokenExtractorImpl.java:41)
at org.scribe.extractors.TokenExtractorImpl.extract(TokenExtractorImpl.java:27)
at org.scribe.oauth.OAuth10aServiceImpl.getRequestToken(OAuth10aServiceImpl.java:63)
at org.scribe.oauth.OAuth10aServiceImpl.getRequestToken(OAuth10aServiceImpl.java:39)
at org.scribe.oauth.OAuth10aServiceImpl.getRequestToken(OAuth10aServiceImpl.java:44)
at com.jruehl.tumbleweed.oauth.AuthenticationHandler.HandleAuthentication(AuthenticationHandler.java:30)
at com.jruehl.tumbleweed.TumbleWeed.main(TumbleWeed.java:30)
How do I authenticate? I've attempted to open a webpage for the user to copy/paste the PIN into the application, but this evidently doesn't appear to work.
Indeed, it turned out out-of-band requests aren't permitted by the Tumblr API.
This is a problem I can't really fix since I deliberately wanted to avoid a redirect to the OAuth URL, which is impossible using the shell without a browser.
Ended up using a different API instead.