Add basic security jars to the project
authorSasha Sherstnev <a.sherstnev@dundee.ac.uk>
Thu, 5 Dec 2013 09:18:02 +0000 (09:18 +0000)
committerSasha Sherstnev <a.sherstnev@dundee.ac.uk>
Thu, 5 Dec 2013 09:18:02 +0000 (09:18 +0000)
.classpath
WEB-INF/lib/spring-security-acl-3.1.4.RELEASE.jar [new file with mode: 0644]
WEB-INF/lib/spring-security-config-3.1.4.RELEASE.jar [new file with mode: 0644]
WEB-INF/lib/spring-security-core-3.1.4.RELEASE.jar [new file with mode: 0644]
WEB-INF/lib/spring-security-taglibs-3.1.4.RELEASE.jar [new file with mode: 0644]
WEB-INF/lib/spring-security-web-3.1.4.RELEASE.jar [new file with mode: 0644]
WEB-INF/spring-security.xml [new file with mode: 0644]

index b86a25c..5931fd0 100644 (file)
@@ -24,8 +24,6 @@
        <classpathentry kind="lib" path="WEB-INF/lib/commons-logging-1.1.1.jar"/>
        <classpathentry kind="lib" path="WEB-INF/lib/spring-aop-3.2.3.RELEASE.jar"/>
        <classpathentry kind="lib" path="WEB-INF/lib/spring-beans-3.2.3.RELEASE.jar"/>
-       <classpathentry kind="lib" path="WEB-INF/lib/spring-context-3.2.3.RELEASE.jar"/>
-       <classpathentry kind="lib" path="WEB-INF/lib/spring-context-support-3.2.3.RELEASE.jar"/>
        <classpathentry kind="lib" path="WEB-INF/lib/spring-core-3.2.3.RELEASE.jar"/>
        <classpathentry kind="lib" path="WEB-INF/lib/spring-data-commons-1.5.2.RELEASE.jar"/>
        <classpathentry kind="lib" path="WEB-INF/lib/spring-data-jpa-1.3.4.RELEASE.jar"/>
        <classpathentry kind="lib" path="WEB-INF/lib/spring-tx-3.2.3.RELEASE.jar"/>
        <classpathentry kind="lib" path="WEB-INF/lib/spring-web-3.2.3.RELEASE.jar"/>
        <classpathentry kind="lib" path="WEB-INF/lib/spring-webmvc-3.2.3.RELEASE.jar" sourcepath="/home/asherstnev/.m2/repository/org/springframework/spring-webmvc/3.2.3.RELEASE/spring-webmvc-3.2.3.RELEASE-sources.jar"/>
+       <classpathentry kind="lib" path="WEB-INF/lib/spring-context-3.2.3.RELEASE.jar"/>
+       <classpathentry kind="lib" path="WEB-INF/lib/spring-context-support-3.2.3.RELEASE.jar"/>
+       <classpathentry kind="lib" path="WEB-INF/lib/spring-security-acl-3.1.4.RELEASE.jar"/>
+       <classpathentry kind="lib" path="WEB-INF/lib/spring-security-config-3.1.4.RELEASE.jar"/>
+       <classpathentry kind="lib" path="WEB-INF/lib/spring-security-core-3.1.4.RELEASE.jar"/>
+       <classpathentry kind="lib" path="WEB-INF/lib/spring-security-taglibs-3.1.4.RELEASE.jar"/>
+       <classpathentry kind="lib" path="WEB-INF/lib/spring-security-web-3.1.4.RELEASE.jar"/>
        <classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v7.0"/>
        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_45"/>
        <classpathentry kind="output" path="WEB-INF/classes"/>
diff --git a/WEB-INF/lib/spring-security-acl-3.1.4.RELEASE.jar b/WEB-INF/lib/spring-security-acl-3.1.4.RELEASE.jar
new file mode 100644 (file)
index 0000000..fef6607
Binary files /dev/null and b/WEB-INF/lib/spring-security-acl-3.1.4.RELEASE.jar differ
diff --git a/WEB-INF/lib/spring-security-config-3.1.4.RELEASE.jar b/WEB-INF/lib/spring-security-config-3.1.4.RELEASE.jar
new file mode 100644 (file)
index 0000000..8eafd04
Binary files /dev/null and b/WEB-INF/lib/spring-security-config-3.1.4.RELEASE.jar differ
diff --git a/WEB-INF/lib/spring-security-core-3.1.4.RELEASE.jar b/WEB-INF/lib/spring-security-core-3.1.4.RELEASE.jar
new file mode 100644 (file)
index 0000000..768896d
Binary files /dev/null and b/WEB-INF/lib/spring-security-core-3.1.4.RELEASE.jar differ
diff --git a/WEB-INF/lib/spring-security-taglibs-3.1.4.RELEASE.jar b/WEB-INF/lib/spring-security-taglibs-3.1.4.RELEASE.jar
new file mode 100644 (file)
index 0000000..a5ee3ab
Binary files /dev/null and b/WEB-INF/lib/spring-security-taglibs-3.1.4.RELEASE.jar differ
diff --git a/WEB-INF/lib/spring-security-web-3.1.4.RELEASE.jar b/WEB-INF/lib/spring-security-web-3.1.4.RELEASE.jar
new file mode 100644 (file)
index 0000000..a241e24
Binary files /dev/null and b/WEB-INF/lib/spring-security-web-3.1.4.RELEASE.jar differ
diff --git a/WEB-INF/spring-security.xml b/WEB-INF/spring-security.xml
new file mode 100644 (file)
index 0000000..b5f0040
--- /dev/null
@@ -0,0 +1,24 @@
+<beans:beans xmlns="http://www.springframework.org/schema/security"
+       xmlns:beans="http://www.springframework.org/schema/beans" 
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xsi:schemaLocation="http://www.springframework.org/schema/beans
+       http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
+       http://www.springframework.org/schema/security
+       http://www.springframework.org/schema/security/spring-security-3.1.xsd">
+
+       <http auto-config="true">
+               <intercept-url pattern="/home/*" access="ROLE_USER" />
+               <form-login login-page="/login" default-target-url="/welcome"
+                       authentication-failure-url="/loginfailed" />
+               <logout logout-success-url="/logout" />
+       </http>
+
+       <authentication-manager>
+               <authentication-provider>
+                       <user-service>
+                               <user name="sherstnev" password="sasha12345" authorities="ROLE_USER" />
+                       </user-service>
+               </authentication-provider>
+       </authentication-manager>
+
+</beans:beans>