0
经过对该主题的广泛研究并希望获得答案后发布。 我使用ADAL为天青认证继Ionic2指南:https://ionicframework.com/docs/native/ms-adal/Ionic2,Microsoft软件包和Azure ADAL失败身份验证
在这里面,他们定义AuthenticationContext如下:
let authContext: AuthenticationContext = this.msAdal.createAuthenticationContext('https://login.windows.net/common');
当我运行在浏览器中的应用程序,我马上就得到了“验证失败:未定义“错误消息。
其他指南定义变量如下:
var authContext = new Microsoft.ADAL.AuthenticationContext('https://login.windows.net/common');
我无法导入Microsoft包,所以我跟着这个问题的解决方案:3rd Party Library “cordova-plugin-ms-azure-mobile-apps” not getting recognized in my Ionic 2 app
不过,现在我得到的错误:不能读属性'ADAL'undefined
任何帮助表示赞赏。提前致谢。
想通了这个艰难的路。谢谢Fei。我真的很感激它 – user3930696
如果建议有帮助,你可以接受是答案,以便其他社区谁有同样的问题可以更容易研究和重新整理这个问题。 –
谢谢费雪。是否可以私下与你联系? – user3930696