Skip to content

Commit

Permalink
fixup! Refactored building/parsing of the JTW tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
mcalmer committed Jan 24, 2025
1 parent 62776b5 commit 2242dc8
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -592,8 +592,9 @@ else if (!onlyChannels.contains(channel)) {
halt(HttpStatus.SC_BAD_REQUEST, "Token does not specify the organization");
}
else if (!ChannelFactory.isAccessibleBy(channel, orgId)) {
LOG.info("Forbidden: Token does not provide access to channel {}", channel);
halt(HttpStatus.SC_FORBIDDEN, "Token does not provide access to channel %s".formatted(channel));
String sanitChannel = StringUtil.sanitizeLogInput(channel);
LOG.info("Forbidden: Token does not provide access to channel {}", sanitChannel);
halt(HttpStatus.SC_FORBIDDEN, "Token does not provide access to channel %s".formatted(sanitChannel));
}
}
catch (TokenParsingException e) {
Expand Down

0 comments on commit 2242dc8

Please sign in to comment.