Skip to content

Commit

Permalink
fixed get claims
Browse files Browse the repository at this point in the history
  • Loading branch information
holashchand committed Nov 15, 2023
1 parent 2ec1d47 commit 7e76db8
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,13 @@ private JsonNode getUserInfoFromRegistry(HttpServletRequest request, String enti
watch.start("RegistryController.searchEntity");
JsonNode result = searchEntity(payload);
watch.stop("RegistryController.searchEntity");
if(result != null && result.get(entityName) != null && !result.get(entityName).isEmpty()) {
String uuid = result.get(entityName).get(0).get(uuidPropertyName).asText();
JsonNode user = readEntity(userId, entityName, uuid, true, null, false);
ArrayNode arrayNode = JsonNodeFactory.instance.arrayNode();
arrayNode.add(user.get(entityName));
((ObjectNode) result).set(entityName, arrayNode);
}
return result;
}
throw new Exception("Forbidden");
Expand Down

0 comments on commit 7e76db8

Please sign in to comment.