Using OpenID on a PhoneGap platform

别来无恙 提交于 2019-12-06 07:15:32

问题


I am currently developing an application using PhoneGap. My application used OpenID to authenticate a user. After successfully authenticate a user, it should be return back to my application. I have used location.href to redirect the page to a local address (something like file:///var/applications/.../index.html for iOS app). However, it seems that PhoneGap cannot redirect a local page from remote site. Only a white screen was displayed. Is there any way for me to return back to my application after authentication?

Thanks


回答1:


I think you can use the childbrowser plugin for that.
Also you may be able to ajax call the openid login stuff using a webpage on your own server?



来源:https://stackoverflow.com/questions/5348291/using-openid-on-a-phonegap-platform

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