我遵循了org.scribe page上给出的教程,但似乎不支持带外回调。有人能给我指出解决这个问题的正确方向吗?此外,更全面的org.scribe库教程或文档会很有帮助。
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复制/粘贴到应用程序中,但这显然不起作用。
发布于 2013-05-28 05:48:42
您是否提供了回调url?我添加了url http://localhost:8080/,即使我正在开发一个桌面应用程序,它仍然起作用了。
https://stackoverflow.com/questions/16701030
复制相似问题