From 292bd29f629db9f3cb6a15f81b544ec13f56c025 Mon Sep 17 00:00:00 2001 From: thisarawelmilla Date: Tue, 15 Oct 2024 13:32:41 +0530 Subject: [PATCH] Add defined by type for the authenticators. --- .../management/application/util/OrgApplicationManagerUtil.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/org.wso2.carbon.identity.organization.management.application/src/main/java/org/wso2/carbon/identity/organization/management/application/util/OrgApplicationManagerUtil.java b/components/org.wso2.carbon.identity.organization.management.application/src/main/java/org/wso2/carbon/identity/organization/management/application/util/OrgApplicationManagerUtil.java index 5619aa96d..608d3c88f 100644 --- a/components/org.wso2.carbon.identity.organization.management.application/src/main/java/org/wso2/carbon/identity/organization/management/application/util/OrgApplicationManagerUtil.java +++ b/components/org.wso2.carbon.identity.organization.management.application/src/main/java/org/wso2/carbon/identity/organization/management/application/util/OrgApplicationManagerUtil.java @@ -29,6 +29,7 @@ import org.wso2.carbon.identity.application.common.model.ServiceProvider; import org.wso2.carbon.identity.application.common.model.ServiceProviderProperty; import org.wso2.carbon.identity.application.common.util.IdentityApplicationConstants; +import org.wso2.carbon.identity.base.AuthenticatorPropertyConstants; import org.wso2.carbon.identity.core.util.IdentityDatabaseUtil; import org.wso2.carbon.identity.organization.management.application.internal.OrgApplicationMgtDataHolder; import org.wso2.carbon.identity.organization.management.service.exception.OrganizationManagementServerException; @@ -168,6 +169,7 @@ public static IdentityProvider createOrganizationSSOIDP() { FederatedAuthenticatorConfig authConfig = new FederatedAuthenticatorConfig(); authConfig.setName(ORGANIZATION_LOGIN_AUTHENTICATOR); authConfig.setDisplayName(ORGANIZATION_LOGIN_AUTHENTICATOR); + authConfig.setDefinedByType(AuthenticatorPropertyConstants.DefinedByType.SYSTEM); authConfig.setEnabled(true); IdentityProvider idp = new IdentityProvider();