Deployment of WAM for Java Based Application
  • 29 Jan 2024
  • 1 Minute to read
  • Dark
    Light
  • PDF

Deployment of WAM for Java Based Application

  • Dark
    Light
  • PDF

Article summary

Following are the deployment steps of WAM for Java Based Application:

  1. Cross Identity WAM code for Java web applications includes two components, which includes:
  • CIWamFilter.java named java file.
  • ciwam.properties named properties file

The table contains the following information:

Table 1: ciwan.properties file

Parameter Name

Description

url

Provide the CI URL.

base url

Provide URL with application context and port number.

origin

Provide for request header validation detail.

appurl

Provide the url for the application where WAM component is configured.

tokenurl

Provide the url to call the application.

logouturl

Provide the URL to log out from the target application

launchpadurl

Provide the URL to launch the application.

skipurls

Url to be skipped if it is found broken/ redirecting to unnecessary links/pages.

skipelements

Elements to be skipped from the http servlet response.

failover

This property indicates whether failover is enabled or not. If the failover is disabled (value is false) then the WAM module will work regularly. If the failover is enabled (value is true) then the WAM module will execute failover activities.

authurl

This property indicates the URL of the application where the user credentials are submitted for authentication.

authparameter

The request parameter will carry the username.

logfilepath

This property indicates the location of the file where user details will be logged. This file needs to exist with appropriate permissions before activating failover.

sslenabledonCi

The default value is True in case if it is not valid or not defined. Otherwise, it is required to mark it False in case SSL is not enabled for Cross Identity Application.

sslenabledonApp

The default value is True in case it is not defined /not valid. Else, it is required to mark it as False, in case SSL is not enabled for the application, which is going to be protected by WAM.


Figure 1:Sample Screenshot of ciwam.properties file

Text, letter  Description automatically generated

Copy the JAR file ciwamfilter.jar in the WEB-INF/lib folder of the target web application.

  1. Access the target web application and locate the web.xml file in the target web application. Typically, web.xml must be in the WEB-INF folder. The following are the changes in the web.xml file:

<filter>

<filter-name>ciwamfilter</filter-name>

<filter-class>com.ilantus.CIWamFilter   

</filter-class>

 </filter> 

 <filter-mapping> 

<filter-name>ciwamfilter</filter-name>

<url-pattern>/*</url-pattern>

</filter-mapping>










Was this article helpful?