diff options
author | Joffrey BION <joffrey.bion@gmail.com> | 2018-04-28 10:34:50 +0200 |
---|---|---|
committer | Joffrey BION <joffrey.bion@gmail.com> | 2018-04-28 15:03:45 +0200 |
commit | 12169481b4adcceba54ca06999ec5a3613b96c19 (patch) | |
tree | 4750c1a14cb1878b5079c6f0e400b3d03a9e756f /backend/src | |
parent | Migrate to Spring Boot 2.0.1 (using Spring 5) (diff) | |
download | seven-wonders-12169481b4adcceba54ca06999ec5a3613b96c19.tar.gz seven-wonders-12169481b4adcceba54ca06999ec5a3613b96c19.tar.bz2 seven-wonders-12169481b4adcceba54ca06999ec5a3613b96c19.zip |
Migrate to Spring Boot Starter Security
So far, we had a direct dependency on Spring Security Core, but it is cleaner to import it "à la" Spring Boot, so that we benefit from autoconfiguration, and the version is handled by Spring Boot.
Diffstat (limited to 'backend/src')
-rw-r--r-- | backend/src/main/java/org/luxons/sevenwonders/config/WebSecurityConfig.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/backend/src/main/java/org/luxons/sevenwonders/config/WebSecurityConfig.java b/backend/src/main/java/org/luxons/sevenwonders/config/WebSecurityConfig.java new file mode 100644 index 00000000..2cfb966d --- /dev/null +++ b/backend/src/main/java/org/luxons/sevenwonders/config/WebSecurityConfig.java @@ -0,0 +1,13 @@ +package org.luxons.sevenwonders.config; + +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 WebSecurityConfig extends WebSecurityConfigurerAdapter { + @Override + protected void configure(HttpSecurity httpSecurity) { + // this disables default authentication settings + } +} |