| 317 |
ashish |
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
2 |
|
|
|
3 |
<web-app id="starter" version="2.4"
|
|
|
4 |
xmlns="http://java.sun.com/xml/ns/j2ee"
|
|
|
5 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
6 |
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
|
|
|
7 |
|
|
|
8 |
<display-name>Shop2020.in</display-name>
|
|
|
9 |
|
|
|
10 |
<!-- Filters -->
|
|
|
11 |
<filter>
|
|
|
12 |
<filter-name>action2</filter-name>
|
|
|
13 |
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
|
|
|
14 |
</filter>
|
|
|
15 |
|
|
|
16 |
<filter-mapping>
|
|
|
17 |
<filter-name>action2</filter-name>
|
| 395 |
rajveer |
18 |
<url-pattern>/*</url-pattern>
|
| 317 |
ashish |
19 |
</filter-mapping>
|
| 973 |
rajveer |
20 |
<!-- Just added for initial security reasons, need to remove once internal testing is over -->
|
|
|
21 |
<security-constraint>
|
|
|
22 |
<web-resource-collection>
|
|
|
23 |
<web-resource-name>Wildcard means whole app requires authentication</web-resource-name>
|
|
|
24 |
<url-pattern>/register</url-pattern>
|
|
|
25 |
<http-method>GET</http-method>
|
|
|
26 |
<http-method>POST</http-method>
|
|
|
27 |
</web-resource-collection>
|
|
|
28 |
<auth-constraint>
|
|
|
29 |
<role-name>admin</role-name>
|
|
|
30 |
</auth-constraint>
|
| 317 |
ashish |
31 |
|
| 973 |
rajveer |
32 |
<user-data-constraint>
|
|
|
33 |
<!-- transport-guarantee can be CONFIDENTIAL, INTEGRAL, or NONE -->
|
|
|
34 |
<transport-guarantee>NONE</transport-guarantee>
|
|
|
35 |
</user-data-constraint>
|
|
|
36 |
</security-constraint>
|
|
|
37 |
<security-role>
|
|
|
38 |
<role-name>admin</role-name>
|
|
|
39 |
</security-role>
|
|
|
40 |
<login-config>
|
|
|
41 |
<auth-method>BASIC</auth-method>
|
|
|
42 |
</login-config>
|
|
|
43 |
<!-- Just added for initial security reasons, need to remove once internal testing is over -->
|
|
|
44 |
|
| 317 |
ashish |
45 |
</web-app>
|