Fix ServerHttpSecurity

This commit is contained in:
Rob Winch 2017-10-12 15:13:02 -05:00
parent 8c7fa85107
commit 015cc2203e
8 changed files with 8 additions and 9 deletions

View File

@ -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 {
}

View File

@ -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";

View File

@ -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)

View File

@ -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

View File

@ -39,7 +39,7 @@ import org.springframework.web.context.support.AnnotationConfigWebApplicationCon
* @author Rob Winch
*
*/
public class ServerHttpSecurityAntMatchersTests {
public class HttpSecurityAntMatchersTests {
AnnotationConfigWebApplicationContext context;
MockHttpServletRequest request;

View File

@ -40,7 +40,7 @@ import org.springframework.web.context.support.AnnotationConfigWebApplicationCon
* @author Rob Winch
*
*/
public class ServerHttpSecurityLogoutTests {
public class HttpSecurityLogoutTests {
AnnotationConfigWebApplicationContext context;
MockHttpServletRequest request;

View File

@ -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;

View File

@ -42,7 +42,7 @@ import org.springframework.security.web.FilterChainProxy;
* @author Rob Winch
*
*/
public class CustomServerHttpSecurityConfigurerTests {
public class CustomHttpSecurityConfigurerTests {
@Autowired
ConfigurableApplicationContext context;