← Back to team overview

dhis2-devs team mailing list archive

Re: Switch from Acegi to Spring Security

 

Hi,

Yes, branch with Struts2 upgrade had Spring Security as well. All was fine, except all security rules were not modular, e.g. all rules for all modules had to be in one XML file. This was week point for my implementation, but I used ss API, not custom implementation like we see in Acegy implementation in DHIS - placing security rule in action definition. After student project started I stopped working further on that.

regards,
murod




________________________________
From: Saptarshi Purkayastha <sunbiz@xxxxxxxxx>
To: Lars Helge Øverland <larshelge@xxxxxxxxx>
Cc: dlzarb@xxxxxxxxxx; Anders Aarsæther <andebaa@xxxxxxxxxx>; DHIS 2 developers <dhis2-devs@xxxxxxxxxxxxxxxxxxx>; Aslak Eide <aslakwe@xxxxxxxxxx>; moa@xxxxxxxxxx; Magnus Korvald <magnus.korvald@xxxxxxxxxxx>
Sent: Thu, January 28, 2010 10:40:16 PM
Subject: Re: [Dhis2-devs] Switch from Acegi to Spring Security

awesome... hadn't Murod done it on his branch as well??

---
Regards,
Saptarshi PURKAYASTHA
Director R & D, HISP India
Health Information Systems Programme

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE



2010/1/28 Lars Helge Øverland <larshelge@xxxxxxxxx>

>
>
>Hi, 
>
>
>I have just merged in work from a student group at inf5750 which did the migration from Acegi to Spring Security. Thanks to Dlzar, Aslak, Anders, Magnus, Mo for nice work.
>
>
>This is good news as there are now no more out-dated frameworks inside DHIS 2.
>
>
>Migrating web-modules only requires a minor change in WEB.XML (have a look in any WEB.XML in trunk if in doubt) :
>
>
>
>
>
>   <filter>
>-    <filter-name>SecurityFilterChain</filter-name>
>-    <filter-class>org.acegisecurity.util.FilterToBeanProxy</filter-class>
>-    <init-param>
>-      <param-name>targetBean</param-name>
>-      <param-value>org.acegisecurity.util.FilterChainProxy</param-value>
>-    </init-param>
>+    <filter-name>filterChainProxy</filter-name>
>+    <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
>   </filter>
>   <filter-mapping>
>-    <filter-name>SecurityFilterChain</filter-name>
>+    <filter-name>filterChainProxy</filter-name>
>     <url-pattern>/*</url-pattern>
>   </filter-mapping>
>
>Lars
>
>
>
>
>_______________________________________________
>>Mailing list: https://launchpad.net/~dhis2-devs
>>Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>>Unsubscribe : https://launchpad.net/~dhis2-devs
>>More help   : https://help.launchpad.net/ListHelp
>
>



      

References