rhomobile and oauth2

一世执手 提交于 2020-01-06 19:30:51

问题


Based on this stackoverflow question foursquare oauth2 for IOS

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?

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

Once I have the access_token, how can I get my webserver to trigger a rhomobile view?


回答1:


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



来源:https://stackoverflow.com/questions/6353419/rhomobile-and-oauth2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!