2013-05-22 3 views
4

org.scribe page에있는 자습서를 따라 왔지만 대역 외 콜백이 지원되지 않는 것으로 보입니다. 누군가가 이것을 해결하는 방법에 관해서 올바른 방향으로 나를 가리킬 수 있습니까? 또한 org.scribe 라이브러리에 대한보다 포괄적 인 튜토리얼이나 문서가 도움이 될 것입니다.org.scribe.oauth를 사용하여 tumblr API에 연결하려면 어떻게해야합니까?

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) 

어떻게 인증합니까? 사용자가 응용 프로그램에 PIN을 복사/붙여 넣기 할 수있는 웹 페이지를 열려고 시도했지만 분명히 작동하지 않습니다.

답변

4

콜백 URL을 제공 했습니까? URL을 http://localhost:8080/ 추가했습니다. 심지어 데스크톱 응용 프로그램을 개발 중이며 작동했습니다.

+0

이 솔루션은 나를 위해 일했습니다. 감사합니다. – jvilhena

관련 문제