Skip to content

Commit 318892d

Browse files
committed
DMP-5198 GenerateCaseDocumentForRetentionDateAutomatedTask - Rethrow Interrupted Exception
Added some logging to find out why tests are failing
1 parent d80595c commit 318892d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/uk/gov/hmcts/darts/common/config/security/SecurityConfig.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,8 @@ private void writeError(HttpServletResponse response, Exception exception) {
206206
Jwt getJwtFromRequest(HttpServletRequest request) {
207207
try {
208208
String authHeader = request.getHeader("Authorization");
209+
//TODO: Remove this log statement in production code, as it may expose sensitive information
210+
log.info("Authorization header: {}", authHeader);
209211
String token = authHeader.replace(TOKEN_BEARER_PREFIX, "").trim();
210212
String issuer = JWTParser.parse(token).getJWTClaimsSet().getIssuer();
211213

0 commit comments

Comments
 (0)