@azure/msal-node-extensions 5.2.4 → 5.2.5
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/bin/arm64/dpapi.node +0 -0
- package/bin/ia32/dpapi.node +0 -0
- package/bin/x64/dpapi.node +0 -0
- package/dist/Dpapi.mjs +1 -1
- package/dist/Dpapi.mjs.map +1 -1
- package/dist/broker/NativeBrokerPlugin.mjs +1 -1
- package/dist/broker/NativeBrokerPlugin.mjs.map +1 -1
- package/dist/error/PersistenceError.mjs +1 -1
- package/dist/error/PersistenceError.mjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/lib/msal-common/dist/constants/AADServerParamKeys.mjs +2 -2
- package/dist/lib/msal-common/dist/constants/AADServerParamKeys.mjs.map +1 -1
- package/dist/lib/msal-common/dist/error/AuthError.mjs +2 -2
- package/dist/lib/msal-common/dist/error/AuthError.mjs.map +1 -1
- package/dist/lib/msal-common/dist/error/ClientAuthError.mjs +2 -2
- package/dist/lib/msal-common/dist/error/ClientAuthError.mjs.map +1 -1
- package/dist/lib/msal-common/dist/error/ClientAuthErrorCodes.mjs +2 -2
- package/dist/lib/msal-common/dist/error/ClientAuthErrorCodes.mjs.map +1 -1
- package/dist/lib/msal-common/dist/error/ClientConfigurationError.mjs +2 -2
- package/dist/lib/msal-common/dist/error/ClientConfigurationError.mjs.map +1 -1
- package/dist/lib/msal-common/dist/error/ClientConfigurationErrorCodes.mjs +2 -2
- package/dist/lib/msal-common/dist/error/ClientConfigurationErrorCodes.mjs.map +1 -1
- package/dist/lib/msal-common/dist/error/InteractionRequiredAuthError.mjs +2 -2
- package/dist/lib/msal-common/dist/error/InteractionRequiredAuthError.mjs.map +1 -1
- package/dist/lib/msal-common/dist/error/PlatformBrokerError.mjs +2 -2
- package/dist/lib/msal-common/dist/error/PlatformBrokerError.mjs.map +1 -1
- package/dist/lib/msal-common/dist/error/ServerError.mjs +2 -2
- package/dist/lib/msal-common/dist/error/ServerError.mjs.map +1 -1
- package/dist/lib/msal-common/dist/logger/Logger.mjs +26 -12
- package/dist/lib/msal-common/dist/logger/Logger.mjs.map +1 -1
- package/dist/lib/msal-common/dist/telemetry/server/ServerTelemetryManager.mjs +3 -3
- package/dist/lib/msal-common/dist/telemetry/server/ServerTelemetryManager.mjs.map +1 -1
- package/dist/lib/msal-common/dist/utils/Constants.mjs +9 -4
- package/dist/lib/msal-common/dist/utils/Constants.mjs.map +1 -1
- package/dist/lib/msal-common/dist/utils/TimeUtils.mjs +2 -2
- package/dist/lib/msal-common/dist/utils/TimeUtils.mjs.map +1 -1
- package/dist/lock/CrossPlatformLock.mjs +1 -1
- package/dist/lock/CrossPlatformLock.mjs.map +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/persistence/BasePersistence.mjs +1 -1
- package/dist/persistence/BasePersistence.mjs.map +1 -1
- package/dist/persistence/DataProtectionScope.mjs +1 -1
- package/dist/persistence/DataProtectionScope.mjs.map +1 -1
- package/dist/persistence/FilePersistence.mjs +1 -1
- package/dist/persistence/FilePersistence.mjs.map +1 -1
- package/dist/persistence/FilePersistenceWithDataProtection.mjs +1 -1
- package/dist/persistence/FilePersistenceWithDataProtection.mjs.map +1 -1
- package/dist/persistence/KeychainPersistence.mjs +1 -1
- package/dist/persistence/KeychainPersistence.mjs.map +1 -1
- package/dist/persistence/LibSecretPersistence.mjs +1 -1
- package/dist/persistence/LibSecretPersistence.mjs.map +1 -1
- package/dist/persistence/PersistenceCachePlugin.mjs +1 -1
- package/dist/persistence/PersistenceCachePlugin.mjs.map +1 -1
- package/dist/persistence/PersistenceCreator.mjs +1 -1
- package/dist/persistence/PersistenceCreator.mjs.map +1 -1
- package/dist/utils/Constants.mjs +1 -1
- package/dist/utils/Constants.mjs.map +1 -1
- package/dist/utils/Environment.mjs +1 -1
- package/dist/utils/Environment.mjs.map +1 -1
- package/dist/utils/TypeGuards.mjs +1 -1
- package/dist/utils/TypeGuards.mjs.map +1 -1
- package/lib/msal-node-extensions.cjs +81 -62
- package/lib/msal-node-extensions.cjs.map +1 -1
- package/package.json +3 -3
- package/types/packageMetadata.d.ts +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-node-extensions v5.2.
|
|
1
|
+
/*! @azure/msal-node-extensions v5.2.5 2026-06-16 */
|
|
2
2
|
'use strict';
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -343,7 +343,11 @@ class PersistenceCachePlugin {
|
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
345
|
|
|
346
|
-
/*! @azure/msal-common v16.
|
|
346
|
+
/*! @azure/msal-common v16.9.0 2026-06-16 */
|
|
347
|
+
const X_CLIENT_EXTRA_SKU = "x-client-xtra-sku";
|
|
348
|
+
const RESOURCE = "resource";
|
|
349
|
+
|
|
350
|
+
/*! @azure/msal-common v16.9.0 2026-06-16 */
|
|
347
351
|
/**
|
|
348
352
|
* we considered making this "enum" in the request instead of string, however it looks like the allowed list of
|
|
349
353
|
* prompt values kept changing over past couple of years. There are some undocumented prompt values for some
|
|
@@ -352,8 +356,11 @@ class PersistenceCachePlugin {
|
|
|
352
356
|
const PromptValue = {
|
|
353
357
|
LOGIN: "login",
|
|
354
358
|
SELECT_ACCOUNT: "select_account",
|
|
359
|
+
CONSENT: "consent",
|
|
355
360
|
NONE: "none",
|
|
356
|
-
CREATE: "create"
|
|
361
|
+
CREATE: "create",
|
|
362
|
+
NO_SESSION: "no_session",
|
|
363
|
+
};
|
|
357
364
|
/**
|
|
358
365
|
* Separators used in cache
|
|
359
366
|
*/
|
|
@@ -372,7 +379,9 @@ const SERVER_TELEM_UNKNOWN_ERROR = "unknown_error";
|
|
|
372
379
|
*/
|
|
373
380
|
const AuthenticationScheme = {
|
|
374
381
|
BEARER: "Bearer",
|
|
375
|
-
POP: "pop"
|
|
382
|
+
POP: "pop",
|
|
383
|
+
SSH: "ssh-cert",
|
|
384
|
+
};
|
|
376
385
|
/**
|
|
377
386
|
* Specifies the reason for fetching the access token from the identity provider
|
|
378
387
|
*/
|
|
@@ -380,11 +389,7 @@ const CacheOutcome = {
|
|
|
380
389
|
// When a token is found in the cache or the cache is not supposed to be hit when making the request
|
|
381
390
|
NOT_APPLICABLE: "0"};
|
|
382
391
|
|
|
383
|
-
/*! @azure/msal-common v16.
|
|
384
|
-
const X_CLIENT_EXTRA_SKU = "x-client-xtra-sku";
|
|
385
|
-
const RESOURCE = "resource";
|
|
386
|
-
|
|
387
|
-
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
392
|
+
/*! @azure/msal-common v16.9.0 2026-06-16 */
|
|
388
393
|
/*
|
|
389
394
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
390
395
|
* Licensed under the MIT License.
|
|
@@ -412,27 +417,7 @@ class AuthError extends Error {
|
|
|
412
417
|
}
|
|
413
418
|
}
|
|
414
419
|
|
|
415
|
-
/*! @azure/msal-common v16.
|
|
416
|
-
|
|
417
|
-
/*
|
|
418
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
419
|
-
* Licensed under the MIT License.
|
|
420
|
-
*/
|
|
421
|
-
/**
|
|
422
|
-
* Error thrown when there is an error in configuration of the MSAL.js library.
|
|
423
|
-
*/
|
|
424
|
-
class ClientConfigurationError extends AuthError {
|
|
425
|
-
constructor(errorCode) {
|
|
426
|
-
super(errorCode);
|
|
427
|
-
this.name = "ClientConfigurationError";
|
|
428
|
-
Object.setPrototypeOf(this, ClientConfigurationError.prototype);
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
function createClientConfigurationError(errorCode) {
|
|
432
|
-
return new ClientConfigurationError(errorCode);
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
420
|
+
/*! @azure/msal-common v16.9.0 2026-06-16 */
|
|
436
421
|
|
|
437
422
|
/*
|
|
438
423
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -455,16 +440,48 @@ function createClientAuthError(errorCode, additionalMessage) {
|
|
|
455
440
|
return new ClientAuthError(errorCode, additionalMessage);
|
|
456
441
|
}
|
|
457
442
|
|
|
458
|
-
/*! @azure/msal-common v16.
|
|
459
|
-
const untrustedAuthority = "untrusted_authority";
|
|
460
|
-
|
|
461
|
-
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
443
|
+
/*! @azure/msal-common v16.9.0 2026-06-16 */
|
|
462
444
|
const noAccountFound = "no_account_found";
|
|
463
445
|
const noNetworkConnectivity = "no_network_connectivity";
|
|
464
446
|
const userCanceled = "user_canceled";
|
|
465
447
|
const platformBrokerError = "platform_broker_error";
|
|
466
448
|
|
|
467
|
-
/*! @azure/msal-common v16.
|
|
449
|
+
/*! @azure/msal-common v16.9.0 2026-06-16 */
|
|
450
|
+
|
|
451
|
+
/*
|
|
452
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
453
|
+
* Licensed under the MIT License.
|
|
454
|
+
*/
|
|
455
|
+
/**
|
|
456
|
+
* Error thrown when there is an error in configuration of the MSAL.js library.
|
|
457
|
+
*/
|
|
458
|
+
class ClientConfigurationError extends AuthError {
|
|
459
|
+
constructor(errorCode) {
|
|
460
|
+
super(errorCode);
|
|
461
|
+
this.name = "ClientConfigurationError";
|
|
462
|
+
Object.setPrototypeOf(this, ClientConfigurationError.prototype);
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
function createClientConfigurationError(errorCode) {
|
|
466
|
+
return new ClientConfigurationError(errorCode);
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
/*! @azure/msal-common v16.9.0 2026-06-16 */
|
|
470
|
+
const untrustedAuthority = "untrusted_authority";
|
|
471
|
+
|
|
472
|
+
/*! @azure/msal-common v16.9.0 2026-06-16 */
|
|
473
|
+
/**
|
|
474
|
+
* Convert seconds to JS Date object. Seconds can be in a number or string format or undefined (will still return a date).
|
|
475
|
+
* @param seconds
|
|
476
|
+
*/
|
|
477
|
+
function toDateFromSeconds(seconds) {
|
|
478
|
+
if (seconds) {
|
|
479
|
+
return new Date(Number(seconds) * 1000);
|
|
480
|
+
}
|
|
481
|
+
return new Date();
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
/*! @azure/msal-common v16.9.0 2026-06-16 */
|
|
468
485
|
/*
|
|
469
486
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
470
487
|
* Licensed under the MIT License.
|
|
@@ -527,22 +544,36 @@ function addLogToCache(correlationId, loggedMessage) {
|
|
|
527
544
|
}
|
|
528
545
|
}
|
|
529
546
|
/**
|
|
530
|
-
*
|
|
547
|
+
* Extracts the leading minification hash from a log message, if present.
|
|
548
|
+
*
|
|
549
|
+
* Minified messages are produced by the logger-minify rollup plugin and are
|
|
550
|
+
* either a bare 6-character alphanumeric hash, or that hash followed by a space
|
|
551
|
+
* and runtime variables appended for local (console) logging, e.g.
|
|
552
|
+
* "abc123 user-1 popup". Only the leading hash is returned so that telemetry
|
|
553
|
+
* never captures the appended variables. Returns null when the message is not
|
|
554
|
+
* a minified message.
|
|
531
555
|
*/
|
|
532
|
-
function
|
|
533
|
-
if (str.length
|
|
534
|
-
return
|
|
556
|
+
function getMessageHash(str) {
|
|
557
|
+
if (str.length < 6) {
|
|
558
|
+
return null;
|
|
559
|
+
}
|
|
560
|
+
/*
|
|
561
|
+
* If the message is longer than the hash, the hash must be delimited by a
|
|
562
|
+
* space (the separator the plugin inserts before appended variables).
|
|
563
|
+
*/
|
|
564
|
+
if (str.length > 6 && str[6] !== " ") {
|
|
565
|
+
return null;
|
|
535
566
|
}
|
|
536
|
-
for (let i = 0; i <
|
|
567
|
+
for (let i = 0; i < 6; i++) {
|
|
537
568
|
const char = str[i];
|
|
538
569
|
const isAlphaNumeric = (char >= "a" && char <= "z") ||
|
|
539
570
|
(char >= "A" && char <= "Z") ||
|
|
540
571
|
(char >= "0" && char <= "9");
|
|
541
572
|
if (!isAlphaNumeric) {
|
|
542
|
-
return
|
|
573
|
+
return null;
|
|
543
574
|
}
|
|
544
575
|
}
|
|
545
|
-
return
|
|
576
|
+
return str.substring(0, 6);
|
|
546
577
|
}
|
|
547
578
|
/**
|
|
548
579
|
* Class which facilitates logging of messages to a specific place.
|
|
@@ -589,10 +620,10 @@ class Logger {
|
|
|
589
620
|
*/
|
|
590
621
|
logMessage(logMessage, options) {
|
|
591
622
|
const correlationId = options.correlationId;
|
|
592
|
-
const
|
|
593
|
-
if (
|
|
623
|
+
const messageHash = getMessageHash(logMessage);
|
|
624
|
+
if (messageHash) {
|
|
594
625
|
const loggedMessage = {
|
|
595
|
-
hash:
|
|
626
|
+
hash: messageHash,
|
|
596
627
|
level: options.logLevel,
|
|
597
628
|
containsPii: options.containsPii || false,
|
|
598
629
|
milliseconds: 0, // Will be calculated in addLogToCache
|
|
@@ -725,19 +756,7 @@ class Logger {
|
|
|
725
756
|
}
|
|
726
757
|
}
|
|
727
758
|
|
|
728
|
-
/*! @azure/msal-common v16.
|
|
729
|
-
/**
|
|
730
|
-
* Convert seconds to JS Date object. Seconds can be in a number or string format or undefined (will still return a date).
|
|
731
|
-
* @param seconds
|
|
732
|
-
*/
|
|
733
|
-
function toDateFromSeconds(seconds) {
|
|
734
|
-
if (seconds) {
|
|
735
|
-
return new Date(Number(seconds) * 1000);
|
|
736
|
-
}
|
|
737
|
-
return new Date();
|
|
738
|
-
}
|
|
739
|
-
|
|
740
|
-
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
759
|
+
/*! @azure/msal-common v16.9.0 2026-06-16 */
|
|
741
760
|
/**
|
|
742
761
|
* Error thrown when user interaction is required.
|
|
743
762
|
*/
|
|
@@ -754,7 +773,7 @@ class InteractionRequiredAuthError extends AuthError {
|
|
|
754
773
|
}
|
|
755
774
|
}
|
|
756
775
|
|
|
757
|
-
/*! @azure/msal-common v16.
|
|
776
|
+
/*! @azure/msal-common v16.9.0 2026-06-16 */
|
|
758
777
|
|
|
759
778
|
/*
|
|
760
779
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -773,7 +792,7 @@ class ServerError extends AuthError {
|
|
|
773
792
|
}
|
|
774
793
|
}
|
|
775
794
|
|
|
776
|
-
/*! @azure/msal-common v16.
|
|
795
|
+
/*! @azure/msal-common v16.9.0 2026-06-16 */
|
|
777
796
|
|
|
778
797
|
/*
|
|
779
798
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -818,7 +837,7 @@ class PlatformBrokerError extends AuthError {
|
|
|
818
837
|
}
|
|
819
838
|
}
|
|
820
839
|
|
|
821
|
-
/*! @azure/msal-common v16.
|
|
840
|
+
/*! @azure/msal-common v16.9.0 2026-06-16 */
|
|
822
841
|
|
|
823
842
|
/*
|
|
824
843
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1734,7 +1753,7 @@ class PersistenceCreator {
|
|
|
1734
1753
|
|
|
1735
1754
|
/* eslint-disable header/header */
|
|
1736
1755
|
const name = "@azure/msal-node-extensions";
|
|
1737
|
-
const version = "5.2.
|
|
1756
|
+
const version = "5.2.5";
|
|
1738
1757
|
|
|
1739
1758
|
/*
|
|
1740
1759
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|