Adapter-based authentication in native Windows 8 applications
This tutorial illustrates the native Windows 8 client-side authentication components for adapter-based authentication.
Prerequisite: Make sure that you read Adapter-based authentication first.
Creating the client-side authentication components
Create a native Windows 8 application and add the MobileFirst native APIs as explained in the documentation.
CustomAdapterChallengeHandler class as a subclass of
CustomAdapterChallengeHandler class must implement the
isCustomResponsemethod checks every custom response received from MobileFirst Server to verify whether this is the expected challenge.
handleChallengemethod is called after the
Use this method to present the login form. Different approaches are available.
From the login form, credentials are passed to the
CustomAdapterChallengeHandler class. The
submitAdapterAuthentication() method is used to send input data to the authenticator.
MainPage class, connect to MobileFirst Server, register your
challengeHandler class, and invoke the protected adapter procedure.
The procedure invocation triggers MobileFirst Server to send a challenge that will trigger our
Because the native API is not protected by a defined security test, no login form is presented during server connection.
Invoke the protected adapter procedure. The login form is presented by the challenge handler.