WEB-INF/web.xml for combined origin and target
[java-idp.git] / webAppConfig / target.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 <web-app>
8     <display-name>Shibboleth</display-name>
9         <context-param>
10                 <param-name>OriginConfigFile</param-name>
11                 <param-value>/conf/origin.xml</param-value>
12         </context-param>
13         
14         <context-param>
15                 <param-name>TargetConfigFile</param-name>
16                 <param-value>/conf/shibboleth.xml</param-value>
17         </context-param>
18         
19         <filter>
20                 <filter-name>RequestLogFilter</filter-name>
21                 <filter-class>edu.internet2.middleware.commons.log4j.RequestLoggingFilter</filter-class>
22         </filter>
23
24         <filter>
25                 <filter-name>ShibFilter</filter-name>
26                 <filter-class>edu.internet2.middleware.shibboleth.resource.AuthenticationFilter</filter-class>
27                 <init-param>
28                         <param-name>shireURL</param-name>
29                         <param-value>http://shibdev.yale.edu:8080/shibboleth/Shibboleth.shire</param-value>
30                 </init-param>
31                 <init-param>
32                         <param-name>wayfURL</param-name>
33                         <param-value>/shibboleth/HS</param-value>
34                 </init-param>
35                 <init-param>
36                         <param-name>providerId</param-name>
37                         <param-value>http://shibdev.yale.edu/shibboleth</param-value>
38                 </init-param>
39                 <init-param>
40                         <param-name>requireId</param-name>
41                         <param-value>*/text.txt</param-value>
42                 </init-param>
43         </filter>
44
45  <filter>
46     <filter-name>CAS Filter</filter-name>
47     <filter-class>edu.yale.its.tp.cas.client.filter.CASFilter</filter-class>
48    <init-param>
49      <param-name>edu.yale.its.tp.cas.client.filter.loginUrl</param-name>
50      <param-value>https://secure.its.yale.edu/cas/login</param-value>
51    </init-param>
52    <init-param>
53      <param-name>edu.yale.its.tp.cas.client.filter.validateUrl</param-name>
54       <param-value>https://secure.its.yale.edu/cas/serviceValidate</param-value>
55    </init-param>
56     <init-param>
57      <param-name>edu.yale.its.tp.cas.client.filter.serverName</param-name>
58      <param-value>shibdev.yale.edu:8080</param-value>
59     </init-param>
60     <init-param>
61      <param-name>edu.yale.its.tp.cas.client.filter.wrapRequest</param-name>
62      <param-value>true</param-value>
63     </init-param>
64   </filter>
65         
66         <filter-mapping>
67                 <filter-name>ShibFilter</filter-name>
68                 <url-pattern>*.txt</url-pattern>
69         </filter-mapping>
70         
71         <filter-mapping>
72                 <filter-name>CAS Filter</filter-name>
73                 <servlet-name>HS</servlet-name>
74         </filter-mapping>
75
76         <filter-mapping>
77                 <filter-name>RequestLogFilter</filter-name>
78                 <servlet-name>SHIRE</servlet-name>
79         </filter-mapping>
80
81         
82         <listener> 
83                 <listener-class>edu.internet2.middleware.shibboleth.log.LoggingContextListener</listener-class> 
84         </listener>
85
86         <servlet>
87                 <servlet-name>HS</servlet-name>
88                 <display-name>Shibboleth Handle Service</display-name>
89                 <servlet-class>edu.internet2.middleware.shibboleth.hs.HandleServlet</servlet-class>
90         </servlet>
91         <servlet>
92                 <servlet-name>AA</servlet-name>
93                 <display-name>Shibboleth Attribute Authority</display-name>
94                 <servlet-class>edu.internet2.middleware.shibboleth.aa.AAServlet</servlet-class>
95         </servlet>
96         <servlet>
97                 <servlet-name>SHIRE</servlet-name>
98                 <display-name>Authentication Assertion Consumer</display-name>
99                 <servlet-class>edu.internet2.middleware.shibboleth.target.AuthenticationAssertionConsumerServlet</servlet-class>
100                 <load-on-startup>1</load-on-startup>
101         </servlet>
102         <servlet>
103                 <servlet-name>ShowLog</servlet-name>
104                 <display-name>Return log data</display-name>
105                 <servlet-class>edu.internet2.middleware.commons.log4j.ShowLog</servlet-class>
106         </servlet>
107
108         <servlet-mapping>
109                 <servlet-name>HS</servlet-name>
110                 <url-pattern>/HS</url-pattern>
111         </servlet-mapping>
112         <servlet-mapping>
113                 <servlet-name>AA</servlet-name>
114                 <url-pattern>/AA</url-pattern>
115         </servlet-mapping>
116         <servlet-mapping>
117                 <servlet-name>SHIRE</servlet-name>
118                 <url-pattern>*.shire</url-pattern>
119         </servlet-mapping>
120         <servlet-mapping>
121                 <servlet-name>ShowLog</servlet-name>
122                 <url-pattern>/showlog</url-pattern>
123         </servlet-mapping>
124
125         <mime-mapping>
126                 <extension>css</extension>
127                 <mime-type>text/css</mime-type>
128         </mime-mapping>
129 </web-app>