mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fix user scopes payload issue
This commit is contained in:
parent
ce18849691
commit
f7f0a4a2a4
@ -63,8 +63,8 @@ public class PermissionScopeHandler extends HttpServlet {
|
||||
JsonNode authDataScope = authData.getScope();
|
||||
|
||||
ObjectMapper mapper = new ObjectMapper();
|
||||
Map<String, Object> nodeMap = new HashMap<>();
|
||||
nodeMap.put(HandlerConstants.USER_SCOPES, authDataScope);
|
||||
Map<String, String> nodeMap = new HashMap<>();
|
||||
nodeMap.put(HandlerConstants.USER_SCOPES, authDataScope.asText().replace("\"", ""));
|
||||
proxyResponse.setCode(HttpStatus.SC_OK);
|
||||
proxyResponse.setStatus(ProxyResponse.Status.SUCCESS);
|
||||
proxyResponse.setData(mapper.convertValue(nodeMap, JsonNode.class));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user