[sword-svn] r272 - trunk/webapp/WEB-INF
scribe at www.crosswire.org
scribe at www.crosswire.org
Tue Aug 7 22:05:34 MST 2007
Author: scribe
Date: 2007-08-07 22:05:34 -0700 (Tue, 07 Aug 2007)
New Revision: 272
Added:
trunk/webapp/WEB-INF/web.xml
Log:
added security for translators
Added: trunk/webapp/WEB-INF/web.xml
===================================================================
--- trunk/webapp/WEB-INF/web.xml (rev 0)
+++ trunk/webapp/WEB-INF/web.xml 2007-08-08 05:05:34 UTC (rev 272)
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<!DOCTYPE web-app
+ PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+ "http://java.sun.com/dtd/web-app_2_3.dtd">
+
+<web-app>
+ <display-name>Welcome to CrossWire</display-name>
+ <description>
+ Welcome to CrossWire
+ </description>
+
+<security-constraint>
+ <web-resource-collection>
+ <web-resource-name>SWORDWebTranslator</web-resource-name>
+ <description> accessible by authenticated users of the tomcat role</description>
+ <url-pattern>/admin/*</url-pattern>
+ <http-method>GET</http-method>
+ <http-method>POST</http-method>
+ <http-method>PUT</http-method>
+ <http-method>DELETE</http-method>
+ </web-resource-collection>
+ <auth-constraint>
+ <description>These roles are allowed access</description>
+ <role-name>translator</role-name>
+ </auth-constraint>
+</security-constraint>
+
+<login-config>
+ <auth-method>FORM</auth-method>
+ <realm-name>SWORDWeb Translators</realm-name>
+ <form-login-config>
+ <form-login-page>/login.html</form-login-page>
+ <form-error-page>/autherr.html</form-error-page>
+ </form-login-config>
+</login-config>
+
+<security-role>
+ <description>Login for translators.</description>
+ <role-name>translator</role-name>
+</security-role>
+
+</web-app>
More information about the sword-cvs
mailing list