Class IntegrationTestsWebSecurityConfig
- java.lang.Object
-
- org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
-
- org.kie.server.springboot.samples.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
-
-
Constructor Summary
Constructors Constructor Description IntegrationTestsWebSecurityConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)voidconfigureGlobal(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth)org.springframework.security.web.firewall.HttpFirewallcustomStrictHttpFirewall()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
-
-
-
-
Method Detail
-
configure
protected void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception- Overrides:
configurein classorg.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 theWebSecurityConfigurerAdapter.configure(WebSecurity)method.
-
-