在PhoneGap平台上使用OpenID [英] Using OpenID on a PhoneGap platform

查看:122
本文介绍了在PhoneGap平台上使用OpenID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用PhoneGap开发应用程序。我的应用程序使用OpenID来验证用户。成功验证用户后,应该返回到我的应用程序。我使用location.href将页面重定向到本地地址(类似文件:///var/applications/.../index.html iOS应用程序)。但是,似乎PhoneGap不能从远程站点重定向本地页面。仅显示白色屏幕。

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?

感谢

推荐答案

我想你可以使用childbrowser插件。

也可以使用自己的服务器上的网页,ajax调用openid登录的东西。

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?

这篇关于在PhoneGap平台上使用OpenID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆