mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Merge pull request #790 from Nirothipan/master
Fixes :- Can't access the created Arduino device instance
This commit is contained in:
commit
f9c739b32c
@ -28,6 +28,7 @@ function onRequest(context) {
|
||||
var jwtClient = jwtService.getJWTClient();
|
||||
var encodedClientKeys = session.get(constants["ENCODED_TENANT_BASED_WEB_SOCKET_CLIENT_CREDENTIALS"]);
|
||||
var token = "";
|
||||
var user = session.get(constants.USER_SESSION_KEY);
|
||||
if (encodedClientKeys) {
|
||||
var tokenUtil = require("/app/modules/oauth/token-handler-utils.js")["utils"];
|
||||
var resp = tokenUtil.decode(encodedClientKeys).split(":");
|
||||
@ -50,4 +51,4 @@ function onRequest(context) {
|
||||
}
|
||||
}
|
||||
return {"device": device, "websocketEndpoint": websocketEndpoint};
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user