【问题标题】:rhomobile and oauth2rhomobile 和 oauth2
【发布时间】:2011-06-16 03:16:49
【问题描述】:

基于这个stackoverflow问题foursquare oauth2 for IOS

我需要将用户从我的应用程序发送到foursquare。获得许可并重定向到我的网络服务器。我获得了访问令牌,但如何重定向到视图?

在我的 rhomobile 控制器中,我有

def fsq_login
  WebView.navigate('https://foursquare.com/oauth2/authenticate?client_id=MY CLIENT_IT&response_type=code&redirect_uri=http://lvh.me:3000/fsq_req')
end

获得 access_token 后,如何让我的网络服务器触发 rhomobile 视图?

【问题讨论】:

    标签: oauth-2.0 foursquare rhodes rhomobile


    【解决方案1】:

    您可以使用以下方法将重定向 uri 设置为指向您的 Rhodes 应用程序:

    http://docs.rhomobile.com/rhodes/device-caps#run-rhodes-application-from-browser

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-04-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多