IOAuth.IO集成离子/角混合应用 [英] IOAuth.IO Integration with Ionic/Angular Hybrid App

查看:104
本文介绍了IOAuth.IO集成离子/角混合应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个非常困难的时候得到通过OAuth.io撰写的科尔多瓦插件( https://github.com/ OAuth的IO / OAuth的PhoneGap的)的离子手机版本中工作。一切都基于断他们提供的JS文件,包裹在一个角的服务,为便于单元测试桌面版的安装程序,另一个处理厂登录的实际流量/注销等...

I am having a really difficult time getting the cordova plugin authored by OAuth.io (https://github.com/oauth-io/oauth-phonegap) to work within the an ionic phone build. Everything is setup based off of the desktop version of the JS file they provide, wrapped in an Angular service for ease of unit testing, with another factory handling the actual flow of login/logout etc...

我遇到的问题是,现在切换到插件版本并删除引用的JS版本之后,没有什么工作下去了。我不能再拉起的Facebook登录页面,也没有注入服务外公认的全球对象的OAuth。我在解决该问题得到的最远的是,OAuth的对象被创建,至少在最初阶段,我可以注销对象,但之后事情似乎并没有得到认可。

The issue I am running into is that now after switching to the plugin version and removing the referenced JS version, nothing works any longer. I can no longer pull up the facebook login page, nor have the global object 'OAuth' recognized outside of the injected service. The furthest I got in troubleshooting the issue is that the OAuth object is created, at least initially as I can log out the object, but anything after that does not appear to be recognized.

我的网络(工作)的版本是在这里plunker:<一href=\"http://plnkr.co/edit/B4HdkkBKDP3Xv2riQGui?p=$p$pview\">http://plnkr.co/edit/B4HdkkBKDP3Xv2riQGui?p=$p$pview

My web (working) version of code example is on plunker here: http://plnkr.co/edit/B4HdkkBKDP3Xv2riQGui?p=preview

这是进一步的故障排除,或是否有完成这个目标将是极大的AP preciated的另一种方式!

Any thoughts on further troubleshooting or if there is another way of accomplishing this goal would be greatly appreciated!

推荐答案

我们刚刚发布的OAuth.io科尔多瓦/ PhoneGap的SDK,版本 0.2.0 它修正与离子的问题。

We just published the version 0.2.0 of the OAuth.io Cordova/Phonegap SDK, which fixes the issue with Ionic.

现在你应该可以使用插件科尔多瓦在离子应用程序没有任何问题,像这样的:

Now you should be able to use the cordova plugin in a ionic app without any trouble, like this:

$ cordova plugin add https://github.com/oauth-io/oauth-phonegap

该版本还包含了从SDK中缺少的功能,如缓存和统一的用户信息的方法。

This version also contains features that were missing from the sdk, like the cache and the unified user info method.

您可以得到我们的GitHub页面上有关这一切的详细信息:

You can get more information about all this on our github page:

https://github.com/oauth-io/oauth-phonegap

希望这有助于:)

这篇关于IOAuth.IO集成离子/角混合应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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