rhomobile和oauth2 [英] rhomobile and oauth2
问题描述
基于此stackoverflow问题针对iOS的foursquare oauth2
Based on this stackoverflow question foursquare oauth2 for IOS
我需要将用户从我的应用发送到foursquare.获得许可并重定向到我的Web服务器.我获得了访问令牌,但是如何重定向到视图?
I need to send user from my app to foursquare. Get permission and redirect to my web server. I get the access token, but how do I redirect to a view?
在我的Rhomobile控制器中,
In my rhomobile controller I have
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视图?
Once I have the access_token, how can I get my webserver to trigger a rhomobile view?
推荐答案
您可以使用以下方法将重定向uri设置为指向您的Rhodes应用程序:
You may be able to set your redirect uri to point back to your Rhodes application using the following:
http://docs.rhomobile.com/rhodes/device-caps#run-rhodes-application-from-browser
这篇关于rhomobile和oauth2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!