if (handler == null) {
loginContext.setPrincipalAuthenticated(false);
- loginContext.setAuthenticationFailureMessage("No AuthenticationHandler satisfys the request from: "
+ loginContext.setAuthenticationAttempted();
+ loginContext.setAuthenticationFailureMessage("No AuthenticationHandler satisfies the request from: "
+ loginContext.getRelyingPartyId());
LOG.error("No AuthenticationHandler satisfies the request from relying party: "
+ loginContext.getRelyingPartyId());
if (loginContext == null) {
log.debug("User session does not contain a login context, processing as first leg of request");
performAuthentication(inTransport, outTransport);
- } else if (!loginContext.isPrincipalAuthenticated()) {
+ } else if (!loginContext.isPrincipalAuthenticated() && !loginContext.getAuthenticationAttempted()) {
log.debug("User session contained a login context but user was not authenticated, processing as first leg of request");
performAuthentication(inTransport, outTransport);
} else {
if (loginContext == null) {
log.debug("User session does not contain a login context, processing as first leg of request");
performAuthentication(inTransport, outTransport);
- } else if (!loginContext.isPrincipalAuthenticated()) {
+ } else if (!loginContext.isPrincipalAuthenticated() && !loginContext.getAuthenticationAttempted()) {
log.debug("User session contained a login context but user was not authenticated, processing as first leg of request");
performAuthentication(inTransport, outTransport);
} else {