af.setUnifiedAuthService(uas);
af.setSsp(userSSP);
UAK u = null;
try {
Authentification a = af.authenticate(userLogged.getLogin(), userLogged.getPassword(), CommonSecurityHelper.BROWSER, true, Portal.getInstance().getVersion());
if (a instanceof AuthSuccessfull) {
AuthSuccessfull au = (AuthSuccessfull)a;
u = au.getKey();
uas.setLoginInfo(userLogged.getLogin(), userLogged.getPassword(), CommonSecurityHelper.BROWSER, true, Portal.getVersion(), u.getUserId(), u.getGroups(), u.getPublishVisibilityRight());
uas.setUAK(u);