<commit_before><?xml version="1.0" encoding="UTF-8"?>
<!--
   - The Kuali Financial System, a comprehensive financial management system for higher education.
   -
   - Copyright 2005-2017 Kuali, Inc.
   -
   - This program is free software: you can redistribute it and/or modify
   - it under the terms of the GNU Affero General Public License as
   - published by the Free Software Foundation, either version 3 of the
   - License, or (at your option) any later version.
   -
   - This program is distributed in the hope that it will be useful,
   - but WITHOUT ANY WARRANTY; without even the implied warranty of
   - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   - GNU Affero General Public License for more details.
   -
   - You should have received a copy of the GNU Affero General Public License
   - along with this program.  If not, see <http://www.gnu.org/licenses/>.
 -->
<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.5"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee   http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
    <display-name>KFS</display-name>

    <context-param>
        <param-name>web.bootstrap.spring.file</param-name>
        <param-value>classpath:kfs-startup.xml</param-value>
    </context-param>

    <context-param>
        <param-name>javamelody.quartz-default-listener-disabled</param-name>
        <param-value>true</param-value>
    </context-param>

    <filter>
        <filter-name>AuthenticationFilter</filter-name>
        <filter-class>org.kuali.kfs.sys.web.filter.DelegatingAuthenticationFilter</filter-class>
    </filter>

    <filter>
        <filter-name>AuthenticationTokenFilter</filter-name>
        <filter-class>org.kuali.kfs.sys.web.filter.AuthenticationTokenFilter</filter-class>
    </filter>
<!--
  <filter>
    <filter-name>DummyLoginFilter</filter-name>
    <filter-class>org.kuali.kfs.sys.web.filter.DevelopmentLoginFilter</filter-class>
    <init-param>
      <param-name>loginUser</param-name>
      <param-value>khuntley</param-value>
    </init-param>
  </filter>
  <filter-mapping>
    <filter-name>DummyLoginFilter</filter-name>
    <servlet-name>action</servlet-name>
  </filter-mapping>
  <filter-mapping>
    <filter-name>DummyLoginFilter</filter-name>
    <servlet-name>dwr-invoker</servlet-name>
  </filter-mapping>
  <filter-mapping>
    <filter-name>DummyLoginFilter</filter-name>
    <servlet-name>batchFileUpload</servlet-name>
  </filter-mapping>
  -->
    <filter>
        <filter-name>CAS Authentication Filter</filter-name>
        <filter-class>org.jasig.cas.client.authentication.AuthenticationFilter</filter-class>
        <init-param>
            <param-name>casServerLoginUrl</param-name>
            <param-value>https://webauth.arizona.edu/webauth/login</param-value>
        </init-param>
        <init-param>
            <param-name>serverName</param-name>
            <param-value>${server.name}</param-value>
        </init-param>
    </filter>
    <filter>
        <filter-name>CAS Validation Filter</filter-name>
        <filter-class>org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter</filter-class>
        <init-param>
            <param-name>casServerUrlPrefix</param-name>
            <param-value>https://webauth.arizona.edu/webauth</param-value>
        </init-param>
        <init-param>
            <param-name>serverName</param-name>
            <param-value>${server.name}</param-value>
        </init-param>
    </filter>
    <filter>
        <filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>
        <filter-class>org.jasig.cas.client.util.HttpServletRequestWrapperFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>CAS Authentication Filter</filter-name>
        <servlet-name>action</servlet-name>
    </filter-mapping>
    <filter-mapping>
        <filter-name>CAS Validation Filter</filter-name>
        <servlet-name>action</servlet-name>
    </filter-mapping>
    <filter-mapping>
        <filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>
        <servlet-name>action</servlet-name>
    </filter-mapping>
    <filter-mapping>
        <filter-name>CAS Authentication Filter</filter-name>
        <servlet-name>dwr-invoker</servlet-name>
    </filter-mapping>
    <filter-mapping>
        <filter-name>CAS Validation Filter</filter-name>
        <servlet-name>dwr-invoker</servlet-name>
    </filter-mapping>
    <filter-mapping>
        <filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>
        <servlet-name>dwr-invoker</servlet-name>
    </filter-mapping>
    <filter-mapping>
        <filter-name>CAS Authentication Filter</filter-name>
        <servlet-name>batchFileUpload</servlet-name>
    </filter-mapping>
    <filter-mapping>
        <filter-name>CAS Validation Filter</filter-name>
        <servlet-name>batchFileUpload</servlet-name>
    </filter-mapping>
    <filter-mapping>
        <filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>
        <servlet-name>batchFileUpload</servlet-name>
    </filter-mapping>
    <filter>
        <filter-name>HideWebInfFilter</filter-name>
        <filter-class>org.kuali.kfs.krad.web.filter.HideWebInfFilter</filter-class>
    </filter>

    <filter>
        <filter-name>ResponseOverrideFilter</filter-name>
        <filter-class>org.displaytag.filter.ResponseOverrideFilter</filter-class>
    </filter>

    <filter>
        <filter-name>ParameterFilter</filter-name>
        <filter-class>org.kuali.kfs.kns.web.filter.ParameterFilter</filter-class>
        <init-param>
            <param-name>excludeParams</param-name>
            <param-value>(.*\.|^|\[('|"))(c|C)lass(\.|('|")]|\[).*</param-value>
        </init-param>
    </filter>

    <filter>
        <filter-name>BootstrapFilter</filter-name>
        <filter-class>org.kuali.rice.krad.web.filter.BootstrapFilter</filter-class>
    </filter>

  <filter>
    <filter-name>UserLoginFilter</filter-name>
    <filter-class>edu.arizona.rice.kew.web.UserLoginFilter</filter-class>
  </filter>

    <filter>
        <filter-name>ResourceLoginFilter</filter-name>
        <filter-class>org.kuali.kfs.web.filter.ResourceLoginFilter</filter-class>
    </filter>

    <filter>
        <filter-name>UserPreferencesFilter</filter-name>
        <filter-class>org.kuali.kfs.krad.web.filter.UserPreferencesFilter</filter-class>
    </filter>

    <filter>
        <filter-name>SessionExpirationFilter</filter-name>
        <filter-class>org.kuali.kfs.sys.web.filter.SessionExpirationFilter</filter-class>
    </filter>

    <!--  FILTER MAPPINGS  -->

    <filter-mapping>
        <filter-name>AuthenticationFilter</filter-name>
        <servlet-name>action</servlet-name>
        <servlet-name>dwr-invoker</servlet-name>
        <servlet-name>batchFileUpload</servlet-name>
        <servlet-name>remote</servlet-name>
        <servlet-name>goto</servlet-name>
        <url-pattern>/monitoring/*</url-pattern>
        <url-pattern>/purap/*</url-pattern>
        <url-pattern>/app/*</url-pattern>
        <url-pattern>/index.jsp</url-pattern>
    </filter-mapping><commit_msg>UAF-692 UAF-4508 merged in authentication filter mapping with UA LDAP authentication filter<commit_after><?xml version="1.0" encoding="UTF-8"?>
<!--
   - The Kuali Financial System, a comprehensive financial management system for higher education.
   -
   - Copyright 2005-2017 Kuali, Inc.
   -
   - This program is free software: you can redistribute it and/or modify
   - it under the terms of the GNU Affero General Public License as
   - published by the Free Software Foundation, either version 3 of the
   - License, or (at your option) any later version.
   -
   - This program is distributed in the hope that it will be useful,
   - but WITHOUT ANY WARRANTY; without even the implied warranty of
   - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   - GNU Affero General Public License for more details.
   -
   - You should have received a copy of the GNU Affero General Public License
   - along with this program.  If not, see <http://www.gnu.org/licenses/>.
 -->
<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.5"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee   http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
    <display-name>KFS</display-name>

    <context-param>
        <param-name>web.bootstrap.spring.file</param-name>
        <param-value>classpath:kfs-startup.xml</param-value>
    </context-param>

    <context-param>
        <param-name>javamelody.quartz-default-listener-disabled</param-name>
        <param-value>true</param-value>
    </context-param>

	<!-- UA KFS7 upgrade -->
    <!--filter>
        <filter-name>AuthenticationFilter</filter-name>
        <filter-class>org.kuali.kfs.sys.web.filter.DelegatingAuthenticationFilter</filter-class>
    </filter-->

    <filter>
        <filter-name>AuthenticationTokenFilter</filter-name>
        <filter-class>org.kuali.kfs.sys.web.filter.AuthenticationTokenFilter</filter-class>
    </filter>
    
    <filter>
        <filter-name>CAS Authentication Filter</filter-name>
        <filter-class>org.jasig.cas.client.authentication.AuthenticationFilter</filter-class>
        <init-param>
            <param-name>casServerLoginUrl</param-name>
            <param-value>https://webauth.arizona.edu/webauth/login</param-value>
        </init-param>
        <init-param>
            <param-name>serverName</param-name>
            <param-value>${server.name}</param-value>
        </init-param>
    </filter>
    <filter>
        <filter-name>CAS Validation Filter</filter-name>
        <filter-class>org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter</filter-class>
        <init-param>
            <param-name>casServerUrlPrefix</param-name>
            <param-value>https://webauth.arizona.edu/webauth</param-value>
        </init-param>
        <init-param>
            <param-name>serverName</param-name>
            <param-value>${server.name}</param-value>
        </init-param>
    </filter>
    <filter>
        <filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>
        <filter-class>org.jasig.cas.client.util.HttpServletRequestWrapperFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>CAS Authentication Filter</filter-name>
        <servlet-name>action</servlet-name>
        <servlet-name>dwr-invoker</servlet-name>
        <servlet-name>batchFileUpload</servlet-name>
        <servlet-name>remote</servlet-name>
        <servlet-name>goto</servlet-name>
        <url-pattern>/monitoring/*</url-pattern>
        <url-pattern>/purap/*</url-pattern>
        <url-pattern>/app/*</url-pattern>
        <url-pattern>/index.jsp</url-pattern>
    </filter-mapping>
    <filter-mapping>
        <filter-name>CAS Validation Filter</filter-name>
        <servlet-name>action</servlet-name>
        <servlet-name>dwr-invoker</servlet-name>
        <servlet-name>batchFileUpload</servlet-name>
        <servlet-name>remote</servlet-name>
        <servlet-name>goto</servlet-name>
        <url-pattern>/monitoring/*</url-pattern>
        <url-pattern>/purap/*</url-pattern>
        <url-pattern>/app/*</url-pattern>
        <url-pattern>/index.jsp</url-pattern>
    </filter-mapping>
    <filter-mapping>
        <filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>
        <servlet-name>action</servlet-name>
        <servlet-name>dwr-invoker</servlet-name>
        <servlet-name>batchFileUpload</servlet-name>
        <servlet-name>remote</servlet-name>
        <servlet-name>goto</servlet-name>
        <url-pattern>/monitoring/*</url-pattern>
        <url-pattern>/purap/*</url-pattern>
        <url-pattern>/app/*</url-pattern>
        <url-pattern>/index.jsp</url-pattern>
    </filter-mapping>
    <!-- filter-mapping>
        <filter-name>CAS Authentication Filter</filter-name>
        <servlet-name>dwr-invoker</servlet-name>
    </filter-mapping>
    <filter-mapping>
        <filter-name>CAS Validation Filter</filter-name>
        <servlet-name>dwr-invoker</servlet-name>
    </filter-mapping>
    <filter-mapping>
        <filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>
        <servlet-name>dwr-invoker</servlet-name>
    </filter-mapping>
    <filter-mapping>
        <filter-name>CAS Authentication Filter</filter-name>
        <servlet-name>batchFileUpload</servlet-name>
    </filter-mapping>
    <filter-mapping>
        <filter-name>CAS Validation Filter</filter-name>
        <servlet-name>batchFileUpload</servlet-name>
    </filter-mapping>
    <filter-mapping>
        <filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>
        <servlet-name>batchFileUpload</servlet-name>
    </filter-mapping-->
    
    <filter>
        <filter-name>HideWebInfFilter</filter-name>
        <filter-class>org.kuali.kfs.krad.web.filter.HideWebInfFilter</filter-class>
    </filter>

    <filter>
        <filter-name>ResponseOverrideFilter</filter-name>
        <filter-class>org.displaytag.filter.ResponseOverrideFilter</filter-class>
    </filter>

    <filter>
        <filter-name>ParameterFilter</filter-name>
        <filter-class>org.kuali.kfs.kns.web.filter.ParameterFilter</filter-class>
        <init-param>
            <param-name>excludeParams</param-name>
            <param-value>(.*\.|^|\[('|"))(c|C)lass(\.|('|")]|\[).*</param-value>
        </init-param>
    </filter>

    <filter>
        <filter-name>BootstrapFilter</filter-name>
        <filter-class>org.kuali.rice.krad.web.filter.BootstrapFilter</filter-class>
    </filter>

  	<filter>
    	<filter-name>UserLoginFilter</filter-name>
    	<filter-class>edu.arizona.rice.kew.web.UserLoginFilter</filter-class>
  	</filter>
  
    <filter>
        <filter-name>ResourceLoginFilter</filter-name>
        <filter-class>org.kuali.kfs.web.filter.ResourceLoginFilter</filter-class>
    </filter>

    <filter>
        <filter-name>UserPreferencesFilter</filter-name>
        <filter-class>org.kuali.kfs.krad.web.filter.UserPreferencesFilter</filter-class>
    </filter>

    <filter>
        <filter-name>SessionExpirationFilter</filter-name>
        <filter-class>org.kuali.kfs.sys.web.filter.SessionExpirationFilter</filter-class>
    </filter>

    <!--  FILTER MAPPINGS  -->

	<!-- UA KFS7 upgrade -->
    <!-- filter-mapping>
        <filter-name>AuthenticationFilter</filter-name>
        <servlet-name>action</servlet-name>
        <servlet-name>dwr-invoker</servlet-name>
        <servlet-name>batchFileUpload</servlet-name>
        <servlet-name>remote</servlet-name>
        <servlet-name>goto</servlet-name>
        <url-pattern>/monitoring/*</url-pattern>
        <url-pattern>/purap/*</url-pattern>
        <url-pattern>/app/*</url-pattern>
        <url-pattern>/index.jsp</url-pattern>
    </filter-mapping-->
{'fraction_non_alphanumeric': 0.14949279231179927, 'fraction_numerical': 0.0036705819540843567, 'mean_word_length': 2.8197807800152943, 'pattern_counts': {'":': 0, '<': 490, '<?xml version=': 2, '>': 490, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, 'xml': 14}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4997638', 'n_tokens_mistral': 4752, 'n_tokens_neox': 4639, 'n_words': 632}