Integrating with DataPower as a reverse proxy using LTPA and form-based authentication

Use the provided MobileFirst samples and IBM® WebSphere® DataPower® configuration pattern and to integrate your application with a DataPower gateway that uses lightweight third-party authentication (LTPA) and HTML forms-based authentication.

Before you begin

  • Read the topic Integration with IBM WebSphere DataPower as a security gateway and reverse proxy.
  • Install IBM WebSphere DataPower by following the instructions in the WebSphere DataPower documentation.
    The following procedure and the sample DataPower configuration pattern (MFP_LTPA_Integration) were tested with DataPower Service Gateway XG45 version 7.0.0.10.
  • Install IBM MobileFirst™ Platform Foundation with interim fix 7.1.0.00-20160513-1006 or later.
    Ensure that the installation includes MobileFirst Studio.
  • Establish a stand-alone MobileFirst Server environment that uses WebSphere Application Server with LTPA.
  • Download the MobileFirst LTPA DataPower integration package or the specific components that you require. The package contains the following artifacts:
    • pattern contains a sample DataPower pattern (MFP_LTPA_Integration) that is preconfigured to integrate with IBM MobileFirst Platform Foundation using LTPA with HTML forms-based authentication. This pattern is used in the following procedure.
    • DataPower contains a MobileFirst project with common platform-independent components, which you can import to MobileFirst Studio, and a sample MobileFirst hybrid application (apps/HybridDataPower).
    • iOS DataPowerSwift contains a sample Xcode project for a native iOS MobileFirst application.
    • Android DataPowerAndroid contains a sample Android Studio project for a native Android application.
Note: The outlined procedure and the provided samples are targeted at native and cross-platform (hybrid) Android and iOS applications. The procedure was not tested on other platforms.

About this task

Following is a specialized procedure for protecting mobile-application traffic by integrating your MobileFirst application with a DataPower gateway that uses LTPA and DataPower HTML forms-based login authentication. The procedure uses a sample MobileFirst DataPower configuration pattern (MFP_LTPA_Integration) that simplifies the required configuration of the DataPower gateway.

Procedure

Results

Your MobileFirst application traffic is now protected by a secure DataPower gateway. User authentication is enforced by the DataPower appliance, which forwards the user credentials to MobileFirst Server. When using the sample DataPower MFP_LTPA_Integration pattern, the user credentials are passed as an LTPA token that is contained within a cookie, as demonstrated in the following initial-login, logout, and expired-authentication flow diagrams.

Figure 1. Initial-login flow
Initial-login flow
Figure 2. Logout flow
Logout flow
Figure 3. Expired-authentication flow
Expired-authentication flow