47 lines
1.5 KiB
XML
47 lines
1.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<web-app 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_4_0.xsd"
|
|
version="4.0">
|
|
<welcome-file-list>
|
|
<welcome-file>movieserviceservlet</welcome-file>
|
|
</welcome-file-list>
|
|
|
|
<servlet>
|
|
<servlet-name>Faces Servlet</servlet-name>
|
|
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
|
|
<load-on-startup>1</load-on-startup>
|
|
</servlet>
|
|
|
|
<servlet-mapping>
|
|
<servlet-name>Faces Servlet</servlet-name>
|
|
<url-pattern>*.xhtml</url-pattern>
|
|
</servlet-mapping>
|
|
|
|
<context-param>
|
|
<param-name>resteasy.role.based.security</param-name>
|
|
<param-value>true</param-value>
|
|
</context-param>
|
|
|
|
<security-constraint>
|
|
<web-resource-collection>
|
|
<web-resource-name>MoviesWebApp</web-resource-name>
|
|
<url-pattern>/*</url-pattern>
|
|
<http-method-omission>OPTIONS</http-method-omission>
|
|
</web-resource-collection>
|
|
<auth-constraint>
|
|
<role-name>*</role-name>
|
|
</auth-constraint>
|
|
<user-data-constraint>
|
|
<transport-guarantee>NONE</transport-guarantee> <!-- CONFIDENTIAL -> only HTTPS possible -->
|
|
</user-data-constraint>
|
|
</security-constraint>
|
|
|
|
<security-role>
|
|
<role-name>MoviesAdminRole</role-name>
|
|
</security-role>
|
|
<security-role>
|
|
<role-name>MoviesUserRole</role-name>
|
|
</security-role>
|
|
</web-app>
|