Twitter无法验证oauth签名和令牌

时间:2012-06-18 03:10:04

标签: google-app-engine struts2 twitter-oauth

我在Google App Engine中使用Struts2。 在我的行动中:

public String execute(){
    oauth_callback = REDIRECT_URI;
    consumer_key = CONSUMER_KEY;
    consumer_secret = CONSUMER_SECRET;

    return SUCCESS;
}

在我的Struts.xml

<result type="redirect">
    <param name="location">https://api.twitter.com/oauth/request_token?oauth_callback=${oauth_callback}&amp;consumer_key=${consumer_key}&amp;consumer_secret=${consumer_secret}</param>
</result>

我得到错误:

Failed to validate oauth signature and token

我错过了传递给oath / request_token的参数吗?

感谢。

0 个答案:

没有答案