@topconsultnpm/sdk-ts 6.20.0-dev1.6 → 6.20.0-dev1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -16,7 +16,10 @@ export class TopMediaSession {
|
|
|
16
16
|
constructor(tmSrv) {
|
|
17
17
|
this._autoRefreshInterval = 5;
|
|
18
18
|
this._loginRequest = {
|
|
19
|
-
scopes: ["User.Read"]
|
|
19
|
+
scopes: ["User.Read"],
|
|
20
|
+
popupWindowAttributes: {
|
|
21
|
+
popupSize: { width: 600, height: 700 }
|
|
22
|
+
}
|
|
20
23
|
};
|
|
21
24
|
this._accountId = "";
|
|
22
25
|
this.TopMediaServer = tmSrv;
|
|
@@ -62,18 +65,16 @@ export class TopMediaSession {
|
|
|
62
65
|
throw new Error(`MsAzureTenantID not configured (ArchiveID = ${sd.archiveID})`);
|
|
63
66
|
if (!(ad === null || ad === void 0 ? void 0 : ad.msAzureClientID))
|
|
64
67
|
throw new Error(`MsAzureClientID not configured (ArchiveID = ${sd.archiveID})`);
|
|
68
|
+
console.log("MSAzure window.location.origin: " + window.location.origin);
|
|
65
69
|
this._msalInstance = new PublicClientApplication({
|
|
66
70
|
auth: {
|
|
67
71
|
clientId: ad === null || ad === void 0 ? void 0 : ad.msAzureClientID,
|
|
68
72
|
authority: "https://login.microsoftonline.com/" + (ad === null || ad === void 0 ? void 0 : ad.msAzureTenantID),
|
|
69
|
-
redirectUri:
|
|
73
|
+
redirectUri: window.location.origin
|
|
70
74
|
},
|
|
71
75
|
cache: {
|
|
72
76
|
cacheLocation: 'sessionStorage',
|
|
73
77
|
storeAuthStateInCookie: false,
|
|
74
|
-
},
|
|
75
|
-
system: {
|
|
76
|
-
allowNativeBroker: false
|
|
77
78
|
}
|
|
78
79
|
});
|
|
79
80
|
yield this._msalInstance.initialize();
|
|
@@ -99,8 +100,7 @@ export class TopMediaSession {
|
|
|
99
100
|
_azureLogout() {
|
|
100
101
|
return __awaiter(this, void 0, void 0, function* () {
|
|
101
102
|
if (this._msalInstance) {
|
|
102
|
-
|
|
103
|
-
yield this._msalInstance.logoutPopup({ account: currentAccount });
|
|
103
|
+
yield this._msalInstance.logoutPopup();
|
|
104
104
|
this._msalInstance = null;
|
|
105
105
|
}
|
|
106
106
|
});
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@topconsultnpm/sdk-ts",
|
|
3
|
-
"version": "6.20.0-dev1.
|
|
3
|
+
"version": "6.20.0-dev1.7",
|
|
4
4
|
"description": "TopMedia SDK typescript",
|
|
5
5
|
"main": "dist/lib/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"test": "echo \"Error: no test specified\"
|
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
9
9
|
"tm-terser": "terser dist/lib/openAPIs/TopMediaServiceClient.js -c toplevel,passes=2 -m toplevel -o dist/lib/openAPIs/TopMediaServiceClient.js",
|
|
10
|
-
"tm-build": "tsc
|
|
10
|
+
"tm-build": "tsc && npm run tm-terser",
|
|
11
11
|
"tm-watch": "tsc -w",
|
|
12
12
|
"tm-publish": "npm publish --tag latest",
|
|
13
13
|
"tm-publish_wl": "npm publish"
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"dist/types/**/*"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@azure/msal-browser": "^
|
|
20
|
+
"@azure/msal-browser": "^4.28.1",
|
|
21
21
|
"@babel/runtime": "^7.28.4",
|
|
22
22
|
"async-mutex": "^0.4.0",
|
|
23
23
|
"axios": "^1.7.2"
|
|
@@ -29,4 +29,4 @@
|
|
|
29
29
|
"terser": "^5.44.0",
|
|
30
30
|
"typescript": "^5.9.3"
|
|
31
31
|
}
|
|
32
|
-
}
|
|
32
|
+
}
|