Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
- <display-name>webdesktop</display-name>
- <welcome-file-list>
- <welcome-file>desktop.html</welcome-file>
- </welcome-file-list>
- <servlet>
- <description></description>
- <display-name>LoginServlet</display-name>
- <servlet-name>LoginServlet</servlet-name>
- <servlet-class>com.auth.LoginServlet</servlet-class>
- </servlet>
- <servlet-mapping>
- <servlet-name>LoginServlet</servlet-name>
- <url-pattern>/login/</url-pattern>
- </servlet-mapping>
- <servlet>
- <description></description>
- <display-name>LogoutServlet</display-name>
- <servlet-name>LogoutServlet</servlet-name>
- <servlet-class>com.auth.LogoutServlet</servlet-class>
- </servlet>
- <servlet-mapping>
- <servlet-name>LogoutServlet</servlet-name>
- <url-pattern>/logout/</url-pattern>
- </servlet-mapping>
- <login-config>
- <auth-method>FORM</auth-method>
- <form-login-config>
- <form-login-page>/login.html</form-login-page>
- <form-error-page>/login-failed.html</form-error-page>
- </form-login-config>
- </login-config>
- <security-constraint>
- <web-resource-collection>
- <web-resource-name>Wildcard means whole app requires authentication</web-resource-name>
- <url-pattern>/*</url-pattern>
- <http-method>GET</http-method>
- <http-method>POST</http-method>
- </web-resource-collection>
- <auth-constraint>
- <role-name>site-users</role-name>
- </auth-constraint>
- <user-data-constraint>
- <transport-guarantee>CONFIDENTIAL</transport-guarantee>
- </user-data-constraint>
- </security-constraint>
- <security-role>
- <description>This logical role includes all authenticated users</description>
- <role-name>site-users</role-name>
- </security-role>
- </web-app>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement