seung-00 commented on code in PR #4892:
URL: https://github.com/apache/zeppelin/pull/4892#discussion_r1827010881


##########
shell/src/main/java/org/apache/zeppelin/shell/terminal/TerminalCsrfTokenManager.java:
##########
@@ -0,0 +1,44 @@
+package org.apache.zeppelin.shell.terminal;
+
+import java.util.Map;
+import java.util.Objects;
+import java.util.UUID;
+import java.util.concurrent.ConcurrentHashMap;
+import org.apache.zeppelin.shell.terminal.websocket.TerminalSocket;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class TerminalCsrfTokenManager {
+  private static TerminalCsrfTokenManager instance;
+
+  private static final Logger LOGGER = 
LoggerFactory.getLogger(TerminalSocket.class);
+
+  private final Map<String, String> csrfTokens = new ConcurrentHashMap<>();

Review Comment:
   CSRF tokens are managed per note and paragraph.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscr...@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to