Initial attempt at converting site sources to be mvn 2 compatible.
This commit is contained in:
parent
10d6859dad
commit
7852a830a3
|
@ -0,0 +1,61 @@
|
|||
-----------------------
|
||||
Building Acegi Security
|
||||
-----------------------
|
||||
|
||||
|
||||
Building Acegi Security System
|
||||
|
||||
* Checking Out from Subversion (SVN)
|
||||
|
||||
This project uses <a href="http://maven.apache.org">Maven</a> as project manager
|
||||
and build tool. We recommend you to install Maven 2.0.4 or greater before trying
|
||||
the following.
|
||||
|
||||
To checkout Acegi Security from SVN, see our {{{svn-usage.html}SVN Usage}} page.
|
||||
|
||||
* Quick Build
|
||||
|
||||
Often people reading this document just want to see if Acegi Security will work
|
||||
for their projects. They want to deploy a sample application, and that's about it
|
||||
(after all, all the reference documentation can be read online at
|
||||
{{{http://acegisecurity.org}http://acegisecurity.org}}).
|
||||
In this case, execute:
|
||||
TODO: Update to use tutorial app and maven 2
|
||||
|
||||
+----------------------------------------------------------------------------------------------------------------------+
|
||||
cd $ACEGI_SECURITY/core (or cd %ACEGI_SECURITY%/core on Windows)
|
||||
mvn install
|
||||
cd $ACEGI_SECURITY/samples/contacts
|
||||
maven multiwar:multiwar
|
||||
copy $ACEGI_SECURITY/samples/contacts/target/acegi-security-sample-contacts-filter.war $YOUR_CONTAINER/webapps
|
||||
+----------------------------------------------------------------------------------------------------------------------+
|
||||
|
||||
Then load up your web container and visit
|
||||
{{{http://localhost:8080/acegi-security-sample-contacts-filter/}http://localhost:8080/acegi-security-sample-contacts-filter/}}
|
||||
(or whatever location is appropriate for your web container).
|
||||
|
||||
* Building All JARs
|
||||
|
||||
Sometimes people are already using Acegi Security, and they just want to build the
|
||||
latest code from CVS. To build all artifacts (JARs) and install them into
|
||||
your local Maven repository, simply perform a SVN checkout, and then execute:
|
||||
|
||||
+----------------------------------------------------------------------------------------------------------------------+
|
||||
cd $ACEGI_SECURITY
|
||||
mvn install
|
||||
+----------------------------------------------------------------------------------------------------------------------+
|
||||
|
||||
You can then check your <<<$HOME/.m2/repository/org/acegisecurity>>>
|
||||
directory and it should contain all of the latest Acegi Security JARs.
|
||||
|
||||
* Building The Site
|
||||
|
||||
By "site" we mean the web site you can browse at
|
||||
{{{http://acegisecurity.org}http://acegisecurity.org}},
|
||||
which includes the reference documentation and all of the Maven reports.
|
||||
If you'd like a local copy, simply execute:
|
||||
|
||||
+----------------------------------------------------------------------------------------------------------------------+
|
||||
cd $ACEGI_SECURITY
|
||||
mvn clean site
|
||||
+----------------------------------------------------------------------------------------------------------------------+
|
|
@ -0,0 +1,215 @@
|
|||
--------------------------------
|
||||
Acegi Security System for Spring
|
||||
--------------------------------
|
||||
|
||||
What is Acegi Security?
|
||||
|
||||
Acegi Security is a powerful, flexible security solution for enterprise software,
|
||||
with a particular emphasis on applications that use
|
||||
{{{http://www.springframework.org/}Spring}}. Using Acegi Security provides your
|
||||
applications with comprehensive authentication, authorization, instance-based access control,
|
||||
channel security and human user detection capabilities.
|
||||
|
||||
Key Features
|
||||
|
||||
* <<Stable and mature:>> Acegi Security 1.0.0 was released in May 2006 after
|
||||
more than two and a half years of use in large production software projects, 70,000+ downloads
|
||||
and hundreds of community contributions.
|
||||
In terms of release numbering, we also use the
|
||||
{{{http://apr.apache.org/versioning.html}Apache APR Project Versioning Guidelines}} so that you can easily identify release compatibility.
|
||||
|
||||
* <<Well documented:>> All APIs are fully documented using
|
||||
{{{http://acegisecurity.org/multiproject/acegi-security/apidocs/index.html}JavaDoc}},
|
||||
with almost 100 pages of
|
||||
{{{./reference.html}Reference Guide}} documentation providing an easy-to-follow
|
||||
introduction. Even more documentation is provided on this web site, as
|
||||
shown in the left hand navigation sidebar.
|
||||
|
||||
* <<Fast results:>> View our {{{./suggested.html}suggested steps}}
|
||||
for the fastest way to develop complex, security-compliant applications.
|
||||
|
||||
* <<Enterprise-wide single sign on:>> Using JA-SIG's open
|
||||
source {{{http://www.ja-sig.org/products/cas/}Central Authentication Service}} (CAS),
|
||||
the Acegi Security can participate
|
||||
in an enterprise-wide single sign on environment. You no longer need
|
||||
every web application to have its own authentication database. Nor are
|
||||
you restricted to single sign on across a single web container. Advanced
|
||||
single sign on features like proxy support and forced refresh of logins
|
||||
are supported by both CAS and Acegi Security.
|
||||
|
||||
* <<Reuses your Spring expertise:>> We use Spring application
|
||||
contexts for all configuration, which should help Spring developers get
|
||||
up-to-speed nice and quickly.
|
||||
|
||||
* <<Domain object instance security:>> In many applications it's
|
||||
desirable to define Access Control Lists (ACLs) for individual domain
|
||||
object instances. We provide a comprehensive ACL package with features
|
||||
including integer bit masking, permission inheritence (including
|
||||
blocking), a JDBC-backed ACL repository, caching and a pluggable,
|
||||
interface-driven design.
|
||||
|
||||
* <<Non-intrusive setup:>> The entire security system can operate
|
||||
within a single web application using the provided filters. There is no
|
||||
need to make special changes or deploy libraries to your Servlet or EJB
|
||||
container.
|
||||
|
||||
* <<Full (but optional) container integration:>> The credential
|
||||
collection and authorization capabilities of your Servlet or EJB
|
||||
container can be fully utilised via included "container adapters". We
|
||||
currently support Catalina (Tomcat), Jetty, JBoss and Resin, with
|
||||
additional containers easily added.
|
||||
|
||||
* <<Keeps your objects free of security code:>> Many applications
|
||||
need to secure data at the bean level based on any combination of
|
||||
parameters (user, time of day, authorities held, method being invoked,
|
||||
parameter on method being invoked....). This package gives you this
|
||||
flexibility without adding security code to your Spring business
|
||||
objects.
|
||||
|
||||
* <<After invocation security:>> Acegi Security can not only protect
|
||||
methods from being invoked in the first place, but it can also
|
||||
deal with the objects returned from the methods. Included implementations
|
||||
of after invocation security can throw an exception or mutate the returned
|
||||
object based on ACLs.
|
||||
|
||||
* <<Secures your HTTP requests as well:>> In addition to securing
|
||||
your beans, the project also secures your HTTP requests. No longer is it
|
||||
necessary to rely on web.xml security constraints. Best of all, your
|
||||
HTTP requests can now be secured by your choice of regular expressions
|
||||
or Apache Ant paths, along with pluggable authentication, authorization
|
||||
and run-as replacement managers.
|
||||
|
||||
* <<Channel security:>> Acegi Security can
|
||||
automatically redirect requests across an appropriate transport channel.
|
||||
Whilst flexible enough to support any of your "channel" requirements (eg
|
||||
the remote user is a human, not a robot), a common channel security
|
||||
feature is to ensure your secure pages will only be available over
|
||||
HTTPS, and your public pages only over HTTP. Acegi Security also
|
||||
supports unusual port combinations (including if accessed via an
|
||||
intermediate server like Apache) and pluggable transport decision
|
||||
managers.
|
||||
|
||||
* <<Supports HTTP BASIC authentication:>> Perfect for remoting
|
||||
protocols or those web applications that prefer a simple browser pop-up
|
||||
(rather than a form login), Acegi Security can directly process HTTP
|
||||
BASIC authentication requests as per RFC 1945.
|
||||
|
||||
* <<Supports HTTP Digest authentication:>> For greater security than
|
||||
offered by BASIC authentcation, Acegi Security also supports Digest Authentication
|
||||
(which never sends the user's password across the wire). Digest Authentication
|
||||
is widely supported by modern browsers. Acegi Security's implementation complies
|
||||
with both RFC 2617 and RFC 2069.
|
||||
|
||||
* <<Computer Associates Siteminder support:>> Authentication can be
|
||||
delegated through to CA's Siteminder solution, which is common in large
|
||||
corporate environments.
|
||||
|
||||
* <<X509 (Certificate) support:>> Acegi Security can easily read
|
||||
client-side X509 certificates for authenticating users.
|
||||
|
||||
* <<LDAP Support:>> Do you have an LDAP directory? Acegi Security can
|
||||
happily authenticate against it.
|
||||
|
||||
* <<Tag library support:>> Your JSP files can use our taglib
|
||||
to ensure that protected content like links and messages are only
|
||||
displayed to users holding the appropriate granted authorities. The taglib
|
||||
also fully integrates with Acegi Security's ACL services, and
|
||||
obtaining extra information about the logged-in principal.
|
||||
|
||||
* <<Configuration via IoC XML, Commons Attributes, or JDK 5 Annotations:>> You
|
||||
select the method used to configure your security environment. The
|
||||
project supports configuration via Spring application contexts, as well
|
||||
as Jakarta Commons Attributes and Java 5's annotations feature. Some users
|
||||
(such as those building content management systems) pull configuration data
|
||||
from a database, which exemplifies Acegi Security's flexible configuration
|
||||
metadata system.
|
||||
|
||||
* <<Various authentication backends:>> We include the ability to
|
||||
retrieve your user and granted authority definitions from an XML
|
||||
file, JDBC datasource or Properties file. Alternatively, you can implement the
|
||||
single-method UserDetailsService interface and obtain authentication details from
|
||||
anywhere you like.
|
||||
|
||||
* <<Event support:>> Building upon Spring's
|
||||
<code>ApplicationEvent</code> services, you can write your own listeners
|
||||
for authentication-related events, along with authorisation-related events.
|
||||
This enables you to implement account lockout and audit log systems, with
|
||||
complete decoupling from Acegi Security code.
|
||||
|
||||
* <<Easy integration with existing databases:>> Our implementations
|
||||
have been designed to make it very easy to use your existing
|
||||
authentication schema and data (without modification). Of course,
|
||||
you can also provide your own Data Access Object if you wish.
|
||||
|
||||
* <<Caching:>> Acegi Security integrates with Spring's {{{http://ehcache.sourceforge.net}EHCACHE}} factory.
|
||||
This flexibility means your database (or other authentication
|
||||
repository) is not repeatedly queried for authentication
|
||||
information.
|
||||
|
||||
* <<Pluggable architecture:>> Every critical aspect of the package
|
||||
has been modelled using high cohesion, loose coupling, interface-driven
|
||||
design principles. You can easily replace, customise or extend parts of
|
||||
the package.
|
||||
|
||||
* <<Startup-time validation:>> Every critical object dependency and
|
||||
configuration parameter is validated at application context startup
|
||||
time. Security configuration errors are therefore detected early and
|
||||
corrected quickly.
|
||||
|
||||
* <<Remoting support:>> Does your project use a rich client? Not a
|
||||
problem. Acegi Security integrates with standard Spring remoting
|
||||
protocols, because it automatically processes the HTTP BASIC
|
||||
authentication headers they present. Add our BASIC authentication filter
|
||||
to your web.xml and you're done. You can also easily use RMI or Digest
|
||||
authentication for your rich clients with a simple configuration statement.
|
||||
|
||||
* <<Advanced password encoding:>> Of course, passwords in your
|
||||
authentication repository need not be in plain text. We support both SHA
|
||||
and MD5 encoding, and also pluggable "salt" providers to maximise
|
||||
password security. Acegi Security doesn't even need to see the password
|
||||
if your backend can use a bind-based strategy for authentication (such as
|
||||
an LDAP directory, or a database login).
|
||||
|
||||
* <<Run-as replacement:>> The system fully supports
|
||||
temporarily replacing the authenticated principal for the duration of the web
|
||||
request or bean invocation. This enables you to build public-facing
|
||||
object tiers with different security configurations than your backend
|
||||
objects.
|
||||
|
||||
* <<Transparent security propagation:>> Acegi Security can automatically
|
||||
transfer its core authentication information from one machine to another,
|
||||
using a variety of protocols including RMI and Spring's HttpInvoker.
|
||||
|
||||
* <<Compatible with HttpServletRequest's security methods:>> Even though
|
||||
Acegi Security can deliver authentication using a range of pluggable mechanisms
|
||||
(most of which require no web container configuration), we allow you to access
|
||||
the resulting Authentication object via the getRemoteUser() and other
|
||||
security methods on HttpServletRequest.
|
||||
|
||||
* <<Unit tests:>> A must-have of any quality security project, unit
|
||||
tests are included. Our unit test coverage is very high, as shown in the
|
||||
{{{multiproject/acegi-security/clover/index.html}coverage report}}.
|
||||
|
||||
* <<Built by Maven:>> This assists you in effectively reusing the Acegi
|
||||
Security artifacts in your own Maven-based projects.
|
||||
|
||||
* <<Supports your own unit tests:>> We provide a number of classes
|
||||
that assist with your own unit testing of secured business objects. For
|
||||
example, you can change the authentication identity and its associated
|
||||
granted authorities directly within your test methods.
|
||||
|
||||
* <<Peer reviewed:>> Whilst nothing is ever completely secure,
|
||||
using an open source security package leverages the continuous design
|
||||
and code quality improvements that emerge from peer review.
|
||||
|
||||
* <<Community:>> Well-known for its supportive community, Acegi Security
|
||||
has an active group of developers and users. Visit our project resources (below)
|
||||
to access these services.
|
||||
|
||||
* <<Apache license.>> You can confidently use Acegi Security in your project.
|
||||
|
||||
* Project Resources
|
||||
|
||||
{{{http://forum.springframework.org/}<<Support Forums>>}}
|
||||
{{{mail-lists.html}<<Developer Mailing List>>}}
|
||||
{{{downloads.html}<<Downloads>>}}
|
|
@ -0,0 +1,41 @@
|
|||
----------------
|
||||
Subversion Usage
|
||||
----------------
|
||||
|
||||
Subversion Usage
|
||||
|
||||
* Web Access
|
||||
|
||||
You can browse the Subversion repository at
|
||||
{{{http://svn.sourceforge.net/viewvc/acegisecurity/}http://svn.sourceforge.net/viewvc/acegisecurity/}}
|
||||
|
||||
* Anonymous SVN Access
|
||||
|
||||
This project's SVN repository can be checked out through anonymous SVN with the following command:
|
||||
|
||||
+----------------------------------------------------------------------------------------------------------------------+
|
||||
|
||||
svn co https://svn.sourceforge.net/svnroot/acegisecurity/trunk/acegisecurity
|
||||
|
||||
+----------------------------------------------------------------------------------------------------------------------+
|
||||
|
||||
* Nightly Snapshots
|
||||
|
||||
If you'd prefer not to use SVN directly, please see our {{{"downloads.html"}downloads page}} for nightly snapshots.
|
||||
|
||||
|
||||
* Anonymous Access with Maven
|
||||
|
||||
This project's CVS repository can be checked out through anonymous (pserver) CVS with the following command
|
||||
on a single line:
|
||||
|
||||
+----------------------------------------------------------------------------------------------------------------------+
|
||||
|
||||
maven scm:checkout-project
|
||||
-Dmaven.scm.method=svn
|
||||
-Dmaven.scm.svn.module=modulename
|
||||
-Dmaven.scm.svn.root=scm:svn:https://svn.sourceforge.net/svnroot/acegisecurity/trunk/acegisecurity
|
||||
-Dmaven.scm.checkout.dir=acegisecurity
|
||||
+----------------------------------------------------------------------------------------------------------------------+
|
||||
|
||||
|
|
@ -0,0 +1,163 @@
|
|||
<!--
|
||||
* ========================================================================
|
||||
*
|
||||
* Copyright 2004 Acegi Technology Pty Limited
|
||||
*
|
||||
* Licensed 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
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* ========================================================================
|
||||
-->
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
<title>External Web Articles covering Acegi Security</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>External Web Articles covering Acegi Security</h1>
|
||||
<p>Here are some of the external pages mentioning Acegi Security. If you've
|
||||
found another, please let us know.
|
||||
<ul>
|
||||
<li><b><a href="http://forum.springframework.org">Spring Forums</a></b>:
|
||||
The first place to look for Acegi Security support (use the 'search' function).<br><br>
|
||||
</li>
|
||||
<li><b><a href="mail-lists.html">Acegi Security Mailing Lists</a></b>:
|
||||
If you'd like to discuss development of the project.<br><br>
|
||||
</li>
|
||||
<li><b><a href="http://weblog.morosystems.cz/spring/Spring-Acegi-JCaptcha-integration">Acegi Security and Captcha Layer</a></b>:
|
||||
How to use Acegi Security with JCaptcha.<br><br>
|
||||
</li>
|
||||
<li><b><a href="http://java.sys-con.com/read/171482_1.htm">Introduction to Acegi: Mastering the security framework</a></b>:
|
||||
Java Developer's Journal (JDJ) article by David Hardwick.<br><br>
|
||||
</li>
|
||||
<li><b><a href="http://www.javalobby.org/articles/acegisecurity/part1.jsp">Securing Your Java Applications - Acegi Security Style</a></b>:
|
||||
Matthew Porter wrote this good introductory article for Javalobby.<br><br>
|
||||
</li>
|
||||
<li><b><a href="http://home.hccnet.nl/bart.van.riel/">Acegi Spring Tutorial</a></b>:
|
||||
Available in PDF and HTML formats, thanks to Bart van Riel.<br><br>
|
||||
</li>
|
||||
<li><b><a href="http://peter.jteam.nl/wp-trackback.php?p=6">Testing Acegi Security</a></b>:
|
||||
Peter Veentjer discussed how to test Acegi Security-protected objects in isolation.<br><br>
|
||||
</li>
|
||||
<li><b><a href="http://iremia.univ-reunion.fr/intranet/wiki/Wiki.jsp?page=DWRandAcegi">Integrating DWR and Acegi Security</a></b>:
|
||||
Explanation on using Acegi Security's MethodSecurityInterceptor with DWR.<br><br>
|
||||
</li>
|
||||
<li><b><a href="http://dev.eclipse.org/mhonarc/lists/aspectj-users/msg05355.html">AspectJ with Acegi Security</a></b>:
|
||||
AspectJ with Acegi Security thread on the AspectJ list.<br><br>
|
||||
</li>
|
||||
<li><b><a href="http://www.acooke.org/cute/SessionLim0.html">Session Limitation with Acegi Security</a></b>:
|
||||
Andrew Cooke discusses using concurrent sessions.<br><br>
|
||||
</li>
|
||||
<li><b><a href="http://jroller.com/page/paskos?entry=acegi_portable_independent_and_rich">Acegi: Portable, Independent and Rich Webapp Security</a></b>:
|
||||
Pascal Gehl relates his experience in migrating from CMA to Acegi Security.<br><br>
|
||||
</li>
|
||||
<li><b><a href="http://affy.blogspot.com/2005/10/how-do-i-create-private-bean-using.html">Creating a private bean with Acegi</a></b>:
|
||||
By David Medinets.<br><br>
|
||||
</li>
|
||||
<li><b><a href="http://affy.blogspot.com/2005/10/acegi-tutorial-example-of-method-based.html">Method based access control and JUnit for testing</a></b>:
|
||||
By David Medinets.<br><br>
|
||||
</li>
|
||||
<li><b><a href="http://affy.blogspot.com/2005/10/acegi-example-of-when-to-use.html">Acegi: When to use AffirmativeBased voting</a></b>:
|
||||
By David Medinets.<br><br>
|
||||
</li>
|
||||
<li><b><a href="http://raibledesigns.com/page/rd/20050617#presentations_acegi_security_and_spring">Acegi Security High-Level Overview Presentation</a></b>:
|
||||
Matt Raible has provided a nice <a href="http://www2.java.no/web/files/moter/mai05/AcegiSecurity.pdf">PDF presentation</a> comparing Acegi Security and J2EE CMA.<br><br>
|
||||
</li>
|
||||
<li><b><a href="http://jroller.com/page/raible?entry=how_to_upgrade_to_upgrade">How to upgrade to upgrade from Acegi Security 0.9.0 to 1.0 RC1</a></b>:
|
||||
Matt Raible's upgrade instructions.<br><br>
|
||||
</li>
|
||||
<li><b><a href="http://jaredtech.blogspot.com/2005/08/webworkvelocityacegi-config.html">Webwork + Velocity + Acegi Config</a></b>:
|
||||
Jared Odulio offers some configuration tips.<br><br>
|
||||
</li>
|
||||
<li><b><a href="http://www.almaer.com/blog/archives/000640.html">Container Managed Security: If your standard covers a lowest common denominator</a></b>:
|
||||
"For this reason I end up using something like Acegi Security", Dion Almaer comments after listing a series of missing hooks from the Servlet Spec security approach.<br><br>
|
||||
</li>
|
||||
<li><b><a href="http://opensource.atlassian.com/seraph/status.html">Seraph Development Status</a></b>:
|
||||
The fine folks at Atlassian have noted, "for more complex needs than Seraph meets, we suggest considering alternative frameworks like ACEGI, which provides more functionality (at the cost of greater complexity)."<br><br>
|
||||
</li>
|
||||
<li><b><a href="http://raibledesigns.com/page/rd/20050104#re_j2ee_app_server_security">J2EE App Server Security</a></b>:
|
||||
"After using Acegi for the last month, I think I'm going to ditch the 'standard' J2EE security stuff", blogged Matt Raible. I should note
|
||||
our CVS tree has become stable and there are <a href="building.html">build instructions</a>.<br><br>
|
||||
</li>
|
||||
<li><b><a href="http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuseAuthentication">AppFuse Authentication</a></b>:
|
||||
Discusses AppFuse 1.8+'s replacement of Container-Managed Authentication (CMA) with Acegi Security.<br><br>
|
||||
</li>
|
||||
<li><b><a href="http://www.jroller.com/page/fairTrade?entry=integrating_acegi_and_jsf_revisited"> Integrating Acegi and JSF: Revisited</a></b>:
|
||||
Thanks to tony_k.<br><br>
|
||||
</li>
|
||||
<li><b><a href="http://www.jroller.com/page/vtatai/20050505#integrating_acegi_with_jsf">Java Server Faces (JSF) with Acegi Security</a></b>:
|
||||
Covers using these two frameworks - thanks to Victor Tatai.<br><br>
|
||||
</li>
|
||||
<li><b><a href="http://www.jroller.com/page/cagataycivici?entry=acegi_jsf_components_hit_the">Acegi Security Java Server Faces (JSF) components</a></b>:
|
||||
Cagatay Civici has provided a JSF version of our taglibs.<br><br>
|
||||
</li>
|
||||
<li><b><a href="http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuseSecurity">Acegi Security use with AppFuse</a></b>:
|
||||
The popular AppFuse project now uses Acegi Security instead of container managed authentication!<br><br>
|
||||
</li>
|
||||
<li><b><a href="http://jroller.com/page/habuma/20041124#simplifying_acegi_configuration">Simplifying Acegi Configuration</a></b>:
|
||||
Craig Walls provides a good approach to reusing your Acegi Security configuration between projects. This has been
|
||||
<a href="http://www.picklematrix.net/archives/000974.html">updated</a> by Seth Ladd for release 0.7.0.<br><br>
|
||||
</li>
|
||||
<li><b><a href="http://confluence.sourcebeat.com/display/SPL/Update+Chapters">Spring Live Update Chapters</a></b>:
|
||||
Matt Raible is including Acegi Security in Chapter 12 of his popular ebook.<br><br>
|
||||
</li>
|
||||
<li><b><a href="http://www.china-pub.com/computers/common/info.asp?id=24483">Mastering Spring (Chinese) Book</a></b>:
|
||||
Acegi Security is included in Chapter 17 of this book.<br><br>
|
||||
</li>
|
||||
<li><b><a href="http://www.manning.com/walls2">Spring In Action</a></b>:
|
||||
Craig Walls has also written another popular Spring book, which includes Acegi Security in Chapter 11.<br><br>
|
||||
</li>
|
||||
<li><b><a href="http://www.ja-sig.org/products/cas/client/faq.html#8">Central Authentication Service FAQ</a></b>:
|
||||
A general overview of how Acegi Security is used with JA-SIG's CAS.<br><br>
|
||||
</li>
|
||||
<li><b><a href="http://oness.sourceforge.net/JavaHispano%20Acegi%20presentacion.pdf">JavaHispano 2004 Acegi Security Presentation</a></b>:
|
||||
Carlos Sanchez's presentation (in Spanish), delivered 17 December 2004. An
|
||||
<a href="http://oness.sourceforge.net/JavaHispano%20Acegi.pdf">article</a> was also published.
|
||||
<br><br>
|
||||
</li>
|
||||
<li><b><a href="http://up-u.com/?p=183">Annotations in Acegi Security</a></b>:
|
||||
An implementation of JDK 1.5 annotations with Acegi Security's SecurityConfig.<br><br>
|
||||
</li>
|
||||
<li><b><a href="http://www.fstxblog.com/completely-geeked/2005/05/java-acegi-security-simple-example-v2.html">Acegi Security - The Simplest Possible Example</a></b>:
|
||||
Reid Carlberg has provided a downloadable WAR containing the simplest possible Acegi Security 0.8.2 configuration.<br><br>
|
||||
</li>
|
||||
<li><b><a href="http://fishdujour.typepad.com/blog/2005/02/junit_testing_w.html">JUnit Testing with Acegi Security</a></b>:
|
||||
A tip from Gavin Terrill on unit testing with Acegi Security.<br><br>
|
||||
</li>
|
||||
<li><b><a href="http://jroller.com/page/carlossg/20050226#acegi_security_reducing_configuration_in">Acegi Security: reducing configuration in web.xml</a></b>:
|
||||
Carlos Sanchez provides an overview of our new <code>FilterChainProxy</code> class.<br><br>
|
||||
</li>
|
||||
<li><b><a href="http://www.manageability.org/blog/stuff/single-sign-on-in-java/view">Open Source Identity Management Solutions Written in Java</a></b>:
|
||||
From <code>manageability.org</code>.<br><br>
|
||||
</li>
|
||||
<li><b><a href="http://www.porterhome.com/blog/matthew/2005/03/13/1110732830996.html">WW Live: Integrating Acegi and WebWork</a></b>:
|
||||
Discussion about enhancing Acegi Security and WebWork integration.<br><br>
|
||||
</li>
|
||||
<li><b><a href="http://www.orablogs.com/fnimphius/archives/000730.html">J2EE Security: Struts "Shale" proposal does improve web application security</a></b>:
|
||||
Frank Nimphius' blog contains some comments on Acegi Security. See
|
||||
our <a href="faq.html">FAQ</a> for additional JAAS comments.<br><br>
|
||||
</li>
|
||||
<li><b><a href="http://jakarta.apache.org/commons/attributes/faq.html">Anyone else using C-A (Commons Attributes)?</a></b>: Acegi Security made the list
|
||||
of projects using Jakarta Commons Attributes. Our
|
||||
<a href="/multiproject/acegi-security-sample-attributes/index.html">Attributes Sample</a>
|
||||
demonstrates C-A integration.<br><br>
|
||||
</li>
|
||||
<li><b><a href="http://www.arroco.com/cgi-bin/blosxom.cgi/2005/08/22#acegi-javadoc">Documenting the Future At the Expense of the Present</a></b>:
|
||||
Blog entry on the JavaDocs missing from Acegi release ZIPs. They're actually there. Just check /docs/multiproject/acegi-security/apidocs/.<br><br>
|
||||
</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,120 @@
|
|||
<!--
|
||||
* ========================================================================
|
||||
*
|
||||
* Copyright 2004 Acegi Technology Pty Limited
|
||||
*
|
||||
* Licensed 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
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* ========================================================================
|
||||
-->
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
<title>Building</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Building Acegi Security System</h1>
|
||||
<h2>Checking Out from Subversion (SVN)</h2>
|
||||
<p>This project uses <a href="http://maven.apache.org">Maven</a> as project manager
|
||||
and build tool. We recommend you to install Maven 1.0.2 or greater before trying
|
||||
the following. <b>Note there are workarounds at the bottom of this page.</b></p>
|
||||
<p>To checkout Acegi Security from SVN, see our
|
||||
<a href="cvs-usage.html">CVS Usage</a> page.</p>
|
||||
|
||||
<h2>Quick Build</h2>
|
||||
<p>Often people reading this document just want to see if Acegi Security will work
|
||||
for their projects. They want to deploy a sample application, and that's about it
|
||||
(after all, all the reference documentation can be read online at
|
||||
<a href="http://acegisecurity.sourceforge.net">http://acegisecurity.sourceforge.net</a>).
|
||||
In this case, execute:</p>
|
||||
<ol>
|
||||
<pre>cd $ACEGI_SECURITY/core (or cd %ACEGI_SECURITY%/core on Windows)</pre>
|
||||
<pre>maven jar:install</pre>
|
||||
<pre>cd $ACEGI_SECURITY/samples/contacts</pre>
|
||||
<pre>maven multiwar:multiwar</pre>
|
||||
<pre>copy $ACEGI_SECURITY/samples/contacts/target/acegi-security-sample-contacts-filter.war $YOUR_CONTAINER/webapps</pre>
|
||||
</ol>
|
||||
<p>Then load up your web container and visit
|
||||
<a href="http://localhost:8080/acegi-security-sample-contacts-filter/">http://localhost:8080/acegi-security-sample-contacts-filter/</a>
|
||||
(or whatever location is appropriate for your web container).</p>
|
||||
|
||||
<h2>Installing commons-attributes-plugin</h2>
|
||||
<p>To properly integrate Commons Attributes with Maven (as required by
|
||||
the <a href="/multiproject/acegi-security-sample-attributes/index.html">Attributes Sample</a>),
|
||||
you need to install an additional plugin.</b></p>
|
||||
<p>To install the <code>commons-attributes-plugin</code>, execute the following commands:</p>
|
||||
<ol>
|
||||
<pre>cd $ACEGI_SECURITY/doc</pre>
|
||||
<pre>maven plugin:download
|
||||
-DgroupId=commons-attributes
|
||||
-DartifactId=commons-attributes-plugin
|
||||
-Dversion=2.1</pre>
|
||||
</ol>
|
||||
<p>The second (final) command should be executed on a single line.</p>
|
||||
|
||||
<h2>Building All JARs</h2>
|
||||
<p>Sometimes people are already using Acegi Security, and they just want to build the
|
||||
latest code from CVS. To build all artifacts (JARs) and install them into
|
||||
your local Maven repository, simply perform a CVS checkout and install the
|
||||
<code>commons-attributes-plugin</code> (as detailed above), and then
|
||||
execute:</p>
|
||||
<ol>
|
||||
<pre>cd $ACEGI_SECURITY/doc</pre>
|
||||
<pre>maven multiproject:install</pre>
|
||||
</ol>
|
||||
<p>You can then check your <code>$HOME/.maven/repository/acegisecurity</code>
|
||||
directory and it should contain all of the latest Acegi Security JARs.</p>
|
||||
|
||||
<h2>Building The Site</h2>
|
||||
<p>By "site" we mean the web site you can browse at
|
||||
<a href="http://acegisecurity.sourceforge.net">http://acegisecurity.sourceforge.net</a>,
|
||||
which includes the reference documentation and all of the Maven reports.
|
||||
If you'd like a local copy, simply execute:
|
||||
<ol>
|
||||
<pre>cd $ACEGI_SECURITY/doc</pre>
|
||||
<pre>maven -Dpassword= changelog:create-cvspass</pre>
|
||||
<pre>maven multiproject:clean multiproject:site
|
||||
-Dmaven.jar.override=on
|
||||
-Dmaven.jar.clover-ant=1.3.3_01
|
||||
</pre>
|
||||
</ol>
|
||||
<p>As per the
|
||||
<a href="http://maven.apache.org/reference/plugins/changelog/">Maven Changelog Plugin Documentation</a>,
|
||||
you must tell the plugin the "anonymous CVS pserver" password is blank. This is
|
||||
why there is the "create-cvspass" command shown above. You should only need to
|
||||
do this once.</p>
|
||||
|
||||
<h2>Memory and Clover Workarounds</h2>
|
||||
<p>If you get an <code>OutOfMemoryError</code>, simply execute the following before
|
||||
calling Maven:</p>
|
||||
<ol>
|
||||
<pre>set MAVEN_OPTS=-Xmx1024m -XX:MaxPermSize=512m</pre>
|
||||
</ol>
|
||||
<p>If you get an <code>[ERROR] Invalid license: Invalid license file [E1202]</code>,
|
||||
this is because the <code>maven-clover-plugin</code> is using an old version of
|
||||
<code>clover-ant-xxx.jar</code>. Whilst Acegi Security's <code>project.properties</code>
|
||||
specifies a newer version, subprojects have an inheritence problem and don't pick
|
||||
this up (as of the time of writing). To workaround this issue, you need to
|
||||
specify those override properties on the command line. For example, to execute the
|
||||
Clover reports for the core subproject, you would do the following:</p>
|
||||
<ol>
|
||||
<pre>cd $ACEGI_SECURITY/core</pre>
|
||||
<pre>maven clover:html-report -Dmaven.jar.override=on -Dmaven.jar.clover-ant=1.3.3_01</pre>
|
||||
</ol>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,53 @@
|
|||
<!--
|
||||
* ========================================================================
|
||||
*
|
||||
* Copyright 2004 Acegi Technology Pty Limited
|
||||
*
|
||||
* Licensed 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
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* ========================================================================
|
||||
-->
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>CVS usage</title>
|
||||
<h1>CVS instructions for all modules</h1>
|
||||
<p>This instructions are general, check the module documentation if you need concrete instructions. </p>
|
||||
<p><em>modulename</em> can be for example:</p>
|
||||
<ul>
|
||||
<li>acegisecurity <em>(this will check out all modules) </em></li>
|
||||
<li>acegisecurity/core/</li>
|
||||
<li>acegisecurity/adapters/cas</li>
|
||||
</ul>
|
||||
<h2>Web Access</h2>
|
||||
<p>
|
||||
<a href="http://svn.sourceforge.net/viewcvs.cgi/acegisecurity/">http://svn.sourceforge.net/viewcvs.cgi/acegisecurity/</a>
|
||||
</p><h2>Anonymous Access with Maven</h2>
|
||||
<p> This project's CVS repository can be checked out through anonymous (pserver) CVS with the following instruction on a single line. </p>
|
||||
<pre>maven scm:checkout-project
|
||||
-Dmaven.scm.method=svn
|
||||
-Dmaven.scm.svn.module=modulename
|
||||
-Dmaven.scm.svn.root=scm:svn:https://svn.sourceforge.net/svnroot/acegisecurity/trunk/acegisecurity
|
||||
-Dmaven.scm.checkout.dir=acegisecurity</pre>
|
||||
<h2>Anonymous SVN Access</h2>
|
||||
<p>
|
||||
This project's SVN repository can be checked out through anonymous
|
||||
SVN with the following instruction set.
|
||||
</p><p>
|
||||
svn co https://svn.sourceforge.net/svnroot/acegisecurity/trunk/acegisecurity</p>
|
||||
|
||||
<h2>Nightly Snapshots</h2>
|
||||
<p>If you'd prefer not to use SVN directly, please see our <a href="downloads.html">downloads page</a> for nightly snapshots.</p>
|
||||
|
||||
</html>
|
|
@ -0,0 +1,92 @@
|
|||
--- $Id: dbinit.txt 1245 2006-01-26 09:48:54Z benalex $
|
||||
|
||||
--- Sample Hypersonic SQL compatible schema and data
|
||||
---
|
||||
--- All Acegi Security JDBC DAOs can be customised to use a different schema.
|
||||
--- In addition, the Acegi Security JDBC DAOs do not even need to be used
|
||||
--- with Acegi Security, and an entirely customised persistence strategy
|
||||
--- can be employed via standard interfaces (eg in-memory, Hibernate etc).
|
||||
|
||||
SET IGNORECASE TRUE;
|
||||
|
||||
CREATE TABLE users (
|
||||
username VARCHAR(50) NOT NULL PRIMARY KEY,
|
||||
password VARCHAR(50) NOT NULL,
|
||||
enabled BIT NOT NULL
|
||||
);
|
||||
|
||||
CREATE TABLE authorities (
|
||||
username VARCHAR(50) NOT NULL,
|
||||
authority VARCHAR(50) NOT NULL
|
||||
);
|
||||
CREATE UNIQUE INDEX ix_auth_username ON authorities ( username, authority );
|
||||
|
||||
ALTER TABLE authorities ADD CONSTRAINT fk_authorities_users foreign key (username) REFERENCES users(username);
|
||||
|
||||
INSERT INTO users VALUES ('marissa', 'koala', true);
|
||||
INSERT INTO users VALUES ('dianne', 'emu', true);
|
||||
INSERT INTO users VALUES ('scott', 'wombat', true);
|
||||
INSERT INTO users VALUES ('peter', 'opal', false);
|
||||
|
||||
INSERT INTO authorities VALUES ('marissa', 'ROLE_TELLER');
|
||||
INSERT INTO authorities VALUES ('marissa', 'ROLE_SUPERVISOR');
|
||||
INSERT INTO authorities VALUES ('dianne', 'ROLE_TELLER');
|
||||
INSERT INTO authorities VALUES ('scott', 'ROLE_TELLER');
|
||||
INSERT INTO authorities VALUES ('peter', 'ROLE_TELLER');
|
||||
|
||||
--- Indexes auto created in HSQLDB for primary keys and unique columns
|
||||
|
||||
CREATE TABLE acl_object_identity (
|
||||
id BIGINT GENERATED BY DEFAULT AS IDENTITY(START WITH 0) NOT NULL PRIMARY KEY,
|
||||
object_identity VARCHAR_IGNORECASE(250) NOT NULL,
|
||||
parent_object BIGINT,
|
||||
acl_class VARCHAR_IGNORECASE(250) NOT NULL,
|
||||
CONSTRAINT unique_object_identity UNIQUE(object_identity),
|
||||
FOREIGN KEY (parent_object) REFERENCES acl_object_identity(id)
|
||||
);
|
||||
|
||||
CREATE TABLE acl_permission (
|
||||
id BIGINT GENERATED BY DEFAULT AS IDENTITY(START WITH 0) NOT NULL PRIMARY KEY
|
||||
acl_object_identity BIGINT NOT NULL,
|
||||
recipient VARCHAR_IGNORECASE(100) NOT NULL,
|
||||
mask INTEGER NOT NULL,
|
||||
CONSTRAINT unique_recipient UNIQUE(acl_object_identity, recipient),
|
||||
FOREIGN KEY (acl_object_identity) REFERENCES acl_object_identity(id)
|
||||
);
|
||||
|
||||
--- Mask integer 0 = no permissions
|
||||
--- Mask integer 1 = administer
|
||||
--- Mask integer 2 = read
|
||||
--- Mask integer 6 = read and write permissions
|
||||
--- Mask integer 14 = read and write and create permissions
|
||||
|
||||
---------------------------------------------------------------------
|
||||
--- *** INHERITED RIGHTS FOR DIFFERENT INSTANCES AND RECIPIENTS ***
|
||||
--- INSTANCE RECIPIENT PERMISSION(S) (COMMENT #INSTANCE)
|
||||
---------------------------------------------------------------------
|
||||
--- 1 ROLE_SUPERVISOR Administer
|
||||
--- 2 ROLE_SUPERVISOR None (overrides parent #1)
|
||||
--- marissa Read
|
||||
--- 3 ROLE_SUPERVISOR Administer (from parent #1)
|
||||
--- scott Read, Write, Create
|
||||
--- 4 ROLE_SUPERVISOR Administer (from parent #1)
|
||||
--- 5 ROLE_SUPERVISOR Administer (from parent #3)
|
||||
--- scott Read, Write, Create (from parent #3)
|
||||
--- 6 ROLE_SUPERVISOR Administer (from parent #3)
|
||||
--- scott Administer (overrides parent #3)
|
||||
---------------------------------------------------------------------
|
||||
|
||||
INSERT INTO acl_object_identity VALUES (1, 'org.acegisecurity.acl.DomainObject:1', null, 'org.acegisecurity.acl.basic.SimpleAclEntry');
|
||||
INSERT INTO acl_object_identity VALUES (2, 'org.acegisecurity.acl.DomainObject:2', 1, 'org.acegisecurity.acl.basic.SimpleAclEntry');
|
||||
INSERT INTO acl_object_identity VALUES (3, 'org.acegisecurity.acl.DomainObject:3', 1, 'org.acegisecurity.acl.basic.SimpleAclEntry');
|
||||
INSERT INTO acl_object_identity VALUES (4, 'org.acegisecurity.acl.DomainObject:4', 1, 'org.acegisecurity.acl.basic.SimpleAclEntry');
|
||||
INSERT INTO acl_object_identity VALUES (5, 'org.acegisecurity.acl.DomainObject:5', 3, 'org.acegisecurity.acl.basic.SimpleAclEntry');
|
||||
INSERT INTO acl_object_identity VALUES (6, 'org.acegisecurity.acl.DomainObject:6', 3, 'org.acegisecurity.acl.basic.SimpleAclEntry');
|
||||
|
||||
INSERT INTO acl_permission VALUES (null, 1, 'ROLE_SUPERVISOR', 1);
|
||||
INSERT INTO acl_permission VALUES (null, 2, 'ROLE_SUPERVISOR', 0);
|
||||
INSERT INTO acl_permission VALUES (null, 2, 'marissa', 2);
|
||||
INSERT INTO acl_permission VALUES (null, 3, 'scott', 14);
|
||||
INSERT INTO acl_permission VALUES (null, 6, 'scott', 1);
|
||||
|
||||
|
|
@ -0,0 +1,71 @@
|
|||
<!--
|
||||
* ========================================================================
|
||||
*
|
||||
* Copyright 2004, 2005, 2006 Acegi Technology Pty Limited
|
||||
*
|
||||
* Licensed 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
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* ========================================================================
|
||||
-->
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
<title>Acegi Security Downloads</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Acegi Security Downloads</h1>
|
||||
<p>If you wish to try out this project, you are probably looking for the
|
||||
<strong>acegi-security-xx.zip</strong> file, which contains all of the officially
|
||||
released JARs, a copy of all documentation, and two WAR artifacts. The two WAR artifacts
|
||||
are from the Contacts Sample and the Tutorial Sample application. The Tutorial Sample
|
||||
consists of a "bare bones" configuration that will get you up and running quickly, whereas
|
||||
the Contacts Sample illustrates more advanced features.</p>
|
||||
|
||||
<p>Please note that in order to reduce download size, we only include in the
|
||||
release ZIP one of the WAR artifacts produced by the Contacts Sample application.
|
||||
The WAR artifact we include is suitable for standalone deployment (specifically, it
|
||||
does not require a CAS server, container adapter, X509 or LDAP setup). The official release ZIP
|
||||
therefore probably contains what you need, especially if you're initially
|
||||
evaluating the project. If you wish to deploy the other WAR artifacts produced by
|
||||
the Contacts Sample application (ie those that target CAS, container adapters, X509 or LDAP usage),
|
||||
you will need to build Acegi Security from source.
|
||||
|
||||
<p>The acegi-security-xx-src.zip is intended for use with IDEs. It does not contain the
|
||||
files needed to compile Acegi Security. It also does not contain the sources to the
|
||||
sample applications. If you need any of these files, please download from SVN.</p>
|
||||
|
||||
<h2>Official Releases</h2>
|
||||
<p>The official release ZIP files are available from the
|
||||
<a href="http://sourceforge.net/project/showfiles.php?group_id=104215">Sourceforge File Release System</a>.</p>
|
||||
<h2>Maven Dependencies</h2>
|
||||
<p>The Acegi Security JARs are also available via the
|
||||
<a href="http://www.ibiblio.org/maven/acegisecurity">iBiblio Maven Repository</a>.</p>
|
||||
<h2>Building From Source</h2>
|
||||
<p>Detailed instructions on downloading from CVS and building from source
|
||||
are provided on the <a href="building.html">Building with Maven</a>
|
||||
page.</p>
|
||||
<h2>SVN Snapshots and Daily Builds</h2>
|
||||
<p>
|
||||
If you don't wish to access SVN directly, we provide
|
||||
<a href="http://acegisecurity.sourceforge.net/nightly/">nightly SVN exports</a> for your convenience.
|
||||
There is also an automated build which uploads bundle of Acegi Security jar files to the same location.
|
||||
Both binary and source archives have the date of the build and the SVN revision number appended to the filename,
|
||||
so you can match them up easily.
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,287 @@
|
|||
<!--
|
||||
* ========================================================================
|
||||
*
|
||||
* Copyright 2004 Acegi Technology Pty Limited
|
||||
*
|
||||
* Licensed 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
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* ========================================================================
|
||||
-->
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
<title>Frequently Asked Questions (FAQ) on Acegi Security</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Frequently Asked Questions</h1>
|
||||
|
||||
<h2>What is Acegi Security?</h2>
|
||||
<p>Acegi Security is an open source project that provides comprehensive authentication
|
||||
and authorisation services for enterprise applications based on
|
||||
<a href="http://www.springframework.org">The Spring Framework</a>.
|
||||
Acegi Security can authenticate using a variety of pluggable providers, and
|
||||
can authorise both web requests and method invocations.
|
||||
Acegi Security provides an integrated security approach across
|
||||
these various targets, and also offers access control list (ACL) capabilities to
|
||||
enable individual domain object instances to be secured. At an implementation
|
||||
level, Acegi Security is managed through Spring's inversion of control and
|
||||
lifecycle services, and actually enforces security using interception through
|
||||
servlet Filters and Java AOP frameworks. In terms of AOP framework support, Acegi
|
||||
Security currently supports AOP Alliance (which is what the
|
||||
Spring IoC container uses internally) and AspectJ, although additional frameworks
|
||||
can be easily supported.</p>
|
||||
|
||||
<h2>Why not just use web.xml security?</h2>
|
||||
<p>Let's assume you're developing an enterprise application based on Spring.
|
||||
There are four security concerns you typically need to address: authentication,
|
||||
web request security, service layer security (ie your methods that implement
|
||||
business logic), and domain object instance security (ie different domain objects
|
||||
have different permissions). With these typical requirements in mind:
|
||||
<ol>
|
||||
<li><b>Authentication</b>: The servlet specification provides an approach
|
||||
to authentication. However, you will need to configure the container
|
||||
to perform authentication which typically requires editing of
|
||||
container-specific "realm" settings. This makes a non-portable
|
||||
configuration, and if you need to write an actual Java class to implement
|
||||
the container's authentication interface, it becomes even more non-portable.
|
||||
With Acegi Security you achieve complete portability - right down to the
|
||||
WAR level. Also, Acegi Security offers a choice of production-proven
|
||||
authentication providers and mechanisms, meaning you can switch your
|
||||
authentication approaches at deployment time. This is particularly
|
||||
valuable for software vendors writing products that need to work in
|
||||
an unknown target environment.<br><br></li>
|
||||
<li><b>Web request security:</b> The servlet specification provides an
|
||||
approach to secure your request URIs. However, these URIs can only be
|
||||
expressed in the servlet specification's own limited URI path format.
|
||||
Acegi Security provides a far more comprehensive approach. For instance,
|
||||
you can use Ant paths or regular expressions, you can consider parts of the
|
||||
URI other than simply the requested page (eg you can consider HTTP GET
|
||||
parameters), and you can implement your own runtime source of configuration
|
||||
data. This means your web request security can be dynamically changed during
|
||||
the actual execution of your webapp.<br><br></li>
|
||||
<li><b>Service layer and domain object security:</b> The absence of support
|
||||
in the servlet specification for services layer security or domain object
|
||||
instance security represent serious limitations for multi-tiered
|
||||
applications. Typically developers either ignore these requirements, or
|
||||
implement security logic within their MVC controller code (or even worse,
|
||||
inside the views). There are serious disadvantages with this approach:<br><br>
|
||||
<ol>
|
||||
<li><i>Separation of concerns:</i> Authorization is a
|
||||
crosscutting concern and should be implemented as such.
|
||||
MVC controllers or views implementing authorization code
|
||||
makes it more difficult to test both the controller and
|
||||
authorization logic, more difficult to debug, and will
|
||||
often lead to code duplication.</li>
|
||||
<li><i>Support for rich clients and web services:</i> If an
|
||||
additional client type must ultimately be supported, any
|
||||
authorization code embedded within the web layer is
|
||||
non-reusable. It should be considered that Spring remoting
|
||||
exporters only export service layer beans (not MVC
|
||||
controllers). As such authorization logic needs to be
|
||||
located in the services layer to support a multitude of
|
||||
client types.</li>
|
||||
<li><i>Layering issues:</i> An MVC controller or view is simply
|
||||
the incorrect architectural layer to implement authorization
|
||||
decisions concerning services layer methods or domain object
|
||||
instances. Whilst the Principal may be passed to the services
|
||||
layer to enable it to make the authorization decision, doing
|
||||
so would introduce an additional argument on every services
|
||||
layer method. A more elegant approach is to use a ThreadLocal
|
||||
to hold the Principal, although this would likely increase
|
||||
development time to a point where it would become more
|
||||
economical (on a cost-benefit basis) to simply use a dedicated
|
||||
security framework.</li>
|
||||
<li><i>Authorisation code quality:</i> It is often said of web
|
||||
frameworks that they "make it easier to do the right things,
|
||||
and harder to do the wrong things". Security frameworks are
|
||||
the same, because they are designed in an abstract manner for
|
||||
a wide range of purposes. Writing your own authorization code
|
||||
from scratch does not provide the "design check" a framework
|
||||
would offer, and in-house authorization code will typically
|
||||
lack the improvements that emerge from widespread deployment,
|
||||
peer review and new versions.
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
For simple applications, servlet specification security may just be enough.
|
||||
Although when considered within the context of web container portability,
|
||||
configuration requirements, limited web request security flexibility, and
|
||||
non-existent services layer and domain object instance security, it becomes
|
||||
clear why developers often look to alternative solutions.
|
||||
</p>
|
||||
|
||||
<h2>How do you pronounce "Acegi"?</h2>
|
||||
<p><i>Ah-see-gee</i>. Said quickly, without emphasis on any part.
|
||||
Acegi isn't an acronym, name of a Greek God or anything similarly
|
||||
impressive - it's just letters #1, #3, #5, #7 and #9 of the alphabet.</p>
|
||||
|
||||
<h2>Is it called "Acegi" or "Acegi Security"?</h2>
|
||||
<p>It's official name is <i>Acegi Security System for Spring</i>,
|
||||
although we're happy for it to be abbreviated to
|
||||
<i>Acegi Security</i>. Please don't just call it <i>Acegi</i>, though,
|
||||
as that gets confused with the name of the company that maintains Acegi
|
||||
Security.</p>
|
||||
|
||||
<h2>What catches 80% of users reporting problems?</h2>
|
||||
<p>80% of support questions are because people have not defined
|
||||
the necessary filters in <code>web.xml</code>, or the filters are being
|
||||
mapped in the incorrect order. Check the
|
||||
<a href="reference.html">Reference Guide</a>, which
|
||||
has a specific section on filter ordering.</p>
|
||||
|
||||
<h2>I'm sure my filters are ordered correctly. What else could be wrong?</h2>
|
||||
<p>The next most common source of problems stem from custom
|
||||
<code>AuthenticationDao</code> implementations that simply don't properly
|
||||
implement the interface contract. For example, they return <code>null</code> instead
|
||||
of the user not found exception, or fail to add in the
|
||||
<code>GrantedAuthority[]</code>s. Whilst <code>DaoAuthenticationProvider</code>
|
||||
does its best to check the <code>AuthenticationDao</code> returns a valid
|
||||
<code>UserDetails</code>, we suggest you write the
|
||||
<code>UserDetails</code> object to the log and check it looks correct.</p>
|
||||
|
||||
<h2>Common Problem #1: My application goes into an "endless loop" when I try to login, what's going on?</h2>
|
||||
<p>A common user problem with infinite loop and redirecting to the login page
|
||||
is caused by accidently configuring the login page as a "secured" resource.
|
||||
Generally make sure you mark your login page as requiring ROLE_ANONYMOUS.
|
||||
</p>
|
||||
|
||||
<h2>Common Problem #2: My application pages don't seem to be protected.</h2>
|
||||
<p>If you are securing web resources and they dont seem to be matched in the URL patterns,
|
||||
check the objectDefinitionSource in the FilterSecurityInterceptor.
|
||||
If you are using the <tt>CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON</tt> setting,
|
||||
then the URL patterns configured MUST be in lowercase.
|
||||
<p>
|
||||
For example, making a request ending in <tt>/someAction.do</tt> will need
|
||||
to be configured as: <tt>/someaction.do</tt> (Note the case).
|
||||
<pre>
|
||||
<property name="objectDefinitionSource">
|
||||
<value>
|
||||
CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
|
||||
PATTERN_TYPE_APACHE_ANT
|
||||
/index.jsp=ROLE_ANONYMOUS,ROLE_USER
|
||||
/someaction.do=ROLE_USER
|
||||
<value>
|
||||
</property>
|
||||
</pre>
|
||||
|
||||
<h2>Common Problem #3: How do I disable a user after a number of failed logins?</h2>
|
||||
<p>A common user requirement is to disable / lock an account after a number of failed login attempts.
|
||||
Acegi itself does not provide anything "out of the box", however in your application you can implement
|
||||
and register an <tt>org.springframework.context.ApplicationListener</tt>. Inside your application
|
||||
event listener you can then check for an instanceof the particular <tt>AuthenticationFailureEvent</tt>
|
||||
and then call your application user management interface to update the user details.
|
||||
<p>
|
||||
For example:
|
||||
<pre>
|
||||
public void onApplicationEvent(ApplicationEvent event) {
|
||||
|
||||
// check failed event
|
||||
if(event instanceof AuthenticationFailurePasswordEvent){
|
||||
// call user management interface to increment failed login attempts, etc.
|
||||
. . .
|
||||
}
|
||||
}
|
||||
</pre>
|
||||
|
||||
<h2>Common Problem #4: I am changing my password using a web controller and DAO, why is my password still not being refreshed?</h2>
|
||||
<p>There are three things you must do to make a user password change take affect:
|
||||
<ul>
|
||||
<li> Change the password using your authentication DAO</li>
|
||||
<li> Remove the user from the User Cache (i.e. if you have a cache configured) </li>
|
||||
<li> Update the <tt>SecurityContextHolder</tt> to include the new <tt>Authentication</tt> object and password</li>
|
||||
</ul>
|
||||
|
||||
<h2>I need some help. What files should I post?</h2>
|
||||
<p>The most important things to post with any support requests on the
|
||||
<a href="http://forum.springframework.org">Spring Forums</a> are your
|
||||
<code>web.xml</code>, <code>applicationContext.xml</code> (or whichever
|
||||
XML loads the security-related beans) as well as any custom
|
||||
<code>AuthenticationDao</code> you might be using. For really odd problems,
|
||||
also switch on debug-level logging and include the resulting log.</p>
|
||||
|
||||
<h2>How do I switch on debug-level logging?</h2>
|
||||
<p>Acegi Security uses Commons Logging, just as Spring does. So you use the
|
||||
same approach as you'd use for Spring. Most people output to Log4J, so
|
||||
the following <code>log4j.properties</code> would work:</p>
|
||||
|
||||
<pre>
|
||||
log4j.rootCategory=WARN, stdout
|
||||
|
||||
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.stdout.layout.ConversionPattern=%d %p %c - %m%n
|
||||
|
||||
log4j.category.net.sf.acegisecurity=DEBUG</pre>
|
||||
|
||||
<h2>How do I store custom properties, like a user's email address?</h2>
|
||||
<p>In most cases write an <code>AuthenticationDao</code> which returns
|
||||
a subclass of <code>User</code>. Alternatively, write your own
|
||||
<code>UserDetails</code> implementation from scratch and return that.</p>
|
||||
|
||||
<h2>Why doesn't Acegi Security use JAAS?</h2>
|
||||
<p>Acegi Security targets <i>enterprise applications</i>, which are typically
|
||||
multi-user, data-oriented applications that are important to
|
||||
the core business. Acegi Security was designed to provide a portable and effective
|
||||
security framework for this target application type. It was not designed for securing
|
||||
limited privilege runtime environments, such as web browser applets.</p>
|
||||
|
||||
<p>We did consider JAAS when designing Acegi Security, but it simply
|
||||
wasn't suitable for our purpose. We needed to avoid complex JRE configurations,
|
||||
we needed container portability, and we wanted maximum leveraging of the Spring IoC
|
||||
container. Particularly as limited privilege runtime environments were not
|
||||
an actual requirement, this lead to the natural design of Acegi Security as
|
||||
it exists today.</p>
|
||||
|
||||
<p>Acegi Security already provides some JAAS integration. It can today authenticate
|
||||
via delegation to a JAAS login module. This means it offers the same level of JAAS
|
||||
integration as many web containers. Indeed the container adapter model supported by
|
||||
Acegi Security allows Acegi Security and container-managed security to happily
|
||||
co-exist and benefit from each other. Any debate about Acegi Security and JAAS
|
||||
should therefore centre on the authorisation issue. An evaluation of major
|
||||
containers and security frameworks would reveal that Acegi Security is by no
|
||||
means unusual in not using JAAS for authorisation.</p>
|
||||
|
||||
<p>There are many examples of open source applications being preferred to
|
||||
official standards. A few that come to mind in the Java community include
|
||||
using Spring managed POJOs (rather than EJBs), Hibernate (instead of entity beans),
|
||||
Log4J (instead of JDK logging), Tapestry (instead of JSF), and Velocity/FreeMarker
|
||||
(instead of JSP). It's important to recognise that many open source projects do
|
||||
develop into de facto standards, and in doing so play a legitimate and beneficial
|
||||
role in professional software development.</p>
|
||||
|
||||
<h2>Do you welcome contributions?</h2>
|
||||
<p>Yes. If you've written something and it works well, please feel free to share it.
|
||||
Simply email the contribution to the
|
||||
<a href="mail-lists.html">acegisecurity-developers</a> list. If you haven't yet
|
||||
written the contribution, we encourage you to send your thoughts to the same
|
||||
list so that you can receive some initial design feedback.</p>
|
||||
|
||||
<p>For a contribution to be used, it must have appropriate unit test coverage and
|
||||
detailed JavaDocs. It will ideally have some comments for the Reference Guide
|
||||
as well (this can be sent in word processor or HTML format if desired). This
|
||||
helps ensure the contribution maintains the same quality as the remainder of
|
||||
the project.</p>
|
||||
|
||||
<p>We also welcome documentation improvements, unit tests, illustrations,
|
||||
people supporting the user community (especially on the forums), design ideas,
|
||||
articles, blog entries, presentations and alike. If you're looking for something
|
||||
to do, you can always email the
|
||||
<a href="mail-lists.html">acegisecurity-developers</a> list and we'll be
|
||||
pleased to suggest something. :-)</p>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,195 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<HTML><HEAD><TITLE>Acegi Security System for Spring</TITLE>
|
||||
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
|
||||
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
|
||||
<BODY>
|
||||
<HR>
|
||||
<B><CENTER>What is Acegi Security?</CENTER></B>
|
||||
<HR>
|
||||
<BR>
|
||||
Acegi Security is a powerful, flexible security solution for enterprise software,
|
||||
with a particular emphasis on applications that use
|
||||
<A href="http://www.springframework.org/">Spring</A>. Using Acegi Security provides your
|
||||
applications with comprehensive authentication, authorization, instance-based access control,
|
||||
channel security and human user detection capabilities.
|
||||
<BR>
|
||||
|
||||
<HR>
|
||||
<B><CENTER>Key Features</CENTER></B>
|
||||
<HR>
|
||||
<BR>
|
||||
<UL>
|
||||
<LI><B>Stable and mature.</B> Acegi Security 1.0.0 was released in May 2006 after
|
||||
more than two and a half years of use in large production software projects, 70,000+ downloads
|
||||
and hundreds of community contributions.
|
||||
In terms of release numbering, we also use the <A
|
||||
href="http://apr.apache.org/versioning.html">Apache APR Project
|
||||
Versioning Guidelines</A> so that you can easily identify release
|
||||
compatibility.<BR><BR>
|
||||
<LI><B>Well documented:</B> All APIs are fully documented using
|
||||
<a href="http://acegisecurity.sourceforge.net/multiproject/acegi-security/apidocs/index.html">JavaDoc</a>,
|
||||
with almost 100 pages of
|
||||
<a href="reference.html">Reference Guide</a> documentation providing an easy-to-follow
|
||||
introduction. Even more documentation is provided on this web site, as
|
||||
shown in the left hand navigation sidebar.<BR><BR>
|
||||
<LI><B>Fast results:</B> View our <a href="suggested.html">suggested steps</a>
|
||||
for the fastest way to develop complex, security-compliant applications.<BR><BR>
|
||||
<LI><B>Enterprise-wide single sign on:</B> Using JA-SIG's open
|
||||
source <A href="http://www.ja-sig.org/products/cas/">Central Authentication
|
||||
Service</A> (CAS), the Acegi Security can participate
|
||||
in an enterprise-wide single sign on environment. You no longer need
|
||||
every web application to have its own authentication database. Nor are
|
||||
you restricted to single sign on across a single web container. Advanced
|
||||
single sign on features like proxy support and forced refresh of logins
|
||||
are supported by both CAS and Acegi Security.<BR><BR>
|
||||
<LI><B>Reuses your Spring expertise:</B> We use Spring application
|
||||
contexts for all configuration, which should help Spring developers get
|
||||
up-to-speed nice and quickly.<BR><BR>
|
||||
<LI><B>Domain object instance security:</B> In many applications it's
|
||||
desirable to define Access Control Lists (ACLs) for individual domain
|
||||
object instances. We provide a comprehensive ACL package with features
|
||||
including integer bit masking, permission inheritence (including
|
||||
blocking), a JDBC-backed ACL repository, caching and a pluggable,
|
||||
interface-driven design.<BR><BR>
|
||||
<LI><B>Non-intrusive setup:</B> The entire security system can operate
|
||||
within a single web application using the provided filters. There is no
|
||||
need to make special changes or deploy libraries to your Servlet or EJB
|
||||
container.<BR><BR>
|
||||
<LI><B>Full (but optional) container integration:</B> The credential
|
||||
collection and authorization capabilities of your Servlet or EJB
|
||||
container can be fully utilised via included "container adapters". We
|
||||
currently support Catalina (Tomcat), Jetty, JBoss and Resin, with
|
||||
additional containers easily added.<BR><BR>
|
||||
<LI><B>Keeps your objects free of security code:</B> Many applications
|
||||
need to secure data at the bean level based on any combination of
|
||||
parameters (user, time of day, authorities held, method being invoked,
|
||||
parameter on method being invoked....). This package gives you this
|
||||
flexibility without adding security code to your Spring business
|
||||
objects.<BR><BR>
|
||||
<LI><B>After invocation security:</B> Acegi Security can not only protect
|
||||
methods from being invoked in the first place, but it can also
|
||||
deal with the objects returned from the methods. Included implementations
|
||||
of after invocation security can throw an exception or mutate the returned
|
||||
object based on ACLs.<BR><BR>
|
||||
<LI><B>Secures your HTTP requests as well:</B> In addition to securing
|
||||
your beans, the project also secures your HTTP requests. No longer is it
|
||||
necessary to rely on web.xml security constraints. Best of all, your
|
||||
HTTP requests can now be secured by your choice of regular expressions
|
||||
or Apache Ant paths, along with pluggable authentication, authorization
|
||||
and run-as replacement managers.<BR><BR>
|
||||
<LI><B>Channel security:</B> Acegi Security can
|
||||
automatically redirect requests across an appropriate transport channel.
|
||||
Whilst flexible enough to support any of your "channel" requirements (eg
|
||||
the remote user is a human, not a robot), a common channel security
|
||||
feature is to ensure your secure pages will only be available over
|
||||
HTTPS, and your public pages only over HTTP. Acegi Security also
|
||||
supports unusual port combinations (including if accessed via an
|
||||
intermediate server like Apache) and pluggable transport decision
|
||||
managers.<BR><BR>
|
||||
<LI><B>Supports HTTP BASIC authentication:</B> Perfect for remoting
|
||||
protocols or those web applications that prefer a simple browser pop-up
|
||||
(rather than a form login), Acegi Security can directly process HTTP
|
||||
BASIC authentication requests as per RFC 1945.<BR><BR>
|
||||
<LI><B>Supports HTTP Digest authentication:</B> For greater security than
|
||||
offered by BASIC authentcation, Acegi Security also supports Digest Authentication
|
||||
(which never sends the user's password across the wire). Digest Authentication
|
||||
is widely supported by modern browsers. Acegi Security's implementation complies
|
||||
with both RFC 2617 and RFC 2069.<BR><BR>
|
||||
<LI><B>Computer Associates Siteminder support:</B> Authentication can be
|
||||
delegated through to CA's Siteminder solution, which is common in large
|
||||
corporate environments.<BR><BR>
|
||||
<LI><B>X509 (Certificate) support:</B> Acegi Security can easily read
|
||||
client-side X509 certificates for authenticating users.<BR><BR>
|
||||
<LI><B>LDAP Support:</B> Do you have an LDAP directory? Acegi Security can
|
||||
happily authenticate against it.<BR><BR>
|
||||
<LI><B>Tag library support:</B> Your JSP files can use our taglib
|
||||
to ensure that protected content like links and messages are only
|
||||
displayed to users holding the appropriate granted authorities. The taglib
|
||||
also fully integrates with Acegi Security's ACL services, and
|
||||
obtaining extra information about the logged-in principal.<BR><BR>
|
||||
<LI><B>Configuration via IoC XML, Commons Attributes, or JDK 5 Annotations:</B> You
|
||||
select the method used to configure your security environment. The
|
||||
project supports configuration via Spring application contexts, as well
|
||||
as Jakarta Commons Attributes and Java 5's annotations feature. Some users
|
||||
(such as those building content management systems) pull configuration data
|
||||
from a database, which exemplifies Acegi Security's flexible configuration
|
||||
metadata system.<BR><BR>
|
||||
<LI><B>Various authentication backends:</B> We include the ability to
|
||||
retrieve your user and granted authority definitions from an XML
|
||||
file, JDBC datasource or Properties file. Alternatively, you can implement the
|
||||
single-method UserDetailsService interface and obtain authentication details from
|
||||
anywhere you like.<BR><BR>
|
||||
<LI><B>Event support:</B> Building upon Spring's
|
||||
<CODE>ApplicationEvent</CODE> services, you can write your own listeners
|
||||
for authentication-related events, along with authorisation-related events.
|
||||
This enables you to implement account lockout and audit log systems, with
|
||||
complete decoupling from Acegi Security code.<BR><BR>
|
||||
<LI><B>Easy integration with existing databases:</B> Our implementations
|
||||
have been designed to make it very easy to use your existing
|
||||
authentication schema and data (without modification). Of course,
|
||||
you can also provide your own Data Access Object if you wish.<BR><BR>
|
||||
<LI><B>Caching:</B> Acegi Security integrates with Spring's <A
|
||||
href="http://ehcache.sourceforge.net/">EHCACHE</A> factory.
|
||||
This flexibility means your database (or other authentication
|
||||
repository) is not repeatedly queried for authentication
|
||||
information.<BR><BR>
|
||||
<LI><B>Pluggable architecture:</B> Every critical aspect of the package
|
||||
has been modelled using high cohesion, loose coupling, interface-driven
|
||||
design principles. You can easily replace, customise or extend parts of
|
||||
the package.<BR><BR>
|
||||
<LI><B>Startup-time validation:</B> Every critical object dependency and
|
||||
configuration parameter is validated at application context startup
|
||||
time. Security configuration errors are therefore detected early and
|
||||
corrected quickly.<BR><BR>
|
||||
<LI><B>Remoting support:</B> Does your project use a rich client? Not a
|
||||
problem. Acegi Security integrates with standard Spring remoting
|
||||
protocols, because it automatically processes the HTTP BASIC
|
||||
authentication headers they present. Add our BASIC authentication filter
|
||||
to your web.xml and you're done. You can also easily use RMI or Digest
|
||||
authentication for your rich clients with a simple configuration statement.<BR><BR>
|
||||
<LI><B>Advanced password encoding:</B> Of course, passwords in your
|
||||
authentication repository need not be in plain text. We support both SHA
|
||||
and MD5 encoding, and also pluggable "salt" providers to maximise
|
||||
password security. Acegi Security doesn't even need to see the password
|
||||
if your backend can use a bind-based strategy for authentication (such as
|
||||
an LDAP directory, or a database login).<BR><BR>
|
||||
<LI><B>Run-as replacement:</B> The system fully supports
|
||||
temporarily replacing the authenticated principal for the duration of the web
|
||||
request or bean invocation. This enables you to build public-facing
|
||||
object tiers with different security configurations than your backend
|
||||
objects.<BR><BR>
|
||||
<LI><B>Transparent security propagation:</B> Acegi Security can automatically
|
||||
transfer its core authentication information from one machine to another,
|
||||
using a variety of protocols including RMI and Spring's HttpInvoker.<BR><BR>
|
||||
<LI><B>Compatible with HttpServletRequest's security methods:</B> Even though
|
||||
Acegi Security can deliver authentication using a range of pluggable mechanisms
|
||||
(most of which require no web container configuration), we allow you to access
|
||||
the resulting Authentication object via the getRemoteUser() and other
|
||||
security methods on HttpServletRequest.<BR><BR>
|
||||
<LI><B>Unit tests:</B> A must-have of any quality security project, unit
|
||||
tests are included. Our unit test coverage is very high, as shown in the
|
||||
<a href="multiproject/acegi-security/clover/index.html">coverage report</a>.<BR><BR>
|
||||
<LI><B>Built by Maven:</B> This assists you in effectively reusing the Acegi
|
||||
Security artifacts in your own Maven-based projects.<BR><BR>
|
||||
<LI><B>Supports your own unit tests:</B> We provide a number of classes
|
||||
that assist with your own unit testing of secured business objects. For
|
||||
example, you can change the authentication identity and its associated
|
||||
granted authorities directly within your test methods.<BR><BR>
|
||||
<LI><B>Peer reviewed:</B> Whilst nothing is ever completely secure,
|
||||
using an open source security package leverages the continuous design
|
||||
and code quality improvements that emerge from peer review.<BR><BR>
|
||||
<LI><B>Community:</B> Well-known for its supportive community, Acegi Security
|
||||
has an active group of developers and users. Visit our project resources (below)
|
||||
to access these services.<BR><BR>
|
||||
<LI><B>Apache license.</B> You can confidently use Acegi Security in your project.<BR><BR></LI></UL><BR><B>
|
||||
<HR>
|
||||
|
||||
<CENTER>Project Resources</CENTER></B>
|
||||
<HR>
|
||||
<BR>
|
||||
<CENTER>
|
||||
<A href="http://forum.springframework.org/"><B>Support Forums</B></A><BR><BR>
|
||||
<A href="mail-lists.html"><B>Developer Mailing List</B></A><BR><BR>
|
||||
<A href="downloads.html"><B>Downloads</B></A>
|
||||
</CENTER></FONT>
|
||||
</BODY></HTML>
|
|
@ -0,0 +1,222 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Tutorial: Adding Security to Spring Petclinic</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Tutorial: Adding Security to Spring Petclinic</h1>
|
||||
|
||||
<h2>Preparation</h2>
|
||||
|
||||
<p>To complete this tutorial, you will require a servlet container (such as Tomcat)
|
||||
and a general understanding of using Spring without Acegi Security. The Petclinic
|
||||
sample itself is part of Spring and should help you learn Spring. We suggest you
|
||||
only try to learn one thing at a time, and start with Spring/Petclinic before
|
||||
Acegi Security.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
You will also need to download:
|
||||
<ul>
|
||||
<li>Spring 2.0 M4 with dependencies ZIP file</li>
|
||||
<li>Acegi Security 1.0.0</li>
|
||||
</ul>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Unzip both files. After unzipping Acegi Security, you'll need to unzip the
|
||||
acegi-security-sample-tutorial.war file, because we need some files that are
|
||||
included within it. In the code below, we'll refer to the respective unzipped
|
||||
locations as %spring% and %acegi% (with the latter variable referring to the
|
||||
unzipped WAR, not the original ZIP). There is no need to setup any environment
|
||||
variables to complete the tutorial.
|
||||
</p>
|
||||
|
||||
<h2>Add required Acegi Security files to Petclinic</h2>
|
||||
|
||||
<p>
|
||||
We now need to put some extra files into Petclinic. The following commands should work:
|
||||
<pre>
|
||||
mkdir %spring%\samples\petclinic\war\WEB-INF\lib
|
||||
copy %acegi%\acegilogin.jsp %spring%\samples\petclinic\war
|
||||
copy %acegi%\accessDenied.jsp %spring%\samples\petclinic\war
|
||||
copy %acegi%\WEB-INF\users.properties %spring%\samples\petclinic\war\WEB-INF
|
||||
copy %acegi%\WEB-INF\applicationContext-acegi-security.xml %spring%\samples\petclinic\war\WEB-INF
|
||||
copy %acegi%\WEB-INF\lib\acegi-security-1.0.0.jar %spring%\samples\petclinic\war\WEB-INF\lib
|
||||
copy %acegi%\WEB-INF\lib\oro-2.0.8.jar %spring%\samples\petclinic\war\WEB-INF\lib
|
||||
copy %acegi%\WEB-INF\lib\commons-codec-1.3.jar %spring%\samples\petclinic\war\WEB-INF\lib
|
||||
</pre>
|
||||
</p>
|
||||
|
||||
<h2>Configure Petclinic's files</h2>
|
||||
|
||||
<p>Edit %spring%\samples\petclinic\war\WEB-INF\web.xml and insert the following block of code.
|
||||
<pre>
|
||||
<filter>
|
||||
<filter-name>Acegi Filter Chain Proxy</filter-name>
|
||||
<filter-class>org.acegisecurity.util.FilterToBeanProxy</filter-class>
|
||||
<init-param>
|
||||
<param-name>targetClass</param-name>
|
||||
<param-value>org.acegisecurity.util.FilterChainProxy</param-value>
|
||||
</init-param>
|
||||
</filter>
|
||||
|
||||
<filter-mapping>
|
||||
<filter-name>Acegi Filter Chain Proxy</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
</pre>
|
||||
Next, locate the "contextConfigLocation" parameter, and add a new line into the existing param-value.
|
||||
The resulting block will look like this:
|
||||
<pre>
|
||||
<context-param>
|
||||
<param-name>contextConfigLocation</param-name>
|
||||
<param-value>
|
||||
/WEB-INF/applicationContext-jdbc.xml
|
||||
/WEB-INF/applicationContext-acegi-security.xml
|
||||
</param-value>
|
||||
</context-param>
|
||||
</pre>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
To make it easier to experiment with the application, now edit
|
||||
%spring%\samples\petclinic\war\WEB-INF\jsp\footer.jsp. Add a new "logout" link, as shown:
|
||||
<pre>
|
||||
<table style="width:100%"><tr>
|
||||
<td><A href="<c:url value="/welcome.htm"/>">Home</A></td>
|
||||
<td><A href="<c:url value="/j_acegi_logout"/>">Logout</A></td>
|
||||
<td style="text-align:right;color:silver">PetClinic :: a Spring Framework demonstration</td>
|
||||
</tr></table>
|
||||
</pre>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Our last step is to specify which URLs require authorization and which do not. Let's
|
||||
edit %spring%\samples\petclinic\war\WEB-INF\applicationContext-acegi-security.xml.
|
||||
Locate the bean definition for FilterSecurityInterceptor. Edit its objectDefinitionSource
|
||||
property so that it reflects the following:
|
||||
<pre>
|
||||
<property name="objectDefinitionSource">
|
||||
<value>
|
||||
CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
|
||||
PATTERN_TYPE_APACHE_ANT
|
||||
/acegilogin.jsp=IS_AUTHENTICATED_ANONYMOUSLY
|
||||
/**=IS_AUTHENTICATED_REMEMBERED
|
||||
</value>
|
||||
</property>
|
||||
</pre>
|
||||
</p>
|
||||
|
||||
<h2>Start Petclinic's database</h2>
|
||||
|
||||
<p>Start the Hypersonic server (this is just normal Petclinic configuration):
|
||||
<pre>
|
||||
cd %spring%\samples\petclinic\db\hsqldb
|
||||
server
|
||||
</pre>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Insert some data (again, normal Petclinic configuration):
|
||||
<pre>
|
||||
cd %spring%\samples\petclinic
|
||||
build setupDB
|
||||
</pre>
|
||||
</p>
|
||||
|
||||
|
||||
<h2>Build and deploy the Petclinic WAR file</h2>
|
||||
|
||||
<p>
|
||||
Use Petclinic's Ant build script and deploy to your servlet container:
|
||||
<pre>
|
||||
cd %spring%\samples\petclinic
|
||||
build warfile
|
||||
copy dist\petclinic.war %TOMCAT_HOME%\webapps
|
||||
</pre>
|
||||
</p>
|
||||
|
||||
<p>Finally, start your container and try to visit the home page.
|
||||
Your request should be intercepted and you will be forced to login.</p>
|
||||
|
||||
<h2>Optional Bonus: Securing the Middle Tier</h2>
|
||||
<p>
|
||||
Whilst you've now secured your web requests, you might want to stop users
|
||||
from being able to add clinic visits unless authorized. We'll make it so
|
||||
you need to hold ROLE_SUPERVISOR to add a clinic visit.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
In %spring%\samples\petclinic\war\WEB-INF\applicationContext-jdbc.xml, locate
|
||||
the TransactionProxyFactoryBean definition. Add an additional property after
|
||||
the existing "preInterceptors" property:
|
||||
<pre>
|
||||
<property name="postInterceptors" ref="methodSecurityInterceptor"/>
|
||||
</pre>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Finally, we need to add in the referred-to "methodSecurityInterceptor" bean definition.
|
||||
So pop an extra bean definition in, as shown below:
|
||||
<pre>
|
||||
<bean id="methodSecurityInterceptor" class="org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor">
|
||||
<property name="authenticationManager"><ref bean="authenticationManager"/></property>
|
||||
<property name="accessDecisionManager">
|
||||
<bean class="org.acegisecurity.vote.AffirmativeBased">
|
||||
<property name="allowIfAllAbstainDecisions" value="false"/>
|
||||
<property name="decisionVoters">
|
||||
<list>
|
||||
<bean class="org.acegisecurity.vote.RoleVoter"/>
|
||||
<bean class="org.acegisecurity.vote.AuthenticatedVoter"/>
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
</property>
|
||||
<property name="objectDefinitionSource">
|
||||
<value>
|
||||
org.springframework.samples.petclinic.Clinic.*=IS_AUTHENTICATED_REMEMBERED
|
||||
org.springframework.samples.petclinic.Clinic.storeVisit=ROLE_SUPERVISOR
|
||||
</value>
|
||||
</property>
|
||||
</bean>
|
||||
</pre>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Redeploy your web application. Use the earlier process to do that. Be careful to
|
||||
ensure that the old Petclinic WAR is replaced by the new Petclinic WAR in your
|
||||
servlet container. Login as "marissa", who has ROLE_SUPERVISOR. You will be able to
|
||||
then view a customer and add a visit. Logout, then login as anyone other than Marissa.
|
||||
You will receive an access denied error when you attempt to add a visit.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
To clean things up a bit, you might want to wrap up by hiding the "add visit" link
|
||||
unless you are authorized to use it. Acegi Security provides a tag library to help
|
||||
you do that. Edit %spring%\samples\petclinic\war\WEB-INF\jsp\owner.jsp. Add
|
||||
the following line to the top of the file:
|
||||
<pre>
|
||||
<%@ taglib prefix="authz" uri="http://acegisecurity.org/authz" %>
|
||||
</pre>
|
||||
Next, scroll down and find the link to "add visit". Modify it as follows:
|
||||
<pre>
|
||||
<authz:authorize ifAllGranted="ROLE_SUPERVISOR">
|
||||
<FORM method=GET action="<c:url value="/addVisit.htm"/>" name="formVisitPet<c:out value="${pet.id}"/>">
|
||||
<INPUT type="hidden" name="petId" value="<c:out value="${pet.id}"/>"/>
|
||||
<INPUT type="submit" value="Add Visit"/>
|
||||
</FORM>
|
||||
</authz:authorize>
|
||||
</pre>
|
||||
</p>
|
||||
|
||||
<h2>What now?</h2>
|
||||
<p>
|
||||
These steps can be applied to your own application. Although we do suggest
|
||||
that you visit <a href="http://acegisecurity.org">http://acegisecurity.org</a>
|
||||
and in particular review the "Suggested Steps" for getting started with Acegi
|
||||
Security. The suggested steps are optimized for learning Acegi Security quickly
|
||||
and applying it to your own projects. It also includes realistic time estimates
|
||||
for each step so you can plan your integration activities.</p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,131 @@
|
|||
<!--
|
||||
* ========================================================================
|
||||
*
|
||||
* Copyright 2005 Acegi Technology Pty Limited
|
||||
*
|
||||
* Licensed 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
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* ========================================================================
|
||||
-->
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
<title>Project Policies and Procedures</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Project Policies and Procedures Version 1.0</h1>
|
||||
<p>The following policies and procedures are intended to ensure that Acegi Security will
|
||||
continue to achieve its project objectives and support the community in the context of an
|
||||
expanding development team.
|
||||
|
||||
<p>
|
||||
The following was unanimously supported by the community supporting following
|
||||
<a href="http://www.mail-archive.com/acegisecurity-developer%40lists.sourceforge.net/msg01174.html">discussion</a>
|
||||
on acegisecurity-developer. The policies and procedures below represent version 1.0
|
||||
and are effective 1 August 2005.
|
||||
<ul type="1">
|
||||
|
||||
<li>
|
||||
This project uses <a href="http://opensource.atlassian.com/projects/spring/secure/BrowseProject.jspa?id=10040">JIRA</a>. Please log a task in JIRA for any changes you make to SVN, with the exception of very minor changes that users are unlikely to ever be interested in searching for and/or the change affects code that has never been in an officially released version of the project (eg ongoing changes to a new feature in SVN HEAD that hasn't been released previously).<br><br>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
Any users running from SVN HEAD are warmly encouraged to <a href="http://lists.sourceforge.net/mailman/listinfo/acegisecurity-cvs">join acegisecurity-cvs</a> so that they can keep an eye on commit comments. Developers are encouraged to join acegisecurity-cvs and read the commit comments. If anyone has a concern with any commit, please raise it on <a href="http://lists.sourceforge.net/mailman/listinfo/acegisecurity-developer">acegisecurity-developer</a> so that the broader community can participate (not acegisecurity-cvs). Alternatively, contact the author of the change directly if you think that would be more appropriate or diplomatic.<br><br>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
Please make your commit comments informative, yet not too detailed. Detailed comments are ideally placed in the JIRA task. In the case of a contribution by a non-developer, please use the SVN commits to reflect who provided the contribution and add that person's name to /project.xml in the contributors section. If the contributors section does not list the name of someone who has contributed accepted code, please add them or let me know so that I can do so.<br><br>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
If you add a major new feature, please announce it on acegisecurity-developer. That way people using the project have an idea of what is coming up in the next release, and any implementation-specific comments can be received prior to the first release when users will start expecting some degree of consistency and stability. It also encourages people to try out your new feature.<br><br>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
Please make sure /docs/xdocs/changes.xml has a reference to JIRA for the upcoming release version. You don't need to add the name of contributors to /doc/xdocs/changes.xml, as acknowledgement is already provided via /project.xml, source code @author tags, the SVN commit message, and typically a JIRA task.<br><br>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
Please edit /docs/xdocs/upgrade/upgrade-xx-yy.html if you make a change that is significant and you think users who are upgrading should be aware of it. Equally, users are encouraged to consult the upgrade-xx-yy.html file before they deploy subsequent official release JARs.<br><br>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
Please use Jalopy with the /jalopy.xml file to format your Java code before checkin. This keeps our code consistent and ensures the license message is correct. There are plugins for all major IDEs.<br><br>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
The /sandbox can be used to obtain feedback from fellow developers and the community about your code, general approach or new ideas. If you have SVN rights, please use /sandbox instead of emailing ZIP files to other developers for feedback. The community should understand that code in the sandbox is unsupported, subject to refactoring, may not have any unit tests, and may be removed at any time. The /sandbox will never be included in official release ZIPs. It's a "scratching pad" only.<br><br>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
Unit tests are important to any security project, and we have a good history of high coverage. You can view the <a href="http://acegisecurity.sourceforge.net/multiproject/acegi-security/clover/index.html">latest coverage report</a> online (rebuilt every 24 hours). Please keep an eye on coverage and don't hesitate to add more unit tests. Please do not check code into /core unless it has at least an exercising unit test - use the /sandbox instead.<br><br>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
Never check in code if the unit tests fail. This means, at minimum, successfully running "maven test:test" from /core. Always name your unit test classes so they end in "*Tests" - this ensures that Maven picks them up. If there is code in SVN which you didn't write and it is breaking the unit tests, please correct it yourself - don't leave SVN "broken" whilst waiting for the responsible developer to address it (the delay causes confusing and long-running threads on the list and forum). You can always rollback to the previous working version if in doubt of how the class works (just remember to comment the commit appropriately and let the author know).<br><br>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
Please update the reference guide and JavaDocs for any new major features. The JavaDocs should always be correct. The reference guide may be kept updated with less rigor, although please briefly discuss any major new features. <a href="http://www.xmlmind.com/xmleditor/">XMLmind</a> can be used if you don't have a DocBook editor.<br><br>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
Developers please keep an eye on the <a href="http://forum.springframework.org">Acegi Security forum</a>. It's a very active forum, and it takes a lot of work if not shared around. Please don't hesitate to reply to users - I try to read every thread and correct/confirm the situation if someone mentions they're unsure. I also will generally send developers an email if there's a question I can't answer as I didn't write the code.<br><br>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
In the future, I will put to vote any proposed new developers. New developers will be firstly encouraged to attach patches to JIRA tasks to illustrate their understanding of the project, or, if they're long-time users, they might be given access without this JIRA stage if they're undertaking a major new feature.<br><br>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
Developers should be subscribed to acegisecurity-developer. Obviously it would take significant time to read every thread, but reading the high priority messages (as indicated by the subject line) is needed to ensure we all have a way of communicating.<br><br>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
Please do not hesitate to assign yourself any JIRA task that is unassigned, or assigned to me and not in the "In Progress" status. Also feel free to approach fellow developers to volunteer to work on tasks they might be assigned but haven't started.<br><br>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
No code in SVN is "sacred". If you have a good idea or refactoring for an area of code that someone else wrote, raise it on acegisecurity-developer or contact the author directly. Please don't commit changes to such code unless it is a unit test failure correction, or you've firstly raised it on the acegisecurity-developer list or directly with the author.<br><br>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
People's priorities are ever-changing, and we're all short on time. For this reason it's perfectly understandable that over time developers will move on to other things. This is not a negative reflection in any way - just part of any long-term project. If a developer no longer has the time or inclination to participate in the project , please send an email to acegisecurity-developer or myself. I will remove the SVN rights and reassign any JIRA tasks. Importantly, this helps find a new maintainer of the former developer's code (or, in very extreme cases, their code might be relocated to the sandbox or removed).<br><br>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
Use CDATA inside XML files for multi-line properties. There is no tab/space policy for XML files, although try to maintain whatever the file is already using. The tab/space policy for Java files is managed by Jalopy.<br><br>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
Keep the warm community spirit. The Spring community is a nice place to be - especially compared with some of the other open source communities out there where people are abused, ignored, insulted or excluded. No policy or procedure (including those above) should ever compromise operating in a considerate and diplomatic manner that respects the dignity of each individual member of the community. If in doubt, please contact me directly first. If I am ever guilty of this, please let me know and I will correct myself.<br><br>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<p>Thanks for your help in connection with the above. If you have any suggestions for improving these
|
||||
policies and procedures, please use the acegisecurity-developer list to raise them.
|
||||
|
||||
<p>
|
||||
Ben Alex<br>
|
||||
Project Admin
|
||||
|
||||
<p>
|
||||
$Id: policies.html 1377 2006-04-25 00:22:00Z benalex $
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,70 @@
|
|||
<!--
|
||||
* ========================================================================
|
||||
*
|
||||
* Copyright 2005 Acegi Technology Pty Limited
|
||||
*
|
||||
* Licensed 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
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* ========================================================================
|
||||
-->
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
<title>Products Using Acegi Security</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Products Using Acegi Security</h1>
|
||||
<p>Many open source and commercial products either use Acegi Security or at least
|
||||
support it. Following is a partial list of such products. If you've integrated Acegi
|
||||
Security with some other product, please let us know (preferably with a URL
|
||||
to some page explaining the integration/use)...
|
||||
|
||||
<h2>Out-Of-the-Box Supported by Acegi Security</h2>
|
||||
<ul>
|
||||
<li><b><a href="http://springframework.org/">Spring Framework</a></b>: J2EE abstraction framework.<br><br></li>
|
||||
<li><b><a href="http://eclipse.org/aspectj/">AspectJ</a></b>: AOP framework.<br><br></li>
|
||||
<li><b><a href="http://jcaptcha.sourceforge.net/">JCaptcha</a></b>: Detects human users.<br><br></li>
|
||||
<li><b><a href="http://www.ja-sig.org/products/cas/">JA-SIG CAS</a></b>: Single Sign On system.<br><br></li>
|
||||
<li><b><a href="http://www3.ca.com/Solutions/Product.asp?ID=5262">SiteMinder</a></b>: Single Sign On system.<br><br></li>
|
||||
</ul>
|
||||
|
||||
<h2>Open Source Projects</h2>
|
||||
<ul>
|
||||
<li><b><a href="http://appfuse.org/">AppFuse</a></b>: Helps jump-start application development. <a href="http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuseSecurity">Integration details</a>.<br><br></li>
|
||||
<li><b><a href="http://www.andromda.org">AndroMDA</a></b>: Code generation framework that uses model driven architecture (MDA). <a href="http://team.andromda.org/docs/andromda-spring-cartridge/howto8.html">Integration details</a>.<br><br></li>
|
||||
<li><b><a href="http://mule.codehaus.org/">Mule</a></b>: Enterprise service bus (ESB) messaging framework. <a href="http://mule.codehaus.org/Acegi+Security">Integration details</a>.<br><br></li>
|
||||
<li><b><a href="http://rollerweblogger.org">Roller</a></b>: Blog server. <a href="http://rollerweblogger.org/wiki/Wiki.jsp?page=Proposal_AcegiSecurity">Integration details</a>.<br><br></li>
|
||||
<li><b><a href="http://getahead.ltd.uk/dwr/">DWR</a></b>: AJAX tool. <a href="http://getahead.ltd.uk/dwr/security">Integration details</a>.<br><br></li>
|
||||
<li><b><a href="http://sourceforge.net/projects/oaj">OAJ (OpenAccountingJ)</a></b>: Replaces OpenAccounting PHP.<br><br></li>
|
||||
<li><b><a href="http://oness.sourceforge.net/">ONESS</a></b>: Sample web application.<br><br></li>
|
||||
<li><b><a href="http://sourceforge.net/projects/hispacta">HISPACTA</a></b>: Sample web application.<br><br></li>
|
||||
<li><b><a href="https://atleap.dev.java.net/">Blandware AtLeap</a></b>: Multilingal free Java CMS.<br><br></li>
|
||||
<li><b><a href="http://photostructure.com/">PhotoStructure</a></b>: A photo management solution.<br><br></li>
|
||||
<li><b><a href="http://app.ess.ch/tudu/welcome.action">Tudu Lists</a></b>: AJAX and RSS powered to-do list manager.<br><br></li>
|
||||
</ul>
|
||||
|
||||
<h2>Commercial Deployments</h2>
|
||||
<ul>
|
||||
<li>A global financial institution uses Acegi Security's SiteMinder integration in a physical security management application.<br><br></li>
|
||||
<li>A central bank that uses Acegi Security for many of its internal applications with the CAS integration.<br><br></li>
|
||||
<li>Several Australian Government departments use Acegi Security for securing SOAP-based web services and web applications.<br><br></li>
|
||||
<li>Enterprise Systems and Services at Rutgers University uses Acegi Security in conjunction with JA-SIG Central Authentication Service to provide authentication and authorization capabilities to its applications including those used by staff and students as well as those utilized by web services.<br><br></li>
|
||||
<li>Plus many more... ;-)<br><br></li>
|
||||
</ul>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,95 @@
|
|||
<!--
|
||||
* ========================================================================
|
||||
*
|
||||
* Copyright 2005 Acegi Technology Pty Limited
|
||||
*
|
||||
* Licensed 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
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* ========================================================================
|
||||
-->
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
<title>Acegi Security Use Without Spring</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Acegi Security Use Without Spring</h1>
|
||||
|
||||
<h2>Introduction</h2>
|
||||
<p>Sometimes we get asked can Acegi Security be used without Spring.
|
||||
This page provides a detailed answer.</p>
|
||||
|
||||
<h2>History</h2>
|
||||
<p>Acegi Security started out as a method interceptor for Spring IoC container
|
||||
managed beans. Typically such beans provide services layer functions.
|
||||
Over time Acegi Security grew to offer authentication services, <code>ThreadLocal</code> management,
|
||||
web request filtering, extra AOP support,
|
||||
ACL features, additional authentication mechanisms and so on (for those interested,
|
||||
see our <a href="changes-report.html">change log</a>).</p>
|
||||
|
||||
<h2>Why Use Spring</h2>
|
||||
<p>There's plenty written about why the
|
||||
<a href="http://www.springframework.org">Spring Framework</a>
|
||||
is a good fit for modern applications. If you're not familiar with the benefits
|
||||
Spring offers, please take a few minutes to learn more about it. In numerous
|
||||
situations Spring will save you many months (or even years) of development time.
|
||||
Not to mention your solutions will be better architected
|
||||
(designed), better coded (implemented), and better supported (maintained) in the future.
|
||||
</p>
|
||||
|
||||
<h2>Acegi Security Dependencies on Spring</h2>
|
||||
<p>Acegi Security relies on the Spring IoC container to wire its classes, and execute lifecycle
|
||||
methods such as <code>afterPropertiesSet()</code>. Some Acegi Security classes also
|
||||
publish events to the <code>ApplicationContext</code>, although you could provide a mock
|
||||
implementation of <code>ApplicationContext</code> easily enough which no-ops the method.
|
||||
In other words, if you particularly didn't want Spring in your application, you <i>could</i>
|
||||
avoid its use by writing equivalent getter, setter and lifecycle invocation processes
|
||||
in standard Java code. This is a natural consequence of the Spring way of development,
|
||||
which emphasises framework independence (it is <i>not</i> because we think there are good
|
||||
reasons people would <i>not</i> use Spring).</p>
|
||||
|
||||
<p>If it sounds too hard (it's not) or counter-productive (it is) to replace Spring's IoC
|
||||
services, don't forget you can always deploy Acegi Security and the Spring
|
||||
IoC container solely for configuring Acegi Security. Spring does not mandate its
|
||||
use in every part of your application. It will work quite successfully doing nothing more than
|
||||
acting as a configuration mechanism for Acegi Security. Whilst some may regard this as excessive,
|
||||
it's really no different than the traditional approach of every framework having its very
|
||||
own XML or other proprietary configuration system. The main difference is that Spring is an
|
||||
actual de facto standard, and you can gradually introduce it to other parts of your application
|
||||
over time (if desired).</p>
|
||||
|
||||
<p>Acegi Security does <i>not</i> use any other Spring capabilities. Most notably, the
|
||||
entire architecture is based around <code>Filter</code>s, not Spring's MVC framework.
|
||||
This allows it to be used with any MVC framework, or even with just straight JSPs.
|
||||
Acegi Security uses the AOP Alliance and AspectJ interfaces for method interception -
|
||||
it does not use any Spring-specific interfaces. As a consequence, Acegi Security is very
|
||||
portable to applications that do not leverage <i>any</i> of Spring's capabilities. We should note
|
||||
there are several very simple data access objects (DAOs) that use Spring's JDBC abstraction
|
||||
layer, although each of these are defined by a simple interface and it is very common in
|
||||
even native Spring-powered applications for these to be re-implemented using the application's
|
||||
persistence framework of choice (eg Hibernate).
|
||||
|
||||
<h1>Conclusion</h1>
|
||||
|
||||
<p>In summary, we recommend you take a look at Spring and consider using it in your
|
||||
applications. Irrespective of whether you do so or not, we strongly recommend you use it
|
||||
for configuration and lifecycle management of Acegi Security. If that is also not desired,
|
||||
Acegi Security can easily be executed without Spring at all, providing you implement
|
||||
similar IoC services. Acegi Security has very minimal dependencies directly on Spring,
|
||||
with it being useful in many non-Spring applications and with non-Spring frameworks.
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,133 @@
|
|||
<!--
|
||||
* ========================================================================
|
||||
*
|
||||
* Copyright 2004, 2005, 2006 Acegi Technology Pty Limited
|
||||
*
|
||||
* Licensed 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
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* ========================================================================
|
||||
-->
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
<title>Acegi Security Suggested Steps</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Suggested Steps</h1>
|
||||
<p>Presented below are the steps we encourage you to take in order to gain the most
|
||||
out of Acegi Security in a realistic timeframe.
|
||||
<ol>
|
||||
<li>
|
||||
First of all, deploy the "Tutorial Sample", which is included in the main distribution
|
||||
ZIP file. The sample doesn't do a great deal, but it does give you a template that can
|
||||
be quickly and easily used to integrate into your own project.<br><br>
|
||||
|
||||
Estimated time: 30 minutes.<br><br>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
Next, follow the <a href="petclinic-tutorial.html">Petclinic tutorial</a>, which
|
||||
covers how to add Acegi Security to the commonly-used Petclinic sample application
|
||||
that ships with Spring. This will give you a hands-on approach to integrating
|
||||
Acegi Security into your own application.<br><br>
|
||||
|
||||
Estimated time: 1 hour.<br><br>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
Next, review the <a href="reference.html">Reference Guide</a>, and in particular
|
||||
Part I. It has been designed to give you a solid overview. Go through the beans
|
||||
defined in the "Tutorial Sample" and understand their main purpose within the overall
|
||||
framework. Once you understand this, you'll have no difficulty moving on to more
|
||||
complex examples. You can also experiment in the Petclinic tutorial that you
|
||||
implemented in the last step.<br><br>
|
||||
|
||||
Estimated time: 1 day.<br><br>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
If you have relatively simple security needs, you can probably start to integrate
|
||||
Acegi Security into your application at this point. Just use the "Tutorial Sample"
|
||||
as your basis (now that you understand how it works). Those with more complicated
|
||||
requirements should review the "Contacts Sample" application.
|
||||
This will probably involve deploying <code>acegi-security-sample-contacts-filter.war</code>,
|
||||
which is also included in the release ZIP file.<br><br>
|
||||
|
||||
The purpose of understanding the "Contacts Sample" is to get a better feel for how method
|
||||
security is implemented, particularly with domain object access control lists. This will
|
||||
really round-out the rest of the framework for you.<br><br>
|
||||
|
||||
The actual <a target="_blank" class="newWindow" href="multiproject/acegi-security-sample-contacts/xref/index.html">java code</a>
|
||||
is a completely standard Spring application, except <code>ContactManagerBackend</code>
|
||||
which shows how we create and delete ACL permissions. The rest of the Java code has no
|
||||
security awareness, with all security services being declared in the XML files
|
||||
(don't worry, there aren't any new XML formats to learn: they're all standard Spring IoC container
|
||||
declarations or the stock-standard <code>web.xml</code>). The main
|
||||
XML files to review are
|
||||
<a target="_blank" class="newWindow" href="http://cvs.sourceforge.net/viewcvs.py/acegisecurity/acegisecurity/samples/contacts/src/main/webapp/filter/WEB-INF/applicationContext-acegi-security.xml?view=auto">applicationContext-acegi-security.xml</a> (from the filter webapp),
|
||||
<a target="_blank" class="newWindow" href="http://cvs.sourceforge.net/viewcvs.py/acegisecurity/acegisecurity/samples/contacts/src/main/webapp/common/WEB-INF/applicationContext-common-authorization.xml?view=auto">applicationContext-common-authorization.xml</a>,
|
||||
<a target="_blank" class="newWindow" href="http://cvs.sourceforge.net/viewcvs.py/acegisecurity/acegisecurity/samples/contacts/src/main/webapp/common/WEB-INF/applicationContext-common-business.xml?view=auto">applicationContext-common-business.xml</a> (just note we add <code>contactManagerSecurity</code> to the services layer target bean), and
|
||||
<a target="_blank" class="newWindow" href="http://cvs.sourceforge.net/viewcvs.py/acegisecurity/acegisecurity/samples/contacts/src/main/webapp/filter/WEB-INF/web.xml?view=auto">web.xml</a> (from the filter webapp).
|
||||
The XML definitions are comprehensively discussed in the
|
||||
<a href="reference.html">Reference Guide</a>.
|
||||
<br><br>
|
||||
|
||||
Please note the release ZIP files do not include the sample application Java source code. You
|
||||
will need to download from SVN if you would like to access the Java sources.<br><br>
|
||||
|
||||
Estimated time: 1-2 days.<br><br>
|
||||
</li>
|
||||
|
||||
<li>By now you will have a good grasp on how Acegi Security works, and all that is left to
|
||||
do is design your own application's implementation.
|
||||
<br><br>
|
||||
|
||||
We strongly recommend that you start your actual integration with the "Tutorial Sample".
|
||||
Don't start by integrating with the "Contacts Sample", even if you have complex needs.
|
||||
Most people reporting problems on the forums do so because of a configuration problem,
|
||||
as they're trying to make far too many changes at once without really knowing what
|
||||
they're doing. Instead, make changes one at a time, starting from the bare bones configuration
|
||||
provided by the "Tutorial Sample".<br><br>
|
||||
|
||||
If you've followed the steps above, and refer back to the
|
||||
<a href="reference.html">Reference Guide</a>,
|
||||
<a href="http://www.springframework.org">forums</a>, and
|
||||
<a href="faq.html">FAQ</a>
|
||||
for help, you'll find it pretty easy to implement Acegi Security in your application.
|
||||
Most importantly, you'll be using a security framework that offers you complete container
|
||||
portability, flexibility, and community support - without needing to write and maintain your
|
||||
own code.<br><br>
|
||||
|
||||
Estimated time: 1-5 days.<br><br>
|
||||
</br>
|
||||
</li>
|
||||
|
||||
</ol>
|
||||
|
||||
<p>Please note the time estimates are just that: estimates. They will vary considerably depending
|
||||
on how much experience you have, particularly with Java and Spring. They will also vary depending
|
||||
on how complex your intended security-enabled application will be. Some people need to push the domain
|
||||
object instance access control list capabilities to the maximum, whilst others don't even need anything
|
||||
beyond web request security. The good thing is Acegi Security will either directly support your future
|
||||
needs, or provide a clearly-defined extension point for addressing them.
|
||||
|
||||
<p>
|
||||
We welcome your feedback about how long it has actually taken you to complete each step, so we
|
||||
can update this page and help new users better assess their project timetables in the future.
|
||||
Any other tips on what you found helpful in learning Acegi Security are also very welcome.
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,53 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Acegi Security - Upgrading from version 0.3 to 0.4</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Upgrading from 0.3 to 0.4</h1>
|
||||
|
||||
<p>Several changes were made between version 0.3 and 0.4 of the project.
|
||||
These changes increased the modularity of the code, enhanced unit testing,
|
||||
made package roles clearer, and added compelling alternatives to container
|
||||
adapters and using web.xml security constraints to protect HTTP resources.
|
||||
|
||||
<p>Unfortunately, changes to the API and package locations were required. The
|
||||
following should help most casual users of the project update their
|
||||
applications:
|
||||
|
||||
<ul>
|
||||
<li>All references to net.sf.acegisecurity.SecurityInterceptor become
|
||||
net.sf.acegisecurity.intercept.method.MethodSecurityInterceptor.</li>
|
||||
|
||||
<li>All references to net.sf.acegisecurity.MethodDefinitionAttributes become
|
||||
net.sf.acegisecurity.intercept.method.MethodDefinitionAttributes.</li>
|
||||
|
||||
<li>All references to net.sf.acegisecurity.adapters.AutoIntegrationFilter become
|
||||
net.sf.acegisecurity.ui.AutoIntegrationFilter (see your web.xml).</li>
|
||||
|
||||
<li>If you're using container adapters (extremely likely), consider replacing
|
||||
them with the net.sf.acegisecurity.ui.webapp package. This will avoid
|
||||
the need to have JARs in your container classloader, and is a lot cleaner.
|
||||
Refer to the reference documentation or Contacts sample application.</li>
|
||||
|
||||
<li>If you're using web.xml <security-constraint>s for securing HTTP URLs
|
||||
(extremely likely), consider replacing it with the
|
||||
net.sf.acegisecurity.intercept.web package. This will give you considerably
|
||||
more flexibility, and reuse the same concepts as you'd be familiar with
|
||||
via the method security interception system. Refer to the reference
|
||||
documentation or Contacts sample application.</li>
|
||||
|
||||
<li>The Contacts sample application now builds two distributions: contacts.war
|
||||
can be instantly deployed without configuring any container adapters,
|
||||
whilst contacts-container-adapter.war still uses container adapters. The
|
||||
contacts.war uses the net.sf.acegisecurity.intercept.web package to
|
||||
protect HTTP URLs, rather than web.xml <security-constraint>s.</li>
|
||||
|
||||
<li>If you're using the Jetty container adapter, please check the jetty.xml
|
||||
requirements in the reference documentation. There has been a minor change.</li>
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
We hope you find the new features useful in your projects.
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,59 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Acegi Security - Upgrading from version 0.4 to 0.5</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Upgrading from 0.4 to 0.5</h1>
|
||||
|
||||
<p>The following should help most casual users of the project update their
|
||||
applications:
|
||||
<ul>
|
||||
|
||||
<li>All filters are now loaded via FilterToBeanProxy. The FilterToBeanProxy
|
||||
obtains the filter from a Spring application context via the
|
||||
WebApplicationContextUtils.getApplicationContext() method. Refer to the
|
||||
reference documentation to see the new configuration of filters.</li>
|
||||
|
||||
<li>SecurityEnforcementFilter now requires an AuthenticationEntryPoint
|
||||
and PortResolver. Refer to the reference documentation to see the
|
||||
alternatives AuthenticationEntryPoint implementations available. Simply
|
||||
use the PortResolverImpl for the PortResolver requirement.</li>
|
||||
|
||||
<li>Any of your login or login failure pages that previously referred to
|
||||
AuthenticationProcessingFilter.ACEGI_SECURITY_LAST_EXCEPTION_KEY
|
||||
should now use
|
||||
net.sf.acegisecurity.ui.AbstractProcessingFilter.ACEGI_SECURITY_LAST_EXCEPTION_KEY.</li>
|
||||
|
||||
<li>DaoAuthenticationProvider no longer provides setters for case sensitivity
|
||||
handling. The respective AuthenticationDao implementations should decide
|
||||
whether or not to return User instances reflecting the exact case of the
|
||||
requested username. The new PlaintextPasswordEncoder offers a setter for
|
||||
ignoring the password case (defaults to require exact case matches).</li>
|
||||
|
||||
<li>DaoAuthenticationProvider now provides caching. Successful authentications
|
||||
return DaoAuthenticationTokens. You must set the mandatory "key" property
|
||||
on DaoAuthenticationProvider so these tokens can be validated. You may
|
||||
also wish to change the "refreshTokenInterval" property from the default
|
||||
of 60,000 milliseconds.</li>
|
||||
|
||||
<li>If you're using container adapters, please refer to the reference
|
||||
documentation as additional JARs are now required in your container
|
||||
classloader.</li>
|
||||
|
||||
<li>Whilst not really a change needed to your program, if you're using
|
||||
Acegi Security please consider joining the acegisecurity-developer mailing
|
||||
list. This is currently the best way to keep informed about the project's
|
||||
status and provide feedback in design discussions. You can join at
|
||||
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer.
|
||||
Please continue using the Spring Users mailing list for general support.</li>
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
There are also lots of new features you might wish to consider for your
|
||||
projects. These include CAS integration, pluggable password encoders
|
||||
(such as MD5 and SHA), along with pluggable salt sources. We hope you find
|
||||
the new features useful in your projects.
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,81 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Acegi Security - Upgrading from version 0.3 to 0.4</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Upgrading from 0.5 to 0.6</h1>
|
||||
|
||||
<p>
|
||||
The following should help most casual users of the project update their
|
||||
applications:
|
||||
<ul>
|
||||
<li>
|
||||
Locate and remove all property references to
|
||||
DaoAuthenticationProvider.key and
|
||||
DaoAuthenticationProvider.refreshTokenInterval.</li>
|
||||
|
||||
<li>If you are using DaoAuthenticationProvider and either (i) you are using
|
||||
container adapters or (ii) your code relies on the Authentication object
|
||||
having its getPrincipal() return a String, you must set the new
|
||||
DaoAuthenticationProvider property, forcePrincipalAsString, to true.
|
||||
By default DaoAuthenticationProvider returns an Authentication object
|
||||
containing the relevant User, which allows access to additional properties.
|
||||
Where possible, we recommend you change your code to something like this,
|
||||
so that you can leave forcePrincipalAsString to the false default:<br><br>
|
||||
<code>
|
||||
String username = authentication.getPrincipal();<br>
|
||||
if (authentication.getPrincipal() instanceof User) {<br>
|
||||
username = ((User) authentication.getPrincipal()).getUsername();<br>
|
||||
}</br>
|
||||
</code><br>
|
||||
</li>
|
||||
|
||||
<li>The signature of AuthenticationDaos have changed. In concrete
|
||||
implementations, modify the User to UserDetails, as shown below:<br><br>
|
||||
<code>
|
||||
public User loadUserByUsername(String username)<br>
|
||||
throws UsernameNotFoundException, DataAccessException {<br><br>
|
||||
|
||||
to:<br><br>
|
||||
|
||||
public UserDetails loadUserByUsername(String username)<br>
|
||||
throws UsernameNotFoundException, DataAccessException {<br><br>
|
||||
</code>
|
||||
|
||||
Existing concrete implementations would be returning User, which implements
|
||||
UserDetails, so no further code changes should be required.
|
||||
</li>
|
||||
<li>Similar signature changes (User -> UserDetails) are also required to any
|
||||
custom implementations of UserCache and SaltSource.</li>
|
||||
|
||||
<li>Any custom event listeners relying on AuthenticationEvent should note a
|
||||
UserDetails is now provided in the AuthenticationEvent (not a User).</li>
|
||||
|
||||
<li>CAS users should note the CasAuthoritiesPopulator interface signature has
|
||||
changed. Most CAS users will be using DaoCasAuthoritiesPopulator, so this
|
||||
change is unlikely to require any action.</li>
|
||||
|
||||
<li>Please check your web.xml for whether you are using AutoIntegrationFilter.
|
||||
Previously this class was loaded directly by web.xml as a filter. It is
|
||||
now recommended to load it via FilterToBeanProxy and define it as a
|
||||
bean in your application context. This usually involves making the entry
|
||||
in web.xml match the following:<br><br>
|
||||
<code>
|
||||
<filter><br>
|
||||
<filter-name>Acegi Security System for Spring Auto Integration Filter</filter-name><br>
|
||||
<filter-class>net.sf.acegisecurity.util.FilterToBeanProxy</filter-class><br>
|
||||
<init-param><br>
|
||||
<param-name>targetClass</param-name><br>
|
||||
<param-value>net.sf.acegisecurity.ui.AutoIntegrationFilter</param-value><br>
|
||||
</init-param><br>
|
||||
</filter><br>
|
||||
</code>
|
||||
<br><br>
|
||||
Then add the following to applicationContext.xml: <br><br>
|
||||
<code>
|
||||
<bean id="autoIntegrationFilter" class="net.sf.acegisecurity.ui.AutoIntegrationFilter"/><br>
|
||||
</code>
|
||||
</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,60 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Acegi Security - Upgrading from version 0.6 to 0.7</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Upgrading from 0.6 to 0.7.0</h1>
|
||||
|
||||
<p>
|
||||
The following should help most casual users of the project update their
|
||||
applications:
|
||||
<ul>
|
||||
<li>UserDetails now has two extra methods. Most people who have extended
|
||||
Acegi Security's default User implementation of UserDetails will be fine, as
|
||||
the constructor sets sensible defaults for the extra methods. People who
|
||||
have written their own UserDetails implementation from scratch will need to
|
||||
add the additional two methods. Returning true to both methods will normally
|
||||
be correct.
|
||||
</li>
|
||||
<li>AutoIntegrationFilter has been removed. User should instead use
|
||||
HttpSessionIntegrationFilter (in most cases), or HttpRequestIntegrationFilter
|
||||
(if using most container adapters) or JbossIntegrationFilter (if using the
|
||||
JBoss container adapter).</li>
|
||||
|
||||
<li>MethodDefinitionMap, which is usually used by MethodSecurityInterceptor
|
||||
for its objectDefinitionSource property, has been changed. From 0.7.0, when
|
||||
MethodDefinitionMap is queried for configuration attributes associated with
|
||||
secure MethodInvocations, it will use any method matching in the method
|
||||
invocation class (as it always has) plus any method matching any interface
|
||||
the MethodInvocation class directly implements. So consider a PersonManager
|
||||
interface, a PersonManagerImpl class that implements it, and a definition of
|
||||
PersonManager.findAll=ROLE_FOO. In this example, any query for either
|
||||
PersonManager.findAll OR PersonManagerImpl.findAll will return ROLE_FOO.
|
||||
As we have always encouraged definition against the interface names (as per
|
||||
this example), this change should not adversely impact users. This change
|
||||
was necessary because of the new MethodDefinitionSourceAdvisor (see below).
|
||||
Refer to the MethodDefinitionMap JavaDocs for further clarification.</li>
|
||||
|
||||
<li>MethodDefinitionSourceAdvisor can now be used instead of defining proxies
|
||||
for secure business objects. The advisor is fully compatible with both
|
||||
MethodDefinitionMap and MethodDefinitionAttributes. Using an advisor allows
|
||||
caching of which methods the MethodSecurityInterceptor should handle, thus
|
||||
providing a performance benefit as MethodSecurityInterceptor is not called
|
||||
for public (non-secure) objects. It also simplifies configuration.</li>
|
||||
|
||||
<li>MethodSecurityInterceptor has moved from
|
||||
net.sf.acegisecurity.intercept.method.MethodSecurityInterceptor to
|
||||
net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.
|
||||
A simple find and replace will suffice to update your application contexts.</li>
|
||||
|
||||
<li>All of the EH-CACHE cache implementations provided with Acegi Security have
|
||||
now been refactored to use a net.sf.ehcache.Cache obtained from
|
||||
EhCacheManagerFactoryBean, which is included with Spring 1.1.1 and above.
|
||||
See http://opensource.atlassian.com/confluence/spring/display/DISC/Caching+the+result+of+methods+using+Spring+and+EHCache
|
||||
for more about this bean, or the Contacts sample application for how to
|
||||
configure the EH-CACHE implementations provided with Acegi Security.
|
||||
Note the "cache" property is now required, and the old internally-managed
|
||||
cache properties have been removed.</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,46 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Acegi Security - Upgrading from version 0.7.0 to 0.8.0</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Upgrading from 0.7.0 to 0.8.0</h1>
|
||||
|
||||
<p>
|
||||
The following should help most casual users of the project update their
|
||||
applications:
|
||||
|
||||
<ul>
|
||||
|
||||
<li>HttpSessionIntegrationFilter has been removed. Use net.sf.acegisecurity.context.HttpSessionContextIntegrationFilter instead.
|
||||
Note you will need to set the mandatory "context" property to something like "net.sf.acegisecurity.context.security.SecureContextImpl".
|
||||
It's not the default because we want no dependencies between the context package and the rest of Acegi Security.<br><br></li>
|
||||
|
||||
<li>Filter ordering has changed. See the reference guide for confirmation of the correct ordering. Basically you should have
|
||||
HttpSessionContextIntegrationFilter appear before any of your authentication mechanisms.<br><br></li>
|
||||
|
||||
<li>IoC container hosted filter chains can now be used instead of lengthy web.xml declarations. See the reference guide or the
|
||||
Contacts Sample for further information.<br><br></li>
|
||||
|
||||
<li>Certain classes have been moved to new packages: ContextHolderAwareRequestWrapper (and its filter),
|
||||
AuthenticationSimpleHttpInvokerRequestExecutor, ContextPropagatingRemoteInvocation,
|
||||
SecureContext (and its implementation). These classes were moved as part of refactorings aimed at
|
||||
improving the simplicity of the project's design.<br><br></li>
|
||||
|
||||
<li>If you wish to use the new ConcurrentSessionController you must declare the HttpSessionEventPublisher context listener in your
|
||||
web.xml<br><br></li>
|
||||
|
||||
<li>The JaasAuthenticationCallbackHandler interface has had it's setAuthentication method removed.
|
||||
The handle method now takes both the Callback and Authentication objects as arguments.<br><br></li>
|
||||
|
||||
<li>Added AuthenticationException to the AutenticationEntryPoint.commence method signature.<br><br></li>
|
||||
|
||||
<li>Added AccessDeniedException to the SecurityEncorcementFilter.sendAccessDeniedError method signature.<br><br></li>
|
||||
|
||||
<li>The Authentication.getDetails() no longer returns simply the IP address used for authentication.
|
||||
It now returns a WebAuthenticationDetails instance, which contains the IP address, session information,
|
||||
and can be extended to store further details.<br><br></li>
|
||||
|
||||
</ul>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,100 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Acegi Security - Upgrading from version 0.8.0 to 0.9.0</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Upgrading from 0.8.0 to 0.9.0</h1>
|
||||
|
||||
<p>
|
||||
The following should help most casual users of the project update their
|
||||
applications:
|
||||
|
||||
<ul>
|
||||
|
||||
<li>The most significant change in 0.9.0 is that <code>ContextHolder</code> and all of its
|
||||
related classes have been removed. This significant change was made for the sake of consistency
|
||||
with the core Spring project's approach of a single <code>ThreadLocal</code> per use case,
|
||||
instead of a shared <code>ThreadLocal</code> for multiple use cases as the previous
|
||||
<code>ContextHolder</code> allowed. <b>This is an important change in 0.9.0.</b> Many applications
|
||||
will need to modify their code (and possibly web views) if they directly interact with the old
|
||||
<code>ContextHolder</code>. The replacement security <code>ThreadLocal</code> is called
|
||||
<a href="../multiproject/acegi-security/xref/net/sf/acegisecurity/context/SecurityContextHolder.html">
|
||||
SecurityContextHolder</a> and provides a single getter/setter for a
|
||||
<a href="../multiproject/acegi-security/xref/net/sf/acegisecurity/context/SecurityContextHolder.html">SecurityContext</a>.
|
||||
<code>SecurityContextHolder</code> guarantees to never return a <code>null</code> <code>SecurityContext</code>.
|
||||
<code>SecurityContext</code> provides single getter/setter for <code>Authentication</code>.<BR><BR>
|
||||
|
||||
To migrate, simply modify all your code that previously worked with <code>ContextHolder</code>,
|
||||
<code>SecureContext</code> and <code>Context</code> to directly call <code>SecurityContextHolder</code>
|
||||
and work with the <code>SecurityContext</code> (instead of the now removed <code>Context</code>
|
||||
and <code>SecureContext</code> interfaces).<br><br>
|
||||
|
||||
For example, change:<br>
|
||||
<code>
|
||||
SecureContext ctx = SecureContextUtils.getSecureContext();<br>
|
||||
</code>
|
||||
to:<br>
|
||||
<code>
|
||||
SecurityContext ctx = SecurityContextHolder.getContext();<br>
|
||||
</code>
|
||||
<br>
|
||||
and change:<br>
|
||||
<code>
|
||||
<bean id="httpSessionContextIntegrationFilter" class="net.sf.acegisecurity.context.HttpSessionContextIntegrationFilter"><br>
|
||||
<property name="context"><value>net.sf.acegisecurity.context.security.SecureContextImpl</value></property><br>
|
||||
</bean><br>
|
||||
</code>
|
||||
to:<br>
|
||||
<code>
|
||||
<bean id="httpSessionContextIntegrationFilter" class="net.sf.acegisecurity.context.HttpSessionContextIntegrationFilter"><br>
|
||||
<property name="context"><value>net.sf.acegisecurity.context.SecurityContextImpl</value></property><br>
|
||||
</bean><br>
|
||||
</code>
|
||||
<br>
|
||||
|
||||
We apologise for the inconvenience, but on a more positive note this means you receive strict
|
||||
type checking, you no longer need to mess around with casting to and from <code>Context</code>
|
||||
implementations, your applications no longer need to perform checking of <code>null</code> and
|
||||
unexpected <code>Context</code> implementation types.<br><br></li>
|
||||
|
||||
<li><code>AbstractProcessingFilter</code> has changed its getter/setter approach used for customised
|
||||
authentication exception directions. See the <a href="../multiproject/acegi-security/xref/net/sf/acegisecurity/ui/AbstractProcessingFilter.html">
|
||||
<code>AbstractProcessingFilter</code> JavaDocs</a> to learn more.<br><br></li>
|
||||
|
||||
<li><code>AnonymousProcessingFilter</code> now has a <code>removeAfterRequest</code> property, which defaults to <code>true</code>. This
|
||||
will cause the anonymous authentication token to be set to null at the end of each request, thus
|
||||
avoiding the expense of creating a <code>HttpSession</code> in <code>HttpSessionContextIntegrationFilter</code>. You may
|
||||
set this property to false if you would like the anoymous authentication token to be preserved,
|
||||
which would be an unusual requirement.<br><br></li>
|
||||
|
||||
<li>Event publishing has been refactored. New event classes have been added, and the location of
|
||||
<code>LoggerListener</code> has changed. See the <code>net.sf.acegisecurity.event package</code>.<BR>
|
||||
<br>
|
||||
For example, change:<br>
|
||||
<code>
|
||||
<bean id="loggerListener" class="net.sf.acegisecurity.providers.dao.event.LoggerListener"/><br>
|
||||
</code>
|
||||
to:<br>
|
||||
<code>
|
||||
<bean id="loggerListener" class="net.sf.acegisecurity.event.authentication.LoggerListener"/>
|
||||
</code><br><br>
|
||||
</li>
|
||||
|
||||
<li>Users of the <code><authz:authentication></code> JSP tag will generally need to set the <code>operation</code>
|
||||
property equal to "username", as reflection is now used to retrieve the property displayed.<br><br></li>
|
||||
|
||||
<li>
|
||||
Users of <code>net.sf.acegisecurity.wrapper.ContextHolderAwareRequestFilter</code> should note that it has been
|
||||
renamed to <code>net.sf.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter</code>.<br><br>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
The concurrent session support handling has changed. Please refer to the Reference Guide to
|
||||
review the new configuration requirements.<br><br>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,121 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
<title>Acegi Security - Upgrading from version 0.8.0 to 1.0.0</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Upgrading from 0.9.0 to 1.0.0</h1>
|
||||
|
||||
<p>
|
||||
The following should help most casual users of the project update their
|
||||
applications:
|
||||
</p>
|
||||
|
||||
<h1>Changes 0.9.0 to RC1</h1>
|
||||
|
||||
<ul>
|
||||
|
||||
<li>The top level package name has changed. Simply find "net.sf.acegisecurity" and replace with
|
||||
"org.acegisecurity".</li>
|
||||
|
||||
<li>
|
||||
DaoAuthenticationProvider has a property, authenticationDao. This property should now be renamed to
|
||||
userDetailsService.
|
||||
</li>
|
||||
|
||||
<li>
|
||||
In JSPs, each "authz" taglib prefix must be changed from uri="http://acegisecurity.sf.net/authz"
|
||||
to uri="http://acegisecurity.org/authz".
|
||||
</li>
|
||||
|
||||
<li>net.sf.acegisecurity.providers.dao.AuthenticationDao is now org.acegisecurity.userdetails.UserDetailsService.
|
||||
The interface signature has not changed. Similarly, User and UserDetails have moved into the latter's package as well.
|
||||
If you've implemented your own AuthenticationDao, you'll need to change the class it's implementing and quite likely
|
||||
the import packages for User and UserDetails. In addition, if using JdbcDaoImpl or InMemoryDaoImpl please
|
||||
note they have moved to this new package.</li>
|
||||
|
||||
<li>Acegi Security is now localised. In net.sf.acegisecurity you will find a messages.properties. It is
|
||||
suggested to register this in your application context, perhaps using ReloadableResourceBundleMessageSource.
|
||||
If you do not do this, the default messages included in the source code will be used so this change is
|
||||
not critical. The Spring LocaleContextHolder class is used to determine the locale of messages included in
|
||||
exceptions. At present only the default messages.properties is included (which is in English). If
|
||||
you localise this file to another language, please consider attaching it to a
|
||||
<a href="http://opensource2.atlassian.com/projects/spring/secure/BrowseProject.jspa?id=10040">new JIRA task</a>
|
||||
so that we can include it in future Acegi Security releases.</li>
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
<h1>Changes RC1 to RC2</h1>
|
||||
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
org.acegisecurity.ui.rememberme.RememberMeProcessingFilter now requires an authenticationManager property. This will generally
|
||||
point to an implementation of org.acegisecurity.providers.ProviderManager.
|
||||
</li>
|
||||
|
||||
<li>
|
||||
org.acegisecurity.intercept.web.AuthenticationEntryPoint has moved to a new location,
|
||||
org.acegisecurity.ui.AuthenticationEntryPoint.
|
||||
</li>
|
||||
|
||||
<li>
|
||||
org.acegisecurity.intercept.web.SecurityEnforcementFilter has moved to a new location and name,
|
||||
org.acegisecurity.ui.ExceptionTranslationFilter. In addition, the "filterSecurityInterceptor"
|
||||
property on the old SecurityEnforcementFilter class has been removed. This is because
|
||||
SecurityEnforcementFilter will no longer delegate to FilterSecurityInterceptor as it has in the
|
||||
past. Because this delegation feature has been removed (see SEC-144 for a background as to why),
|
||||
please add a new filter definition for FilterSecurityInterceptor to the end of your
|
||||
FilterChainProxy. Generally you'll also rename the old SecurityEnforcementFilter entry in your
|
||||
FilterChainProxy to ExceptionTranslationFilter, more accurately reflecting its purpose.
|
||||
If you are not using FilterChainProxy (although we recommend that you do), you will need to add
|
||||
an additional filter entry to web.xml and use FilterToBeanProxy to access the FilterSecurityInterceptor.
|
||||
</li>
|
||||
|
||||
<li>
|
||||
If you are directly using SecurityContextHolder.setContext(SecurityContext) - which is not
|
||||
very common - please not that best practise is now to call SecurityContextHolder.clearContext()
|
||||
if you wish to erase the contents of the SecurityContextHolder. Previously code such as
|
||||
SecurityContextHolder.setContext(new SecurityContextImpl()) would have been used. The revised
|
||||
method internally stores null, which helps avoids redeployment issue caused by the previous
|
||||
approaches (see SEC-159 for further details).
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
<h1>Changes RC2 to Final</h1>
|
||||
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
AbstractProcessingFilter.onUnsuccessfulAuthentication(HttpServletRequest, HttpServletResponse)
|
||||
has changed it signature (SEC-238). If subclassing, please override the new signature.
|
||||
</li>
|
||||
|
||||
<li>
|
||||
ExceptionTranslationFilter no longer provides a sendAccessDenied() method. Use the
|
||||
new AccessDeniedHandler instead if custom handling is required.
|
||||
</li>
|
||||
|
||||
<li>
|
||||
There have been some changes to the LDAP provider APIs to allow for future improvements, as detailed in
|
||||
<a href="http://opensource.atlassian.com/projects/spring/browse/SEC-264">SEC-264</a>. These
|
||||
should only affect users who have written their own extensions to the provider. The general LDAP
|
||||
classes are now in the packages org.acegisecurity.ldap and the org.acegisecurity.userdetails.ldap
|
||||
package has been introduced. The search and authentication classes now return an
|
||||
<a href="../multiproject/acegi-security/apidocs/org/acegisecurity/userdetails/ldap/LdapUserDetails.html">LdapUserDetails</a>
|
||||
instance. The LdapAuthoritiesPopulator interface and its default implementation now both make use of
|
||||
LdapUserDetails. Any customized versions should be updated to use the new method signatures.
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,88 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
|
||||
<!--
|
||||
* ========================================================================
|
||||
*
|
||||
* Copyright 2004, 2005 Acegi Technology Pty Limited
|
||||
*
|
||||
* Licensed 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
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* ========================================================================
|
||||
-->
|
||||
|
||||
<project name="Acegi Security">
|
||||
<bannerLeft>
|
||||
<name>Acegi Security</name>
|
||||
<src>http://sourceforge.net/sflogo.php?group_id=104215&type=5</src>
|
||||
<href>http://acegisecurity.sourceforge.net</href>
|
||||
</bannerLeft>
|
||||
<bannerRight>
|
||||
<src>http://acegisecurity.org/logo.gif</src>
|
||||
<href>http://acegisecurity.org/</href>
|
||||
</bannerRight>
|
||||
|
||||
<body>
|
||||
<links>
|
||||
<item name="Acegi Security on Sourceforge" href="http://sourceforge.net/projects/acegisecurity" />
|
||||
</links>
|
||||
|
||||
<menu name="Overview">
|
||||
<item name="Home" href="/"/>
|
||||
<item name="Building with Maven" href="building.html"/>
|
||||
<item name="Downloads" href="downloads.html"/>
|
||||
</menu>
|
||||
|
||||
<menu name="Documentation">
|
||||
<item name="Suggested Steps" href="suggested.html"/>
|
||||
<item name="Reference Guide" href="reference.html"/>
|
||||
<item name="Sample SQL Schema" href="dbinit.txt"/>
|
||||
<item name="FAQ" href="faq.html"/>
|
||||
<item name="Petclinic Tutorial" href="petclinic-tutorial.html"/>
|
||||
<item name="External Web Articles" href="articles.html"/>
|
||||
<item name="Products using Acegi" href="powering.html"/>
|
||||
<item name="Use without Spring" href="standalone.html"/>
|
||||
<item name="Upgrading to 1.0.0" href="upgrade/upgrade-090-100.html"/>
|
||||
<item name="Upgrading to 0.9.0" href="upgrade/upgrade-080-090.html"/>
|
||||
<item name="Upgrading to 0.8.0" href="upgrade/upgrade-070-080.html"/>
|
||||
<item name="Upgrading to 0.7.0" href="upgrade/upgrade-06-070.html"/>
|
||||
<item name="Upgrading to 0.6" href="upgrade/upgrade-05-06.html"/>
|
||||
<item name="Upgrading to 0.5" href="upgrade/upgrade-04-05.html"/>
|
||||
<item name="Upgrading to 0.4" href="upgrade/upgrade-03-04.html"/>
|
||||
<item name="Core JavaDocs" href="acegi-security/apidocs/index.html" target="_blank"/>
|
||||
<item name="Contacts HTTPS" href="acegi-security-sample-contacts/ssl/howto.txt"/>
|
||||
<item name="Project Policies" href="policies.html"/>
|
||||
<item name="Acegi Security JIRA" href="http://opensource.atlassian.com/projects/spring/secure/BrowseProject.jspa?id=10040"/>
|
||||
<item name="Blog" href="http://blog.springframework.com/ben.alex/"/>
|
||||
</menu>
|
||||
|
||||
<menu name="Projects">
|
||||
<item name="Core Framework" href="acegi-security/index.html"/>
|
||||
<item name="CAS Adapter" href="acegi-security-cas/index.html"/>
|
||||
<item name="Catalina Adapter" href="acegi-security-adapters/acegi-security-catalina/index.html"/>
|
||||
<item name="JBoss Adapter" href="acegi-security-adapters/acegi-security-jboss/index.html"/>
|
||||
<item name="Jetty Adapter" href="acegi-security-adapters/acegi-security-jetty/index.html"/>
|
||||
<item name="Resin Adapter" href="acegi-security-adapters/acegi-security-resin/index.html"/>
|
||||
</menu>
|
||||
|
||||
<!--
|
||||
<menu name="Samples">
|
||||
<item name="Contacts" href="acegi-security-sample-contacts/index.html"/>
|
||||
<item name="Attributes" href="acegi-security-sample-attributes/index.html"/>
|
||||
</menu>
|
||||
-->
|
||||
<menu type="footer">
|
||||
<item name="Spring Framework" href="http://www.springframework.org/" img="http://www.springframework.org/buttons/spring_white.png"/>
|
||||
</menu>
|
||||
|
||||
</body>
|
||||
</project>
|
|
@ -0,0 +1,293 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
* ========================================================================
|
||||
*
|
||||
* Copyright 2004, 2005 Acegi Technology Pty Limited
|
||||
*
|
||||
* Licensed 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
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* ========================================================================
|
||||
|
||||
|
||||
**** THIS FILE SHOULD ONLY BE USED TO POINT TO JIRA FOR EACH RELEASE!!!! (BPA, 4 November 2005) ****
|
||||
|
||||
|
||||
-->
|
||||
|
||||
<document>
|
||||
<properties>
|
||||
<title>Acegi Security changes</title>
|
||||
</properties>
|
||||
<body>
|
||||
<release version="1.0.0 Final" date="In CVS">
|
||||
<action dev="benalex" type="update">All changes are in JIRA at http://opensource2.atlassian.com/projects/spring/secure/ReleaseNote.jspa?projectId=10040</action>
|
||||
</release>
|
||||
<release version="1.0.0 RC2" date="2006-02-09">
|
||||
<action dev="benalex" type="update">All changes are in JIRA at http://opensource2.atlassian.com/projects/spring/secure/ReleaseNote.jspa?projectId=10040</action>
|
||||
</release>
|
||||
<release version="1.0.0 RC1" date="2005-12-05">
|
||||
<action dev="benalex" type="update">All changes are in JIRA at http://opensource2.atlassian.com/projects/spring/secure/ReleaseNote.jspa?projectId=10040</action>
|
||||
</release>
|
||||
<release version="0.9.0" date="2005-11-11">
|
||||
<action dev="benalex" type="update">All changes are in JIRA at http://opensource2.atlassian.com/projects/spring/secure/ReleaseNote.jspa?projectId=10040</action>
|
||||
</release>
|
||||
<release version="0.8.3" date="2005-05-12">
|
||||
<action dev="benalex" type="fix">HttpSessionContextIntegrationFilter elegantly handles IOExceptions and ServletExceptions within filter chain (see http://opensource.atlassian.com/projects/spring/browse/SEC-20)</action>
|
||||
</release>
|
||||
<release version="0.8.1.1" date="2005-07-12">
|
||||
<action dev="benalex" type="fix">HttpSessionContextIntegrationFilter elegantly handles IOExceptions and ServletExceptions within filter chain (see http://opensource.atlassian.com/projects/spring/browse/SEC-20)</action>
|
||||
</release>
|
||||
<release version="0.7.1" date="2005-07-12">
|
||||
<action dev="benalex" type="fix">AbstractIntegrationFilter elegantly handles IOExceptions and ServletExceptions within filter chain (see http://opensource.atlassian.com/projects/spring/browse/SEC-20)</action>
|
||||
</release>
|
||||
<release version="0.8.2" date="2005-04-20">
|
||||
<action dev="benalex" type="fix">Correct location of AuthenticationSimpleHttpInvokerRequestExecutor in clientContext.xml</action>
|
||||
<action dev="benalex" type="fix">TokenBasedRememberMeServices changed to use long instead of int for tokenValiditySeconds (SPR-807)</action>
|
||||
<action dev="benalex" type="fix">Handle null Authentication.getAuthorities() in AuthorizeTag</action>
|
||||
<action dev="benalex" type="fix">PasswordDaoAuthenticationProvider no longer stores String against Authentication.setDetails()</action>
|
||||
<action dev="benalex" type="update">Update commons-codec dependency to 1.3</action>
|
||||
<action dev="raykrueger" type="update">AbstractProcessingFilter no longer has setters for failures, it uses the exceptionMappings property</action>
|
||||
<action dev="benalex" type="update">Update to match Spring 1.2-RC2 official JAR dependencies</action>
|
||||
<action dev="raykrueger" type="update">AuthenticationProcessingFilter now provides an obtainUsername method</action>
|
||||
<action dev="luke_t" type="update">Correct PathBasedFilterInvocationDefinitionMap compatibility with Spring 1.2-RC2</action>
|
||||
<action dev="luke_t" type="update">Refactoring to leverage Spring's Assert class and mocks where possible</action>
|
||||
</release>
|
||||
<release version="0.8.1" date="2005-03-22">
|
||||
<action dev="luke_t" type="add">X509 (certificate-based) authentication support</action>
|
||||
<action dev="benalex" type="update">UserDetails now advises locked accounts, with corresponding DaoAuthenticationProvider events and enforcement</action>
|
||||
<action dev="benalex" type="update">ContextHolderAwareRequestWrapper methods return null if user is anonymous</action>
|
||||
<action dev="benalex" type="update">AbstractBasicAclEntry improved compatibility with Hibernate</action>
|
||||
<action dev="benalex" type="update">User now provides a more useful toString() method</action>
|
||||
<action dev="benalex" type="update">Update to match Spring 1.1.5 official JAR dependencies (NB: now using Servlet 2.4 and related JSP/taglib JARs)</action>
|
||||
<action dev="benalex" type="fix">SecurityEnforcementFilter caused NullPointerException when anonymous authentication used with BasicProcessingFilterEntryPoint</action>
|
||||
<action dev="benalex" type="fix">FilterChainProxy now supports replacement of ServletRequest and ServetResponse by Filter beans</action>
|
||||
<action dev="fbos" type="fix">Corrected Authz parsing of whitespace in GrantedAuthoritys</action>
|
||||
<action dev="benalex" type="fix">TokenBasedRememberMeServices now respects expired users, expired credentials and disabled users</action>
|
||||
<action dev="benalex" type="fix">HttpSessionContextIntegrationFilter now handles HttpSession invalidation without redirection</action>
|
||||
<action dev="benalex" type="fix">StringSplitUtils.split() ignored delimiter argument</action>
|
||||
<action dev="benalex" type="fix">DigestProcessingFilter now provides userCache getter and setter</action>
|
||||
<action dev="benalex" type="fix">Contacts Sample made to work with UserDetails-based Principal</action>
|
||||
<action dev="benalex" type="update">Documentation improvements</action>
|
||||
<action dev="benalex" type="update">Test coverage improvements</action>
|
||||
</release>
|
||||
<release version="0.8.0" date="2005-03-03">
|
||||
<action dev="benalex" type="add">Added Digest Authentication support (RFC 2617 and RFC 2069)</action>
|
||||
<action dev="benalex" type="add">Added pluggable remember-me services</action>
|
||||
<action dev="benalex" type="add">Added pluggable mechnism to prevent concurrent login sessions</action>
|
||||
<action dev="benalex" type="add">FilterChainProxy added to significantly simplify web.xml configuration of Acegi Security</action>
|
||||
<action dev="benalex" type="add">AuthenticationProcessingFilter now provides hook for extra credentials (eg postcodes)</action>
|
||||
<action dev="benalex" type="add">New WebAuthenticationDetails class now used by processing filters for Authentication.setDetails()</action>
|
||||
<action dev="benalex" type="add">Additional debug-level logging</action>
|
||||
<action dev="benalex" type="add">Improved Tapestry support in AbstractProcessingFilter</action>
|
||||
<action dev="benalex" type="update">Made ConfigAttributeDefinition and ConfigAttribute Serializable</action>
|
||||
<action dev="benalex" type="update">User now accepts blank passwords (null passwords still rejected)</action>
|
||||
<action dev="benalex" type="update">FilterToBeanProxy now searches hierarchical bean factories</action>
|
||||
<action dev="benalex" type="update">User now accepted blank passwords (null passwords still rejected)</action>
|
||||
<action dev="benalex" type="update">ContextHolderAwareRequestWrapper now provides a getUserPrincipal() method</action>
|
||||
<action dev="benalex" type="update">HttpSessionIntegrationFilter no longer creates a HttpSession unnecessarily</action>
|
||||
<action dev="benalex" type="update">FilterSecurityInterceptor now only executes once per request (improves performance with SiteMesh)</action>
|
||||
<action dev="raykrueger" type="update">JaasAuthenticatinProvider now uses System.property "java.security.auth.login.config"</action>
|
||||
<action dev="raykrueger" type="update">JaasAuthenticationCallbackHandler Authentication is passed to handle method setAuthentication removed</action>
|
||||
<action dev="raykrueger" type="update">Added AuthenticationException to the AutenticationEntryPoint.commence method signature</action>
|
||||
<action dev="raykrueger" type="update">Added AccessDeniedException to the SecurityEncorcementFilter.sendAccessDeniedError method signature</action>
|
||||
<action dev="benalex" type="update">FilterToBeanProxy now addresses lifecycle mismatch (IoC container vs servlet container) issue</action>
|
||||
<action dev="benalex" type="update">Significantly refactor "well-known location model" to authentication processing mechanism and HttpSessionContextIntegrationFilter model</action>
|
||||
<action dev="benalex" type="fix">Correct issue with JdbcDaoImpl default SQL query not using consistent case sensitivity</action>
|
||||
<action dev="benalex" type="fix">Improve Linux and non-Sun JDK (specifically IBM JDK) compatibility</action>
|
||||
<action dev="benalex" type="fix">Log4j now included in generated WAR artifacts (fixes issue with Log4j listener)</action>
|
||||
<action dev="benalex" type="fix">Correct NullPointerException in FilterInvocationDefinitionSource implementations</action>
|
||||
</release>
|
||||
<release version="0.7.0" date="2005-01-16">
|
||||
<action dev="carlossg" type="add">Major CVS repository restructure to support Maven and eliminate libraries</action>
|
||||
<action dev="benalex" type="update">Major improvements to Contacts sample application (now demos ACL security)</action>
|
||||
<action dev="benalex" type="add">Added AfterInvocationManager to mutate objects return from invocations</action>
|
||||
<action dev="benalex" type="add">Added BasicAclEntryAfterInvocationProvider to ACL evaluate returned Object</action>
|
||||
<action dev="benalex" type="add">Added BasicAclEntryAfterInvocationCollectionFilteringProvider</action>
|
||||
<action dev="benalex" type="add">Added security propagation during RMI invocations (from sandbox)</action>
|
||||
<action dev="benalex" type="add">Added security propagation for Spring's HTTP invoker</action>
|
||||
<action dev="benalex" type="add">Added BasicAclEntryVoter, which votes based on AclManager permissions</action>
|
||||
<action dev="benalex" type="add">Added AspectJ support (especially useful for instance-level security)</action>
|
||||
<action dev="benalex" type="add">Added MethodDefinitionSourceAdvisor for performance and autoproxying</action>
|
||||
<action dev="benalex" type="add">Added MethodDefinitionMap querying of interfaces defined by secure objects</action>
|
||||
<action dev="benalex" type="add">Added AuthenticationProcessingFilter.setDetails for use by subclasses</action>
|
||||
<action dev="benalex" type="add">Added 403-causing exception to HttpSession via SecurityEnforcementFilter</action>
|
||||
<action dev="benalex" type="add">Added net.sf.acegisecurity.intercept.event package</action>
|
||||
<action dev="benalex" type="add">Added BasicAclExtendedDao interface and JdbcExtendedDaoImpl for ACL CRUD</action>
|
||||
<action dev="benalex" type="add">Added additional remoting protocol demonstrations to Contacts sample</action>
|
||||
<action dev="benalex" type="add">Added AbstractProcessingFilter property to always use defaultTargetUrl</action>
|
||||
<action dev="benalex" type="add">Added ContextHolderAwareRequestWrapper to integrate with getRemoteUser()</action>
|
||||
<action dev="benalex" type="add">Added attempted username to view if processed by AuthenticationProcessingFilter</action>
|
||||
<action dev="benalex" type="add">Added UserDetails account and credentials expiration methods</action>
|
||||
<action dev="benalex" type="add">Added exceptions and events to support new UserDetails methods</action>
|
||||
<action dev="benalex" type="add">Added new exceptions to JBoss container adapter</action>
|
||||
<action dev="benalex" type="update">Improved BasicAclProvider to only respond to specified ACL object requests</action>
|
||||
<action dev="benalex" type="update">Refactored MethodDefinitionSource to work with Method, not MethodInvocation</action>
|
||||
<action dev="benalex" type="update">Refactored AbstractFilterInvocationDefinitionSource to work with URL Strings alone</action>
|
||||
<action dev="benalex" type="update">Refactored AbstractSecurityInterceptor to better support other AOP libraries</action>
|
||||
<action dev="benalex" type="update">Improved performance of JBoss container adapter (see reference docs)</action>
|
||||
<action dev="benalex" type="update">Made DaoAuthenticationProvider detect null in Authentication.principal</action>
|
||||
<action dev="benalex" type="update">Improved JaasAuthenticationProvider startup error detection</action>
|
||||
<action dev="benalex" type="update">Refactored EH-CACHE implementations to use Spring IoC defined caches instead</action>
|
||||
<action dev="benalex" type="update">AbstractProcessingFilter now has various hook methods to assist subclasses</action>
|
||||
<action dev="benalex" type="update">DaoAuthenticationProvider better detects AuthenticationDao interface violations</action>
|
||||
<action dev="benalex" type="update">The User class has a new constructor (the old constructor is deprecated)</action>
|
||||
<action dev="benalex" type="fix">Fixed ambiguous column references in JdbcDaoImpl default query</action>
|
||||
<action dev="benalex" type="fix">Fixed AbstractProcessingFilter to use removeAttribute (JRun compatibility)</action>
|
||||
<action dev="benalex" type="fix">Fixed GrantedAuthorityEffectiveAclResolver support of UserDetails principals</action>
|
||||
<action dev="benalex" type="fix">Fixed HttpSessionIntegrationFilter "cannot commit to container" during logoff</action>
|
||||
<action dev="benalex" type="update">Moved MethodSecurityInterceptor to ...intercept.method.aopalliance package</action>
|
||||
<action dev="benalex" type="update">Documentation improvements</action>
|
||||
<action dev="benalex" type="update">Test coverage improvements</action>
|
||||
</release>
|
||||
<release version="0.6.1" date="2004-09-24">
|
||||
<action dev="benalex" type="update">Resolved to use http://apr.apache.org/versioning.html for future versioning</action>
|
||||
<action dev="benalex" type="add">Added additional DaoAuthenticationProvider event when user not found</action>
|
||||
<action dev="benalex" type="add">Added Authentication.getDetails() to DaoAuthenticationProvider response</action>
|
||||
<action dev="benalex" type="add">Added DaoAuthenticationProvider.hideUserNotFoundExceptions (default=true)</action>
|
||||
<action dev="benalex" type="add">Added PasswordAuthenticationProvider for password-validating DAOs (eg LDAP)</action>
|
||||
<action dev="benalex" type="add">Added FilterToBeanProxy compatibility with ContextLoaderServlet (lazy inits)</action>
|
||||
<action dev="benalex" type="add">Added convenience methods to ConfigAttributeDefinition</action>
|
||||
<action dev="benalex" type="update">Improved sample applications' bean reference notation</action>
|
||||
<action dev="benalex" type="update">Clarified contract for ObjectDefinitionSource.getAttributes(Object)</action>
|
||||
<action dev="benalex" type="update">Extracted removeUserFromCache(String) to UserCache interface</action>
|
||||
<action dev="benalex" type="update">Improved ConfigAttributeEditor so it trims preceding and trailing spaces</action>
|
||||
<action dev="benalex" type="update">Refactored UsernamePasswordAuthenticationToken.getDetails() to Object</action>
|
||||
<action dev="benalex" type="fix">Fixed MethodDefinitionAttributes to implement ObjectDefinitionSource change</action>
|
||||
<action dev="benalex" type="fix">Fixed EH-CACHE-based caching implementation behaviour when cache exists</action>
|
||||
<action dev="benalex" type="fix">Fixed Ant "release" target not including project.properties</action>
|
||||
<action dev="benalex" type="fix">Fixed GrantedAuthorityEffectiveAclsResolver if null ACLs provided to method</action>
|
||||
<action dev="benalex" type="update">Documentation improvements</action>
|
||||
</release>
|
||||
<release version="0.6" date="2004-08-08">
|
||||
<action dev="benalex" type="add">Added domain object instance access control list (ACL) packages</action>
|
||||
<action dev="benalex" type="add">Added feature so DaoAuthenticationProvider returns User in Authentication</action>
|
||||
<action dev="benalex" type="add">Added AbstractIntegrationFilter.secureContext property for custom contexts</action>
|
||||
<action dev="benalex" type="add">Added stack trace logging to SecurityEnforcementFilter</action>
|
||||
<action dev="benalex" type="add">Added exception-specific target URLs to AbstractProcessingFilter</action>
|
||||
<action dev="benalex" type="add">Added JdbcDaoImpl hook so subclasses can insert custom granted authorities</action>
|
||||
<action dev="raykrueger" type="add">Added AuthenticationProvider that wraps JAAS login modules</action>
|
||||
<action dev="fbos" type="add">Added support for EL expressions in the authz tag library</action>
|
||||
<action dev="benalex" type="add">Added failed Authentication object to AuthenticationExceptions</action>
|
||||
<action dev="benalex" type="add">Added signed JARs to all official release builds (see readme.txt)</action>
|
||||
<action dev="benalex" type="add">Added remote client authentication validation package</action>
|
||||
<action dev="benalex" type="add">Added protected sendAccessDeniedError method to SecurityEnforcementFilter</action>
|
||||
<action dev="benalex" type="update">Updated Authentication to be serializable (Weblogic support)</action>
|
||||
<action dev="benalex" type="update">Updated JAR to Spring 1.1 RC 1</action>
|
||||
<action dev="benalex" type="update">Updated to Clover 1.3</action>
|
||||
<action dev="benalex" type="update">Updated to HSQLDB version 1.7.2 Release Candidate 6D</action>
|
||||
<action dev="benalex" type="update">Refactored User to net.sf.acegisecurity.UserDetails interface</action>
|
||||
<action dev="benalex" type="update">Refactored CAS package to store UserDetails in CasAuthenticationToken</action>
|
||||
<action dev="benalex" type="update">Improved organisation of DaoAuthenticationProvider to facilitate subclassing</action>
|
||||
<action dev="benalex" type="update">Improved test coverage (now 98.3%)</action>
|
||||
<action dev="benalex" type="update">Improved JDBC-based tests to use in-memory database rather than filesystem</action>
|
||||
<action dev="benalex" type="update">Fixed Linux compatibility issues (directory case sensitivity etc)</action>
|
||||
<action dev="benalex" type="update">Fixed AbstractProcessingFilter to handle servlet spec container differences</action>
|
||||
<action dev="benalex" type="update">Fixed AbstractIntegrationFilter to resolve a Weblogic compatibility issue</action>
|
||||
<action dev="benalex" type="fix">Fixed CasAuthenticationToken if proxy granting ticket callback not requested</action>
|
||||
<action dev="benalex" type="fix">Fixed EH-CACHE handling on web context refresh</action>
|
||||
<action dev="benalex" type="update">Documentation improvements</action>
|
||||
</release>
|
||||
<release version="0.5.1" date="2004-06-05">
|
||||
<action dev="benalex" type="add">Added samples/quick-start</action>
|
||||
<action dev="benalex" type="add">Added NullRunAsManager and made default for AbstractSecurityInterceptor</action>
|
||||
<action dev="benalex" type="add">Added event notification (see net.sf.acegisecurity.providers.dao.event)</action>
|
||||
<action dev="benalex" type="update">Updated JAR to Spring 1.0.2</action>
|
||||
<action dev="benalex" type="update">Updated JAR to Commons Attributes CVS snapshot from Spring 1.0.2 release</action>
|
||||
<action dev="benalex" type="update">Updated GrantedAuthorityImpl to be serializable (JBoss support)</action>
|
||||
<action dev="benalex" type="update">Updated Authentication interface to present extra details for a request</action>
|
||||
<action dev="benalex" type="update">Updated Authentication interface to subclass java.security.Principal</action>
|
||||
<action dev="benalex" type="update">Refactored DaoAuthenticationProvider caching (refer to reference docs)</action>
|
||||
<action dev="benalex" type="update">Improved HttpSessionIntegrationFilter to manage additional attributes</action>
|
||||
<action dev="benalex" type="update">Improved URL encoding during redirects</action>
|
||||
<action dev="benalex" type="fix">Fixed issue with hot deploy of EhCacheBasedTicketCache (used with CAS)</action>
|
||||
<action dev="fbos" type="fix">Fixed issue with NullPointerExceptions in taglib</action>
|
||||
<action dev="benalex" type="update">Removed DaoAuthenticationToken and session-based caching</action>
|
||||
<action dev="benalex" type="update">Documentation improvements</action>
|
||||
<action dev="benalex" type="update">Upgrade Note: DaoAuthenticationProvider no longer has a "key" property</action>
|
||||
</release>
|
||||
<release version="0.5" date="2004-04-28">
|
||||
<action dev="benalex" type="add">Added single sign on support via Yale Central Authentication Service (CAS)</action>
|
||||
<action dev="benalex" type="add">Added full support for HTTP Basic Authentication</action>
|
||||
<action dev="benalex" type="add">Added caching for DaoAuthenticationProvider successful authentications</action>
|
||||
<action dev="benalex" type="add">Added Burlap and Hessian remoting to Contacts sample application</action>
|
||||
<action dev="colins" type="add">Added pluggable password encoders including plaintext, SHA and MD5</action>
|
||||
<action dev="benalex" type="add">Added pluggable salt sources to enhance security of hashed passwords</action>
|
||||
<action dev="benalex" type="add">Added FilterToBeanProxy to obtain filters from Spring application context</action>
|
||||
<action dev="colins" type="add">Added support for prepending strings to roles created by JdbcDaoImpl</action>
|
||||
<action dev="colins" type="add">Added support for user definition of SQL statements used by JdbcDaoImpl</action>
|
||||
<action dev="colins" type="add">Added definable prefixes to avoid expectation of "ROLE_" GrantedAuthoritys</action>
|
||||
<action dev="benalex" type="add">Added pluggable AuthenticationEntryPoints to SecurityEnforcementFilter</action>
|
||||
<action dev="benalex" type="add">Added Apache Ant path syntax support to SecurityEnforcementFilter</action>
|
||||
<action dev="benalex" type="add">Added filter to automate web channel requirements (eg HTTPS redirection)</action>
|
||||
<action dev="benalex" type="update">Updated JAR to Spring 1.0.1</action>
|
||||
<action dev="benalex" type="update">Updated several classes to use absolute (not relative) redirection URLs</action>
|
||||
<action dev="benalex" type="update">Refactored filters to use Spring application context lifecycle support</action>
|
||||
<action dev="benalex" type="update">Improved constructor detection of nulls in User and other key objects</action>
|
||||
<action dev="benalex" type="fix">Fixed FilterInvocation.getRequestUrl() to also include getPathInfo()</action>
|
||||
<action dev="benalex" type="fix">Fixed Contacts sample application <A></A> tags</action>
|
||||
<action dev="benalex" type="update">Established acegisecurity-developer mailing list</action>
|
||||
<action dev="benalex" type="update">Documentation improvements</action>
|
||||
</release>
|
||||
<release version="0.4" date="2004-04-03">
|
||||
<action dev="benalex" type="add">Added HTTP session authentication as an alternative to container adapters</action>
|
||||
<action dev="benalex" type="add">Added HTTP request security interceptor (offers considerable flexibility)</action>
|
||||
<action dev="fbos" type="add">Added security taglib</action>
|
||||
<action dev="benalex" type="add">Added Clover test coverage instrumentation (currently 97.2%)</action>
|
||||
<action dev="benalex" type="add">Added support for Catalina (Tomcat) 4.1.30 to in-container integration tests</action>
|
||||
<action dev="benalex" type="add">Added HTML test and summary reporting to in-container integration tests</action>
|
||||
<action dev="benalex" type="update">Updated JARs to Spring Framework release 1.0, with associated AOP changes</action>
|
||||
<action dev="benalex" type="update">Updated to Apache License version 2.0</action>
|
||||
<action dev="benalex" type="update">Updated copyright with permission of past contributors</action>
|
||||
<action dev="benalex" type="update">Refactored unit tests to use mock objects and focus on a single class each</action>
|
||||
<action dev="benalex" type="update">Refactored many classes to enable insertion of mock objects during testing</action>
|
||||
<action dev="benalex" type="update">Refactored core classes to ease support of new secure object types</action>
|
||||
<action dev="benalex" type="update">Changed package layout to better describe the role of contained items</action>
|
||||
<action dev="benalex" type="update">Changed the extractor to extract additional classes from JBoss and Catalina</action>
|
||||
<action dev="benalex" type="update">Changed Jetty container adapter configuration (see reference documentation)</action>
|
||||
<action dev="benalex" type="update">Improved AutoIntegrationFilter handling of deployments without JBoss JARs</action>
|
||||
<action dev="benalex" type="fix">Fixed case handling support in data access object authentication provider</action>
|
||||
<action dev="benalex" type="update">Documentation improvements</action>
|
||||
</release>
|
||||
<release version="0.3" date="2004-03-18">
|
||||
<action dev="benalex" type="add">Added "in container" unit test system for container adapters and sample app</action>
|
||||
<action dev="benalex" type="add">Added library extractor tool to reduce the "with deps" ZIP release sizes</action>
|
||||
<action dev="benalex" type="add">Added unit test to the attributes sample</action>
|
||||
<action dev="benalex" type="add">Added Jalopy source formatting</action>
|
||||
<action dev="benalex" type="update">Modified all files to use net.sf.acegisecurity namespace</action>
|
||||
<action dev="benalex" type="update">Renamed springsecurity.xml to acegisecurity.xml for consistency</action>
|
||||
<action dev="benalex" type="update">Reduced length of ZIP and JAR filenames</action>
|
||||
<action dev="benalex" type="update">Clarified licenses and sources for all included libraries</action>
|
||||
<action dev="benalex" type="update">Updated documentation to reflect new file and package names</action>
|
||||
<action dev="benalex" type="update">Setup Sourceforge.net project and added to CVS etc</action>
|
||||
</release>
|
||||
<release version="0.2" date="2004-03-10">
|
||||
<action dev="benalex" type="add">Added Commons Attributes support and sample (thanks to Cameron Braid)</action>
|
||||
<action dev="benalex" type="add">Added JBoss container adapter</action>
|
||||
<action dev="benalex" type="add">Added Resin container adapter</action>
|
||||
<action dev="benalex" type="add">Added JDBC DAO authentication provider</action>
|
||||
<action dev="benalex" type="add">Added several filter implementations for container adapter integration</action>
|
||||
<action dev="benalex" type="add">Added SecurityInterceptor startup time validation of ConfigAttributes</action>
|
||||
<action dev="benalex" type="add">Added more unit tests</action>
|
||||
<action dev="benalex" type="update">Refactored ConfigAttribute to interface and added concrete implementation</action>
|
||||
<action dev="benalex" type="update">Enhanced diagnostics information provided by sample application debug.jsp</action>
|
||||
<action dev="benalex" type="update">Modified sample application for wider container portability (Resin, JBoss)</action>
|
||||
<action dev="benalex" type="fix">Fixed switch block in voting decision manager implementations</action>
|
||||
<action dev="benalex" type="update">Removed Spring MVC interceptor for container adapter integration</action>
|
||||
<action dev="benalex" type="update">Documentation improvements</action>
|
||||
</release>
|
||||
<release version="0.1" date="2004-03-03">
|
||||
<action dev="benalex" type="add">Initial public release</action>
|
||||
</release>
|
||||
</body>
|
||||
</document>
|
|
@ -0,0 +1,239 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<document>
|
||||
<properties>
|
||||
<title>Acegi Security System for Spring</title>
|
||||
</properties>
|
||||
|
||||
|
||||
<body>
|
||||
<hr />
|
||||
<section name="What is Acegi Security?">
|
||||
<hr />
|
||||
<p>Acegi Security is a powerful, flexible security solution for enterprise software,
|
||||
with a particular emphasis on applications that use
|
||||
<a href="http://www.springframework.org/">Spring</a>. Using Acegi Security provides your
|
||||
applications with comprehensive authentication, authorization, instance-based access control,
|
||||
channel security and human user detection capabilities.
|
||||
</p>
|
||||
</section>
|
||||
|
||||
|
||||
<section name="Key Features">
|
||||
<ul>
|
||||
<li><b>Stable and mature.</b>
|
||||
Acegi Security 1.0.0 was released in May 2006 after
|
||||
more than two and a half years of use in large production software projects, 70,000+ downloads
|
||||
and hundreds of community contributions.
|
||||
In terms of release numbering, we also use the <a
|
||||
href="http://apr.apache.org/versioning.html">Apache APR Project
|
||||
Versioning Guidelines</a> so that you can easily identify release
|
||||
compatibility.
|
||||
</li>
|
||||
<li><b>Well documented:</b> All APIs are fully documented using
|
||||
<a href="http://acegisecurity.org/multiproject/acegi-security/apidocs/index.html">JavaDoc</a>,
|
||||
with almost 100 pages of
|
||||
<a href="reference.html">Reference Guide</a> documentation providing an easy-to-follow
|
||||
introduction. Even more documentation is provided on this web site, as
|
||||
shown in the left hand navigation sidebar.<br /><br />
|
||||
</li>
|
||||
<li><B>Fast results:</B> View our <a href="suggested.html">suggested steps</a>
|
||||
for the fastest way to develop complex, security-compliant applications.<br /><br />
|
||||
</li>
|
||||
<li><B>Enterprise-wide single sign on:</B> Using JA-SIG's open
|
||||
source <A href="http://www.ja-sig.org/products/cas/">Central Authentication
|
||||
Service</A> (CAS), the Acegi Security can participate
|
||||
in an enterprise-wide single sign on environment. You no longer need
|
||||
every web application to have its own authentication database. Nor are
|
||||
you restricted to single sign on across a single web container. Advanced
|
||||
single sign on features like proxy support and forced refresh of logins
|
||||
are supported by both CAS and Acegi Security.<br /><br />
|
||||
</li>
|
||||
<li><B>Reuses your Spring expertise:</B> We use Spring application
|
||||
contexts for all configuration, which should help Spring developers get
|
||||
up-to-speed nice and quickly.<br /><br />
|
||||
</li>
|
||||
<li><B>Domain object instance security:</B> In many applications it's
|
||||
desirable to define Access Control Lists (ACLs) for individual domain
|
||||
object instances. We provide a comprehensive ACL package with features
|
||||
including integer bit masking, permission inheritence (including
|
||||
blocking), a JDBC-backed ACL repository, caching and a pluggable,
|
||||
interface-driven design.<br /><br />
|
||||
</li>
|
||||
<li><B>Non-intrusive setup:</B> The entire security system can operate
|
||||
within a single web application using the provided filters. There is no
|
||||
need to make special changes or deploy libraries to your Servlet or EJB
|
||||
container.<br /><br />
|
||||
</li>
|
||||
<li><B>Full (but optional) container integration:</B> The credential
|
||||
collection and authorization capabilities of your Servlet or EJB
|
||||
container can be fully utilised via included "container adapters". We
|
||||
currently support Catalina (Tomcat), Jetty, JBoss and Resin, with
|
||||
additional containers easily added.<br /><br />
|
||||
</li>
|
||||
<li><B>Keeps your objects free of security code:</B> Many applications
|
||||
need to secure data at the bean level based on any combination of
|
||||
parameters (user, time of day, authorities held, method being invoked,
|
||||
parameter on method being invoked....). This package gives you this
|
||||
flexibility without adding security code to your Spring business
|
||||
objects.<br /><br />
|
||||
</li>
|
||||
<li><B>After invocation security:</B> Acegi Security can not only protect
|
||||
methods from being invoked in the first place, but it can also
|
||||
deal with the objects returned from the methods. Included implementations
|
||||
of after invocation security can throw an exception or mutate the returned
|
||||
object based on ACLs.<br /><br />
|
||||
</li>
|
||||
<li><B>Secures your HTTP requests as well:</B> In addition to securing
|
||||
your beans, the project also secures your HTTP requests. No longer is it
|
||||
necessary to rely on web.xml security constraints. Best of all, your
|
||||
HTTP requests can now be secured by your choice of regular expressions
|
||||
or Apache Ant paths, along with pluggable authentication, authorization
|
||||
and run-as replacement managers.<br /><br />
|
||||
</li>
|
||||
<li><B>Channel security:</B> Acegi Security can
|
||||
automatically redirect requests across an appropriate transport channel.
|
||||
Whilst flexible enough to support any of your "channel" requirements (eg
|
||||
the remote user is a human, not a robot), a common channel security
|
||||
feature is to ensure your secure pages will only be available over
|
||||
HTTPS, and your public pages only over HTTP. Acegi Security also
|
||||
supports unusual port combinations (including if accessed via an
|
||||
intermediate server like Apache) and pluggable transport decision
|
||||
managers.<br /><br />
|
||||
</li>
|
||||
<li><B>Supports HTTP BASIC authentication:</B> Perfect for remoting
|
||||
protocols or those web applications that prefer a simple browser pop-up
|
||||
(rather than a form login), Acegi Security can directly process HTTP
|
||||
BASIC authentication requests as per RFC 1945.<br /><br />
|
||||
</li>
|
||||
<li><B>Supports HTTP Digest authentication:</B> For greater security than
|
||||
offered by BASIC authentcation, Acegi Security also supports Digest Authentication
|
||||
(which never sends the user's password across the wire). Digest Authentication
|
||||
is widely supported by modern browsers. Acegi Security's implementation complies
|
||||
with both RFC 2617 and RFC 2069.<br /><br />
|
||||
</li>
|
||||
<li><B>Computer Associates Siteminder support:</B> Authentication can be
|
||||
delegated through to CA's Siteminder solution, which is common in large
|
||||
corporate environments.<br /><br />
|
||||
</li>
|
||||
<li><B>X509 (Certificate) support:</B> Acegi Security can easily read
|
||||
client-side X509 certificates for authenticating users.<br /><br />
|
||||
</li>
|
||||
<li><B>LDAP Support:</B> Do you have an LDAP directory? Acegi Security can
|
||||
happily authenticate against it.<br /><br />
|
||||
</li>
|
||||
<li><B>Tag library support:</B> Your JSP files can use our taglib
|
||||
to ensure that protected content like links and messages are only
|
||||
displayed to users holding the appropriate granted authorities. The taglib
|
||||
also fully integrates with Acegi Security's ACL services, and
|
||||
obtaining extra information about the logged-in principal.<br /><br />
|
||||
</li>
|
||||
<li><B>Configuration via IoC XML, Commons Attributes, or JDK 5 Annotations:</B> You
|
||||
select the method used to configure your security environment. The
|
||||
project supports configuration via Spring application contexts, as well
|
||||
as Jakarta Commons Attributes and Java 5's annotations feature. Some users
|
||||
(such as those building content management systems) pull configuration data
|
||||
from a database, which exemplifies Acegi Security's flexible configuration
|
||||
metadata system.<br /><br />
|
||||
</li>
|
||||
<li><B>Various authentication backends:</B> We include the ability to
|
||||
retrieve your user and granted authority definitions from an XML
|
||||
file, JDBC datasource or Properties file. Alternatively, you can implement the
|
||||
single-method UserDetailsService interface and obtain authentication details from
|
||||
anywhere you like.<br /><br />
|
||||
</li>
|
||||
<li><B>Event support:</B> Building upon Spring's
|
||||
<CODE>ApplicationEvent</CODE> services, you can write your own listeners
|
||||
for authentication-related events, along with authorisation-related events.
|
||||
This enables you to implement account lockout and audit log systems, with
|
||||
complete decoupling from Acegi Security code.<br /><br />
|
||||
</li>
|
||||
<li><B>Easy integration with existing databases:</B> Our implementations
|
||||
have been designed to make it very easy to use your existing
|
||||
authentication schema and data (without modification). Of course,
|
||||
you can also provide your own Data Access Object if you wish.<br /><br />
|
||||
</li>
|
||||
<li><B>Caching:</B> Acegi Security integrates with Spring's <A
|
||||
href="http://ehcache.sourceforge.net/">EHCACHE</A> factory.
|
||||
This flexibility means your database (or other authentication
|
||||
repository) is not repeatedly queried for authentication
|
||||
information.<br /><br />
|
||||
</li>
|
||||
<li><B>Pluggable architecture:</B> Every critical aspect of the package
|
||||
has been modelled using high cohesion, loose coupling, interface-driven
|
||||
design principles. You can easily replace, customise or extend parts of
|
||||
the package.<br /><br />
|
||||
</li>
|
||||
<li><B>Startup-time validation:</B> Every critical object dependency and
|
||||
configuration parameter is validated at application context startup
|
||||
time. Security configuration errors are therefore detected early and
|
||||
corrected quickly.<br /><br />
|
||||
</li>
|
||||
<li><B>Remoting support:</B> Does your project use a rich client? Not a
|
||||
problem. Acegi Security integrates with standard Spring remoting
|
||||
protocols, because it automatically processes the HTTP BASIC
|
||||
authentication headers they present. Add our BASIC authentication filter
|
||||
to your web.xml and you're done. You can also easily use RMI or Digest
|
||||
authentication for your rich clients with a simple configuration statement.<br /><br />
|
||||
</li>
|
||||
<li><B>Advanced password encoding:</B> Of course, passwords in your
|
||||
authentication repository need not be in plain text. We support both SHA
|
||||
and MD5 encoding, and also pluggable "salt" providers to maximise
|
||||
password security. Acegi Security doesn't even need to see the password
|
||||
if your backend can use a bind-based strategy for authentication (such as
|
||||
an LDAP directory, or a database login).<br /><br />
|
||||
</li>
|
||||
<li><B>Run-as replacement:</B> The system fully supports
|
||||
temporarily replacing the authenticated principal for the duration of the web
|
||||
request or bean invocation. This enables you to build public-facing
|
||||
object tiers with different security configurations than your backend
|
||||
objects.<br /><br />
|
||||
</li>
|
||||
<li><B>Transparent security propagation:</B> Acegi Security can automatically
|
||||
transfer its core authentication information from one machine to another,
|
||||
using a variety of protocols including RMI and Spring's HttpInvoker.<br /><br />
|
||||
</li>
|
||||
<li><B>Compatible with HttpServletRequest's security methods:</B> Even though
|
||||
Acegi Security can deliver authentication using a range of pluggable mechanisms
|
||||
(most of which require no web container configuration), we allow you to access
|
||||
the resulting Authentication object via the getRemoteUser() and other
|
||||
security methods on HttpServletRequest.<br /><br />
|
||||
</li>
|
||||
<li><B>Unit tests:</B> A must-have of any quality security project, unit
|
||||
tests are included. Our unit test coverage is very high, as shown in the
|
||||
<a href="multiproject/acegi-security/clover/index.html">coverage report</a>.<br /><br />
|
||||
</li>
|
||||
<li><B>Built by Maven:</B> This assists you in effectively reusing the Acegi
|
||||
Security artifacts in your own Maven-based projects.<br /><br />
|
||||
</li>
|
||||
<li><B>Supports your own unit tests:</B> We provide a number of classes
|
||||
that assist with your own unit testing of secured business objects. For
|
||||
example, you can change the authentication identity and its associated
|
||||
granted authorities directly within your test methods.<br /><br />
|
||||
</li>
|
||||
<li><B>Peer reviewed:</B> Whilst nothing is ever completely secure,
|
||||
using an open source security package leverages the continuous design
|
||||
and code quality improvements that emerge from peer review.<br /><br />
|
||||
</li>
|
||||
<li><B>Community:</B> Well-known for its supportive community, Acegi Security
|
||||
has an active group of developers and users. Visit our project resources (below)
|
||||
to access these services.<br /><br />
|
||||
</li>
|
||||
<li><B>Apache license.</B> You can confidently use Acegi Security in your project.<br /><br /></li>
|
||||
|
||||
</ul><br />
|
||||
|
||||
|
||||
</section>
|
||||
|
||||
<section name="Project Resources">
|
||||
<p>
|
||||
<A href="http://forum.springframework.org/"><B>Support Forums</B></A><br /><br />
|
||||
<A href="mail-lists.html"><B>Developer Mailing List</B></A><br /><br />
|
||||
<A href="downloads.html"><B>Downloads</B></A>
|
||||
</p>
|
||||
</section>
|
||||
|
||||
</body>
|
||||
|
||||
</document>
|
|
@ -0,0 +1,69 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<!--
|
||||
* ========================================================================
|
||||
*
|
||||
* Copyright 2004 Acegi Technology Pty Limited
|
||||
*
|
||||
* Licensed 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
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* ========================================================================
|
||||
-->
|
||||
|
||||
<document>
|
||||
|
||||
<properties>
|
||||
<title>Reference Documentation</title>
|
||||
</properties>
|
||||
|
||||
<body>
|
||||
<section name="Reference Documentation">
|
||||
|
||||
<subsection name="Overview of the Reference Documentation">
|
||||
<table>
|
||||
<tr><th>Document</th><th>Description</th></tr>
|
||||
|
||||
<!-- disabled by Ben Alex on 9 April 2005 as it is still not auto-updating on Monkey Machine nightly build
|
||||
<tr>
|
||||
<td>
|
||||
<a href="docbook/index.html">Reference Guide HTML One Page per Chapter</a>
|
||||
</td>
|
||||
<td>
|
||||
The reference guide using one page per chapter.
|
||||
</td>
|
||||
</tr>
|
||||
-->
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<a href="docbook/acegi.html">Reference Guide HTML Single Page</a>
|
||||
</td>
|
||||
<td>
|
||||
The reference guide in a single html page.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<a href="docbook/acegi.pdf">Reference Guide PDF</a>
|
||||
</td>
|
||||
<td>
|
||||
The PDF version of the reference guide.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</subsection>
|
||||
</section>
|
||||
</body>
|
||||
</document>
|
Loading…
Reference in New Issue