Skip to content

Commit

Permalink
Merge pull request #6539 from Avarjana/master
Browse files Browse the repository at this point in the history
Handle SSO authenticator logo for authentication portal
  • Loading branch information
Avarjana authored Jul 8, 2024
2 parents 22dba3e + 7cdf956 commit b58b659
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/lazy-eels-remember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wso2is/identity-apps-core": patch
---

Add SSO authenticator logo
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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) { %>
<div class="field">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down Expand Up @@ -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)) {
%>
Expand Down

0 comments on commit b58b659

Please sign in to comment.