Fix for Reactor Refactor
- contextStart -> subscriberContext
This commit is contained in:
+1
-1
@@ -40,6 +40,6 @@ public class AuthenticationReactorContextFilter implements WebFilter {
|
||||
public Mono<Void> filter(ServerWebExchange exchange, WebFilterChain chain) {
|
||||
|
||||
return chain.filter(exchange)
|
||||
.contextStart((Context context) -> context.put(Authentication.class, exchange.getPrincipal()));
|
||||
.subscriberContext((Context context) -> context.put(Authentication.class, exchange.getPrincipal()));
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -56,7 +56,7 @@ public class AuthenticationReactorContextFilterTests {
|
||||
.then()
|
||||
)
|
||||
)
|
||||
.contextStart( context -> context.put("foo", "bar")))
|
||||
.subscriberContext( context -> context.put("foo", "bar")))
|
||||
.verifyComplete();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user