summaryrefslogtreecommitdiff
path: root/eaaf-springboot-utils/src/test/java/at
diff options
context:
space:
mode:
authorThomas <>2022-09-29 14:18:51 +0200
committerThomas <>2022-09-29 14:18:51 +0200
commit01aacd5a9aa6e35e7e922553cfcfb652b23a1b0d (patch)
tree252d5d57df827853124c969a4de67e227c8eb69e /eaaf-springboot-utils/src/test/java/at
parent28f4e988d7e7f7d2aea76d4d4667d9f7106bf5b1 (diff)
downloadEAAF-Components-01aacd5a9aa6e35e7e922553cfcfb652b23a1b0d.tar.gz
EAAF-Components-01aacd5a9aa6e35e7e922553cfcfb652b23a1b0d.tar.bz2
EAAF-Components-01aacd5a9aa6e35e7e922553cfcfb652b23a1b0d.zip
test(spring-sec): disable CSRF check, because they brake HTTP client tests
Diffstat (limited to 'eaaf-springboot-utils/src/test/java/at')
-rw-r--r--eaaf-springboot-utils/src/test/java/at/gv/egiz/eaaf/utils/springboot/test/dummy/SpringSecurityConfiguration.java16
1 files changed, 16 insertions, 0 deletions
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();
+
+ }
+
+}