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; } }