JAVA-2563: Upgrade Spring Boot version to 2.3.3.RELEASE (#9985)

* JAVA-2563: Upgrade Spring Boot version to 2.3.3.RELEASE

* JAVA-2563: Downgrade spring-cloud-connectors-heroku to Spring Boot 2.2.6.RELEASE

* JAVA-2563: Add joda-time version

* JAVA-2563: Add spring-boot-starter-validation dependency

* JAVA-2563: Add spring-boot-starter-validation dependency

* JAVA-2563: Add spring-boot-starter-validation dependency

* JAVA-2563: Add spring-boot-starter-validation dependency

* JAVA-2563: Add spring-boot-starter-validation dependency

* JAVA-2563: Use MongoClients factory instead of MongoClient directly

* JAVA-2563: Downgrade spring-5-data-reactive to Spring Boot 2.2.6.RELEASE

* JAVA-2563: Switch back to default bootstrap mode for JPA

* JAVA-2563: Add spring-boot-starter-validation dependency

* JAVA-2563: Switch from ServerHttpRequest to ServerWebExchange interface

* JAVA-2563: Use OutputCaptureRule instead of OutputCapture

* JAVA-2563: Add spring-boot-starter-validation dependency

* JAVA-2563: Add spring-boot-starter-validation dependency

* JAVA-2563: Add spring-boot-starter-validation dependency

* JAVA-2563: Fix Jackson dependency

* JAVA-2563: Fix ManualEmbeddedMongoDbIntegrationTest

* JAVA-2563: Replace validation-api with spring-boot-starter-validation

* JAVA-2563: Fix usage of deprecated getErrorAttributes method

* JAVA-2563: Downgrade spring-data-cassandra-reactive to Spring Boot 2.2.6.RELEASE

* JAVA-2563: Set spring.datasource.generate-unique-name to false in spring-session-jdbc
This commit is contained in:
kwoyke
2020-09-11 14:49:02 +02:00
committed by GitHub
parent 1a64efd1fa
commit 11a77301c0
36 changed files with 124 additions and 42 deletions

View File

@@ -2,7 +2,6 @@ package com.baeldung.reactive.authresolver;
import java.util.Collections;
import org.springframework.context.annotation.Bean;
import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework.security.authentication.ReactiveAuthenticationManager;
import org.springframework.security.authentication.ReactiveAuthenticationManagerResolver;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
@@ -15,6 +14,7 @@ import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.security.web.server.SecurityWebFilterChain;
import org.springframework.security.web.server.authentication.AuthenticationWebFilter;
import org.springframework.web.server.ServerWebExchange;
import reactor.core.publisher.Mono;
@EnableWebFluxSecurity
@@ -38,9 +38,10 @@ public class CustomWebSecurityConfig {
return new AuthenticationWebFilter(resolver());
}
public ReactiveAuthenticationManagerResolver<ServerHttpRequest> resolver() {
return request -> {
if (request
public ReactiveAuthenticationManagerResolver<ServerWebExchange> resolver() {
return exchange -> {
if (exchange
.getRequest()
.getPath()
.subPath(0)
.value()