cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject svn commit: r855233 - in /websites/production/cxf/content: cache/main.pageCache fediz-spring-2.html fediz-spring.html
Date Wed, 20 Mar 2013 15:48:02 GMT
Author: buildbot
Date: Wed Mar 20 15:48:01 2013
New Revision: 855233

Production update by buildbot for cxf


Modified: websites/production/cxf/content/cache/main.pageCache
Binary files - no diff available.

Added: websites/production/cxf/content/fediz-spring-2.html
--- websites/production/cxf/content/fediz-spring-2.html (added)
+++ websites/production/cxf/content/fediz-spring-2.html Wed Mar 20 15:48:01 2013
@@ -0,0 +1,275 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+  <head>
+    <link type="text/css" rel="stylesheet" href="">
+    <script src="" type="text/javascript"></script>
+<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
+<meta name="keywords" content="business integration, EAI, SOA, Service Oriented Architecture,
web services, SOAP, JBI, JMS, WSDL, XML, EDI, Electronic Data Interchange, standards support,
integration standards, application integration, middleware, software, solutions, services,
CXF, open source">
+<meta name="description" content="Apache CXF, Services Framework - Fediz Spring 2">
+    <title>
+Apache CXF -- Fediz Spring 2
+    </title>
+  </head>
+<body onload="init()">
+<table width="100%" cellpadding="0" cellspacing="0">
+  <tr>
+    <td id="cell-0-0" colspan="2">&nbsp;</td>
+    <td id="cell-0-1">&nbsp;</td>
+    <td id="cell-0-2" colspan="2">&nbsp;</td>
+  </tr>
+  <tr>
+    <td id="cell-1-0">&nbsp;</td>
+    <td id="cell-1-1">&nbsp;</td>
+    <td id="cell-1-2">
+      <div style="padding: 5px;">
+        <div id="banner">
+          <!-- Banner -->
+<div id="banner-content">
+<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="left"
colspan="1" nowrap>
+<a shape="rect" href="" title="Apache CXF"><span style="font-weight:
bold; font-size: 170%; color: white">Apache CXF</span></a>
+</td><td align="right" colspan="1" nowrap>
+<a shape="rect" href="" title="The Apache Software Foundation"><img
border="0" alt="ASF Logo" src=""></a>
+          <!-- Banner -->
+        </div>
+      </div>
+      <div id="top-menu">
+        <table border="0" cellpadding="1" cellspacing="0" width="100%">
+          <tr>
+            <td>
+              <div align="left">
+                <!-- Breadcrumbs -->
+<a href="index.html">Index</a>&nbsp;&gt;&nbsp;<a href="fediz.html">Fediz</a>&nbsp;&gt;&nbsp;<a
href="fediz-spring-2.html">Fediz Spring 2</a>
+                <!-- Breadcrumbs -->
+              </div>
+            </td>
+            <td>
+              <div align="right">
+                <!-- Quicklinks -->
+<div id="quicklinks"><p><a shape="rect" href="download.html" title="Download">Download</a>
| <a shape="rect" href="">Documentation</a></p></div>
+                <!-- Quicklinks -->
+              </div>
+            </td>
+          </tr>
+        </table>
+      </div>
+    </td>
+    <td id="cell-1-3">&nbsp;</td>
+    <td id="cell-1-4">&nbsp;</td>
+  </tr>
+  <tr>
+    <td id="cell-2-0" colspan="2">&nbsp;</td>
+    <td id="cell-2-1">
+      <table>
+        <tr valign="top">
+          <td height="100%">
+            <div id="wrapper-menu-page-right">
+              <div id="wrapper-menu-page-top">
+                <div id="wrapper-menu-page-bottom">
+                  <div id="menu-page">
+                    <!-- NavigationBar -->
+<div id="navigation"><h3><a shape="rect" name="Navigation-ApacheCXFIndex"></a><a
shape="rect" href="index.html" title="Index">Apache CXF</a></h3>
+<ul class="alternate" type="square"><li><a shape="rect" href="index.html"
title="Index">Home</a></li><li><a shape="rect" href="download.html"
title="Download">Download</a></li><li><a shape="rect" href="people.html"
title="People">People</a></li><li><a shape="rect" href="project-status.html"
title="Project Status">Project Status</a></li><li><a shape="rect"
href="roadmap.html" title="Roadmap">Roadmap</a></li><li><a shape="rect"
href="mailing-lists.html" title="Mailing Lists">Mailing Lists</a></li><li><a
shape="rect" class="external-link" href="">Issue
Reporting</a></li><li><a shape="rect" href="special-thanks.html" title="Special
Thanks">Special Thanks</a></li><li><a shape="rect" class="external-link"
href="">License</a></li><li><a shape="rect"
href="security-advisories.html" title="Security Advisories">Security Advisories</a></li></ul>
+<h3><a shape="rect" name="Navigation-Users"></a>Users</h3>
+<ul class="alternate" type="square"><li><a shape="rect" href="">User's
Guide</a></li><li><a shape="rect" href="support.html" title="Support">Support</a></li><li><a
shape="rect" href="faq.html" title="FAQ">FAQ</a></li><li><a shape="rect"
href="resources-and-articles.html" title="Resources and Articles">Resources and Articles</a></li></ul>
+<h3><a shape="rect" name="Navigation-Search"></a>Search</h3>
+<form enctype="application/x-www-form-urlencoded" method="get" id="cse-search-box" action="">
+  <div>
+    <input type="hidden" name="cx" value="002890367768291051730:o99qiwa09y4">
+    <input type="hidden" name="ie" value="UTF-8">
+    <input type="text" name="q" size="21">
+    <input type="submit" name="sa" value="Search">
+  </div>
+<script type="text/javascript" src=";lang=en"></script>
+<h3><a shape="rect" name="Navigation-Developers"></a>Developers</h3>
+<ul class="alternate" type="square"><li><a shape="rect" href="">Architecture
Guide</a></li><li><a shape="rect" href="source-repository.html" title="Source
Repository">Source Repository</a></li><li><a shape="rect" href="building.html"
title="Building">Building</a></li><li><a shape="rect" href="automated-builds.html"
title="Automated Builds">Automated Builds</a></li><li><a shape="rect"
href="testing-debugging.html" title="Testing-Debugging">Testing-Debugging</a></li><li><a
shape="rect" href="coding-guidelines.html" title="Coding Guidelines">Coding Guidelines</a></li><li><a
shape="rect" href="getting-involved.html" title="Getting Involved">Getting Involved</a></li><li><a
shape="rect" href="release-management.html" title="Release Management">Release Management</a></li></ul>
+<h3><a shape="rect" name="Navigation-Subprojects"></a>Subprojects</h3>
+<ul class="alternate" type="square"><li><a shape="rect" href="distributed-osgi.html"
title="Distributed OSGi">Distributed OSGi</a></li><li><a shape="rect"
href="xjc-utils.html" title="XJC Utils">XJC Utils</a></li><li><a shape="rect"
href="build-utils.html" title="Build Utils">Build Utils</a></li><li><a
shape="rect" href="fediz.html" title="Fediz">Fediz</a></li></ul>
+<h3><a shape="rect" name="Navigation-ASF"></a><a shape="rect" class="external-link"
+<ul class="alternate" type="square"><li><a shape="rect" class="external-link"
href="">How Apache Works</a></li><li><a
shape="rect" class="external-link" href="">Foundation</a></li><li><a
shape="rect" class="external-link" href="">Sponsor
Apache</a></li><li><a shape="rect" class="external-link" href="">Thanks</a></li><li><a
shape="rect" class="external-link" href="">Security</a></li></ul>
+                    <!-- NavigationBar -->
+                  </div>
+              </div>
+            </div>
+          </div>
+         </td>
+         <td height="100%">
+           <!-- Content -->
+           <div class="wiki-content">
+<div id="ConfluenceContent"><h1><a shape="rect" name="FedizSpring2-SpringSecurity2.0Plugin%281.1SNAPSHOT%29"></a>Spring
Security 2.0 Plugin (1.1 SNAPSHOT)</h1>
+<p>This page describes how to enable Federation for a <a shape="rect" class="external-link"
rel="nofollow">Spring Security</a> based Web Application. Spring Security provides
more authorization capabilities than defined in the Java Servlet specification. Beyond authorizing
web requests Spring Security supports authorizing whether methods can be invoked and authorizing
access to individual domain object instances.</p>
+<p>Spring Security supports two deployment options. On the one hand, authentication
and authorization is enforced by the underlying Servlet Container or on the other hand by
Spring Security embedded with the application. The former ensures that the application is
only called if authentication is successful. This can be controlled by an administrator/operator.
This option is called <a shape="rect" class="external-link" href=""
rel="nofollow">Pre-Authentication</a>. The latter gives all the control to the application
developer and removes the dependency to security configuration in the Servlet Container. This
simplifies deploying an application into different Serlvet Container environments.</p>
+<p>Both options are valid and it mainly depends on the policies/requirements within
a company which is a better fit. Questions to be answered are: Who should manage the security
enforcement (Application developer, Administrator)? Do you have to deploy the application
into different Servlet Container environments?</p>
+<p>Prior to doing this configuration, make sure you've first deployed the Fediz IDP
and STS on the Tomcat IDP instance as discussed <a shape="rect" href="fediz-idp.html" title="Fediz
IDP">here</a>, and can view the STS WSDL at the URL given on that page.</p>
+<h3><a shape="rect" name="FedizSpring2-Installation"></a>Installation</h3>
+<p>You can either build the Fediz plugin on your own, download the package <a shape="rect"
href="fediz-downloads.html" title="Fediz Downloads">here</a> or add the dependency
to your Maven project. If you have built the plugin on your own you'll find the required libraries
in <tt>plugins/spring2/target/</tt></p>
+<p>It's recommended to use Maven to resolve all the dependencies as illustrated in
the example <em>spring2Webapp</em>. The README provides instructions for building
and deployment.</p>
+<h3><a shape="rect" name="FedizSpring2-WebApplicationwith%22native%22SpringSecurity"></a>Web
Application with "native" Spring Security</h3>
+<p>Authentication and authorization are managed by Spring Security only. The Fediz
Spring Plugin provides the implementation of WS-Federation by implementing certain Spring
Security interfaces. Finally, this results into the creation of the Spring Security Context.
You can use Spring's authorization capabilities for web requests and method calls. The example
<em>spring2Webapp</em> only illustrates authorizing web requests. Method based
authorization is described <a shape="rect" class="external-link" href=""
+<h5><a shape="rect" name="FedizSpring2-FedizPluginconfigurationforYourWebApplication"></a>Fediz
Plugin configuration for Your Web Application</h5>
+<p>The Fediz related configuration is done in a Servlet Container independent configuration
file which is described <a shape="rect" href="fediz-configuration.html" title="Fediz Configuration">here</a>.</p>
+<h5><a shape="rect" name="FedizSpring2-SpringSecurityConfiguration"></a>Spring
Security Configuration</h5>
+<p>The following configuration snippets illustrate the Fediz related configuration.
The complete configuration file can be found in the example <em>spring2Webapp</em>.</p>
+<div class="code panel" style="border-style: solid;border-width: 1px;"><div class="codeHeader
panelHeader" style="border-bottom-width: 1px;border-bottom-style: solid;"><b>applicationContext-security.xml</b></div><div
class="codeContent panelContent">
+<pre class="code-xml">
+    <span class="code-tag">&lt;sec:http entry-point-ref=<span class="code-quote">"federationEntryPoint"</span>&gt;</span>
+        <span class="code-tag">&lt;sec:intercept-url pattern=<span class="code-quote">"/secure/fedservlet"</span>
access=<span class="code-quote">"IS_AUTHENTICATED_FULLY"</span>/&gt;</span>
+        <span class="code-tag">&lt;sec:intercept-url pattern=<span class="code-quote">"/secure/manager/**"</span>
access=<span class="code-quote">"ROLE_MANAGER"</span>/&gt;</span>
+        <span class="code-tag">&lt;sec:intercept-url pattern=<span class="code-quote">"/secure/admin/**"</span>
access=<span class="code-quote">"ROLE_ADMIN"</span>/&gt;</span>
+        <span class="code-tag">&lt;sec:intercept-url pattern=<span class="code-quote">"/secure/user/**"</span>
access=<span class="code-quote">"ROLE_USER,ROLE_ADMIN,ROLE_MANAGER"</span>/&gt;</span>
+    <span class="code-tag">&lt;/sec:http&gt;</span>
+    <span class="code-tag">&lt;sec:authentication-manager alias=<span class="code-quote">"authManager"</span>/&gt;</span>
+    &lt;bean id=<span class="code-quote">"fedizConfig"</span> class=<span
class="code-quote">"org.apache.cxf.fediz.spring.FederationConfigImpl"</span> init-method=<span
+        p:configFile=<span class="code-quote">"WEB-INF/fediz_config.xml"</span>
p:contextName=<span class="code-quote">"/fedizhelloworld"</span> /&gt;
+    &lt;bean id=<span class="code-quote">"federationEntryPoint"</span>
+        class=<span class="code-quote">"org.apache.cxf.fediz.spring.web.FederationAuthenticationEntryPoint"</span>
+        p:federationConfig-ref=<span class="code-quote">"fedizConfig"</span>
+    &lt;bean id=<span class="code-quote">"federationFilter"</span>
+        class=<span class="code-quote">"org.apache.cxf.fediz.spring.web.FederationAuthenticationFilter"</span>
+        p:authenticationManager-ref=<span class="code-quote">"authManager"</span>
p:defaultTargetUrl=<span class="code-quote">"/whatever"</span>&gt;
+        <span class="code-tag">&lt;sec:custom-filter after=<span class="code-quote">"BASIC_PROCESSING_FILTER"</span>/&gt;</span>
+    <span class="code-tag">&lt;/bean&gt;</span>
+    &lt;bean id=<span class="code-quote">"federationAuthProvider"</span>
class=<span class="code-quote">"org.apache.cxf.fediz.spring.authentication.FederationAuthenticationProvider"</span>
+        p:federationConfig-ref=<span class="code-quote">"fedizConfig"</span>&gt;
+        <span class="code-tag">&lt;sec:custom-authentication-provider /&gt;</span>
+        <span class="code-tag">&lt;property name=<span class="code-quote">"authenticationUserDetailsService"</span>&gt;</span>
+            <span class="code-tag">&lt;bean class=<span class="code-quote">"org.apache.cxf.fediz.spring.authentication.GrantedAuthoritiesUserDetailsFederationService"</span>/&gt;</span>
+        <span class="code-tag">&lt;/property&gt;</span>
+    <span class="code-tag">&lt;/bean&gt;</span>
+<p>The <em>http</em> element is the key element which depends on the other
bean definitions like <em>federationFilter</em> and the <em>federationAuthProvider</em>.
Web request authorizing is configured in the <em>http</em> element as well which
looks similar to security constraints definition in <tt>web.xml</tt>.</p>
+<p>The following code snippet of the FederationServlet example illustrates how to get
access to the Spring Security Context of the current user and to the Federation releated information
like claims and login token.</p>
+<div class="code panel" style="border-style: solid;border-width: 1px;"><div class="codeHeader
panelHeader" style="border-bottom-width: 1px;border-bottom-style: solid;"><b></b></div><div
class="codeContent panelContent">
+<pre class="code-java">
+    Authentication obj = SecurityContextHolder.getContext().getAuthentication();
+    FederationAuthenticationToken fedAuthToken = (FederationAuthenticationToken)auth;
+    <span class="code-keyword">for</span> (GrantedAuthority item : fedAuthToken.getAuthorities())
+        ...
+    }
+    ClaimCollection claims = ((FederationUser)fedAuthToken.getUserDetails()).getClaims();
+    <span class="code-keyword">for</span> (Claim c: claims) {
+        ...
+    }
+<h3><a shape="rect" name="FedizSpring2-FederationMetadatadocument"></a>Federation
Metadata document</h3>
+<p>The Spring Security Fediz plugin supports publishing the WS-Federation Metadata
document which is described <a shape="rect" href="fediz-metadata.html" title="Fediz Metadata">here</a>.</p>
+           </div>
+           <!-- Content -->
+         </td>
+        </tr>
+      </table>
+   </td>
+   <td id="cell-2-2" colspan="2">&nbsp;</td>
+  </tr>
+  <tr>
+   <td id="cell-3-0">&nbsp;</td>
+   <td id="cell-3-1">&nbsp;</td>
+   <td id="cell-3-2">
+     <div id="footer">
+       <!-- Footer -->
+       <div id="site-footer">
+         <a href="">Privacy Policy</a>
+         (<a href="">edit
+	 (<a href=";showComments=true&amp;showCommentArea=true#addcomment">add
+	Apache CXF, CXF, Apache, the Apache feather logo are trademarks of The Apache Software Foundation.<br>
+        All other marks mentioned may be trademarks or registered trademarks of their respective
+       </div>
+       <!-- Footer -->
+     </div>
+   </td>
+   <td id="cell-3-3">&nbsp;</td>
+   <td id="cell-3-4">&nbsp;</td>
+  </tr>
+  <tr>
+    <td id="cell-4-0" colspan="2">&nbsp;</td>
+    <td id="cell-4-1">&nbsp;</td>
+    <td id="cell-4-2" colspan="2">&nbsp;</td>
+  </tr>
+<script type="text/javascript">
+var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+document.write(unescape("%3Cscript src='" + gaJsHost + "' type='text/javascript'%3E%3C/script%3E"));
+<script type="text/javascript">
+try {
+var pageTracker = _gat._getTracker("UA-4458903-1");
+} catch(err) {}</script>

Modified: websites/production/cxf/content/fediz-spring.html
--- websites/production/cxf/content/fediz-spring.html (original)
+++ websites/production/cxf/content/fediz-spring.html Wed Mar 20 15:48:01 2013
@@ -136,7 +136,7 @@ Apache CXF -- Fediz Spring
          <td height="100%">
            <!-- Content -->
            <div class="wiki-content">
-<div id="ConfluenceContent"><h1><a shape="rect" name="FedizSpring-SpringSecurityPlugin%281.1SNAPSHOT%29"></a>Spring
Security Plugin (1.1 SNAPSHOT)</h1>
+<div id="ConfluenceContent"><h1><a shape="rect" name="FedizSpring-SpringSecurity3.1Plugin%281.1SNAPSHOT%29"></a>Spring
Security 3.1 Plugin (1.1 SNAPSHOT)</h1>
 <p>This page describes how to enable Federation for a <a shape="rect" class="external-link"
rel="nofollow">Spring Security</a> based Web Application. Spring Security provides
more authorization capabilities than defined in the Java Servlet specification. Beyond authorizing
web requests Spring Security supports authorizing whether methods can be invoked and authorizing
access to individual domain object instances.</p>

View raw message