4

我已按照org.scribe 页面上给出的教程进行操作,但似乎不支持带外回调。有人可以指出我如何解决这个问题的正确方向吗?此外,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 复制/粘贴到应用程序中,但这显然不起作用。

4

1 回答 1

4

您是否提供了回调网址?http://localhost:8080/即使我正在开发桌面应用程序,我也添加了 url并且它有效。

于 2013-05-27T21:48:42.410 回答