You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Tomcat Plugin

This page describes how to enable Federation in Tomcat. This Tomcat instance acts as the Relying Party which means it validates the incoming SignInResponse which has been created by the Identity Provider (IDP) server.

Installation

tbd

Configuration

The current release of the federation plugin requires to configure the FederationAuthenticator of Fediz like any other Valve in Tomcat which is described here here.

A valve can be configured on different levels like Host or Context. The Fediz configuration file allows to configure all servlet contexts in one file or choose one file per Servlet Context. If you choose to have one Fediz configuration file per Servlet Context then you must configure the FederationAuthenticator on the Context level otherwise on the Host level in the Tomcat configuration file server.xml

You can either configure the context in the server.xml or in META-INF/context.xml as part of your WAR file.

META-INF/context.xml

<Context>
<Valve className="org.apache.cxf.fediz.tomcat.FederationAuthenticator"
configFile="conf/Fediz_config.xml" />
</Context>

Host level in server.xml

...
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Valve className="org.apache.cxf.fediz.tomcat.FederationAuthenticator"
configFile="conf/Fediz_config.xml" />
</Host>
...

Context level in server.xml

...
<Context path="/fedizhelloworld" docBase="fedizhelloworld">
<Valve className="org.apache.cxf.fediz.tomcat.FederationAuthenticator"
configFile="conf/Fediz_config.xml" />
</Context>
...

  • No labels