在PhoneGap平台上使用OpenID

编程入门 行业动态 更新时间:2024-10-26 10:32:45
本文介绍了在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

本文发布于:2023-11-16 10:05:21,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1603303.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:平台上   PhoneGap   OpenID

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!