1<?xml version="1.0" encoding="UTF-8"?>
2<web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">
3    <security-constraint>
4        <display-name>Everything</display-name>
5        <web-resource-collection>
6            <web-resource-name>Everything</web-resource-name>
7            <description/>
8            <url-pattern>/*</url-pattern>
9        </web-resource-collection>
10        <auth-constraint>
11            <description/>
12            <role-name>rest-monitoring</role-name>
13        </auth-constraint>
14    </security-constraint>
15
16    <welcome-file-list>
17        <welcome-file>rest/</welcome-file>
18    </welcome-file-list>
19
20    <login-config>
21        <auth-method>FORM</auth-method>
22        <realm-name>file</realm-name>
23        <form-login-config>
24            <form-login-page>/login.xhtml</form-login-page>
25            <form-error-page>/error.xhtml</form-error-page>
26        </form-login-config>
27    </login-config>
28
29    <security-role>
30        <role-name>rest-monitoring</role-name>
31    </security-role>
32</web-app>
33