Remove most defaults from schemas - SIDP-204
[java-idp.git] / src / main / java / edu / internet2 / middleware / shibboleth / idp / config / profile / saml2 / SAML2SSOProfileHandlerBeanDefinitionParser.java
index eefec83..f8626cb 100644 (file)
@@ -42,7 +42,11 @@ public class SAML2SSOProfileHandlerBeanDefinitionParser extends AbstractSAML2Pro
     protected void doParse(Element config, BeanDefinitionBuilder builder) {
         super.doParse(config, builder);
 
-        builder.addConstructorArg(DatatypeHelper.safeTrimOrNullString(config.getAttributeNS(null,
-                "authenticationManagerPath")));
+        if (config.hasAttributeNS(null, "authenticationManagerPath")) {
+            builder.addConstructorArgValue(DatatypeHelper.safeTrimOrNullString(config.getAttributeNS(null,
+                    "authenticationManagerPath")));
+        } else {
+            builder.addConstructorArgValue("/AuthnEngine");
+        }
     }
 }
\ No newline at end of file