}
}
else
{
// We create a temporary token just for the login time
TransientTokenService tokenService = AbstractTokenService.getInstance(TransientTokenService.class);
String token = tokenService.createToken(credentials);
req.getSession().removeAttribute(InitiateLoginServlet.CREDENTIALS);
// Send authentication request
log.debug("Login initiated with credentials in session, performing authentication");
sendAuth(resp, credentials.getUsername(), token);