Enable the predefined MobileFirst application-authenticity
security check to protect against attempts by fake or tampered applications
to access your resources (APIs).
About this task
You enable the application-authenticity security check
by creating an application-authenticity file, and deploying the file
to
MobileFirst Server.
You can select whether to separate the file creation and deployment
steps, or consolidate them into one step:
Procedure
-
- One-step authenticity-file
generation and deployment with mfpadm
Run
the app version set authenticity-data command of
the mfpadm command line program,
or the <app-version> <set-authenticity-data> command
through an mfpadm Ant task. Set the command's file argument
or attribute to the location of your application binary file. This
command will generate an application-authenticity file for your application,
and store the file on the server.
- Two-step authenticity-file
generation and deployment
- Get the MobileFirst application-authenticity Java™ tool, mfp-app-authenticity-tool.jar,
by using either of the following alternative methods:
- Download the tool from IBM MobileFirst™ Platform Operations
Console (the
console): from the console Dashboard, select Download
Center, and then select the Tools tab.
Under Applicaiton-Authenticity Tool, select Download and
save the file to your preferred location.
- Copy the tool from the <product_install_dir>/MobileFirstServer/external-server-libraries/ directory
(where <product_install_dir> is the directory
in which you installed IBM MobileFirst Platform Foundation).
- Generate a unique application-authenticity file: from
the command line, run the application-authenticity tool with one of
the following command variations:
- Deploy your generated application-authenticity file
to MobileFirst Server,
by using either MobileFirst Operations Console or mfpadm:
- In the console,
- Select your application version from the Applications section
of the console's navigation sidebar, and then select the application Authenticity tab.
- Select Upload Authenticity File, browse
to your generated application-authenticity file, and upload the file.
- Run the app version set authenticity-data command
of the mfpadm command line program,
or run the <app-version> <set-authenticity-data> command
through an mfpadm Ant task. Set the command's file argument
or attribute to the location of your application-authenticity data
file.
When your application-authenticity file is successfully deployed
to the server, a relevant message is displayed in the console.
Results
When your application-authenticity file is deployed to
the server, the Status value in the application Authenticity console
tab is set to "Enabled", indicating that the security check is enabled
for your application.
You can retrieve a copy of the application-authenticity
file that is deployed for your application on the server, by running
the app version get authenticity-data command of
the mfpadm command line program,
or the <app-version> <get-authenticity-data> command
through an mfpadm Ant task.
You
can disable the application-authenticity security check at any time,
by using one of the following methods:
- In the application Authenticity console
tab, select Delete Authenticity File.
- Run the app version delete authenticity-data command
of the mfpadm command line program,
or the <app-version> <delete-authenticity-data> command
through an mfpadm Ant task.