]> git.mxchange.org Git - pizzaservice-war.git/blobdiff - web/WEB-INF/web.xml
Renamed after naming convention: admin_foo.xhtml in admin area, but foo.xhtml is...
[pizzaservice-war.git] / web / WEB-INF / web.xml
index 1cc23f32f58aeeb53405c89a47b3c2434b016c60..02340ff6a86025fe2628f76358ef9810b7375abb 100644 (file)
     <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>