connectionToken
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -9,6 +9,7 @@ import { signalr_alarms } from "src/@types/signalr.alarms";
|
||||
import { processModelActions } from "src/store/runningProcess.store";
|
||||
import { machineService } from "src/services/machineService";
|
||||
import { ModalHelper } from "../modules/base-components";
|
||||
import { AuthToken } from "src/_base/baseRestService";
|
||||
|
||||
declare let $: any;
|
||||
|
||||
@@ -54,6 +55,12 @@ export class Hub {
|
||||
|
||||
this._hub.client.logout = this.logout;
|
||||
|
||||
// Token per signalr agganciato in modo esplicito
|
||||
let authData = JSON.parse(window.sessionStorage.getItem("authorizationData") || window.localStorage.getItem("authorizationData")) as AuthToken;
|
||||
|
||||
if (authData)
|
||||
$.connection.hub.qs = { "connectionToken": authData.access_token };
|
||||
debugger
|
||||
$.connection.hub.start();
|
||||
|
||||
this.checkShowAxes();
|
||||
|
||||
Reference in New Issue
Block a user