[jboss-svn-commits] JBL Code SVN: r14827 - in labs/shotoku/trunk/shotoku-cache/cache-admin/src/web: WEB-INF and 1 other directory.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Mon Sep 3 07:00:08 EDT 2007


Author: adamw
Date: 2007-09-03 07:00:08 -0400 (Mon, 03 Sep 2007)
New Revision: 14827

Added:
   labs/shotoku/trunk/shotoku-cache/cache-admin/src/web/WEB-INF/jboss-web.xml
   labs/shotoku/trunk/shotoku-cache/cache-admin/src/web/roles.properties
   labs/shotoku/trunk/shotoku-cache/cache-admin/src/web/users.properties
Modified:
   labs/shotoku/trunk/shotoku-cache/cache-admin/src/web/WEB-INF/web.xml
Log:
Adding security

Added: labs/shotoku/trunk/shotoku-cache/cache-admin/src/web/WEB-INF/jboss-web.xml
===================================================================
--- labs/shotoku/trunk/shotoku-cache/cache-admin/src/web/WEB-INF/jboss-web.xml	                        (rev 0)
+++ labs/shotoku/trunk/shotoku-cache/cache-admin/src/web/WEB-INF/jboss-web.xml	2007-09-03 11:00:08 UTC (rev 14827)
@@ -0,0 +1,9 @@
+<?xml version='1.0' encoding='UTF-8' ?>
+
+<!DOCTYPE jboss-web
+        PUBLIC "-//JBoss//DTD Web Application 2.3V2//EN"
+        "http://www.jboss.org/j2ee/dtd/jboss-web_3_2.dtd">
+
+<jboss-web>
+    <security-domain>java:/jaas/shotoku</security-domain>
+</jboss-web>
\ No newline at end of file

Modified: labs/shotoku/trunk/shotoku-cache/cache-admin/src/web/WEB-INF/web.xml
===================================================================
--- labs/shotoku/trunk/shotoku-cache/cache-admin/src/web/WEB-INF/web.xml	2007-09-03 10:56:41 UTC (rev 14826)
+++ labs/shotoku/trunk/shotoku-cache/cache-admin/src/web/WEB-INF/web.xml	2007-09-03 11:00:08 UTC (rev 14827)
@@ -121,4 +121,23 @@
 		<welcome-file>index.html</welcome-file>
 	</welcome-file-list>
 
+	<!-- Security -->
+
+	<security-constraint>
+        <web-resource-collection>
+            <web-resource-name>All resources</web-resource-name>
+            <url-pattern>/*</url-pattern>
+        </web-resource-collection>
+        <auth-constraint>
+            <role-name>ShotokuCacheAdmin</role-name>
+        </auth-constraint>
+    </security-constraint>
+
+    <security-role>
+        <role-name>ShotokuCacheAdmin</role-name>
+    </security-role>
+
+    <login-config>
+        <auth-method>BASIC</auth-method>
+    </login-config>
 </web-app>

Added: labs/shotoku/trunk/shotoku-cache/cache-admin/src/web/roles.properties
===================================================================
--- labs/shotoku/trunk/shotoku-cache/cache-admin/src/web/roles.properties	                        (rev 0)
+++ labs/shotoku/trunk/shotoku-cache/cache-admin/src/web/roles.properties	2007-09-03 11:00:08 UTC (rev 14827)
@@ -0,0 +1 @@
+ShotokuCacheAdmin=ShotokuCacheAdmin
\ No newline at end of file

Added: labs/shotoku/trunk/shotoku-cache/cache-admin/src/web/users.properties
===================================================================
--- labs/shotoku/trunk/shotoku-cache/cache-admin/src/web/users.properties	                        (rev 0)
+++ labs/shotoku/trunk/shotoku-cache/cache-admin/src/web/users.properties	2007-09-03 11:00:08 UTC (rev 14827)
@@ -0,0 +1 @@
+ShotokuCacheAdmin=ShotokuCacheAdmin
\ No newline at end of file




More information about the jboss-svn-commits mailing list