At line 3 changed 1 line. |
The purpose of this page is to describe what I did to integrate Acegi Security into 1.8. Hopefull you can use this to change your pre-1.8 applications to Acegi Security if you like. The nice thing about migrating to Acegi Security is your application becomes more portable and you don't have to worry about configuring your application server. Also, there weren't many code changes involved in the integration process - which proves Acegi Security works very well with all the existing code that talks to the security methods of the Servlet API (i.e. request.isUserInRole(), etc.) |
The purpose of this page is to describe what we did to integrate Acegi Security into 1.8. Hopefully you can use this to change your pre-1.8 applications to Acegi Security if you like. The nice thing about migrating to Acegi Security is your application becomes more portable and you don't have to worry about configuring your application server. Also, there weren't many code changes involved in the integration process - which proves Acegi Security works very well with all the existing code that talks to the security methods of the Servlet API (i.e. request.isUserInRole(), etc.) |
At line 5 changed 1 line. |
<a href="#PartII">Part II</a> of this tutorial shows you how to remove Acegi Security from AppFuse and revert back to Container-Managed Authentication (CMA). However, this might not be a necessary step if you want to use CMA because Acegi Security has a number of [Container Adapters|http://acegisecurity.sourceforge.net/docbook/acegi.html#security-container-adapters] available. |
<a href="#part2">Part II</a> of this tutorial shows you how to remove Acegi Security from AppFuse and revert back to Container-Managed Authentication (CMA). However, this might not be a necessary step if you want to use CMA because Acegi Security has a number of [Container Adapters|http://acegisecurity.sourceforge.net/docbook/acegi.html#security-container-adapters] available. |
At line 7 changed 1 line. |
<div class="note" style="margin: 10px; background-color: #fcc">__WARNING:__ It's likely that AppFuse will use more of Acegi Security features (i.e. Remember Me and Password Encryption) in 1.9+. Therefore, the instructions in Part II only apply to AppFuse 1.8.</div> |
<div class="note" style="background-color: #fcc">__WARNING:__ It's likely that AppFuse will use more of Acegi Security features (i.e. Remember Me and Password Encryption) in 1.9+. Therefore, the instructions in Part II only apply to AppFuse 1.8.</div> |
At line 21 removed 8 lines. |
!Table of Contents - Part II |
* [2.1|20] Remove Acegi Security files from your project |
* [2.2|21] Remove filter and its filter-mapping |
* [2.3|22] Add web-security.xml to metadata/web |
* [2.4|23] Add logic to detect disabled users (optional) |
* [2.5|24] Remove Acegi Security's logging settings (optional) |
* [2.6|25] Add code to LoginServlet.java to prevent duplicate logins |
|
At line 32 changed 2 lines. |
* [acegi-security-0.8.1.jar|https://appfuse.dev.java.net/source/browse/*checkout*/appfuse/lib/spring-1.2-rc1/acegi-security-0.8.1.jar] |
* [commons-codec.jar|https://appfuse.dev.java.net/source/browse/*checkout*/appfuse/lib/spring-1.2-rc1/commons-codec.jar] |
* [acegi-security-0.8.2.jar|https://appfuse.dev.java.net/source/browse/*checkout*/appfuse/lib/spring-1.2/acegi-security-0.8.2.jar] |
* [commons-codec.jar|https://appfuse.dev.java.net/source/browse/*checkout*/appfuse/lib/spring-1.2/commons-codec.jar] |
At line 76 added 1 line. |
|
At line 128 added 1 line. |
log4j.logger.net.sf.acegisecurity.intercept.event.LoggerListener=WARN |
At line 170 removed 2 lines. |
|
|
At line 174 removed 1 line. |
<p> </p> |
At line 167 added 2 lines. |
<a name="part2"></a> |
<h2 style="background-color: white; border: 0; margin-left: 0">Part II - Removing Acegi and reverting to CMA</h2> |
At line 177 removed 2 lines. |
<h2>Removing Acegi and reverting to CMA</h2> |
|
At line 172 added 8 lines. |
!Table of Contents - Part II |
* [2.1|20] Remove Acegi Security files from your project |
* [2.2|21] Remove filter and its filter-mapping |
* [2.3|22] Add web-security.xml to metadata/web |
* [2.4|23] Add logic to detect disabled users (optional) |
* [2.5|24] Remove Acegi Security's logging settings (optional) |
* [2.6|25] Add code to LoginServlet.java to prevent duplicate logins |
|
At line 194 changed 1 line. |
[{Java2HmtlPlugin |
[{Java2HtmlPlugin |
At line 200 changed 1 line. |
response.sendRedirect(request.getContextPath() + "/logout.jsp?error=true"); |
request.getSession().invalidate(); |
response.sendRedirect(request.getContextPath() + "/loginError.jsp"); |
At line 235 changed 2 lines. |
---- |
Issues or problems with these instructions? If so, please send your questions to [users-AT-appfuse.dev.java.net|mailto:[email protected]?subject=AppFuse Authentication Problems]. |
''Issues or problems with these instructions? If so, please send your questions to [users-AT-appfuse.dev.java.net|mailto:[email protected]?subject=AppFuse Authentication Problems].'' |