I'm using Worklight 6.0 and Form based authentication.
I thought that the argument for WL.Client.createChallengeHandler() was the realm that the challenge handler would address, but testing seems to indicate that there is no way to create a realm specific challenge handler.
I have an adapter with 2 procedures. Each procedure has a separate security test. Each test corresponds to a different realm: r1 and r2.
In my app, I have 2 challenge handlers, one for r1, and one for r2. However, the challenge handler for r1 ends up handling the challenges for both adapter procedures. I find that I can use any string in WL.Client.createChallengeHandler() … non-existent realms, empty string, or even no argument, and it might change which of the 2 challenge handlers gets used, but whichever one gets used is used for all challenges.
What is the argument to WL.Client.createChallengeHandler() used for? Is there any way to tie a challenge handler to a realm?