0
votes

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

Security test DummyAdapter-securityTest must include user and device realms for AuthDemo:iphone:1.0:api. [project module_23_1_CustomLoginModule]

1
You need to add more information on what you are doing, how your setup is, and also add some code where relevant. The help center page is a really good start.Qben

1 Answers

0
votes

You need to re-read the entire Getting Started section about Authentication and Security. There is more reading material here and here.

From the error I am thinking you have added a securityTest="DummyAdapter-securityTest" attribute to your iphone element in application-descriptor.xml.

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.


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.