Changes in Release 2.2.0
=============================================
+[SIDP-379] - Usage of general AuthenticationException in UsernamePasswordLoginHandler
[SIDP-373] - The SLF4J MDC state is not being properly cleared when request processing is done.
[SIDP-368] - Provide more acurate login error to servlet when Username/Password login authentication has failed.
[SIDP-365] - Expose uptime of IdP web application with status handler
import org.slf4j.LoggerFactory;
import edu.internet2.middleware.shibboleth.idp.authn.AuthenticationEngine;
+import edu.internet2.middleware.shibboleth.idp.authn.AuthenticationException;
import edu.internet2.middleware.shibboleth.idp.authn.LoginHandler;
import edu.internet2.middleware.shibboleth.idp.authn.UsernamePrincipal;
AuthenticationEngine.returnToAuthenticationEngine(request, response);
} catch (LoginException e) {
request.setAttribute(failureParam, "true");
- request.setAttribute(LoginHandler.AUTHENTICATION_EXCEPTION_KEY, e);
+ request.setAttribute(LoginHandler.AUTHENTICATION_EXCEPTION_KEY, new AuthenticationException(e));
redirectToLoginPage(request, response);
}
}