I am trying to configure application onStartup Security for application on Worklight 5.0.3.
Have configured webSecurityTest for adapter based realm and configured ChallengeHandler.js with the 5.0.3 requirements.
When I try with onDemand kind of security, it works fine.
When I try with defining webSecurityTest in authconfig, the application gives below error when posting the user id/password from login screen.
"Uncaught TypeError: Cannot call method 'show' of undefined"
Do I need to any other changes other then adding "common securityTest" in application descriptor file to configure security on startup?
This topic has been locked.
2 replies Latest Post - 2012-12-06T10:28:02Z by SystemAdmin
Pinned topic WL 503- Configuring Adapter based security for Application On Startup
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
IdanAdar 2700059KWB741 PostsACCEPTED ANSWER
Re: WL 503- Configuring Adapter based security for Application On Startup2012-11-30T13:12:09Z in response to SystemAdminHave you taken a look at the Development FAQ thread?
I am trying to develop adapter-based authentication using requireAuthentication=onStartup, but this does not work!
Adapter-based authentication will not function with the onStartup setting.
onStartup authentication means that your application has to first authenticate to be able to gain access to adapters in the first place. So, you're in a loop - you need to authenticate to be able to invoke adapters, but you need to be able to invoke adapters in order to authenticate.
Therefore currently the only option to use adapter-based authentication is by using the onDemand setting.
IBM Worklight Mobile Platform