-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Open
Labels
in: coreAn issue in spring-security-coreAn issue in spring-security-coretype: enhancementA general enhancementA general enhancement
Description
Add context propagation support via Micrometer Context Propagation for the SecurityContext, between SecurityContextHolder and ReactiveSecurityContextHolder.
This would allow applications to easily cross between the reactive <-> imperative border in either direction, and have the SecurityContext available on both sides.
Examples:
- a WebFlux application could use the
handleortapoperators (which propagate from Context to ThreadLocals) to call into imperative code that expects theSecurityContextto be accessible fromSecurityContextHolder. - a Spring WebMVC application could use the
captureContextoperator (which propagates ThreadLocals to Context) to call into reactive code that expects theSecurityContextto be accessible fromReactiveSecurityContextHolder.
lucasbraune, asibross, awilhelmer and Saljack
Metadata
Metadata
Assignees
Labels
in: coreAn issue in spring-security-coreAn issue in spring-security-coretype: enhancementA general enhancementA general enhancement