Remove target.xml
[java-idp.git] / webAppConfig / IdP-SP.xml
1 <?xml version="1.0" 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 <web-app>
12     <display-name>Shibboleth</display-name>
13         <context-param>
14                 <param-name>OriginConfigFile</param-name>
15                 <param-value>/conf/origin.xml</param-value>
16         </context-param>
17         
18         <context-param>
19                 <param-name>ServiceProviderConfigFile</param-name>
20                 <param-value>/conf/shibboleth.xml</param-value>
21         </context-param>
22         
23         <filter>
24             <!--  Filter used if per-request thread local logging will
25                   be enabled for this context -->
26                 <filter-name>RequestLogFilter</filter-name>
27                 <filter-class>edu.internet2.middleware.commons.log4j.RequestLoggingFilter</filter-class>
28         </filter>
29
30         <filter>
31             <!--  The /shibboleth context is not currently a meaningful
32                   resource. However, there is an intent to expose
33                   administrative pages and to restrict access to them
34                   through Shibboleth. -->
35                 <filter-name>ShibFilter</filter-name>
36                 <filter-class>edu.internet2.middleware.shibboleth.resource.AuthenticationFilter</filter-class>
37                 <init-param>
38                         <param-name>shireURL</param-name>
39                         <param-value>http://shibdev.sample.edu:8080/shibboleth/Shibboleth.shire</param-value>
40                 </init-param>
41                 <init-param>
42                         <param-name>wayfURL</param-name>
43                         <param-value>/shibboleth/HS</param-value>
44                 </init-param>
45                 <init-param>
46                         <param-name>providerId</param-name>
47                         <param-value>http://shibdev.sample.edu/shibboleth</param-value>
48                 </init-param>
49                 <init-param>
50                         <param-name>requireId</param-name>
51                         <param-value>*/text.txt</param-value>
52                 </init-param>
53         </filter>
54
55  <filter>
56     <!--  Put your own Web-ISO Filter here. This Filter will be mapped
57           to front-end the IdP login Servlet -->
58     <filter-name>CAS Filter</filter-name>
59     <filter-class>edu.yale.its.tp.cas.client.filter.CASFilter</filter-class>
60    <init-param>
61      <param-name>edu.yale.its.tp.cas.client.filter.loginUrl</param-name>
62      <param-value>https://secure.its.yale.edu/cas/login</param-value>
63    </init-param>
64    <init-param>
65      <param-name>edu.yale.its.tp.cas.client.filter.validateUrl</param-name>
66       <param-value>https://secure.its.yale.edu/cas/serviceValidate</param-value>
67    </init-param>
68     <init-param>
69      <param-name>edu.yale.its.tp.cas.client.filter.serverName</param-name>
70      <param-value>shibdev.sample.edu:8080</param-value>
71     </init-param>
72     <init-param>
73      <param-name>edu.yale.its.tp.cas.client.filter.wrapRequest</param-name>
74      <param-value>true</param-value>
75     </init-param>
76   </filter>
77         
78         <filter-mapping>
79             <!--  Frontend the IdP SSO Servlet with the institution's
80                   locally selected WebISO Filter. -->
81                 <filter-name>CAS Filter</filter-name>
82                 <servlet-name>HS</servlet-name>
83         </filter-mapping>
84
85         <!-- Frontend any protocol endpoints with the RequestLogFilter
86                  if you want to gather per-request thread local log data
87                  for subsequent request failure diagnosis. Note that 
88                  this will only gather data if the Log4J configuration
89                  in effect for the request processing includes the
90                  ThreadLocal Appender. -->
91         <filter-mapping>
92                 <filter-name>RequestLogFilter</filter-name>
93                 <servlet-name>AssertionConsumer</servlet-name>
94         </filter-mapping>
95
96         
97         <listener> 
98                 <listener-class>edu.internet2.middleware.shibboleth.log.LoggingContextListener</listener-class> 
99         </listener>
100
101         <!-- Servlets for Shibboleth/SAML Protocol endpoints -->
102         <servlet>
103                 <!-- IdP SSO  -->
104                 <servlet-name>HS</servlet-name>
105                 <display-name>Shibboleth Handle Service</display-name>
106                 <servlet-class>edu.internet2.middleware.shibboleth.hs.HandleServlet</servlet-class>
107         </servlet>
108         <servlet>
109                 <!--  IdP AttributeAuthority -->
110                 <servlet-name>AA</servlet-name>
111                 <display-name>Shibboleth Attribute Authority</display-name>
112                 <servlet-class>edu.internet2.middleware.shibboleth.aa.AAServlet</servlet-class>
113         </servlet>
114         <servlet>
115             <!--  SP Assertion Consumer -->
116                 <servlet-name>AssertionConsumer</servlet-name>
117                 <display-name>Authentication Assertion Consumer</display-name>
118                 <servlet-class>edu.internet2.middleware.shibboleth.serviceprovider.AuthenticationAssertionConsumerServlet</servlet-class>
119                 <load-on-startup>1</load-on-startup>
120         </servlet>
121         
122         <!-- Servlets for administrative functions -->
123         <servlet>
124             <!-- Display the Request thread local log data
125                  This Servlet should not be mapped if the RequestLogFilter
126                  was not installed previously -->
127                 <servlet-name>ShowLog</servlet-name>
128                 <display-name>Return log data</display-name>
129                 <servlet-class>edu.internet2.middleware.commons.log4j.ShowLog</servlet-class>
130         </servlet>
131
132     <!--  Mapping for SAML/Shibboleth protocol endpoints -->
133         <servlet-mapping>
134                 <servlet-name>HS</servlet-name>
135                 <url-pattern>/HS</url-pattern>
136         </servlet-mapping>
137         <servlet-mapping>
138                 <servlet-name>AA</servlet-name>
139                 <url-pattern>/AA</url-pattern>
140         </servlet-mapping>
141         <servlet-mapping>
142                 <servlet-name>AssertionConsumer</servlet-name>
143                 <url-pattern>*.SHIRE</url-pattern>
144         </servlet-mapping>
145         
146         <!-- Mapping for administrative functions -->
147         <servlet-mapping>
148                 <servlet-name>ShowLog</servlet-name>
149                 <url-pattern>/showlog</url-pattern>
150         </servlet-mapping>
151
152         <mime-mapping>
153                 <extension>css</extension>
154                 <mime-type>text/css</mime-type>
155         </mime-mapping>
156 </web-app>