diff --git a/navalplanner-webapp/pom.xml b/navalplanner-webapp/pom.xml index ee6bb8fba..e1f8ba15e 100644 --- a/navalplanner-webapp/pom.xml +++ b/navalplanner-webapp/pom.xml @@ -64,6 +64,24 @@ org.springframework spring-test + + + org.springframework.security + spring-security-core + + + org.springframework.security + spring-security-acl + + + org.springframework.security + spring-security-core-tiger + + + + org.aspectj + aspectjrt + org.beanshell bsh diff --git a/navalplanner-webapp/src/main/resources/navalplanner-webapp-spring-security-config.xml b/navalplanner-webapp/src/main/resources/navalplanner-webapp-spring-security-config.xml new file mode 100644 index 000000000..cae179236 --- /dev/null +++ b/navalplanner-webapp/src/main/resources/navalplanner-webapp-spring-security-config.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/navalplanner-webapp/src/main/webapp/WEB-INF/web.xml b/navalplanner-webapp/src/main/webapp/WEB-INF/web.xml index f265c7170..90773ac82 100644 --- a/navalplanner-webapp/src/main/webapp/WEB-INF/web.xml +++ b/navalplanner-webapp/src/main/webapp/WEB-INF/web.xml @@ -14,7 +14,12 @@ --> contextConfigLocation - classpath*:/navalplanner-business-spring-config.xml classpath:/navalplanner-webapp-spring-config.xml classpath*:/navalplanner-override-spring-config.xml + + classpath*:/navalplanner-business-spring-config.xml + classpath:/navalplanner-webapp-spring-config.xml + classpath*:/navalplanner-override-spring-config.xml + classpath:/navalplanner-webapp-spring-security-config.xml + @@ -41,6 +46,17 @@ + + + springSecurityFilterChain + org.springframework.web.filter.DelegatingFilterProxy + + + + springSecurityFilterChain + /* + + diff --git a/navalplanner-webapp/src/main/webapp/WEB-INF/zk.xml b/navalplanner-webapp/src/main/webapp/WEB-INF/zk.xml index 0dc63a480..f6c990169 100644 --- a/navalplanner-webapp/src/main/webapp/WEB-INF/zk.xml +++ b/navalplanner-webapp/src/main/webapp/WEB-INF/zk.xml @@ -8,4 +8,17 @@ /common/event_error.zul + + + ThreadLocal Synchronization Listener + org.zkoss.zkplus.util.ThreadLocalListener + + + + ThreadLocal + + org.springframework.security.context.ThreadLocalSecurityContextHolderStrategy=contextHolder + + + diff --git a/navalplanner-webapp/src/main/webapp/common/layout/login_v01.zul b/navalplanner-webapp/src/main/webapp/common/layout/login_v01.zul index 5faefed9c..b16f6b679 100644 --- a/navalplanner-webapp/src/main/webapp/common/layout/login_v01.zul +++ b/navalplanner-webapp/src/main/webapp/common/layout/login_v01.zul @@ -24,7 +24,7 @@
- + @@ -37,6 +37,17 @@ ${i18n:_('AUTHENTICATE')} + + + + ${i18n:_('Incorrect authentication')} +
+ ]]> + + + + @@ -49,7 +60,7 @@ - + @@ -57,7 +68,7 @@ - + @@ -72,9 +83,12 @@ + + + - + diff --git a/navalplanner-webapp/src/main/webapp/common/layout/template.zul b/navalplanner-webapp/src/main/webapp/common/layout/template.zul index e1af69cff..5ab3278ed 100644 --- a/navalplanner-webapp/src/main/webapp/common/layout/template.zul +++ b/navalplanner-webapp/src/main/webapp/common/layout/template.zul @@ -37,7 +37,7 @@ ${i18n:_('user: admin')} - ${i18n:_('SIGN OUT')} + ${i18n:_('SIGN OUT')} diff --git a/pom.xml b/pom.xml index defa07a75..5d7808c69 100644 --- a/pom.xml +++ b/pom.xml @@ -261,6 +261,72 @@ spring-test 2.5.6 test +
+ + + org.springframework.security + spring-security-core + 2.0.5.RELEASE + + + org.springframework + spring-core + + + org.springframework + spring-beans + + + org.springframework + spring-context + + + org.springframework + spring-aop + + + org.springframework + spring-support + + + + + org.springframework.security + spring-security-acl + 2.0.5.RELEASE + + + org.springframework + spring-core + + + org.springframework + spring-beans + + + org.springframework + spring-context + + + org.springframework + spring-dao + + + org.springframework + spring-jdbc + + + + + org.springframework.security + spring-security-core-tiger + 2.0.5.RELEASE + + + + org.aspectj + aspectjrt + 1.5.4 net.sf.json-lib