diff --git a/config/src/main/java/org/springframework/security/config/web/server/HttpSecurity.java b/config/src/main/java/org/springframework/security/config/web/server/HttpSecurity.java index 30a8169a19..7a8264c0a5 100644 --- a/config/src/main/java/org/springframework/security/config/web/server/HttpSecurity.java +++ b/config/src/main/java/org/springframework/security/config/web/server/HttpSecurity.java @@ -43,7 +43,7 @@ import org.springframework.security.web.server.authorization.AuthorizationContex import org.springframework.security.web.server.authorization.AuthorizationWebFilter; import org.springframework.security.web.server.authorization.DelegatingReactiveAuthorizationManager; import org.springframework.security.web.server.authorization.ExceptionTranslationWebFilter; -import org.springframework.security.web.server.context.AuthenticationReactorContextFilter; +import org.springframework.security.web.server.context.AuthenticationReactorContextWebFilter; import org.springframework.security.web.server.context.SecurityContextServerRepository; import org.springframework.security.web.server.context.SecurityContextRepositoryWebFilter; import org.springframework.security.web.server.context.ServerWebExchangeAttributeSecurityContextServerRepository; @@ -201,7 +201,7 @@ public class HttpSecurity { if(this.logout != null) { this.logout.configure(this); } - this.addFilterAt(new AuthenticationReactorContextFilter(), SecurityWebFiltersOrder.AUTHENTICATION_CONTEXT); + this.addFilterAt(new AuthenticationReactorContextWebFilter(), SecurityWebFiltersOrder.AUTHENTICATION_CONTEXT); if(this.authorizeExchangeBuilder != null) { ServerAuthenticationEntryPoint serverAuthenticationEntryPoint = getServerAuthenticationEntryPoint(); ExceptionTranslationWebFilter exceptionTranslationWebFilter = new ExceptionTranslationWebFilter(); diff --git a/webflux/src/main/java/org/springframework/security/web/server/context/AuthenticationReactorContextFilter.java b/webflux/src/main/java/org/springframework/security/web/server/context/AuthenticationReactorContextWebFilter.java similarity index 94% rename from webflux/src/main/java/org/springframework/security/web/server/context/AuthenticationReactorContextFilter.java rename to webflux/src/main/java/org/springframework/security/web/server/context/AuthenticationReactorContextWebFilter.java index 915d7cf6a2..e748774c7c 100644 --- a/webflux/src/main/java/org/springframework/security/web/server/context/AuthenticationReactorContextFilter.java +++ b/webflux/src/main/java/org/springframework/security/web/server/context/AuthenticationReactorContextWebFilter.java @@ -32,7 +32,7 @@ import java.security.Principal; * @author Rob Winch * @since 5.0 */ -public class AuthenticationReactorContextFilter implements WebFilter { +public class AuthenticationReactorContextWebFilter implements WebFilter { @Override public Mono filter(ServerWebExchange exchange, WebFilterChain chain) { diff --git a/webflux/src/test/java/org/springframework/security/web/server/context/AuthenticationReactorContextFilterTests.java b/webflux/src/test/java/org/springframework/security/web/server/context/AuthenticationReactorContextWebFilterTests.java similarity index 95% rename from webflux/src/test/java/org/springframework/security/web/server/context/AuthenticationReactorContextFilterTests.java rename to webflux/src/test/java/org/springframework/security/web/server/context/AuthenticationReactorContextWebFilterTests.java index 1585de789e..38dc3e4e15 100644 --- a/webflux/src/test/java/org/springframework/security/web/server/context/AuthenticationReactorContextFilterTests.java +++ b/webflux/src/test/java/org/springframework/security/web/server/context/AuthenticationReactorContextWebFilterTests.java @@ -34,8 +34,8 @@ import static org.assertj.core.api.Assertions.assertThat; * @author Rob Winch * @since 5.0 */ -public class AuthenticationReactorContextFilterTests { - AuthenticationReactorContextFilter filter = new AuthenticationReactorContextFilter(); +public class AuthenticationReactorContextWebFilterTests { + AuthenticationReactorContextWebFilter filter = new AuthenticationReactorContextWebFilter(); Principal principal = new TestingAuthenticationToken("user","password", "ROLE_USER");