Class IntegrationTestsWebSecurityConfig

  • All Implemented Interfaces:
    org.springframework.security.config.annotation.SecurityConfigurer<javax.servlet.Filter,​org.springframework.security.config.annotation.web.builders.WebSecurity>, org.springframework.security.config.annotation.web.WebSecurityConfigurer<org.springframework.security.config.annotation.web.builders.WebSecurity>

    @Configuration("kieServerSecurity")
    @EnableWebSecurity
    public class IntegrationTestsWebSecurityConfig
    extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void configure​(org.springframework.security.config.annotation.web.builders.HttpSecurity http)  
      void configureGlobal​(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth)  
      org.springframework.security.web.firewall.HttpFirewall customStrictHttpFirewall()
      Provide altered implementation of StrictHttpFirewall to be able to run som tests from ProcessDefinitionIntegrationTest class which test that there can be a task name with a question mark (?).
      • Methods inherited from class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter

        authenticationManager, authenticationManagerBean, configure, configure, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsService, userDetailsServiceBean
    • Constructor Detail

      • IntegrationTestsWebSecurityConfig

        public IntegrationTestsWebSecurityConfig()
    • Method Detail

      • configure

        protected void configure​(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
                          throws Exception
        Overrides:
        configure in class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
        Throws:
        Exception
      • customStrictHttpFirewall

        @Bean
        public org.springframework.security.web.firewall.HttpFirewall customStrictHttpFirewall()
        Provide altered implementation of StrictHttpFirewall to be able to run som tests from ProcessDefinitionIntegrationTest class which test that there can be a task name with a question mark (?). The other possibility to set this implementation is by overriding the WebSecurityConfigurerAdapter.configure(WebSecurity) method.
      • configureGlobal

        @Autowired
        public void configureGlobal​(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth)
                             throws Exception
        Throws:
        Exception