Merge pull request #76 from overleaf/ew-debug-http-headers

debug http headers
This commit is contained in:
Ersun Warncke 2019-11-27 04:46:43 -08:00 committed by GitHub
commit 203a690f1c

View file

@ -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();