mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
arduino fix is added
This commit is contained in:
parent
3fc33d9e49
commit
affbd00796
@ -230,7 +230,7 @@ public class ArduinoServiceImpl implements ArduinoService {
|
|||||||
ArduinoConstants.APIM_APPLICATION_TOKEN_VALIDITY_PERIOD);
|
ArduinoConstants.APIM_APPLICATION_TOKEN_VALIDITY_PERIOD);
|
||||||
}
|
}
|
||||||
JWTClient jwtClient = APIUtil.getJWTClientManagerService().getJWTClient();
|
JWTClient jwtClient = APIUtil.getJWTClientManagerService().getJWTClient();
|
||||||
String scopes = " device_" + deviceId;
|
String scopes = " device_" + deviceId + " perm:arduino:enroll";
|
||||||
AccessTokenInfo accessTokenInfo = jwtClient.getAccessToken(apiApplicationKey.getConsumerKey(),
|
AccessTokenInfo accessTokenInfo = jwtClient.getAccessToken(apiApplicationKey.getConsumerKey(),
|
||||||
apiApplicationKey.getConsumerSecret(), owner, scopes);
|
apiApplicationKey.getConsumerSecret(), owner, scopes);
|
||||||
//create token
|
//create token
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user