mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Merge pull request #868 from lasanthaDLPDS/master
Fixing permission issue of creating new device type
This commit is contained in:
commit
dce0a3e302
@ -410,7 +410,7 @@ deviceModule = function () {
|
|||||||
var jwtClient = JWTClientManagerService.getJWTClient();
|
var jwtClient = JWTClientManagerService.getJWTClient();
|
||||||
// returning access token by JWT grant type
|
// returning access token by JWT grant type
|
||||||
var deviceScope = "device_" + type.replace(" ", "") + "_" + deviceId + " perm:device:enroll " +
|
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,
|
var tokenInfo = jwtClient.getAccessToken(config.clientId, config.clientSecret,
|
||||||
userName, deviceScope);
|
userName, deviceScope);
|
||||||
config.accessToken = tokenInfo.getAccessToken();
|
config.accessToken = tokenInfo.getAccessToken();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user