Oauth 2.0 rhomobile和oauth2
基于这个问题 我需要将我的应用程序中的用户发送到foursquare。获取权限并重定向到我的web服务器。我获得了访问令牌,但如何重定向到视图 在我的移动控制器中,我有Oauth 2.0 rhomobile和oauth2,oauth-2.0,foursquare,rhodes,rhomobile,Oauth 2.0,Foursquare,Rhodes,Rhomobile,基于这个问题 我需要将我的应用程序中的用户发送到foursquare。获取权限并重定向到我的web服务器。我获得了访问令牌,但如何重定向到视图 在我的移动控制器中,我有 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_re
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
一旦我有了访问令牌,如何让我的Web服务器触发rhomobile视图?您可以使用以下命令设置重定向uri以指向Rhodes应用程序:
尝试过,但没有启动应用程序。我有
android:BundleURLScheme:myapp
和iphone:BundleIdentifier:com.rhomobile.myapp,BundleURLScheme:myapp
没有逗号,但没有。测试链接为`但这也不起作用。我已经做了两天了,不知道哪里出了问题。把它收回去。将回调url更改为127.0.0.1,结果成功了。谢谢