|
|
|
@ -410,7 +410,7 @@ deviceModule = function () {
|
|
|
|
|
var jwtClient = JWTClientManagerService.getJWTClient();
|
|
|
|
|
// returning access token by JWT grant type
|
|
|
|
|
var deviceScope = "device_" + type.replace(" ", "") + "_" + deviceId + " perm:device:enroll " +
|
|
|
|
|
"perm:device:disenroll perm:device:modify perm:devices:operations perm:device:publish-event";
|
|
|
|
|
"perm:device:disenroll perm:device:modify perm:device:operations perm:device:publish-event";
|
|
|
|
|
var tokenInfo = jwtClient.getAccessToken(config.clientId, config.clientSecret,
|
|
|
|
|
userName, deviceScope);
|
|
|
|
|
config.accessToken = tokenInfo.getAccessToken();
|
|
|
|
|