<commit_before><?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/security"
  xmlns:beans="http://www.springframework.org/schema/beans"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.springframework.org/schema/beans
           http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
           http://www.springframework.org/schema/security
           http://www.springframework.org/schema/security/spring-security-3.0.xsd">
           
    <beans:bean id="loginFormAuthentication" class="org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint">
		<beans:property name="loginFormUrl" value="/login.ftl" />
	</beans:bean>
	
	<beans:bean id="authenticationSuccessHandler" class="org.springframework.security.web.authentication.SavedRequestAwareAuthenticationSuccessHandler">
        <beans:property name="defaultTargetUrl" value="/custSearchAction.do?method=getHomePage" />
        <beans:property name="alwaysUseDefaultTargetUrl" value="true" />
    </beans:bean>
           
	<http auto-config="false" entry-point-ref="loginFormAuthentication">
		<custom-filter position="FORM_LOGIN_FILTER" ref="mifosLegacyAuthenticationFilter" />
		<intercept-url pattern="/*.css*" filters="none" />
		<intercept-url pattern="/ping.ftl" filters="none" />
		<intercept-url pattern="/dateTimeUpdate.ftl*" filters="none" />
		<intercept-url pattern="/initializeApplication.ftl*" filters="none" />
		
		<intercept-url pattern="/login.ftl*" access="IS_AUTHENTICATED_ANONYMOUSLY" />
    	<intercept-url pattern="/**" access="ROLE_FULLY_AUTHENTICATED_USER" />
    	<logout logout-success-url="/login.ftl?loggedout"/>
  	</http>
  	
  	<authentication-manager alias="authenticationManager">
	    <authentication-provider ref="mifosAuthenticationProvider"/>
	</authentication-manager>
	
  	<beans:bean id="mifosLegacyAuthenticationFilter" class="org.mifos.security.authentication.MifosLegacyUsernamePasswordAuthenticationFilter">
  		<beans:constructor-arg ref="loginServiceFacade" />
  		<beans:property name="authenticationManager" ref="authenticationManager" />
  		<beans:property name="authenticationSuccessHandler" ref="authenticationSuccessHandler" />
  	</beans:bean>
  	
    <beans:bean id="mifosAuthenticationProvider" class="org.mifos.security.authentication.MifosDaoAuthenticationProvider">
        <beans:property name="userDetailsService" ref="mifosAuthenticationAuthoriaztionService" />
    </beans:bean>

    <beans:bean id="mifosAuthenticationAuthoriaztionService" class="org.mifos.security.AuthenticationAuthorizationServiceFacadeImpl">
    	<beans:constructor-arg ref="personnelDao" /><commit_msg>MIFOS-3046: ignore authentication for updating custom properties for acceptance tests customPropertiesUpdate.ftl<commit_after><?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/security"
  xmlns:beans="http://www.springframework.org/schema/beans"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.springframework.org/schema/beans
           http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
           http://www.springframework.org/schema/security
           http://www.springframework.org/schema/security/spring-security-3.0.xsd">
           
    <beans:bean id="loginFormAuthentication" class="org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint">
		<beans:property name="loginFormUrl" value="/login.ftl" />
	</beans:bean>
	
	<beans:bean id="authenticationSuccessHandler" class="org.springframework.security.web.authentication.SavedRequestAwareAuthenticationSuccessHandler">
        <beans:property name="defaultTargetUrl" value="/custSearchAction.do?method=getHomePage" />
        <beans:property name="alwaysUseDefaultTargetUrl" value="true" />
    </beans:bean>
           
	<http auto-config="false" entry-point-ref="loginFormAuthentication">
		<custom-filter position="FORM_LOGIN_FILTER" ref="mifosLegacyAuthenticationFilter" />
		<intercept-url pattern="/*.css*" filters="none" />
		<intercept-url pattern="/ping.ftl" filters="none" />
		<intercept-url pattern="/dateTimeUpdate.ftl*" filters="none" />
		<intercept-url pattern="/initializeApplication.ftl*" filters="none" />
		<intercept-url pattern="/customPropertiesUpdate.ftl*" filters="none" />
		
		<intercept-url pattern="/login.ftl*" access="IS_AUTHENTICATED_ANONYMOUSLY" />
    	<intercept-url pattern="/**" access="ROLE_FULLY_AUTHENTICATED_USER" />
    	<logout logout-success-url="/login.ftl?loggedout"/>
  	</http>
  	
  	<authentication-manager alias="authenticationManager">
	    <authentication-provider ref="mifosAuthenticationProvider"/>
	</authentication-manager>
	
  	<beans:bean id="mifosLegacyAuthenticationFilter" class="org.mifos.security.authentication.MifosLegacyUsernamePasswordAuthenticationFilter">
  		<beans:constructor-arg ref="loginServiceFacade" />
  		<beans:property name="authenticationManager" ref="authenticationManager" />
  		<beans:property name="authenticationSuccessHandler" ref="authenticationSuccessHandler" />
  	</beans:bean>
  	
    <beans:bean id="mifosAuthenticationProvider" class="org.mifos.security.authentication.MifosDaoAuthenticationProvider">
        <beans:property name="userDetailsService" ref="mifosAuthenticationAuthoriaztionService" />
    </beans:bean>

    <beans:bean id="mifosAuthenticationAuthoriaztionService" class="org.mifos.security.AuthenticationAuthorizationServiceFacadeImpl">
    	<beans:constructor-arg ref="personnelDao" />
{'fraction_non_alphanumeric': 0.14099589505621987, 'fraction_numerical': 0.004997322862752097, 'mean_word_length': 5.554385964912281, 'pattern_counts': {'":': 0, '<': 68, '<?xml version=': 2, '>': 68, 'https://': 0, 'lorem ipsum': 0, 'www.': 14, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5527451', 'n_tokens_mistral': 1680, 'n_tokens_neox': 1633, 'n_words': 181}