IBM Worklight v5.0.5 > Develop IBM Worklight applications > Authentication configuration

The authentication configuration file

Authentication components, security tests, realms, login modules, and authenticators are configured in the authentication configuration file...

A web security test or mobile security test must contain a <testUser> element that specifies realm name.

   <mobileSecurityTest name="mobileTests">
       <testDeviceId provisioningType="none" />
       <testUser realm="myMobileLoginForm" />

   <webSecurityTest name="webTests">
       <testUser realm="myWebLoginForm"/>

The definition of a realm includes the class name of an authenticator, and a reference to a login module. Authenticators collect client information, and then use login modules to verify this information.

Worklight web application authorization, other than for the Application Center, is also configured in authenticationConfig.xml, in the <resource> element.

The configuration file has the following structure:

<?xml version="1.0" encoding="UTF-8"?>

<tns:loginConfiguration xmlns:tns="" 

        <resource> … </resource>
        <resource> … </resource>

        <realm> … </realm>
        <realm> … </realm>

        <loginModule> … </loginModule>
        <loginModule> … </loginModule>


Parent Authentication configuration