Fix user scopes payload issue

remotes/1725333865317989910/tmp_refs/heads/master
Pasindu Rupasinghe 10 months ago
parent ce18849691
commit f7f0a4a2a4

@ -63,8 +63,8 @@ public class PermissionScopeHandler extends HttpServlet {
JsonNode authDataScope = authData.getScope(); JsonNode authDataScope = authData.getScope();
ObjectMapper mapper = new ObjectMapper(); ObjectMapper mapper = new ObjectMapper();
Map<String, Object> nodeMap = new HashMap<>(); Map<String, String> nodeMap = new HashMap<>();
nodeMap.put(HandlerConstants.USER_SCOPES, authDataScope); nodeMap.put(HandlerConstants.USER_SCOPES, authDataScope.asText().replace("\"", ""));
proxyResponse.setCode(HttpStatus.SC_OK); proxyResponse.setCode(HttpStatus.SC_OK);
proxyResponse.setStatus(ProxyResponse.Status.SUCCESS); proxyResponse.setStatus(ProxyResponse.Status.SUCCESS);
proxyResponse.setData(mapper.convertValue(nodeMap, JsonNode.class)); proxyResponse.setData(mapper.convertValue(nodeMap, JsonNode.class));

Loading…
Cancel
Save