【问题标题】:"Could not connect..." with OAuth.io Cordova Plugin Popup“无法连接...”与 OAuth.io Cordova 插件弹出窗口
【发布时间】:2014-10-05 15:13:52
【问题描述】:

我在 Authio 仪表板中设置了一个应用程序,我可以从开发者仪表板成功地向 facebook 和 twitter 进行身份验证。

我的 Cordova 项目 config.xml 包含标签 <access origin="*" />

我的项目是基于 Angular 的,带有 ngSanitize,我将这些网址与 $sceDelegateProvider.resourceUrlWhitelist() 列入白名单:

        'https://oauth.io/**',
        'https://graph.facebook.com/**',
        'https://api.twitter.com/**'

我的身份验证函数用我的密钥调用OAuth.initialize(),下一行是OAuth.popup(service)

在 Android 上运行时,弹出窗口会快速打开和关闭。在 iPhone 上,我在控制台中收到此错误:

webView:didFailLoadWithError - -1004: Could not connect to the server.

要使弹出窗口按预期工作,我缺少什么?

【问题讨论】:

    标签: cordova oauth inappbrowser


    【解决方案1】:

    已解决 - 需要将 OAuth.io 仪表板后端设置更改为“客户端流程”

    【讨论】:

      猜你喜欢
      • 2014-09-30
      • 2015-01-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多