Learn about the MobileFirst security client APIs for issuing resource requests and handling security challenges.
The client application uses challenge handlers to handle the client-side security logic and the related user interaction, and respond to security challenges. See OAuth scopes, security checks, and challenge handlers. You must implement and register a challenge handler for each custom security check that is applicable to your application (namely, security checks that are used to protect resources that are required by the application). In addition, you can customize the default MobileFirst challenge handler for displaying the user interface (UI) of the mobile-application management features (see Mobile-application management).
In iOS Objective C or Swift code, create
a class that extends the SecurityCheckChallengeHandler class.
In Android Java code, create a class that extends the SecurityCheckChallengeHandler class.
In Windows C# code, create a class that extends
the Worklight.SecurityCheckChallengeHandler class.
In iOS Objective C or Swift code, create
a class that extends the GatewayChallengeHandler class.
In Android Java code, create a class that extends the GatewayChallengeHandler class.
In Windows C# code, create a class that extends
the GatewayChallengeHandler class.
In iOS Objective C or Swift code, call
the WLClient method registerChallengeHandler.
In Android Java code, call the WLClient method registerChallengeHandler.
In Windows C# code, call the WorklightClient method RegisterChallengeHandler.
See C# client-side API for Windows 10
Universal Windows Platform
and Windows 8 Universal apps.{
"challenges": {
"SecurityCheck1":null,
"SecurityCheck2":{
"PropertyName": "PropertyValue"
[...]
}
}
}