【发布时间】:2017-10-26 17:47:49
【问题描述】:
我在对该主题进行广泛研究后发布并希望得到答案。 我按照 Ionic2 指南使用 ADAL 进行 Azure 身份验证:https://ionicframework.com/docs/native/ms-adal/
在其中,他们定义 AuthenticationContext 如下:
let authContext: AuthenticationContext = this.msAdal.createAuthenticationContext('https://login.windows.net/common');
当我在浏览器中运行应用程序时,我立即收到“验证失败:未定义”错误消息。
其他指南定义变量如下:
var authContext = new Microsoft.ADAL.AuthenticationContext('https://login.windows.net/common');
我无法导入微软包,所以我按照这个问题的解决方案:3rd Party Library “cordova-plugin-ms-azure-mobile-apps” not getting recognized in my Ionic 2 app
但是,现在我收到错误:无法读取未定义的属性“ADAL”
感谢任何帮助。提前致谢。
【问题讨论】: