Skip to content

Commit

Permalink
Merge pull request #6152 from sadilchamishka/fix-enterprise-idp-issue
Browse files Browse the repository at this point in the history
Remove runtime check for enterprise login
  • Loading branch information
sadilchamishka authored May 4, 2024
2 parents c943129 + 818c00a commit b2604ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/honest-dingos-approve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wso2is/identity-apps-core": patch
---

Remove runtime logic for enterprise login idp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
<%@ page import="static org.wso2.carbon.identity.application.authentication.endpoint.util.Constants.ENABLE_AUTHENTICATION_WITH_REST_API" %>
<%@ page import="static org.wso2.carbon.identity.application.authentication.endpoint.util.Constants.ERROR_WHILE_BUILDING_THE_ACCOUNT_RECOVERY_ENDPOINT_URL" %>
<%@ page import="org.wso2.carbon.identity.captcha.util.CaptchaUtil" %>
<%@ page import="org.wso2.carbon.CarbonConstants" %>
<%@ page import="org.wso2.carbon.identity.mgt.endpoint.util.IdentityManagementEndpointConstants" %>
<%@ page import="org.wso2.carbon.identity.mgt.endpoint.util.client.CommonDataRetrievalClient" %>
<%@ page import="org.wso2.carbon.identity.mgt.endpoint.util.client.IdentityProviderDataRetrievalClient" %>
Expand Down Expand Up @@ -118,11 +117,9 @@
// EnterpriseLoginRetrievalClient enterpriseLoginRetrievalClient = new EnterpriseLoginRetrievalClient();
// enterpriseUserloginEnabled = enterpriseLoginRetrievalClient.isEnterpriseLoginEnabled(userTenantDomain);
if (CarbonConstants.ENABLE_LEGACY_AUTHZ_RUNTIME != null && CarbonConstants.ENABLE_LEGACY_AUTHZ_RUNTIME) {
CommonDataRetrievalClient commonDataRetrievalClient = new CommonDataRetrievalClient();
enterpriseUserloginEnabled = commonDataRetrievalClient.checkBooleanProperty(ENTERPRISE_API_RELATIVE_PATH + userTenantDomain,
CommonDataRetrievalClient commonDataRetrievalClient = new CommonDataRetrievalClient();
enterpriseUserloginEnabled = commonDataRetrievalClient.checkBooleanProperty(ENTERPRISE_API_RELATIVE_PATH + userTenantDomain,
null, ENTERPRISE_LOGIN_KEY, false, false);
}
} catch (Exception e) {
// Ignored and send the default value.
}
Expand Down

0 comments on commit b2604ed

Please sign in to comment.