Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle SSO authenticator logo for authentication portal #6539

Merged
merged 2 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading