@@ -165,11 +171,14 @@ public class HostnameFilter implements Filter {
...
@@ -165,11 +171,14 @@ public class HostnameFilter implements Filter {
try{
try{
httpRequest=(HttpServletRequest)request;
httpRequest=(HttpServletRequest)request;
insertServerLoggingContext(httpRequest,authtype);
insertServerLoggingContext(httpRequest,authtype);
logger.info("Logging in with username {} and password {}, remote {}, authtype: {}",httpRequest.getUserPrincipal(),httpRequest.getRemoteUser(),httpRequest.getAuthType());
Stringhostname=parseHostname(httpRequest);
Stringhostname=parseHostname(httpRequest);
if(httpRequest.getUserPrincipal()==null){
if(httpRequest.getUserPrincipal()==null){
// Check if we are logging in with rest
// Check if we are can login in with rest alternative methods ( appkey, basic auth, etc.. )