Skip to content

Commit

Permalink
Implement missing methods
Browse files Browse the repository at this point in the history
  • Loading branch information
madurangasiriwardena committed Feb 10, 2024
1 parent ab01d3f commit b5ff108
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2901,8 +2901,12 @@ private void fillResidentIdpProperties(IdentityProvider identityProvider, String
public IdentityProvider getIDPbyId(Connection dbConnection, int idpId, int tenantId,
String tenantDomain) throws IdentityProviderManagementException {

return getIDP(dbConnection, null, idpId, null, tenantId, tenantDomain);

IdentityProvider idp = getIDP(dbConnection, null, idpId, null, tenantId, tenantDomain);
if (idp != null
&& IdentityApplicationConstants.RESIDENT_IDP_RESERVED_NAME.equals(idp.getIdentityProviderName())) {
fillResidentIdpProperties(idp, tenantDomain);
}
return idp;
}

/**
Expand Down Expand Up @@ -3396,6 +3400,7 @@ public IdentityProvider getIdPByAuthenticatorPropertyValue(Connection dbConnecti
getIdentityPropertiesByIdpId(dbConnection, Integer.parseInt(rs.getString("ID"))));
if (IdentityApplicationConstants.RESIDENT_IDP_RESERVED_NAME.equals(idPName)) {
propertyList = resolveConnectorProperties(propertyList, tenantDomain);
fillResidentIdpProperties(federatedIdp, tenantDomain);
}
federatedIdp.setIdpProperties(propertyList.toArray(new IdentityProviderProperty[0]));

Expand Down Expand Up @@ -3558,6 +3563,7 @@ public IdentityProvider getIdPByAuthenticatorPropertyValue(Connection dbConnecti

if (IdentityApplicationConstants.RESIDENT_IDP_RESERVED_NAME.equals(idPName)) {
propertyList = resolveConnectorProperties(propertyList, tenantDomain);
fillResidentIdpProperties(federatedIdp, tenantDomain);
}
federatedIdp.setIdpProperties(propertyList.toArray(new IdentityProviderProperty[0]));

Expand Down

0 comments on commit b5ff108

Please sign in to comment.