diff --git a/build.gradle b/build.gradle index 62252fa..d6aa69c 100644 --- a/build.gradle +++ b/build.gradle @@ -11,8 +11,9 @@ java { sourceCompatibility = '17' } +ext['spring-security.version'] = '6.2.0' + repositories { - mavenLocal() mavenCentral() } diff --git a/gradle.properties b/gradle.properties index 11fc787..e69de29 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +0,0 @@ -spring-security.version=6.2.0-SNAPSHOT diff --git a/src/main/java/com/example/springsecurityexamples/SecurityConfig.java b/src/main/java/com/example/springsecurityexamples/SecurityConfig.java index 31d1957..77b0909 100644 --- a/src/main/java/com/example/springsecurityexamples/SecurityConfig.java +++ b/src/main/java/com/example/springsecurityexamples/SecurityConfig.java @@ -16,6 +16,7 @@ public class SecurityConfig { @Bean SecurityWebFilterChain appSecurity(ServerHttpSecurity http) { http + .csrf(ServerHttpSecurity.CsrfSpec::disable) .authorizeExchange((authorize) -> authorize .anyExchange().authenticated() ) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 5e6d3a0..a94c607 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -3,3 +3,6 @@ spring: security: user: password: password + +logging.level: + org.springframework.web: TRACE