Create web.xml for separate sp context
[java-idp.git] / webAppConfig / dist.sp.xml
1 <?xml version="1.1" encoding="ISO-8859-1"?>
2
3 <!DOCTYPE web-app
4     PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
5     "http://java.sun.com/dtd/web-app_2_3.dtd">
6
7 <!--  A Servlet deployment descriptor (WEB-INF/web.xml) file
8         defining Servlets, Filters, and Listeners for a /shibboleth
9         context containing both an IdP and an SP.  
10 -->
11
12 <web-app>
13
14         <display-name>Shibboleth SP</display-name>
15         
16         <context-param>
17                 <param-name>ServiceProviderConfigFile</param-name>
18                 <param-value>$SHIB_HOME$/etc/sp.xml</param-value>
19         </context-param>
20
21         <filter>
22                 <!-- Gather log data in a per-request in memory buffer
23                          Requires /showlog Servlet to return log data to client
24                 -->
25                 <filter-name>RequestLogFilter</filter-name>
26                 <filter-class>
27                         edu.internet2.middleware.commons.log4j.RequestLoggingFilter
28                 </filter-class>
29         </filter>
30
31         <filter>
32                 <!-- You must create an instance of the Filter class in
33                          the /shibboleth application context to allow Filter-Support
34                          communication to other applications. 
35                          -->
36                 <filter-name>ShibFilter</filter-name>
37                 <filter-class>
38                         edu.internet2.middleware.shibboleth.resource.AuthenticationFilter
39                 </filter-class>
40         </filter>
41
42         <!-- Attach per-request in memory log data gathering to the 
43                  processing of the POST through the AssertionConsumer.
44         -->
45         <filter-mapping>
46                 <filter-name>RequestLogFilter</filter-name>
47                 <servlet-name>AssertionConsumer</servlet-name>
48         </filter-mapping>
49
50         <!-- Servlets for Shibboleth/SAML Protocol endpoints -->
51         <servlet>
52                 <!--  SP Assertion Consumer -->
53                 <servlet-name>AssertionConsumer</servlet-name>
54                 <display-name>Authentication Assertion Consumer</display-name>
55                 <servlet-class>
56                         edu.internet2.middleware.shibboleth.serviceprovider.AssertionConsumerServlet
57                 </servlet-class>
58                 <load-on-startup>1</load-on-startup>
59         </servlet>
60
61         <!-- Servlets for administrative functions -->
62         <servlet>
63                 <!-- Display in memory log data from the previous request
64                         from the same Browser. 
65                         Requires the RequestLogFilter to be installed and mapped. 
66                 -->
67                 <servlet-name>ShowLog</servlet-name>
68                 <display-name>Return log data</display-name>
69                 <servlet-class>
70                         edu.internet2.middleware.commons.log4j.ShowLog
71                 </servlet-class>
72         </servlet>
73
74         <!--  Mapping for SAML/Shibboleth protocol endpoints -->
75         <servlet-mapping>
76                 <servlet-name>AssertionConsumer</servlet-name>
77                 <url-pattern>/Shibboleth.sso/SAML/POST</url-pattern>
78         </servlet-mapping>
79
80         <!-- Mapping for administrative functions -->
81         <servlet-mapping>
82                 <servlet-name>ShowLog</servlet-name>
83                 <url-pattern>/showlog</url-pattern>
84         </servlet-mapping>
85
86         <mime-mapping>
87                 <extension>css</extension>
88                 <mime-type>text/css</mime-type>
89         </mime-mapping>
90         
91         
92
93 </web-app>