Merge branch '2.1.x'
This commit is contained in:
@@ -19,7 +19,6 @@ package org.springframework.boot.autoconfigure.security.reactive;
|
||||
import java.time.Duration;
|
||||
|
||||
import org.junit.Test;
|
||||
import reactor.core.publisher.Mono;
|
||||
|
||||
import org.springframework.boot.autoconfigure.AutoConfigurations;
|
||||
import org.springframework.boot.autoconfigure.security.SecurityProperties;
|
||||
@@ -30,7 +29,6 @@ import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.annotation.Import;
|
||||
import org.springframework.security.authentication.ReactiveAuthenticationManager;
|
||||
import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity;
|
||||
import org.springframework.security.core.Authentication;
|
||||
import org.springframework.security.core.userdetails.MapReactiveUserDetailsService;
|
||||
import org.springframework.security.core.userdetails.ReactiveUserDetailsService;
|
||||
import org.springframework.security.core.userdetails.User;
|
||||
@@ -156,12 +154,7 @@ public class ReactiveUserDetailsServiceAutoConfigurationTests {
|
||||
|
||||
@Bean
|
||||
public ReactiveAuthenticationManager reactiveAuthenticationManager() {
|
||||
return new ReactiveAuthenticationManager() {
|
||||
@Override
|
||||
public Mono<Authentication> authenticate(Authentication authentication) {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
return (authentication) -> null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -26,7 +26,6 @@ import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
|
||||
import javax.servlet.ServletContext;
|
||||
import javax.servlet.ServletException;
|
||||
import javax.servlet.http.HttpServlet;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
@@ -276,13 +275,9 @@ public class ServerPropertiesTests {
|
||||
@Test
|
||||
public void jettyMaxHttpPostSizeMatchesDefault() throws Exception {
|
||||
JettyServletWebServerFactory jettyFactory = new JettyServletWebServerFactory(0);
|
||||
JettyWebServer jetty = (JettyWebServer) jettyFactory
|
||||
.getWebServer(new ServletContextInitializer() {
|
||||
|
||||
@Override
|
||||
public void onStartup(ServletContext servletContext)
|
||||
throws ServletException {
|
||||
servletContext.addServlet("formPost", new HttpServlet() {
|
||||
JettyWebServer jetty = (JettyWebServer) jettyFactory.getWebServer(
|
||||
(ServletContextInitializer) (servletContext) -> servletContext
|
||||
.addServlet("formPost", new HttpServlet() {
|
||||
|
||||
@Override
|
||||
protected void doPost(HttpServletRequest req,
|
||||
@@ -291,10 +286,7 @@ public class ServerPropertiesTests {
|
||||
req.getParameterMap();
|
||||
}
|
||||
|
||||
}).addMapping("/form");
|
||||
}
|
||||
|
||||
});
|
||||
}).addMapping("/form"));
|
||||
jetty.start();
|
||||
org.eclipse.jetty.server.Connector connector = jetty.getServer()
|
||||
.getConnectors()[0];
|
||||
|
||||
Reference in New Issue
Block a user