Google app engine Twitter无法验证oauth签名和令牌

Google app engine Twitter无法验证oauth签名和令牌,google-app-engine,struts2,twitter-oauth,Google App Engine,Struts2,Twitter Oauth,我在谷歌应用程序引擎中使用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

我在谷歌应用程序引擎中使用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>
我是否缺少传递给誓言/请求令牌的参数


谢谢。

您是在使用oAuth的API还是自己使用?我建议使用Scribe来处理oAuth功能。它重量很轻,使用起来很简单,我们几乎在每个应用程序中都使用它
Failed to validate oauth signature and token