]> git.mxchange.org Git - pizzaservice-war.git/blobdiff - web/WEB-INF/web.xml
Template improved (easier to localize)
[pizzaservice-war.git] / web / WEB-INF / web.xml
index 288c1c7c32c450caaae32a2f6027d272e79304c7..02340ff6a86025fe2628f76358ef9810b7375abb 100644 (file)
     </servlet-mapping>
     <session-config>
         <session-timeout>
-                       30
-               </session-timeout>
+            30
+        </session-timeout>
+        <cookie-config>
+            <http-only>true</http-only>
+        </cookie-config>
     </session-config>
     <welcome-file-list>
         <welcome-file>faces/index.xhtml</welcome-file>
     </welcome-file-list>
+    <security-constraint>
+        <display-name>Constraint1</display-name>
+        <web-resource-collection>
+            <web-resource-name>admin</web-resource-name>
+            <description>Administrative Area</description>
+            <url-pattern>/faces/admin/*</url-pattern>
+        </web-resource-collection>
+        <auth-constraint>
+            <description>Administrative Area Login</description>
+        </auth-constraint>
+    </security-constraint>
+    <login-config>
+        <auth-method>BASIC</auth-method>
+        <realm-name>file</realm-name>
+    </login-config>
+    <security-role>
+        <description>Administrative role</description>
+        <role-name>admin</role-name>
+    </security-role>
 </web-app>