cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache CXF > Tomcat
Date Fri, 11 May 2012 13:16:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/2042/9/15/_/styles/combined.css?spaceKey=CXF&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://cwiki.apache.org/confluence/display/CXF/Tomcat">Tomcat</a></h2>
    <h4>Page  <b>added</b> by             <a href="https://cwiki.apache.org/confluence/display/~owulff@apache.org">Oliver
Wulff</a>
    </h4>
         <br/>
    <div class="notificationGreySide">
         <h1><a name="Tomcat-TomcatPlugin"></a>Tomcat Plugin</h1>
<p>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.</p>

<h3><a name="Tomcat-Installation"></a>Installation</h3>
<p>tbd</p>


<h3><a name="Tomcat-Configuration"></a>Configuration</h3>


<p>The current release of the federation plugin requires to configure the FederationAuthenticator
of Fediz like any other Valve in Tomcat which is described here <a href="http://tomcat.apache.org/tomcat-7.0-doc/config/valve.html"
class="external-link" rel="nofollow">here</a>.</p>

<p>A valve can be configured on different levels like <em>Host</em> or <em>Context</em>.
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 <em>Context</em>
level otherwise on the <em>Host</em> level in the Tomcat configuration file <em>server.xml</em></p>


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

<h5><a name="Tomcat-METAINF%2Fcontext.xml"></a>META-INF/context.xml</h5>

<p>  &lt;Context&gt; <br/>
    &lt;Valve className="org.apache.cxf.fediz.tomcat.FederationAuthenticator"<br/>
      configFile="conf/Fediz_config.xml" /&gt;<br/>
  &lt;/Context&gt; </p>

<h5><a name="Tomcat-Hostlevelinserver.xml"></a>Host level in server.xml</h5>
<p>  ...<br/>
  &lt;Host name="localhost"  appBase="webapps"<br/>
        unpackWARs="true" autoDeploy="true"<br/>
        xmlValidation="false" xmlNamespaceAware="false"&gt;<br/>
    &lt;Valve className="org.apache.cxf.fediz.tomcat.FederationAuthenticator"<br/>
           configFile="conf/Fediz_config.xml" /&gt;<br/>
  &lt;/Host&gt;<br/>
  ...</p>

<h5><a name="Tomcat-Contextlevelinserver.xml"></a>Context level in server.xml</h5>

<p>  ...<br/>
  &lt;Context path="/fedizhelloworld" docBase="fedizhelloworld"&gt;<br/>
    &lt;Valve className="org.apache.cxf.fediz.tomcat.FederationAuthenticator"<br/>
      configFile="conf/Fediz_config.xml" /&gt;<br/>
  &lt;/Context&gt;<br/>
  ...</p>




    </div>
    <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;">
            <a href="https://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
       </div>
       <a href="https://cwiki.apache.org/confluence/display/CXF/Tomcat">View Online</a>
              |
       <a href="https://cwiki.apache.org/confluence/display/CXF/Tomcat?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
           </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message