【发布时间】:2017-08-29 06:45:39
【问题描述】:
我在尝试调用时遇到了失败
WLAuthorizationManager.obtainAccessToken()
使用 Ionic 2 和 MFP 8
这是消息
============== {"status":-1,"responseText":"","errorMsg":"此版本的 MobileFirst 客户端 SDK 需要最低服务器版本 大于 IFIX 8.0.0.0-IF201701250919","errorCode":"MINIMUM_SERVER"}
我们的安装团队还安装了最新的 iFix 包。
我也附上了代码 sn-p。
app.component.ts
WL.Client.pinTrustedCertificatePublicKey('mycert.cer').then(() => {
console.log('--------SSL Pin Success-------------');
WLAuthorizationManager.obtainAccessToken().then((accessToken) => {
console.log('--------accessToken Success-------------', accessToken);
}, (response) => {
console.log('--------accessToken Failure-------------', response);
let usrname ="roney";
let passwrd = "roney@123";
let modalc = this.modal.create("UserLoginChallengeHandler",{"username":usrname,"password":passwrd});
modalc.present();
modalc.onDidDismiss((data)=>{
//further to proceed goes here
this.statusBar.styleDefault();
this.splashScreen.hide();
this.fcmInformation();
});
});
}).fail((error) => {
console.log('--------SSL Pin failed-------------', error);
});
【问题讨论】:
标签: ionic2 ibm-mobilefirst mfp