<commit_before><?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:context="http://www.springframework.org/schema/context"
       xsi:schemaLocation="
       http://www.springframework.org/schema/beans   http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
       http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
">

    <!--Permite usar entre otras la anotación @Autowired -->
    <context:annotation-config/>
        
    <!-- DAOs -->
    <bean class="es.logongas.ix3.dao.impl.DAOFactoryImplHibernate" >
        <property name="domainBasePackageName"     value="es.logongas.fpempresa.modelo" />
        <property name="interfaceBasePackageName"  value="es.logongas.fpempresa.dao" />
        <property name="implBasePackageName"       value="es.logongas.fpempresa.dao" />
    </bean>    
    <bean class="es.logongas.fpempresa.dao.estadisticas.impl.EstadisticaDAOImplHibernate"  />

    <!-- Seguridad -->
    <bean id="authenticationManager" class="es.logongas.ix3.security.authentication.impl.AuthenticationManagerImpl"  >
        <property name="authenticationProviders">
            <list>
                <bean class="es.logongas.fpempresa.security.AuthenticationProviderImplUsuario" />
            </list>
        </property>
    </bean>
    
    <bean id="authorizationManager" class="es.logongas.ix3.security.authorization.impl.AuthorizationManagerImpl"  >
        <property name="defaultAuthorization" value="true" />
        <property name="authorizationProviders">
            <list>
                <!-- <bean class="es.logongas.ix3.security.authorization.impl.AuthorizationProviderImplIdentity" /> -->
            </list>
        </property>
    </bean>  
    
    <!-- 
        <bean class="es.logongas.ix3.web.security.impl.WebSessionSidStorageImplHttpSession"  />    
    --> 
    <bean class="es.logongas.fpempresa.security.WebSessionSidStorageImplJwt" >
        <property name="jwsCookieName" value="XSRF-TOKEN" />
        <property name="jwsHeaderName" value="X-XSRF-TOKEN" />
        <property name="checkHeader"   value="false" />        
    </bean>
    
    <!-- Servicios -->
    <bean class="es.logongas.fpempresa.service.mail.impl.MailServiceImpl"  />
    <bean class="es.logongas.fpempresa.service.estadisticas.impl.EstadisticasServiceImpl"  />
    <bean class="es.logongas.fpempresa.service.populate.PopulateServiceImpl"  />
    <bean class="es.logongas.ix3.service.impl.CRUDServiceFactoryImpl" >
        <property name="domainBasePackageName"     value="es.logongas.fpempresa.modelo" />
        <property name="interfaceBasePackageName"  value="es.logongas.fpempresa.service" />
        <property name="implBasePackageName"       value="es.logongas.fpempresa.service" />
    </bean> 
    
    <!-- Capade web -->
    <bean class="es.logongas.fpempresa.presentacion.controller.EndPointsFactoryImpl" />
    
</beans><commit_msg>Activar la seguridad en la app<commit_after><?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:context="http://www.springframework.org/schema/context"
       xsi:schemaLocation="
       http://www.springframework.org/schema/beans   http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
       http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
">

    <!--Permite usar entre otras la anotación @Autowired -->
    <context:annotation-config/>
        
    <!-- DAOs -->
    <bean class="es.logongas.ix3.dao.impl.DAOFactoryImplHibernate" >
        <property name="domainBasePackageName"     value="es.logongas.fpempresa.modelo" />
        <property name="interfaceBasePackageName"  value="es.logongas.fpempresa.dao" />
        <property name="implBasePackageName"       value="es.logongas.fpempresa.dao" />
    </bean>    
    <bean class="es.logongas.fpempresa.dao.estadisticas.impl.EstadisticaDAOImplHibernate"  />

    <!-- Seguridad -->
    <bean id="authenticationManager" class="es.logongas.ix3.security.authentication.impl.AuthenticationManagerImpl"  >
        <property name="authenticationProviders">
            <list>
                <bean class="es.logongas.fpempresa.security.AuthenticationProviderImplUsuario" />
            </list>
        </property>
    </bean>
    
    <bean id="authorizationManager" class="es.logongas.ix3.security.authorization.impl.AuthorizationManagerImpl"  >
        <property name="defaultAuthorization" value="false" />
        <property name="authorizationProviders">
            <list>
                <bean class="es.logongas.ix3.security.authorization.impl.AuthorizationProviderImplIdentity" />
            </list>
        </property>
    </bean>  
    
    <!-- 
        <bean class="es.logongas.ix3.web.security.impl.WebSessionSidStorageImplHttpSession"  />    
    --> 
    <bean class="es.logongas.fpempresa.security.WebSessionSidStorageImplJwt" >
        <property name="jwsCookieName" value="XSRF-TOKEN" />
        <property name="jwsHeaderName" value="X-XSRF-TOKEN" />
        <property name="checkHeader"   value="false" />        
    </bean>
    
    <!-- Servicios -->
    <bean class="es.logongas.fpempresa.service.mail.impl.MailServiceImpl"  />
    <bean class="es.logongas.fpempresa.service.estadisticas.impl.EstadisticasServiceImpl"  />
    <bean class="es.logongas.fpempresa.service.populate.PopulateServiceImpl"  />
    <bean class="es.logongas.ix3.service.impl.CRUDServiceFactoryImpl" >
        <property name="domainBasePackageName"     value="es.logongas.fpempresa.modelo" />
        <property name="interfaceBasePackageName"  value="es.logongas.fpempresa.service" />
        <property name="implBasePackageName"       value="es.logongas.fpempresa.service" />
    </bean> 
    
    <!-- Capade web -->
    <bean class="es.logongas.fpempresa.presentacion.controller.EndPointsFactoryImpl" />
    
</beans>
{'fraction_non_alphanumeric': 0.1462657296943945, 'fraction_numerical': 0.005883314267037098, 'mean_word_length': 3.0476190476190474, 'pattern_counts': {'":': 0, '<': 96, '<?xml version=': 2, '>': 96, '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': '904690', 'n_tokens_mistral': 1918, 'n_tokens_neox': 1941, 'n_words': 202}