• No replies
2327 Posts

Pinned topic multiple challenge handlers - not working!?!?

‏2012-12-07T21:40:03Z |
I cannot seem to get this to work. I have a test scenario that is the following:
2 adapters (A and B)
2 security tests
2 realms (A and B)
2 login modules

Simple username and password application that calls adapters(A and B) that calls protected procedures which return "Secret Data (A or B)". I have created 2 challenge handlers, one for each Realm with the WL.Client.createChallengeHandler() function. (This application is modeled after the "SingleStepAdapterBasedAuthentication" code example.

Regardless of which adapter I call, the challenge handler that is used is the one that is created first. Meaning if I create 2 handler objects, first HandlerA and then HandlerB. Then if I call the protected procedure(Adapter B), the Handler A is used. If I reverse the creation of the objects, then it works for Adapter B, but then Adapter A uses HandlerB.....

So it appears that 2 challenge handler objects cannot coexist. Is this correct?