From 9039ba03ab86518842a2fef1c6b699ac093132e4 Mon Sep 17 00:00:00 2001 From: sadilchamishka Date: Mon, 20 Nov 2023 16:22:33 +0530 Subject: [PATCH] Add organization SSO IDP URL --- .../application/constant/OrgApplicationMgtConstants.java | 1 + .../management/application/util/OrgApplicationManagerUtil.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/components/org.wso2.carbon.identity.organization.management.application/src/main/java/org/wso2/carbon/identity/organization/management/application/constant/OrgApplicationMgtConstants.java b/components/org.wso2.carbon.identity.organization.management.application/src/main/java/org/wso2/carbon/identity/organization/management/application/constant/OrgApplicationMgtConstants.java index 0d0624c41..6d5eeab6e 100644 --- a/components/org.wso2.carbon.identity.organization.management.application/src/main/java/org/wso2/carbon/identity/organization/management/application/constant/OrgApplicationMgtConstants.java +++ b/components/org.wso2.carbon.identity.organization.management.application/src/main/java/org/wso2/carbon/identity/organization/management/application/constant/OrgApplicationMgtConstants.java @@ -34,6 +34,7 @@ public class OrgApplicationMgtConstants { public static final String UPDATE_SP_METADATA_SHARE_WITH_ALL_CHILDREN = "updateShareWithAllChildren"; public static final String DELETE_SHARE_FOR_MAIN_APPLICATION = "deleteShareForMainApp"; public static final String USER_CUSTOM_ATTRIBUTE_PROPERTY = "USER_CUSTOM_ATTRIBUTE"; + public static final String ORGANIZATION_SSO_IDP_IMAGE_URL = "assets/images/logos/sso.svg"; public static final String USER_ORGANIZATION_CLAIM_URI = "http://wso2.org/claims/runtime/user_organization"; public static final String APP_ROLES_CLAIM_URI = "http://wso2.org/claims/applicationRoles"; 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 dbdb185ad..f92487374 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 @@ -39,6 +39,7 @@ import java.util.Set; import static org.wso2.carbon.identity.organization.management.application.constant.OrgApplicationMgtConstants.ORGANIZATION_LOGIN_AUTHENTICATOR; +import static org.wso2.carbon.identity.organization.management.application.constant.OrgApplicationMgtConstants.ORGANIZATION_SSO_IDP_IMAGE_URL; import static org.wso2.carbon.identity.organization.management.application.constant.OrgApplicationMgtConstants.SHARE_WITH_ALL_CHILDREN; import static org.wso2.carbon.identity.organization.management.service.constant.OrganizationManagementConstants.IS_APP_SHARED; import static org.wso2.carbon.idp.mgt.util.IdPManagementConstants.IS_SYSTEM_RESERVED_IDP_DISPLAY_NAME; @@ -170,6 +171,7 @@ public static IdentityProvider createOrganizationSSOIDP() { IdentityProvider idp = new IdentityProvider(); idp.setIdentityProviderName("SSO"); + idp.setImageUrl(ORGANIZATION_SSO_IDP_IMAGE_URL); idp.setPrimary(false); idp.setFederationHub(false); idp.setIdentityProviderDescription("Identity provider for Organization SSO.");