Example of Trusted mode customization.

Requirements:

Extend trusted authentication to include geographical information.

Files:

The customization consists of two files:
* The CustomCredentialsProvider.java file contains customization Java code.
* The TrustedConfig.xml files injects above customization code into applicaton by overriding corresponding bean
definition in original configuration file.

Building project:
In order to build project in Eclipse you need to open Project Properties -> Java Build Path -> Libraries pane and change location for javax.servlet-api-3.1.0.jar and restful-api-1.0-SNAPSHOT-jar-with-dependencies.jar to point those JARs in your environment

Deploying customization:

After deploying web application:
1. Copy the  CustomCredentialsProvider.class file in WEB-INF\classes\com\microstrategy\custom\auth\trusted folder.
2. Copy the TrustedConfig.xml file in  WEB-INF\classes\auth\custom folder