Consider replacing Hooks.onLastOperator
by a better propagation mechanism
#14356
Labels
in: web
An issue in web modules (web, webmvc)
status: duplicate
A duplicate of another issue
type: enhancement
A general enhancement
Currently, we use
Hooks.onLastOperator
to propagate theSecurityContext
, request and response to the reactor operator chain in tests. See https://github.com/spring-projects/spring-security/blob/main/config/src/main/java/org/springframework/security/config/annotation/web/configuration/SecurityReactorContextConfiguration.java#L83 and https://github.com/spring-projects/spring-security/blob/main/test/src/main/java/org/springframework/security/test/context/support/ReactorContextTestExecutionListener.java#L75.However, such hook does not cover some corner cases. We should investigate more and consider moving to a better propagation mechanism.
Related:
The text was updated successfully, but these errors were encountered: