git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@2701
ab3bd59b-922f-494d-bb5f-
6f0a3c29deca
throw new ProfileException("Shibboleth SSO profile is not configured for relying party "
+ loginContext.getRelyingPartyId());
}
- loginContext.getRequestedAuthenticationMethods().add(rpConfig.getDefaultAuthenticationMethod());
+ if (loginContext.getRequestedAuthenticationMethods().size() == 0
+ && rpConfig.getDefaultAuthenticationMethod() != null) {
+ loginContext.getRequestedAuthenticationMethods().add(rpConfig.getDefaultAuthenticationMethod());
+ }
httpRequest.setAttribute(LoginContext.LOGIN_CONTEXT_KEY, loginContext);