Product SiteDocumentation Site

14.5.13. Standalone Web Applications(All Servlet Containers)

If your IDP or SP applications are not running on JBoss Application Server or Apache Tomcat, then you can use the standalone mode of PicketLink. Service Provider Configuration

In your web.xml, configure a Section, “SPFilter” as shown below as an example:

Example 14.14. web.xml

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

   <description>Sales Standalone Application</description>

        The SP Filter intersects all requests at the SP and sees if there is a need to contact the IDP.

After the SAML workflow is completed, the user principal is available in the http session at "picketlink.principal".
Something like,
import org.picketlink.identity.federation.web.constants.GeneralConstants;
Principal userPrincipal = (Principal) session.getAttribute(GeneralConstants.PRINCIPAL_ID);