【问题标题】:oAuth2 - There is no request token for this page erroroAuth2 - 此页面错误没有请求令牌
【发布时间】: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


    【解决方案1】:

    据我所知,Twitter 使用的是 OAuth1.0A 而不是 OAuth2.0

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-11-17
      • 1970-01-01
      • 2023-01-14
      • 2016-12-03
      • 2016-06-22
      • 1970-01-01
      • 1970-01-01
      • 2020-12-14
      相关资源
      最近更新 更多