Fix ServerHttpSecurity
This commit is contained in:
parent
8c7fa85107
commit
015cc2203e
|
@ -19,7 +19,6 @@ package org.springframework.security.config.annotation.web.reactive;
|
|||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.annotation.Import;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.lang.annotation.*;
|
||||
|
||||
/**
|
||||
|
@ -29,7 +28,7 @@ import java.lang.annotation.*;
|
|||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.TYPE)
|
||||
@Documented
|
||||
@Import({HttpSecurityConfiguration.class, WebFluxSecurityConfiguration.class})
|
||||
@Import({ServerHttpSecurityConfiguration.class, WebFluxSecurityConfiguration.class})
|
||||
@Configuration
|
||||
public @interface EnableWebFluxSecurity {
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ import static org.springframework.security.config.web.server.ServerHttpSecurity.
|
|||
* @author Rob Winch
|
||||
* @since 5.0
|
||||
*/
|
||||
public class HttpSecurityConfiguration implements WebFluxConfigurer {
|
||||
public class ServerHttpSecurityConfiguration implements WebFluxConfigurer {
|
||||
private static final String BEAN_NAME_PREFIX = "org.springframework.security.config.annotation.web.reactive.HttpSecurityConfiguration.";
|
||||
private static final String HTTPSECURITY_BEAN_NAME = BEAN_NAME_PREFIX + "httpSecurity";
|
||||
|
|
@ -40,7 +40,7 @@ import spock.lang.Unroll;
|
|||
* @author Rob Winch
|
||||
*
|
||||
*/
|
||||
public class ServerHttpSecurityTests extends BaseSpringSpec {
|
||||
public class HttpConfigurationTests extends BaseSpringSpec {
|
||||
def "addFilter with unregistered Filter"() {
|
||||
when:
|
||||
loadConfig(UnregisteredFilterConfig)
|
||||
|
|
|
@ -48,7 +48,7 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
|
|||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration
|
||||
@WebAppConfiguration
|
||||
public class ServerHttpSecurityHeadersTests {
|
||||
public class HttpSecurityHeadersTests {
|
||||
@Autowired
|
||||
WebApplicationContext wac;
|
||||
@Autowired
|
|
@ -39,7 +39,7 @@ import org.springframework.web.context.support.AnnotationConfigWebApplicationCon
|
|||
* @author Rob Winch
|
||||
*
|
||||
*/
|
||||
public class ServerHttpSecurityAntMatchersTests {
|
||||
public class HttpSecurityAntMatchersTests {
|
||||
AnnotationConfigWebApplicationContext context;
|
||||
|
||||
MockHttpServletRequest request;
|
|
@ -40,7 +40,7 @@ import org.springframework.web.context.support.AnnotationConfigWebApplicationCon
|
|||
* @author Rob Winch
|
||||
*
|
||||
*/
|
||||
public class ServerHttpSecurityLogoutTests {
|
||||
public class HttpSecurityLogoutTests {
|
||||
AnnotationConfigWebApplicationContext context;
|
||||
|
||||
MockHttpServletRequest request;
|
|
@ -43,7 +43,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|||
* @author Rob Winch
|
||||
*
|
||||
*/
|
||||
public class ServerHttpSecurityRequestMatchersTests {
|
||||
public class HttpSecurityRequestMatchersTests {
|
||||
AnnotationConfigWebApplicationContext context;
|
||||
|
||||
MockHttpServletRequest request;
|
|
@ -42,7 +42,7 @@ import org.springframework.security.web.FilterChainProxy;
|
|||
* @author Rob Winch
|
||||
*
|
||||
*/
|
||||
public class CustomServerHttpSecurityConfigurerTests {
|
||||
public class CustomHttpSecurityConfigurerTests {
|
||||
@Autowired
|
||||
ConfigurableApplicationContext context;
|
||||
|
Loading…
Reference in New Issue