git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/branches/REL_2@2851
ab3bd59b-922f-494d-bb5f-
6f0a3c29deca
[SIDP-306] - Remove ClientCertAuth rule from SAML 2 SSO SecurityPolicy in relying-party.xml
[SIDP-310] - Change default relying-party.xml settings for SAML 2 profiles' encryptNameIds parameter from "conditional" to "never"
[SIDP-318] - IdP erroneously logs many normal events as errors
+[SIDP-322] - Exception thrown when SP requests a particular authentication method that is not configured
Changes in Release 2.1.2
=============================================
loginHandler = possibleLoginHandlers.get(AuthnContext.PREVIOUS_SESSION_AUTHN_CTX);
} else {
possibleLoginHandlers.remove(AuthnContext.PREVIOUS_SESSION_AUTHN_CTX);
+ if (possibleLoginHandlers.isEmpty()) {
+ LOG.info("No authentication mechanism available for use with relying party '{}'", loginContext.getRelyingPartyId());
+ throw new AuthenticationException();
+ }
Entry<String, LoginHandler> chosenLoginHandler = possibleLoginHandlers.entrySet().iterator().next();
loginContext.setAttemptedAuthnMethod(chosenLoginHandler.getKey());
loginHandler = chosenLoginHandler.getValue();