1
0
mirror of synced 2026-08-05 01:36:56 +00:00

Fix for Reactor Refactor

- contextStart -> subscriberContext
This commit is contained in:
Rob Winch
2017-08-29 08:24:35 -05:00
parent b6212cba66
commit c4917f359a
3 changed files with 26 additions and 26 deletions
@@ -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()));
}
}
@@ -56,7 +56,7 @@ public class AuthenticationReactorContextFilterTests {
.then()
)
)
.contextStart( context -> context.put("foo", "bar")))
.subscriberContext( context -> context.put("foo", "bar")))
.verifyComplete();
}