123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed to Jasig under one or more contributor license
- agreements. See the NOTICE file distributed with this work
- for additional information regarding copyright ownership.
- Jasig licenses this file to you under the Apache License,
- Version 2.0 (the "License"); you may not use this file
- except in compliance with the License. You may obtain a
- copy of the License at the following location:
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
- -->
- <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
- version="2.4">
- <display-name>Central Authentication System (CAS) ${project.version}</display-name>
- <context-param>
- <param-name>contextConfigLocation</param-name>
- <param-value>
- /WEB-INF/spring-configuration/*.xml
- /WEB-INF/deployerConfigContext.xml
- </param-value>
- </context-param>
- <filter>
- <filter-name>CAS Client Info Logging Filter</filter-name>
- <filter-class>com.github.inspektr.common.web.ClientInfoThreadLocalFilter</filter-class>
- </filter>
-
- <filter>
- <filter-name>loginfilter</filter-name>
- <filter-class>com.jsjty.sso.common.ManagerLoginFilter</filter-class>
- <init-param>
- <param-name>redirectURL</param-name>
- <param-value>/login.html,/user/virtualDrive.html</param-value>
- </init-param>
- <init-param>
- <param-name>patternURL</param-name>
- <param-value></param-value>
- </init-param>
-
- </filter>
-
- <filter-mapping>
- <filter-name>CAS Client Info Logging Filter</filter-name>
- <url-pattern>/*</url-pattern>
- </filter-mapping>
- <filter>
- <filter-name>springSecurityFilterChain</filter-name>
- <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
- </filter>
- <filter-mapping>
- <filter-name>springSecurityFilterChain</filter-name>
- <url-pattern>/status</url-pattern>
- </filter-mapping>
- <filter-mapping>
- <filter-name>springSecurityFilterChain</filter-name>
- <url-pattern>/services/*</url-pattern>
- </filter-mapping>
- <filter>
- <filter-name>characterEncodingFilter</filter-name>
- <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
- </filter>
- <filter-mapping>
- <filter-name>characterEncodingFilter</filter-name>
- <url-pattern>/*</url-pattern>
- </filter-mapping>
- <filter-mapping>
- <filter-name>loginfilter</filter-name>
- <url-pattern>*.html</url-pattern>
- </filter-mapping>
-
-
-
-
- <!--
- - Loads the CAS ApplicationContext.
- - The deployer choice here is how to handle Throwables thrown by Spring's
- - ContextLoaderListener. The Spring ContextLoaderListener will throw an exception when the
- - application context cannot be loaded, say because the bean XML files are not valid XML or do not
- - refer to real classes and properties or because a bean configured via Spring throws an exception
- - at construction, property setting, or on an afterPropertiesSet() lifecycle method.
- -
- - If you'd like these errors to be fatal and prevent the CAS servlet context from loading at all,
- - use org.springframework.web.context.ContextLoaderListener.
- -
- - If you'd like these errors to result in all requests for CAS getting a "CAS is Unavailable" response,
- - use org.jasig.cas.web.init.SafeContextLoaderListener
- -->
- <listener>
- <listener-class>
- org.jasig.cas.web.init.SafeContextLoaderListener
- </listener-class>
- </listener>
-
- <servlet>
- <servlet-name>CXFService</servlet-name>
- <servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
- <load-on-startup>1</load-on-startup>
- </servlet>
- <servlet-mapping>
- <servlet-name>CXFService</servlet-name>
- <url-pattern>/service/*</url-pattern>
- </servlet-mapping>
-
-
-
- <!--
- - This is the Spring dispatcher servlet which delegates all requests to the
- - Spring WebMVC controllers as configured in cas-servlet.xml.
- -
- - The choice made above about how to handle a broken ApplicationContext at
- - context initialization applies here as well, since this servlet is load-on-startup.
- -
- - If you'd like these errors to be fatal and prevent the CAS servlet from loading at all,
- - use org.springframework.web.servlet.DispatcherServlet.
- -
- - If you'd like these errors to result in all requests for CAS getting a "CAS is Unavailable" response,
- - use org.jasig.cas.web.init.SafeDispatcherServlet
- -->
- <servlet>
- <servlet-name>cas</servlet-name>
- <servlet-class>
- org.jasig.cas.web.init.SafeDispatcherServlet
- </servlet-class>
- <init-param>
- <param-name>publishContext</param-name>
- <param-value>false</param-value>
- </init-param>
- <init-param>
- <param-name>encoding</param-name>
- <param-value>UTF-8</param-value>
- </init-param>
- <load-on-startup>1</load-on-startup>
- </servlet>
-
- <servlet>
- <servlet-name>spring</servlet-name>
- <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
- <init-param>
- <param-name>contextConfigLocation</param-name>
- <param-value>/WEB-INF/spring-servlet.xml</param-value>
- </init-param>
- <load-on-startup>1</load-on-startup>
- </servlet>
-
- <servlet-mapping>
- <servlet-name>cas</servlet-name>
- <url-pattern>/login</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>cas</servlet-name>
- <url-pattern>/logout</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>cas</servlet-name>
- <url-pattern>/validate</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>cas</servlet-name>
- <url-pattern>/serviceValidate</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>cas</servlet-name>
- <url-pattern>/samlValidate</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>cas</servlet-name>
- <url-pattern>/proxy</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>cas</servlet-name>
- <url-pattern>/proxyValidate</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>cas</servlet-name>
- <url-pattern>/CentralAuthenticationService</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>cas</servlet-name>
- <url-pattern>/services/add.html</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>cas</servlet-name>
- <url-pattern>/services/viewStatistics.html</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>cas</servlet-name>
- <url-pattern>/services/logout.html</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>cas</servlet-name>
- <url-pattern>/services/loggedOut.html</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>cas</servlet-name>
- <url-pattern>/services/manage.html</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>cas</servlet-name>
- <url-pattern>/services/edit.html</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>cas</servlet-name>
- <url-pattern>/openid/*</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>cas</servlet-name>
- <url-pattern>/services/deleteRegisteredService.html</url-pattern>
- </servlet-mapping>
-
- <servlet-mapping>
- <servlet-name>cas</servlet-name>
- <url-pattern>/services/updateRegisteredServiceEvaluationOrder.html</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>cas</servlet-name>
- <url-pattern>/status</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>cas</servlet-name>
- <url-pattern>/authorizationFailure.html</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>cas</servlet-name>
- <url-pattern>/403.html</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>spring</servlet-name>
- <url-pattern>*.html</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>spring</servlet-name>
- <url-pattern>*.do</url-pattern>
- </servlet-mapping>
- <!--
- <servlet>
- <servlet-name>restlet</servlet-name>
- <servlet-class>com.noelios.restlet.ext.spring.RestletFrameworkServlet</servlet-class>
- <load-on-startup>1</load-on-startup>
- </servlet>
-
- <servlet-mapping>
- <servlet-name>restlet</servlet-name>
- <url-pattern>/v1/*</url-pattern>
- </servlet-mapping>
- -->
- <session-config>
- <!-- Default to 5 minute session timeouts 一天-->
- <session-timeout>3600</session-timeout>
- </session-config>
- <error-page>
- <exception-type>org.springframework.context.ApplicationContextException</exception-type>
- <location>/WEB-INF/view/jsp/brokenContext.jsp</location>
- </error-page>
- <error-page>
- <error-code>500</error-code>
- <location>/WEB-INF/view/jsp/errors.jsp</location>
- </error-page>
- <error-page>
- <error-code>404</error-code>
- <location>/</location>
- </error-page>
- <error-page>
- <error-code>403</error-code>
- <location>/403.html</location>
- </error-page>
- <welcome-file-list>
- <welcome-file>index.jsp</welcome-file>
- </welcome-file-list>
- </web-app>
|