if (logger.isDebugEnabled()) {
logger.debug("Header found : "+auth);
}
auth = auth.substring(6).trim();
Base64 decoder = new Base64();
String cred = new String(decoder.decode(auth.getBytes("UTF-8")));
int colonInd = cred.indexOf(':');
String user = cred.substring(0,colonInd);
String pass = cred.substring(colonInd+1);
JahiaUser jahiaUser = ServicesRegistry.getInstance().getJahiaUserManagerService().lookupUser(user);