Skip to content

Commit 57e7add

Browse files
authored
Create web.xml
1 parent 914d424 commit 57e7add

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

  • web/security/tomcat/containerloginform
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
4+
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" version="3.1">
5+
6+
<security-constraint>
7+
<web-resource-collection>
8+
<web-resource-name>admin</web-resource-name>
9+
<url-pattern>/admin*</url-pattern>
10+
<http-method>GET</http-method>
11+
</web-resource-collection>
12+
<auth-constraint>
13+
<role-name>admin</role-name>
14+
</auth-constraint>
15+
16+
<user-data-constraint>
17+
<!-- transport-guarantee can be CONFIDENTIAL, INTEGRAL, or NONE -->
18+
<transport-guarantee>NONE</transport-guarantee>
19+
</user-data-constraint>
20+
</security-constraint>
21+
22+
<login-config>
23+
<auth-method>FORM</auth-method>
24+
<realm-name>file</realm-name>
25+
<form-login-config>
26+
<form-login-page>/WEB-INF/login.jsp</form-login-page>
27+
<form-error-page>/WEB-INF/error.jsp</form-error-page>
28+
</form-login-config>
29+
</login-config>
30+
31+
</web-app>

0 commit comments

Comments
 (0)