当我尝试对我的安全检查进行身份验证时收到此错误:
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 没有显示此错误的结果。
最佳答案
我认为这与安全检查根本无关......
正如诺顿所提到的,错误只是 - 应用程序的标识符不以正确的形式出现在服务器中。
正如 Vivin 所提到的,通过使用 MobileFirst CLI 注册应用程序(而不是通过控制台手动执行此操作),您可以最大限度地减少注册“失败”(即错误注册应用程序)的可能性。
可能是在注册应用程序时,您输入的版本号不正确。也许您使用了“1.0”而不是“1.0.0”。
因此您可以检查以下内容:
- 版本(可以在 config.xml 文件中找到)
- 应用程序标识符(也可以在 config.xml 文件中找到)
或者使用 CLI,从 Cordova 应用程序的根文件夹:mfpdev app register
。
关于java - MobileFirst 8.0 安全认证的 APPLICATION_DOES_NOT_EXIST?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40116118/