# HG changeset patch # User ymh # Date 1365180031 -7200 # Node ID 2f3ef07f3eefd49510d06ba75355a6bec216add1 # Parent 1e98ff2efa8da4623905f321fab3055efab9c3fd add basic security for admin pages diff -r 1e98ff2efa8d -r 2f3ef07f3eef server/pom.xml --- a/server/pom.xml Fri Apr 05 14:39:59 2013 +0200 +++ b/server/pom.xml Fri Apr 05 18:40:31 2013 +0200 @@ -254,21 +254,6 @@ spring-web ${spring-version} - org.springframework spring-test diff -r 1e98ff2efa8d -r 2f3ef07f3eef server/src/main/webapp/WEB-INF/applicationContext.xml --- a/server/src/main/webapp/WEB-INF/applicationContext.xml Fri Apr 05 14:39:59 2013 +0200 +++ b/server/src/main/webapp/WEB-INF/applicationContext.xml Fri Apr 05 18:40:31 2013 +0200 @@ -5,7 +5,7 @@ xmlns:util="http://www.springframework.org/schema/util" xmlns:mvc="http://www.springframework.org/schema/mvc" xsi:schemaLocation=" - http://www.springframework.org/schema/beans + http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd diff -r 1e98ff2efa8d -r 2f3ef07f3eef server/src/main/webapp/WEB-INF/renkan_users.properties --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/server/src/main/webapp/WEB-INF/renkan_users.properties Fri Apr 05 18:40:31 2013 +0200 @@ -0,0 +1,3 @@ +user.admin.name = admin +#user.admin.password = admin +user.admin.password = 8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918 \ No newline at end of file diff -r 1e98ff2efa8d -r 2f3ef07f3eef server/src/main/webapp/WEB-INF/spring-security.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/server/src/main/webapp/WEB-INF/spring-security.xml Fri Apr 05 18:40:31 2013 +0200 @@ -0,0 +1,46 @@ + + + + WEB-INF/renkan_users.properties + classpath:renkan_users_run.properties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff -r 1e98ff2efa8d -r 2f3ef07f3eef server/src/main/webapp/WEB-INF/web.xml --- a/server/src/main/webapp/WEB-INF/web.xml Fri Apr 05 14:39:59 2013 +0200 +++ b/server/src/main/webapp/WEB-INF/web.xml Fri Apr 05 18:40:31 2013 +0200 @@ -13,7 +13,7 @@ contextConfigLocation - /WEB-INF/applicationContext.xml + /WEB-INF/applicationContext.xml, /WEB-INF/spring-security.xml cometd @@ -91,4 +91,12 @@ spring / + + springSecurityFilterChain + org.springframework.web.filter.DelegatingFilterProxy + + + springSecurityFilterChain + /* + \ No newline at end of file