From 553c6351659b9ae604a34a9f93a94313a5b1b605 Mon Sep 17 00:00:00 2001 From: Thisara-Welmilla Date: Tue, 12 Nov 2024 10:21:47 +0530 Subject: [PATCH] Update APIs to support custom authentication management. --- .../api/server/idp/v1/core/ServerIdpManagementService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/org.wso2.carbon.identity.api.server.idp/org.wso2.carbon.identity.api.server.idp.v1/src/main/java/org/wso2/carbon/identity/api/server/idp/v1/core/ServerIdpManagementService.java b/components/org.wso2.carbon.identity.api.server.idp/org.wso2.carbon.identity.api.server.idp.v1/src/main/java/org/wso2/carbon/identity/api/server/idp/v1/core/ServerIdpManagementService.java index ec4848cf03..1e9b62d92a 100644 --- a/components/org.wso2.carbon.identity.api.server.idp/org.wso2.carbon.identity.api.server.idp.v1/src/main/java/org/wso2/carbon/identity/api/server/idp/v1/core/ServerIdpManagementService.java +++ b/components/org.wso2.carbon.identity.api.server.idp/org.wso2.carbon.identity.api.server.idp.v1/src/main/java/org/wso2/carbon/identity/api/server/idp/v1/core/ServerIdpManagementService.java @@ -1699,6 +1699,7 @@ private MetaFederatedAuthenticatorListItem createMetaFederatedAuthenticatorListI String authenticatorId = base64URLEncode(authenticatorConfig.getName()); metaFederatedAuthenticator.setName(authenticatorConfig.getName()); metaFederatedAuthenticator.setAuthenticatorId(authenticatorId); + metaFederatedAuthenticator.setDefinedBy(MetaFederatedAuthenticatorListItem.DefinedByEnum.SYSTEM); FederatedAuthenticatorConfig federatedAuthenticatorConfig = ApplicationAuthenticatorService.getInstance() .getFederatedAuthenticatorByName(authenticatorConfig.getName()); if (federatedAuthenticatorConfig != null) { @@ -1727,6 +1728,7 @@ private MetaFederatedAuthenticator createMetaFederatedAuthenticator(FederatedAut metaFederatedAuthenticator.setTags(Arrays.asList(tags)); } } + metaFederatedAuthenticator.setDefinedBy(MetaFederatedAuthenticator.DefinedByEnum.SYSTEM); Property[] properties = authenticatorConfig.getProperties(); List metaProperties = Arrays.stream(properties).map(propertyToExternalMeta).collect(Collectors .toList());