Authentification a = WOJServer.getInstance().getAuthentificationService().authenticate(userName, passwd, mahcineId, version);
//Current server can not serve the request, we send a redirect to the good server
if(a instanceof AuthNotDone) {
throw new ServerRedirectException(((AuthNotDone)a).getAuthServer());
} else {
SecurityHelper.saveAuthentification(ServletHelper.getCurrentSession(), a);
return a;
}
}