new ChallengeHandler()
handler returned from Worklight against the
given realm createChallengeHandler(the_realm) defined in wlInitOptions
Properties:
Name | Type | Description |
---|---|---|
ChallengeHandler |
Object | the Worklight handler for authorization challenges |
Type Definitions
-
handleChallenge(response)
-
ChallengeHandler callback to display login dialogs and logic. This function check the value of the_realm global variable in order to invoke the pin login screen after the email, password one
Parameters:
Name Type Description response
json - Source:
- To Do:
-
- implement alert on login error?
-
isCustomResponse(response)
-
ChallengeHandler callback to test whether there is a custom challenge to be handled in the response. If the method returns true, the IBM Worklight framework calls the BaseChallengeHandler.handleChallenge(org.apache.commons.json.JSONObject) method.
Parameters:
Name Type Description response
json