From b6812462d6b0cbe7c5e56a798716a2052121c1a8 Mon Sep 17 00:00:00 2001 From: Ersun Warncke Date: Mon, 25 Nov 2019 10:20:43 -0400 Subject: [PATCH] add debug --- .../main/java/uk/ac/ic/wlgitbridge/server/Oauth2Filter.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/server/Oauth2Filter.java b/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/server/Oauth2Filter.java index bbf2696cd3..72efe42982 100644 --- a/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/server/Oauth2Filter.java +++ b/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/server/Oauth2Filter.java @@ -138,6 +138,12 @@ public class Oauth2Filter implements Filter { clientIp = request.getRemoteAddr(); } Log.info("[{}] Authorization header present", clientIp); + // TEMPORARY DEBUG CODE + Enumeration headerNames = request.getHeaderNames(); + while(headerNames.hasMoreElements()) { + String headerName = (String)headerNames.nextElement(); + Log.info("HEADER {}: {}", headerName, request.getHeader(headerName)); + } StringTokenizer st = new StringTokenizer(authHeader); if (st.hasMoreTokens()) { String basic = st.nextToken();