Browse Source

Fix WebSessionReactiveSecurityRepository Supports Cache

Fix the checkstyle for this feature

Closes gh-8422
Rob Winch 3 years ago
parent
commit
3c259b4be5

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