APPLICATION_DOES_NOT_EXIST MobileFirst 8.0 安全认证?

APPLICATION_DOES_NOT_EXIST for MobileFirst 8.0 Security Authentication?

我在尝试对我的安全检查进行身份验证时收到此错误:

errorCode: "APPLICATION_DOES_NOT_EXIST"
errorMsg: "Application doesn't exist"

这是服务器日志中的错误:

[10/18/16 13:59:32:991 CDT] 00001447 m.mfp.server.registration.internal.rest.RegistrationEndpoint E Failed to process registration request. com.ibm.mfp.server.security.shared.MFPRESTException: 400; headers=[]; body={ errorCode=APPLICATION_DOES_NOT_EXIST errorMsg=Application doesn't exist} at com.ibm.mfp.server.security.internal.context.ClientSecurityContextImpl.load(ClientSecurityContextImpl.java:178) at sun.reflect.GeneratedMethodAccessor179.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498)

我用的是UserLogin adapter.

我还使用 UserLoginChallengeHandler.js 来处理登录。

UserLogin 适配器出现在 MobileFirst 控制台中:

我不确定这个错误是什么意思。 Google 未显示此错误的结果。

我认为这与安全检查完全无关...

正如 Norton 所提到的,错误只是 - 服务器中没有正确形式的应用程序标识符。

并且如 Vivin 所述,通过使用 MobileFirst CLI 注册应用程序(而不是通过控制台手动注册),您可以最大限度地减少注册的机会 "failure"(即错误注册应用程序) .

可能是您在注册应用程序时输入了错误的版本号。也许您使用的是“1.0”而不是“1.0.0”。

因此您可以检查以下内容:

  1. 版本(可以在config.xml文件中找到)
  2. 应用程序标识符(也可以在 config.xml 文件中找到)

或者使用 CLI,从 Cordova 应用程序的根文件夹:mfpdev app register