manager.setReturnTo(callbackUrl);
checkNonce(request.getParameter("openid.response_nonce"));
byte[] mac_key = (byte[])session.getAttribute(ATTR_MAC);
String alias = (String)session.getAttribute(ATTR_ALIAS);
Authentication authentication = manager.getAuthentication(request,mac_key,alias);
identity = authentication.getIdentity();
email = authentication.getEmail();
username = email;
} catch (Exception e) {
err = "Openid authentication suceeded, creating local user reference failed.";
LOGGER.log(Level.WARNING,err,e);
}