Switch from Acegi to Spring Security

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

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@gmail.com

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@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

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@gmail.com
To: Lars Helge Øverland larshelge@gmail.com
Cc: dlzarb@ifi.uio.no; Anders Aarsæther andebaa@ifi.uio.no; DHIS 2 developers dhis2-devs@lists.launchpad.net; Aslak Eide aslakwe@ifi.uio.no; moa@ifi.uio.no; Magnus Korvald magnus.korvald@usit.uio.no
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@gmail.com

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@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp