Remove super admin tenant domain from /user API response

feature/appm-store/pbac
lasanthaDLPDS 5 years ago
parent 8feb157bb9
commit 1e3ac362b8

@ -103,7 +103,8 @@ public class UserHandler extends HttpServlet {
} }
ProxyResponse proxyResponse = new ProxyResponse(); ProxyResponse proxyResponse = new ProxyResponse();
proxyResponse.setCode(HttpStatus.SC_OK); proxyResponse.setCode(HttpStatus.SC_OK);
proxyResponse.setData(jTokenResultAsJsonObject.get("username").getAsString()); proxyResponse.setData(
jTokenResultAsJsonObject.get("username").getAsString().replaceAll("@carbon.super", ""));
HandlerUtil.handleSuccess(req, resp, serverUrl, platform, proxyResponse); HandlerUtil.handleSuccess(req, resp, serverUrl, platform, proxyResponse);
} }
} catch (IOException e) { } catch (IOException e) {

Loading…
Cancel
Save