package alien4cloud;

import org.springframework.beans.factory.config.YamlPropertiesFactoryBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScan.Filter;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.FilterType;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
import org.springframework.core.io.ResourceLoader;

import alien4cloud.utils.AlienYamlPropertiesFactoryBeanFactory;

/**
 * The configuration to launch the full A4C context.
 */
@Configuration
@ComponentScan(basePackages = { "alien4cloud", "org.alien4cloud" }, excludeFilters = {
        @Filter(type = FilterType.REGEX, pattern = "alien4cloud\\.webconfiguration\\..*"),
        @Filter(type = FilterType.REGEX, pattern = "alien4cloud\\.security\\..*"), @Filter(type = FilterType.REGEX, pattern = "alien4cloud\\.audit\\..*"),
        @Filter(type = FilterType.REGEX, pattern = "org\\.elasticsearch\\.mapping\\..*"), @Filter(type = FilterType.REGEX, pattern = "alien4cloud\\.dao\\..*"),
        @Filter(type = FilterType.REGEX, pattern = "alien4cloud\\.servlet\\..*"), @Filter(type = FilterType.REGEX, pattern = "alien4cloud\\.images\\..*"),
        @Filter(type = FilterType.REGEX, pattern = "org\\.alien4cloud\\.bootstrap\\..*") })
@EnableAspectJAutoProxy(proxyTargetClass = true)
public class FullApplicationConfiguration {

    @Bean
    public static PropertySourcesPlaceholderConfigurer properties(ResourceLoader resourceLoader) {
        PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer = new PropertySourcesPlaceholderConfigurer();
        YamlPropertiesFactoryBean yaml = AlienYamlPropertiesFactoryBeanFactory.get(resourceLoader);
        propertySourcesPlaceholderConfigurer.setProperties(yaml.getObject());
        return propertySourcesPlaceholderConfigurer;
    }

}

@@ -656,16 +656,83 @@
 Factory;
+%0Aimport org.springframework.web.filter.CommonsRequestLoggingFilter;
 %0A%0A/**%0A *
@@ -2110,10 +2110,406 @@
 %0A    %7D%0A%0A
+    @Bean%0A    public CommonsRequestLoggingFilter requestLoggingFilter() %7B%0A        CommonsRequestLoggingFilter loggingFilter = new CommonsRequestLoggingFilter();%0A        loggingFilter.setIncludeClientInfo(true);%0A        loggingFilter.setIncludeQueryString(true);%0A        loggingFilter.setIncludePayload(true);%0A        loggingFilter.setMaxPayloadLength(64000);%0A        return loggingFilter;%0A    %7D%0A%0A
 %7D%0A

Add a request filter in order to understand SAML issue