Skip to content

Commit

Permalink
Hide token in the log file for SetAccessToken (#1434)
Browse files Browse the repository at this point in the history
Fixes #1433
  • Loading branch information
ubuntolog authored Nov 15, 2023
1 parent 11b0971 commit 988198c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/org/broad/igv/batch/CommandListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,12 @@ private void processClientSession(CommandExecutor cmdExe) throws IOException {

String cmd = inputLine;
if (!cmd.contains("/oauthCallback")) {
log.info(cmd);
if (cmd.startsWith("SetAccessToken")) {
log.info(cmd.substring(0,14) + " *****");
}
else {
log.info(cmd);
}
}

boolean isHTTP = cmd.startsWith("OPTIONS") || cmd.startsWith("HEAD") || cmd.startsWith("GET");
Expand Down

0 comments on commit 988198c

Please sign in to comment.