Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/perl/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Oauth 2.0 rhomobile和oauth2_Oauth 2.0_Foursquare_Rhodes_Rhomobile - Fatal编程技术网

Oauth 2.0 rhomobile和oauth2

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

基于这个问题

我需要将我的应用程序中的用户发送到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_req')
end

一旦我有了访问令牌,如何让我的Web服务器触发rhomobile视图?

您可以使用以下命令设置重定向uri以指向Rhodes应用程序:


尝试过,但没有启动应用程序。我有
android:BundleURLScheme:myapp
iphone:BundleIdentifier:com.rhomobile.myapp,BundleURLScheme:myapp
没有逗号,但没有。测试链接为`但这也不起作用。我已经做了两天了,不知道哪里出了问题。把它收回去。将回调url更改为127.0.0.1,结果成功了。谢谢