【问题标题】:Authentication with Twitter using the Twitter access token on Azure (using iOS Twitter reverse Auth)使用 Azure 上的 Twitter 访问令牌向 Twitter 进行身份验证(使用 iOS Twitter 反向身份验证)
【发布时间】:2015-01-11 01:21:03
【问题描述】:

我目前正在开发一个 iOS 应用程序,它将(如果我能解决这个问题)使用 Azure 作为后端。用户应该使用他们已经在 iOS 设备上设置的 iOS 帐户登录。我比使用反向身份验证 (https://dev.twitter.com/docs/ios/using-reverse-auth) 来获取用户的访问令牌,我想使用所述访问令牌来登录用户。

我尝试使用 (Swift sn-p)

let tokenDictionary = ["access_token": "<token-I-got>"];

client.loginWithProvider("twitter", token: tokenDictionary.bridgeToObjectiveC(), completion: {(user: MSUser!, error: NSError?) in

        if let user = user? {

            print(user.userId)

        } else if let error = error? {

            print(error)

        }

})

但 API 返回的唯一内容是:

不支持 Twitter 令牌的 POST。

有什么想法可以让它工作,还是我必须从 Azure 切换到不同的东西? (并且使用 webview 登录不是一个选项,因为我们已经在 iOS 上使用凭据设置了这个不错的帐户)。

感谢您的帮助。

【问题讨论】:

    标签: ios authentication azure azure-mobile-services


    【解决方案1】:

    Azure 移动服务当前不支持此功能。您可以对功能请求 here 进行投票。

    【讨论】:

      猜你喜欢
      • 2012-08-06
      • 2012-10-24
      • 2011-04-30
      • 2021-11-24
      • 2018-05-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-03-22
      相关资源
      最近更新 更多