Configuring the PingIntelligence servlet filter
Configure the servlet filter for the PingIntelligence policy in the webdefault.xml file in PingFederate.
About this task
To define the PingIntelligence for APIs servlet filter:
Steps
-
Add the the following filter configuration to the
<pf_install>/pingfederate/etc/webdefault.xmlfile. Add the filter configuration within the<web-app></web-app>element.If there are multiple filters in the
webdefault.xmlfile, then placepi4APIFilterat the end.<filter> <filter-name>pi4APIFilter</filter-name> <filter-class>com.pingidentity.pi.servlets.PI4APIServletFilter</filter-class> <init-param> <param-name>ASE-Primary-URL</param-name> <param-value>https://<IP address of primary ASE>:<Port number></param-value> </init-param> <init-param> <param-name>ASE-Secondary-URL</param-name> <param-value>https://<IP address of secondary ASE>:<Port number></param-value> </init-param> <init-param> <param-name>ASE-Token</param-name> <param-value><ASE authentication token></param-value> </init-param> <init-param> <param-name>Enable-Blocking</param-name> <param-value>false</param-value> </init-param> </filter> <filter-mapping> <filter-name>pi4APIFilter</filter-name> <url-pattern>/as/token.oauth2</url-pattern> </filter-mapping> -
Make sure the following configurations are set correctly:
-
The
filter-classelement is configured tocom.pingidentity.pi.servlets.PI4APIServletFilter. -
The
pi4APIFilteris mapped to the token endpoint URL of PingFederate by configuring theurl-patternelement to/as/token.oauth2. -
The
filter-nameelement in both the<filter>and<filter-mapping>blocks ispi4APIFilter.
-
-
Substitute the actual values for the
initparameters in thepi44APIFilterfilter.The following table explains the PI4API
initparameters in detail. The parameteers control the communication with API Security Enforcer (ASE). You can contact Ping Identity support team for the actual values of these parameters.Parameter Name Description ASE-Primary-URLThe URL or IP address of the ASE primary host.
To support high availability, PingIntelligence provides ASE primary and secondary nodes.
ASE-Secondary-URLThe URL or IP address of the ASE secondary host.
ASE-TokenThe ASE sideband authentication token. You can obfuscate the sideband authentication token using one of the following utilities available in the PingFederate
<pf_install>/pingfederate/bin/directory:-
On Windows:
obfuscate.bat -
On Linux:
./obfuscate.sh
If you need further assistance in using the utility, contact Ping Identity support.
Enable-BlockingYou can optionally block a client that has been detected executing an attack. To block the client, you need to enable blocking in ASE by setting the
Enable-Blockingtotrue. The default value isfalse. -