【发布时间】:2013-05-25 11:53:37
【问题描述】:
我是 oAuth2 的新手,正在尝试修改这个 ActionScript3 oAuth2 library 示例来授权 Twitter 应用程序而不是 Google。
// From the example:
var oauth2:OAuth2 = new OAuth2("https://accounts.google.com/o/oauth2/auth", "https://accounts.google.com/o/oauth2/token", LogSetupLevel.ALL);
var grant:IGrantType = new AuthorizationCodeGrant(stageWebView, "INSERT_CLIENT_ID_HERE", "INSERT_CLIENT_SECRET_HERE", "http://www.example.com", "https://www.googleapis.com/auth/userinfo.profile");
我的尝试:
var oauth2:OAuth2 = new OAuth2("https://api.twitter.com/oauth/authorize", "https://api.twitter.com/oauth/request_token", LogSetupLevel.ALL);
var grant:IGrantType = new ImplicitGrant(stageWebView, "Consumer-Key", "Consumer-Secret", "http://www.example.com", "https://api.twitter.com/oauth/access_token");
我遇到了这个错误:
"此页面没有请求令牌。这是我们的特殊键 需要从要求使用您的 Twitter 帐户的应用程序中获取"
为什么没有找到请求令牌?
【问题讨论】:
标签: oauth-2.0 token twitter-oauth