Twitter使用scribe-java拒绝我的Oauth请求,并且“需要SSL”。 [英] Twitter rejects my Oauth Request using scribe-java with "SSL is required"

查看:341
本文介绍了Twitter使用scribe-java拒绝我的Oauth请求,并且“需要SSL”。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当试图从scribe库(版本1.3.5)执行 service.getRequestToken()以使用oauth和twitter api时,我总是得到需要SSL作为响应。

When trying to execute service.getRequestToken() from scribe library (Version 1.3.5) for using oauth with twitter api I always get "SSL is required" as response.

我已经检查了所有配置,但到处都有 https

I have already checked all my configurations but there is https everywhere.

推荐答案

在scribe-java的 1.3.5 版本中,方法 getRequestTokenEndpoint() of TwitterApi 使用URL的非SSL版本。

In version 1.3.5 of scribe-java, the method getRequestTokenEndpoint() of TwitterApi uses the non-SSL version of the URL.

版本 1.3.6 这已得到修复。不幸的是,这个版本还没有进入下载部分( http://mvnrepository.com/伪影/ org.scribe /划线)。所以必须自己构建当前版本,除非它在那里可用。

In version 1.3.6 this has been fixed. Unfortunetaly, this version has not yet made its way to the downloads section (http://mvnrepository.com/artifact/org.scribe/scribe). So one has to build the current version by himself unless it is available there.

这篇关于Twitter使用scribe-java拒绝我的Oauth请求,并且“需要SSL”。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆