wso2 emm 2.2.0设备udid url不返回任何内容

时间:2017-07-21 09:51:38

标签: wso2

成功安装配置文件后,我无法从agent-check.jag获取设备信息。它onl返回用户名{}。相反,理想情况下应该传递d​​eviceid,访问令牌,刷新令牌和客户端凭据。

var deviceCheckURL = mdmProps["iOSAPIRoot"] + "devices/udid";
var challengeToken = session.get("iOSChallengeToken");
var payload = {"challengeToken" : challengeToken}; 
serviceInvokers.XMLHttp.post(deviceCheckURL, stringify(payload), function (restAPIResponse) {
    var status = restAPIResponse["status"];
    if (status == 200) {
        var responseContent = parse(restAPIResponse.responseText);
        response["status"] = 200;
        response["content"] = responseContent; # Here response is just username{}.
    } else {
        response["status"] = 200;
        response["content"] = {"deviceID" : null};
    }
});

不确定为什么会这样?任何与角色相关的问题?

0 个答案:

没有答案