From e381bed34a7cc91203b0fa32fe6eef95c98b99a2 Mon Sep 17 00:00:00 2001 From: Hasanthi Date: Fri, 1 Sep 2023 16:21:34 +0530 Subject: [PATCH] Update ServiceProviderToApiModel.java --- .../v1/core/functions/application/ServiceProviderToApiModel.java | 1 + 1 file changed, 1 insertion(+) diff --git a/components/org.wso2.carbon.identity.api.server.application.management/org.wso2.carbon.identity.api.server.application.management.v1/src/main/java/org/wso2/carbon/identity/api/server/application/management/v1/core/functions/application/ServiceProviderToApiModel.java b/components/org.wso2.carbon.identity.api.server.application.management/org.wso2.carbon.identity.api.server.application.management.v1/src/main/java/org/wso2/carbon/identity/api/server/application/management/v1/core/functions/application/ServiceProviderToApiModel.java index 3d7ff2c06f..d23707a319 100644 --- a/components/org.wso2.carbon.identity.api.server.application.management/org.wso2.carbon.identity.api.server.application.management.v1/src/main/java/org/wso2/carbon/identity/api/server/application/management/v1/core/functions/application/ServiceProviderToApiModel.java +++ b/components/org.wso2.carbon.identity.api.server.application.management/org.wso2.carbon.identity.api.server.application.management.v1/src/main/java/org/wso2/carbon/identity/api/server/application/management/v1/core/functions/application/ServiceProviderToApiModel.java @@ -294,6 +294,7 @@ private SubjectConfig buildSubjectClaimConfig(ServiceProvider application) { } private void assignClaimForSubjectValue(ServiceProvider application, SubjectConfig subjectConfig) { + if (isLocalClaimDialectUsedBySp(application)) { if (isUserIdUsedAsDefaultSubject(application.getSpProperties())) { subjectConfig.claim(buildClaimModel(FrameworkConstants.USER_ID_CLAIM));