From 01aacd5a9aa6e35e7e922553cfcfb652b23a1b0d Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Thu, 29 Sep 2022 14:18:51 +0200 Subject: test(spring-sec): disable CSRF check, because they brake HTTP client tests --- .../test/dummy/SpringSecurityConfiguration.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 eaaf-springboot-utils/src/test/java/at/gv/egiz/eaaf/utils/springboot/test/dummy/SpringSecurityConfiguration.java (limited to 'eaaf-springboot-utils/src') diff --git a/eaaf-springboot-utils/src/test/java/at/gv/egiz/eaaf/utils/springboot/test/dummy/SpringSecurityConfiguration.java b/eaaf-springboot-utils/src/test/java/at/gv/egiz/eaaf/utils/springboot/test/dummy/SpringSecurityConfiguration.java new file mode 100644 index 00000000..b5054b70 --- /dev/null +++ b/eaaf-springboot-utils/src/test/java/at/gv/egiz/eaaf/utils/springboot/test/dummy/SpringSecurityConfiguration.java @@ -0,0 +1,16 @@ +package at.gv.egiz.eaaf.utils.springboot.test.dummy; + +import org.springframework.context.annotation.Configuration; +import org.springframework.security.config.annotation.web.builders.HttpSecurity; +import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; + +@Configuration +public class SpringSecurityConfiguration extends WebSecurityConfigurerAdapter { + + @Override + public void configure(HttpSecurity http) throws Exception { + http.csrf().disable(); + + } + +} -- cgit v1.2.3