From e8bf636f0391510e3654588c17730761e4ae9ab6 Mon Sep 17 00:00:00 2001 From: Avarjana Date: Mon, 8 Jul 2024 13:31:15 +0530 Subject: [PATCH 1/2] Add SSO authenticator logo --- .../apps/authentication-portal/src/main/webapp/login.jsp | 5 +++++ .../src/main/webapp/self-registration-username-request.jsp | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/identity-apps-core/apps/authentication-portal/src/main/webapp/login.jsp b/identity-apps-core/apps/authentication-portal/src/main/webapp/login.jsp index 32022f1651e..2a20b64dcbd 100755 --- a/identity-apps-core/apps/authentication-portal/src/main/webapp/login.jsp +++ b/identity-apps-core/apps/authentication-portal/src/main/webapp/login.jsp @@ -70,6 +70,7 @@ private static final String GITHUB_AUTHENTICATOR = "GithubAuthenticator"; private static final String FACEBOOK_AUTHENTICATOR = "FacebookAuthenticator"; private static final String OIDC_AUTHENTICATOR = "OpenIDConnectAuthenticator"; + private static final String SSO_AUTHENTICATOR_NAME = "SSO"; private static final String MICROSOFT_IDP = "Microsoft"; private static final String ENTERPRISE_USER_LOGIN_AUTHENTICATOR = "EnterpriseIDPAuthenticator"; private static final String ENTERPRISE_USER_LOGIN_ORG = "EnterpriseIDP_Org"; @@ -654,6 +655,10 @@ if (StringUtils.startsWithIgnoreCase(idpDisplayName, EXTERNAL_CONNECTION_PREFIX)) { idpDisplayName = idpDisplayName.substring(EXTERNAL_CONNECTION_PREFIX.length()); } + // If IdP name is "SSO", need to handle as special case. + if (StringUtils.equalsIgnoreCase(idpName, SSO_AUTHENTICATOR_NAME)) { + imageURL = "libs/themes/default/assets/images/identity-providers/sso.svg"; + } %> <% if (isHubIdp) { %>
diff --git a/identity-apps-core/apps/recovery-portal/src/main/webapp/self-registration-username-request.jsp b/identity-apps-core/apps/recovery-portal/src/main/webapp/self-registration-username-request.jsp index 02a6d161f47..b7ba7227065 100644 --- a/identity-apps-core/apps/recovery-portal/src/main/webapp/self-registration-username-request.jsp +++ b/identity-apps-core/apps/recovery-portal/src/main/webapp/self-registration-username-request.jsp @@ -91,6 +91,7 @@ String FACEBOOK_AUTHENTICATOR = "FacebookAuthenticator"; String OIDC_AUTHENTICATOR = "OpenIDConnectAuthenticator"; String SSO_AUTHENTICATOR = "OrganizationAuthenticator"; + String SSO_AUTHENTICATOR_NAME = "SSO"; String commonauthURL = "../commonauth"; boolean error = IdentityManagementEndpointUtil.getBooleanValue(request.getAttribute("error")); @@ -550,6 +551,10 @@ if (StringUtils.startsWithIgnoreCase(name, EXTERNAL_CONNECTION_PREFIX)) { displayName = name.substring(EXTERNAL_CONNECTION_PREFIX.length()); } + // If IdP name is "SSO", need to handle as special case. + if (StringUtils.equalsIgnoreCase(name, SSO_AUTHENTICATOR_NAME)) { + imageURL = "libs/themes/default/assets/images/identity-providers/sso.svg"; + } if (StringUtils.equals(type,GOOGLE_AUTHENTICATOR)) { %> From 7cdf956752c138f47a65c2988a0b67add5c27483 Mon Sep 17 00:00:00 2001 From: Avarjana Date: Mon, 8 Jul 2024 13:32:52 +0530 Subject: [PATCH 2/2] Add changeset --- .changeset/lazy-eels-remember.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/lazy-eels-remember.md diff --git a/.changeset/lazy-eels-remember.md b/.changeset/lazy-eels-remember.md new file mode 100644 index 00000000000..d14f330d946 --- /dev/null +++ b/.changeset/lazy-eels-remember.md @@ -0,0 +1,5 @@ +--- +"@wso2is/identity-apps-core": patch +--- + +Add SSO authenticator logo