From 67830f41110d3d1e2ede3cbef32e44b0d8b6e51c Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Tue, 3 May 2022 21:08:51 -0500 Subject: [PATCH] Fix WebSessionReactiveSecurityRepository Supports Cache Fix the checkstyle for this feature Closes gh-8422 --- .../context/WebSessionServerSecurityContextRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/main/java/org/springframework/security/web/server/context/WebSessionServerSecurityContextRepository.java b/web/src/main/java/org/springframework/security/web/server/context/WebSessionServerSecurityContextRepository.java index 487ef70b2b..a70b4908f5 100644 --- a/web/src/main/java/org/springframework/security/web/server/context/WebSessionServerSecurityContextRepository.java +++ b/web/src/main/java/org/springframework/security/web/server/context/WebSessionServerSecurityContextRepository.java @@ -91,7 +91,7 @@ public class WebSessionServerSecurityContextRepository implements ServerSecurity : LogMessage.format("No SecurityContext found in WebSession: '%s'", session)); return Mono.justOrEmpty(context); }); - return (cacheSecurityContext) ? result.cache() : result; + return (this.cacheSecurityContext) ? result.cache() : result; } }