@xh/hoist 79.0.0-SNAPSHOT.1764802964843 → 79.0.0-SNAPSHOT.1764864358802
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.
package/CHANGELOG.md
CHANGED
|
@@ -49,7 +49,7 @@ export interface MsalClientConfig extends BaseOAuthClientConfig<MsalTokenSpec> {
|
|
|
49
49
|
*
|
|
50
50
|
* In practice, and according to documentation, this operation is likely to fail for a
|
|
51
51
|
* number of reasons, and can often do so as timeout. Therefore, keeping the timeout limit
|
|
52
|
-
* value -- `system.
|
|
52
|
+
* value -- `system.iframeHashTimeout` -- at a relatively low value is critical. Hoist
|
|
53
53
|
* defaults this value to 3000ms vs. the default 10000ms.
|
|
54
54
|
*/
|
|
55
55
|
enableSsoSilent?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xh/hoist",
|
|
3
|
-
"version": "79.0.0-SNAPSHOT.
|
|
3
|
+
"version": "79.0.0-SNAPSHOT.1764864358802",
|
|
4
4
|
"description": "Hoist add-on for building and deploying React Applications.",
|
|
5
5
|
"repository": "github:xh/hoist-react",
|
|
6
6
|
"homepage": "https://xh.io",
|
|
@@ -72,7 +72,7 @@ export interface MsalClientConfig extends BaseOAuthClientConfig<MsalTokenSpec> {
|
|
|
72
72
|
*
|
|
73
73
|
* In practice, and according to documentation, this operation is likely to fail for a
|
|
74
74
|
* number of reasons, and can often do so as timeout. Therefore, keeping the timeout limit
|
|
75
|
-
* value -- `system.
|
|
75
|
+
* value -- `system.iframeHashTimeout` -- at a relatively low value is critical. Hoist
|
|
76
76
|
* defaults this value to 3000ms vs. the default 10000ms.
|
|
77
77
|
*/
|
|
78
78
|
enableSsoSilent?: boolean;
|
|
@@ -385,37 +385,30 @@ export class MsalClient extends BaseOAuthClient<MsalClientConfig, MsalTokenSpec>
|
|
|
385
385
|
const {clientId, authority, msalLogLevel, msalClientOptions, enableTelemetry} = this.config;
|
|
386
386
|
throwIf(!authority, 'Missing MSAL authority. Please review your configuration.');
|
|
387
387
|
|
|
388
|
-
|
|
389
|
-
{
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
logLevel: msalLogLevel
|
|
399
|
-
},
|
|
400
|
-
iFrameHashTimeout: 3000 // Prevent long pauses for sso failures.
|
|
388
|
+
let conf: Configuration = {
|
|
389
|
+
auth: {
|
|
390
|
+
clientId,
|
|
391
|
+
authority,
|
|
392
|
+
postLogoutRedirectUri: this.postLogoutRedirectUrl
|
|
393
|
+
},
|
|
394
|
+
system: {
|
|
395
|
+
loggerOptions: {
|
|
396
|
+
loggerCallback: this.logFromMsal,
|
|
397
|
+
logLevel: msalLogLevel
|
|
401
398
|
},
|
|
402
|
-
|
|
403
|
-
cacheLocation: 'localStorage' // allows sharing auth info across tabs.
|
|
404
|
-
}
|
|
399
|
+
iframeHashTimeout: 3000 // Prevent long pauses for sso failures.
|
|
405
400
|
},
|
|
406
|
-
|
|
407
|
-
|
|
401
|
+
cache: {
|
|
402
|
+
cacheLocation: 'localStorage' // allows sharing auth info across tabs.
|
|
403
|
+
}
|
|
404
|
+
};
|
|
408
405
|
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
: mergedConf
|
|
418
|
-
);
|
|
406
|
+
conf = mergeDeep(conf, msalClientOptions);
|
|
407
|
+
if (enableTelemetry) {
|
|
408
|
+
conf.telemetry = {client: new BrowserPerformanceClient(conf)};
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
return msal.PublicClientApplication.createPublicClientApplication(conf);
|
|
419
412
|
}
|
|
420
413
|
|
|
421
414
|
private logFromMsal(level: LogLevel, message: string) {
|