Skip to content

Commit

Permalink
Fixed start up global key manager not loading issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
Prasanna Dangalla committed Feb 9, 2024
1 parent c48cd4a commit 4825e50
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ public Response keymanagersGet(String xWSO2Tenant, MessageContext messageContext
APIAdmin apiAdmin = new APIAdminImpl();
List<KeyManagerConfigurationDTO> keyManagerConfigurations =
apiAdmin.getKeyManagerConfigurationsByOrganization(xWSO2Tenant);
List<KeyManagerConfigurationDTO> globalKeyManagerConfigurations = apiAdmin
.getGlobalKeyManagerConfigurations();
keyManagerConfigurations.addAll(globalKeyManagerConfigurations);
List<KeyManagerDTO> keyManagerDTOList = new ArrayList<>();
for (KeyManagerConfigurationDTO keyManagerConfiguration : keyManagerConfigurations) {
keyManagerDTOList.add(toKeyManagerDTO(xWSO2Tenant, keyManagerConfiguration));
Expand Down

0 comments on commit 4825e50

Please sign in to comment.