Add custom provision connector configuration in vallidating
@@ -49,8 +49,6 @@ import java.util.stream.Collectors;
public class ApplicationMgtValidationListener extends AbstractApplicationMgtListener {
- private static Log log = LogFactory.getLog(ApplicationMgtValidationListener.class);
-
private static final String AUTHENTICATOR_NOT_AVAILABLE = "Authenticator %s is not available in the server";
private static final String AUTHENTICATOR_NOT_CONFIGURED =
"Authenticator %s is not configured for %s identity Provider";
@@ -59,6 +57,7 @@ public class ApplicationMgtValidationListener extends AbstractApplicationMgtList
"Federated Identity Provider %s is not available in the server";
private static final String CLAIM_DIALECT_NOT_AVAILABLE = "Claim Dialect %s is not available for tenant %s";
private static final String CLAIM_NOT_AVAILABLE = "Local claim %s is not available for tenant %s";
+ private static Log log = LogFactory.getLog(ApplicationMgtValidationListener.class);
@Override
public int getDefaultOrderId() {
@@ -183,7 +182,8 @@ public class ApplicationMgtValidationListener extends AbstractApplicationMgtList
if (savedIdp == null) {
validationMsg.add(String.format(FEDERATED_IDP_NOT_AVAILABLE,
idp.getIdentityProviderName()));
- } else if (savedIdp.getDefaultProvisioningConnectorConfig() == null) {
+ } else if (savedIdp.getDefaultProvisioningConnectorConfig() == null &&
+ savedIdp.getProvisioningConnectorConfigs() == null) {
validationMsg.add(String.format(PROVISIONING_CONNECTOR_NOT_CONFIGURED,
idp.getIdentityProviderName()));
}
