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 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)) { %>