AuthenticationReactorContextFilter->AuthenticationReactorContextWebFilter

Issue gh-4615
This commit is contained in:
Rob Winch 2017-10-10 14:39:19 -05:00
parent bfcc2a602d
commit b858985b0e
3 changed files with 5 additions and 5 deletions

View File

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

View File

@ -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<Void> filter(ServerWebExchange exchange, WebFilterChain chain) {

View File

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