git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@2699
ab3bd59b-922f-494d-bb5f-
6f0a3c29deca
requestContext.getInboundSAMLMessage());
loginContext.setAuthenticationEngineURL(authenticationManagerPath);
loginContext.setProfileHandlerURL(HttpHelper.getRequestUriWithoutContext(servletRequest));
- if (loginContext.getRequestedAuthenticationMethods().size() == 0) {
+ if (loginContext.getRequestedAuthenticationMethods().size() == 0
+ && rpConfig.getDefaultAuthenticationMethod() != null) {
loginContext.getRequestedAuthenticationMethods().add(rpConfig.getDefaultAuthenticationMethod());
}