mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 21:13:43 -05:00
add debug
This commit is contained in:
parent
76359d4ec6
commit
b6812462d6
1 changed files with 6 additions and 0 deletions
|
@ -138,6 +138,12 @@ public class Oauth2Filter implements Filter {
|
||||||
clientIp = request.getRemoteAddr();
|
clientIp = request.getRemoteAddr();
|
||||||
}
|
}
|
||||||
Log.info("[{}] Authorization header present", clientIp);
|
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);
|
StringTokenizer st = new StringTokenizer(authHeader);
|
||||||
if (st.hasMoreTokens()) {
|
if (st.hasMoreTokens()) {
|
||||||
String basic = st.nextToken();
|
String basic = st.nextToken();
|
||||||
|
|
Loading…
Reference in a new issue