IBM Worklight - 在部署期间验证项目时出错 [英] IBM Worklight - Error while validating project during deployment
问题描述
我使用IBM worklight创建了一个应用程序,我使用customAuthenticator进行登录过程
I have created an application using IBM worklight and i am using customAuthenticator for login process
我在部署应用程序时遇到了以下验证错误
I am getting following validation error while deploying application
安全测试DummyAdapter-securityTest必须包含AuthDemo的用户和设备
领域:iphone:1.0:api。 [project
module_23_1_CustomLoginModule]
Security test DummyAdapter-securityTest must include user and device realms for AuthDemo:iphone:1.0:api. [project module_23_1_CustomLoginModule]
推荐答案
你需要重新阅读整个获取已开始有关身份验证和安全的部分。有更多阅读材料此处和这里。
You need to re-read the entire Getting Started section about Authentication and Security. There is more reading material here and here.
从错误中我认为你已经为你的<$添加了一个 securityTest =DummyAdapter-securityTest
属性c $ c> iphone 元素在 application-descriptor.xml
。
From the error I am thinking you have added a securityTest="DummyAdapter-securityTest"
attribute to your iphone
element in application-descriptor.xml
.
如上所述通过 securityTest
的名称,它不适用于应用程序,而是适用于适配器。已为适配器XML文件中的适配器过程定义此securityTest。删除你添加的securityTest,它将起作用。
As noted by the name of the securityTest
, it is not meant for the application but for the adapter. This securityTest is already defined for the adapter procedure in the adapter XML file. Remove the securityTest you've added and it will work.
您尝试运行的示例(module_23_1_CustomLoginModule)已准备就绪-制作;无需编辑。你只需要建立&部署并运行它。
The sample you are trying to run (module_23_1_CustomLoginModule) is ready-made; no need for editing. You need only to build & deploy and run it.
这篇关于IBM Worklight - 在部署期间验证项目时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!