How to use org.scribe.oauth to connect to tumblr API?

I followed the tutorial on the org.scribe page, but it seems that out-of-range callbacks are not supported. Can someone point me in the right direction how to solve this? Moreover, a more complete guide 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 tried to open a web page so that the user could copy / paste the PIN code into the application, but this apparently does not work.

+4
source share
1 answer

Did you provide a callback? I added the url http://localhost:8080/ , even I am developing a desktop application and it worked.

+4
source

Source: https://habr.com/ru/post/1482255/


All Articles