diff --git a/web/src/main/java/org/springframework/security/web/server/ServerFormLoginAuthenticationConverter.java b/web/src/main/java/org/springframework/security/web/server/ServerFormLoginAuthenticationConverter.java index 3cb2e09cad..05196ae859 100644 --- a/web/src/main/java/org/springframework/security/web/server/ServerFormLoginAuthenticationConverter.java +++ b/web/src/main/java/org/springframework/security/web/server/ServerFormLoginAuthenticationConverter.java @@ -39,8 +39,8 @@ public class ServerFormLoginAuthenticationConverter implements Function apply(ServerWebExchange serverWebExchange) { - return serverWebExchange.getFormData() + public Mono apply(ServerWebExchange exchange) { + return exchange.getFormData() .map( data -> createAuthentication(data)); } diff --git a/web/src/main/java/org/springframework/security/web/server/ServerHttpBasicAuthenticationConverter.java b/web/src/main/java/org/springframework/security/web/server/ServerHttpBasicAuthenticationConverter.java index bd04767144..b9ed1b8b03 100644 --- a/web/src/main/java/org/springframework/security/web/server/ServerHttpBasicAuthenticationConverter.java +++ b/web/src/main/java/org/springframework/security/web/server/ServerHttpBasicAuthenticationConverter.java @@ -36,8 +36,8 @@ public class ServerHttpBasicAuthenticationConverter implements Function apply(ServerWebExchange webExchange) { - ServerHttpRequest request = webExchange.getRequest(); + public Mono apply(ServerWebExchange exchange) { + ServerHttpRequest request = exchange.getRequest(); String authorization = request.getHeaders().getFirst(HttpHeaders.AUTHORIZATION); if(authorization == null) {