@azure/msal-node-extensions 5.2.5 → 5.3.1
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 +23 -23
- 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 +4 -6
- package/dist/lib/msal-common/dist/error/AuthError.mjs.map +1 -1
- package/dist/lib/msal-common/dist/error/ClientAuthError.mjs +6 -6
- 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 +6 -6
- 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 +4 -5
- package/dist/lib/msal-common/dist/error/InteractionRequiredAuthError.mjs.map +1 -1
- package/dist/lib/msal-common/dist/error/PlatformBrokerError.mjs +4 -4
- package/dist/lib/msal-common/dist/error/PlatformBrokerError.mjs.map +1 -1
- package/dist/lib/msal-common/dist/error/ServerError.mjs +4 -4
- package/dist/lib/msal-common/dist/error/ServerError.mjs.map +1 -1
- package/dist/lib/msal-common/dist/logger/Logger.mjs +2 -2
- 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 +4 -9
- 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 +84 -92
- package/lib/msal-node-extensions.cjs.map +1 -1
- package/package.json +2 -2
- package/types/broker/NativeBrokerPlugin.d.ts.map +1 -1
- package/types/packageMetadata.d.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PersistenceCreator.mjs","sources":["../../src/persistence/PersistenceCreator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;AAAA;;;AAGG;MAYU,kBAAkB,CAAA;AAC3B,IAAA,aAAa,iBAAiB,CAC1B,MAAiC,EAAA;AAEjC,QAAA,IAAI,UAAwB,CAAC;;AAG7B,QAAA,IAAI,WAAW,CAAC,iBAAiB,EAAE,EAAE;YACjC,IAAI,CAAC,MAAM,CAAC,SAAS,IAAI,CAAC,MAAM,CAAC,mBAAmB,EAAE;AAClD,gBAAA,MAAM,gBAAgB,CAAC,kCAAkC,CACrD,6GAA6G,CAChH,CAAC;AACL,
|
|
1
|
+
{"version":3,"file":"PersistenceCreator.mjs","sources":["../../src/persistence/PersistenceCreator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;AAAA;;;AAGG;MAYU,kBAAkB,CAAA;AAC3B,IAAA,aAAa,iBAAiB,CAC1B,MAAiC,EAAA;AAEjC,QAAA,IAAI,UAAwB,CAAC;;AAG7B,QAAA,IAAI,WAAW,CAAC,iBAAiB,EAAE,EAAE;YACjC,IAAI,CAAC,MAAM,CAAC,SAAS,IAAI,CAAC,MAAM,CAAC,mBAAmB,EAAE;AAClD,gBAAA,MAAM,gBAAgB,CAAC,kCAAkC,CACrD,6GAA6G,CAChH,CAAC;AACL,aAAA;YAED,UAAU,GAAG,MAAM,iCAAiC,CAAC,MAAM,CACvD,MAAM,CAAC,SAAS,EAChB,mBAAmB,CAAC,WAAW,EAC/B,SAAS,EACT,MAAM,CAAC,aAAa,CACvB,CAAC;AACL,SAAA;;AAGI,aAAA,IAAI,WAAW,CAAC,aAAa,EAAE,EAAE;YAClC,IACI,CAAC,MAAM,CAAC,SA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iBAAiB,EAAE,CAAC;AACzC,gBAAA,IAAI,yBAAyB,EAAE;AAC3B,oBAAA,OAAO,UAAU,CAAC;AACrB,iBAAA;AAED,gBAAA,MAAM,gBAAgB,CAAC,iCAAiC,CACpD,mCAAmC,CACtC,CAAC;AACL,aAAA;AAAM,iBAAA;AACH,gBAAA,MAAM,CAAC,CAAC;AACX,aAAA;AACL,SAAC,CAAC,CAAC;AAEH,QAAA,OAAO,UAAU,CAAC;KACrB;AACJ;;;;"}
|
package/dist/utils/Constants.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Constants.mjs","sources":["../../src/utils/Constants.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;
|
|
1
|
+
{"version":3,"file":"Constants.mjs","sources":["../../src/utils/Constants.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAEU,MAAA,SAAS,GAAG;AACrB;;AAEG;AACH,IAAA,YAAY,EAAE,QAAQ;AAEtB;;;;AAIG;AACH,IAAA,YAAY,EAAE,QAAQ;AAEtB;;;AAGG;AACH,IAAA,WAAW,EAAE,OAAO;AAEpB;;AAEG;AACH,IAAA,oBAAoB,EAAE,sBAAsB;AAE5C;;AAEG;AACH,IAAA,qBAAqB,EACjB,uDAAuD;AAE3D;;AAEG;AACH,IAAA,oBAAoB,EAAE,CAAC;AAEvB;;AAEG;AACH,IAAA,WAAW,EAAE;AACT,QAAA,IAAI,EAAE,MAAM;AACZ,QAAA,OAAO,EAAE,SAAS;AAClB,QAAA,IAAI,EAAE,MAAM;AACZ,QAAA,KAAK,EAAE,OAAO;AACd,QAAA,QAAQ,EAAE,UAAU;AACpB,QAAA,QAAQ,EAAE,UAAU;AACpB,QAAA,sBAAsB,EAAE,cAAc;AACzC,KAAA;;AAGD,IAAA,uBAAuB,EAAE,YAAY;EACvC;AAEW,MAAA,QAAQ,GAAG;AACpB,IAAA,OAAO,EAAE,OAAO;AAChB,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,KAAK,EAAE,QAAQ;EACR;AAGE,MAAA,UAAU,GAAG;AACtB,IAAA,8BAA8B,EAAE,sBAAsB;AACtD,IAAA,kBAAkB,EAAE,oBAAoB;AACxC,IAAA,OAAO,EAAE,eAAe;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Environment.mjs","sources":["../../src/utils/Environment.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAAA;;;AAGG;MAMU,WAAW,CAAA;AACpB,IAAA,WAAW,UAAU,GAAA;QACjB,OAAO,IAAI,CAAC,sBAAsB,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"Environment.mjs","sources":["../../src/utils/Environment.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAAA;;;AAGG;MAMU,WAAW,CAAA;AACpB,IAAA,WAAW,UAAU,GAAA;QACjB,OAAO,IAAI,CAAC,sBAAsB,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;KAClE;AAED,IAAA,WAAW,aAAa,GAAA;QACpB,OAAO,IAAI,CAAC,sBAAsB,CAAC,SAAS,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;KACrE;AAED,IAAA,WAAW,UAAU,GAAA;QACjB,OAAO,IAAI,CAAC,sBAAsB,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;KAClE;AAED,IAAA,WAAW,WAAW,GAAA;QAClB,OAAO,IAAI,CAAC,sBAAsB,CAAC,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;KACnE;AAED,IAAA,WAAW,cAAc,GAAA;QACrB,OAAO,IAAI,CAAC,sBAAsB,CAAC,SAAS,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;KACtE;IAED,OAAO,sBAAsB,CAAC,IAAY,EAAA;QACtC,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAA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AAA,QAAQ,GAAG,IAAI,CAAC,aAAa,CAAC;AACjC,SAAA;aAAM,IAAI,IAAI,CAAC,UAAU,EAAE;AACxB,YAAA,QAAQ,GAAG,IAAI,CAAC,UAAU,CAAC;AAC9B,SAAA;aAAM,IAAI,IAAI,CAAC,WAAW,EAAE;AACzB,YAAA,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC;AAC/B,SAAA;aAAM,IAAI,IAAI,CAAC,cAAc,EAAE;AAC5B,YAAA,QAAQ,GAAG,IAAI,CAAC,cAAc,CAAC;AAClC,SAAA;AAED,QAAA,IAAI,IAAI,CAAC,aAAa,EAAE,EAAE;AACtB,YAAA,OAAO,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,GAAG,IAAI,CAAC;AAC1D,SAAA;AAAM,aAAA,IAAI,IAAI,CAAC,eAAe,EAAE,EAAE;AAC/B,YAAA,IAAI,IAAI,CAAC,eAAe,EAAE,EAAE;AACxB,gBAAA,OAAO,OAAO,CAAC;AAClB,aAAA;AAAM,iBAAA;AACH,gBAAA,OAAO,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,GAAG,IAAI,CAAC;AACzD,aAAA;AACJ,SAAA;AAAM,aAAA;AACH,YAAA,MAAM,gBAAgB,CAAC,uBAAuB,CAC1C,sEAAsE,CACzE,CAAC;AACL,SAAA;KACJ;AACJ;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypeGuards.mjs","sources":["../../src/utils/TypeGuards.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAEH;;AAEG;
|
|
1
|
+
{"version":3,"file":"TypeGuards.mjs","sources":["../../src/utils/TypeGuards.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAEH;;AAEG;AACU,MAAA,WAAW,GAAG,CAAC,KAAc,KAAoC;AAC1E,IAAA,OAAO,CAAC,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;AAChF;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-node-extensions v5.
|
|
1
|
+
/*! @azure/msal-node-extensions v5.3.1 2026-06-30 */
|
|
2
2
|
'use strict';
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -343,11 +343,7 @@ class PersistenceCachePlugin {
|
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
345
|
|
|
346
|
-
/*! @azure/msal-common v16.
|
|
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 */
|
|
346
|
+
/*! @azure/msal-common v16.11.0 2026-06-30 */
|
|
351
347
|
/**
|
|
352
348
|
* we considered making this "enum" in the request instead of string, however it looks like the allowed list of
|
|
353
349
|
* prompt values kept changing over past couple of years. There are some undocumented prompt values for some
|
|
@@ -356,11 +352,8 @@ const RESOURCE = "resource";
|
|
|
356
352
|
const PromptValue = {
|
|
357
353
|
LOGIN: "login",
|
|
358
354
|
SELECT_ACCOUNT: "select_account",
|
|
359
|
-
CONSENT: "consent",
|
|
360
355
|
NONE: "none",
|
|
361
|
-
CREATE: "create"
|
|
362
|
-
NO_SESSION: "no_session",
|
|
363
|
-
};
|
|
356
|
+
CREATE: "create"};
|
|
364
357
|
/**
|
|
365
358
|
* Separators used in cache
|
|
366
359
|
*/
|
|
@@ -379,9 +372,7 @@ const SERVER_TELEM_UNKNOWN_ERROR = "unknown_error";
|
|
|
379
372
|
*/
|
|
380
373
|
const AuthenticationScheme = {
|
|
381
374
|
BEARER: "Bearer",
|
|
382
|
-
POP: "pop"
|
|
383
|
-
SSH: "ssh-cert",
|
|
384
|
-
};
|
|
375
|
+
POP: "pop"};
|
|
385
376
|
/**
|
|
386
377
|
* Specifies the reason for fetching the access token from the identity provider
|
|
387
378
|
*/
|
|
@@ -389,7 +380,11 @@ const CacheOutcome = {
|
|
|
389
380
|
// When a token is found in the cache or the cache is not supposed to be hit when making the request
|
|
390
381
|
NOT_APPLICABLE: "0"};
|
|
391
382
|
|
|
392
|
-
/*! @azure/msal-common v16.
|
|
383
|
+
/*! @azure/msal-common v16.11.0 2026-06-30 */
|
|
384
|
+
const X_CLIENT_EXTRA_SKU = "x-client-xtra-sku";
|
|
385
|
+
const RESOURCE = "resource";
|
|
386
|
+
|
|
387
|
+
/*! @azure/msal-common v16.11.0 2026-06-30 */
|
|
393
388
|
/*
|
|
394
389
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
395
390
|
* Licensed under the MIT License.
|
|
@@ -401,7 +396,7 @@ function getDefaultErrorMessage(code) {
|
|
|
401
396
|
* General error class thrown by the MSAL.js library.
|
|
402
397
|
*/
|
|
403
398
|
class AuthError extends Error {
|
|
404
|
-
constructor(errorCode, errorMessage, suberror) {
|
|
399
|
+
constructor(errorCode, correlationId, errorMessage, suberror) {
|
|
405
400
|
const message = errorMessage ||
|
|
406
401
|
(errorCode ? getDefaultErrorMessage(errorCode) : "");
|
|
407
402
|
const errorString = message ? `${errorCode}: ${message}` : errorCode;
|
|
@@ -410,78 +405,64 @@ class AuthError extends Error {
|
|
|
410
405
|
this.errorCode = errorCode || "";
|
|
411
406
|
this.errorMessage = message || "";
|
|
412
407
|
this.subError = suberror || "";
|
|
413
|
-
this.name = "AuthError";
|
|
414
|
-
}
|
|
415
|
-
setCorrelationId(correlationId) {
|
|
416
408
|
this.correlationId = correlationId;
|
|
409
|
+
this.name = "AuthError";
|
|
417
410
|
}
|
|
418
411
|
}
|
|
419
412
|
|
|
420
|
-
/*! @azure/msal-common v16.
|
|
413
|
+
/*! @azure/msal-common v16.11.0 2026-06-30 */
|
|
421
414
|
|
|
422
415
|
/*
|
|
423
416
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
424
417
|
* Licensed under the MIT License.
|
|
425
418
|
*/
|
|
426
419
|
/**
|
|
427
|
-
*
|
|
428
|
-
*/
|
|
429
|
-
/**
|
|
430
|
-
* Error thrown when there is an error in the client code running on the browser.
|
|
420
|
+
* Error thrown when there is an error in configuration of the MSAL.js library.
|
|
431
421
|
*/
|
|
432
|
-
class
|
|
433
|
-
constructor(errorCode,
|
|
434
|
-
super(errorCode,
|
|
435
|
-
this.name = "
|
|
436
|
-
Object.setPrototypeOf(this,
|
|
422
|
+
class ClientConfigurationError extends AuthError {
|
|
423
|
+
constructor(errorCode, correlationId) {
|
|
424
|
+
super(errorCode, correlationId);
|
|
425
|
+
this.name = "ClientConfigurationError";
|
|
426
|
+
Object.setPrototypeOf(this, ClientConfigurationError.prototype);
|
|
437
427
|
}
|
|
438
428
|
}
|
|
439
|
-
function
|
|
440
|
-
return new
|
|
429
|
+
function createClientConfigurationError(errorCode, correlationId) {
|
|
430
|
+
return new ClientConfigurationError(errorCode, correlationId);
|
|
441
431
|
}
|
|
442
432
|
|
|
443
|
-
/*! @azure/msal-common v16.
|
|
444
|
-
const noAccountFound = "no_account_found";
|
|
445
|
-
const noNetworkConnectivity = "no_network_connectivity";
|
|
446
|
-
const userCanceled = "user_canceled";
|
|
447
|
-
const platformBrokerError = "platform_broker_error";
|
|
448
|
-
|
|
449
|
-
/*! @azure/msal-common v16.9.0 2026-06-16 */
|
|
433
|
+
/*! @azure/msal-common v16.11.0 2026-06-30 */
|
|
450
434
|
|
|
451
435
|
/*
|
|
452
436
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
453
437
|
* Licensed under the MIT License.
|
|
454
438
|
*/
|
|
455
439
|
/**
|
|
456
|
-
*
|
|
440
|
+
* ClientAuthErrorMessage class containing string constants used by error codes and messages.
|
|
457
441
|
*/
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
442
|
+
/**
|
|
443
|
+
* Error thrown when there is an error in the client code running on the browser.
|
|
444
|
+
*/
|
|
445
|
+
class ClientAuthError extends AuthError {
|
|
446
|
+
constructor(errorCode, correlationId, additionalMessage) {
|
|
447
|
+
super(errorCode, correlationId, additionalMessage);
|
|
448
|
+
this.name = "ClientAuthError";
|
|
449
|
+
Object.setPrototypeOf(this, ClientAuthError.prototype);
|
|
463
450
|
}
|
|
464
451
|
}
|
|
465
|
-
function
|
|
466
|
-
return new
|
|
452
|
+
function createClientAuthError(errorCode, correlationId, additionalMessage) {
|
|
453
|
+
return new ClientAuthError(errorCode, correlationId, additionalMessage);
|
|
467
454
|
}
|
|
468
455
|
|
|
469
|
-
/*! @azure/msal-common v16.
|
|
456
|
+
/*! @azure/msal-common v16.11.0 2026-06-30 */
|
|
470
457
|
const untrustedAuthority = "untrusted_authority";
|
|
471
458
|
|
|
472
|
-
/*! @azure/msal-common v16.
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
function toDateFromSeconds(seconds) {
|
|
478
|
-
if (seconds) {
|
|
479
|
-
return new Date(Number(seconds) * 1000);
|
|
480
|
-
}
|
|
481
|
-
return new Date();
|
|
482
|
-
}
|
|
459
|
+
/*! @azure/msal-common v16.11.0 2026-06-30 */
|
|
460
|
+
const noAccountFound = "no_account_found";
|
|
461
|
+
const noNetworkConnectivity = "no_network_connectivity";
|
|
462
|
+
const userCanceled = "user_canceled";
|
|
463
|
+
const platformBrokerError = "platform_broker_error";
|
|
483
464
|
|
|
484
|
-
/*! @azure/msal-common v16.
|
|
465
|
+
/*! @azure/msal-common v16.11.0 2026-06-30 */
|
|
485
466
|
/*
|
|
486
467
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
487
468
|
* Licensed under the MIT License.
|
|
@@ -756,24 +737,35 @@ class Logger {
|
|
|
756
737
|
}
|
|
757
738
|
}
|
|
758
739
|
|
|
759
|
-
/*! @azure/msal-common v16.
|
|
740
|
+
/*! @azure/msal-common v16.11.0 2026-06-30 */
|
|
741
|
+
/**
|
|
742
|
+
* Convert seconds to JS Date object. Seconds can be in a number or string format or undefined (will still return a date).
|
|
743
|
+
* @param seconds
|
|
744
|
+
*/
|
|
745
|
+
function toDateFromSeconds(seconds) {
|
|
746
|
+
if (seconds) {
|
|
747
|
+
return new Date(Number(seconds) * 1000);
|
|
748
|
+
}
|
|
749
|
+
return new Date();
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
/*! @azure/msal-common v16.11.0 2026-06-30 */
|
|
760
753
|
/**
|
|
761
754
|
* Error thrown when user interaction is required.
|
|
762
755
|
*/
|
|
763
756
|
class InteractionRequiredAuthError extends AuthError {
|
|
764
|
-
constructor(errorCode, errorMessage, subError, timestamp, traceId,
|
|
765
|
-
super(errorCode, errorMessage, subError);
|
|
757
|
+
constructor(errorCode, correlationId, errorMessage, subError, timestamp, traceId, claims, errorNo) {
|
|
758
|
+
super(errorCode, correlationId, errorMessage, subError);
|
|
766
759
|
Object.setPrototypeOf(this, InteractionRequiredAuthError.prototype);
|
|
767
760
|
this.timestamp = timestamp || "";
|
|
768
761
|
this.traceId = traceId || "";
|
|
769
|
-
this.correlationId = correlationId || "";
|
|
770
762
|
this.claims = claims || "";
|
|
771
763
|
this.name = "InteractionRequiredAuthError";
|
|
772
764
|
this.errorNo = errorNo;
|
|
773
765
|
}
|
|
774
766
|
}
|
|
775
767
|
|
|
776
|
-
/*! @azure/msal-common v16.
|
|
768
|
+
/*! @azure/msal-common v16.11.0 2026-06-30 */
|
|
777
769
|
|
|
778
770
|
/*
|
|
779
771
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -783,8 +775,8 @@ class InteractionRequiredAuthError extends AuthError {
|
|
|
783
775
|
* Error thrown when there is an error with the server code, for example, unavailability.
|
|
784
776
|
*/
|
|
785
777
|
class ServerError extends AuthError {
|
|
786
|
-
constructor(errorCode, errorMessage, subError, errorNo, status) {
|
|
787
|
-
super(errorCode, errorMessage, subError);
|
|
778
|
+
constructor(errorCode, correlationId, errorMessage, subError, errorNo, status) {
|
|
779
|
+
super(errorCode, correlationId, errorMessage, subError);
|
|
788
780
|
this.name = "ServerError";
|
|
789
781
|
this.errorNo = errorNo;
|
|
790
782
|
this.status = status;
|
|
@@ -792,7 +784,7 @@ class ServerError extends AuthError {
|
|
|
792
784
|
}
|
|
793
785
|
}
|
|
794
786
|
|
|
795
|
-
/*! @azure/msal-common v16.
|
|
787
|
+
/*! @azure/msal-common v16.11.0 2026-06-30 */
|
|
796
788
|
|
|
797
789
|
/*
|
|
798
790
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -824,12 +816,12 @@ function tagToString(tag) {
|
|
|
824
816
|
* Error class for MSAL Runtime errors that preserves detailed broker information
|
|
825
817
|
*/
|
|
826
818
|
class PlatformBrokerError extends AuthError {
|
|
827
|
-
constructor(errorStatus, errorContext, errorCode, errorTag) {
|
|
819
|
+
constructor(errorStatus, correlationId, errorContext, errorCode, errorTag) {
|
|
828
820
|
const tagString = tagToString(errorTag);
|
|
829
821
|
const enhancedErrorContext = errorContext
|
|
830
822
|
? `${errorContext} (Error Code: ${errorCode}, Tag: ${tagString})`
|
|
831
823
|
: `(Error Code: ${errorCode}, Tag: ${tagString})`;
|
|
832
|
-
super(errorStatus, enhancedErrorContext);
|
|
824
|
+
super(errorStatus, correlationId, enhancedErrorContext);
|
|
833
825
|
this.name = "PlatformBrokerError";
|
|
834
826
|
this.statusCode = errorCode;
|
|
835
827
|
this.tag = tagString;
|
|
@@ -837,7 +829,7 @@ class PlatformBrokerError extends AuthError {
|
|
|
837
829
|
}
|
|
838
830
|
}
|
|
839
831
|
|
|
840
|
-
/*! @azure/msal-common v16.
|
|
832
|
+
/*! @azure/msal-common v16.11.0 2026-06-30 */
|
|
841
833
|
|
|
842
834
|
/*
|
|
843
835
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1753,7 +1745,7 @@ class PersistenceCreator {
|
|
|
1753
1745
|
|
|
1754
1746
|
/* eslint-disable header/header */
|
|
1755
1747
|
const name = "@azure/msal-node-extensions";
|
|
1756
|
-
const version = "5.
|
|
1748
|
+
const version = "5.3.1";
|
|
1757
1749
|
|
|
1758
1750
|
/*
|
|
1759
1751
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1836,7 +1828,7 @@ class NativeBrokerPlugin {
|
|
|
1836
1828
|
msalNodeRuntime.msalNodeRuntime.RegisterLogger(logCallback, loggerOptions.piiLoggingEnabled || false);
|
|
1837
1829
|
}
|
|
1838
1830
|
catch (e) {
|
|
1839
|
-
const wrappedError = this.wrapError(e);
|
|
1831
|
+
const wrappedError = this.wrapError(e, "");
|
|
1840
1832
|
if (wrappedError) {
|
|
1841
1833
|
throw wrappedError;
|
|
1842
1834
|
}
|
|
@@ -1855,7 +1847,7 @@ class NativeBrokerPlugin {
|
|
|
1855
1847
|
result.CheckError();
|
|
1856
1848
|
}
|
|
1857
1849
|
catch (e) {
|
|
1858
|
-
const wrappedError = this.wrapError(e);
|
|
1850
|
+
const wrappedError = this.wrapError(e, correlationId);
|
|
1859
1851
|
if (wrappedError) {
|
|
1860
1852
|
reject(wrappedError);
|
|
1861
1853
|
return;
|
|
@@ -1871,7 +1863,7 @@ class NativeBrokerPlugin {
|
|
|
1871
1863
|
msalNodeRuntime.msalNodeRuntime.DiscoverAccountsAsync(clientId, correlationId, resultCallback);
|
|
1872
1864
|
}
|
|
1873
1865
|
catch (e) {
|
|
1874
|
-
const wrappedError = this.wrapError(e);
|
|
1866
|
+
const wrappedError = this.wrapError(e, correlationId);
|
|
1875
1867
|
if (wrappedError) {
|
|
1876
1868
|
reject(wrappedError);
|
|
1877
1869
|
}
|
|
@@ -1894,7 +1886,7 @@ class NativeBrokerPlugin {
|
|
|
1894
1886
|
result.CheckError();
|
|
1895
1887
|
}
|
|
1896
1888
|
catch (e) {
|
|
1897
|
-
const wrappedError = this.wrapError(e);
|
|
1889
|
+
const wrappedError = this.wrapError(e, request.correlationId);
|
|
1898
1890
|
if (wrappedError) {
|
|
1899
1891
|
reject(wrappedError);
|
|
1900
1892
|
return;
|
|
@@ -1912,7 +1904,7 @@ class NativeBrokerPlugin {
|
|
|
1912
1904
|
}
|
|
1913
1905
|
}
|
|
1914
1906
|
catch (e) {
|
|
1915
|
-
const wrappedError = this.wrapError(e);
|
|
1907
|
+
const wrappedError = this.wrapError(e, request.correlationId);
|
|
1916
1908
|
if (wrappedError) {
|
|
1917
1909
|
reject(wrappedError);
|
|
1918
1910
|
}
|
|
@@ -1936,7 +1928,7 @@ class NativeBrokerPlugin {
|
|
|
1936
1928
|
result.CheckError();
|
|
1937
1929
|
}
|
|
1938
1930
|
catch (e) {
|
|
1939
|
-
const wrappedError = this.wrapError(e);
|
|
1931
|
+
const wrappedError = this.wrapError(e, request.correlationId);
|
|
1940
1932
|
if (wrappedError) {
|
|
1941
1933
|
reject(wrappedError);
|
|
1942
1934
|
return;
|
|
@@ -1978,7 +1970,7 @@ class NativeBrokerPlugin {
|
|
|
1978
1970
|
}
|
|
1979
1971
|
}
|
|
1980
1972
|
catch (e) {
|
|
1981
|
-
const wrappedError = this.wrapError(e);
|
|
1973
|
+
const wrappedError = this.wrapError(e, request.correlationId);
|
|
1982
1974
|
if (wrappedError) {
|
|
1983
1975
|
reject(wrappedError);
|
|
1984
1976
|
}
|
|
@@ -1989,7 +1981,7 @@ class NativeBrokerPlugin {
|
|
|
1989
1981
|
this.logger.trace("NativeBrokerPlugin - signOut called", request.correlationId);
|
|
1990
1982
|
const account = await this.getAccount(request);
|
|
1991
1983
|
if (!account) {
|
|
1992
|
-
throw createClientAuthError(noAccountFound);
|
|
1984
|
+
throw createClientAuthError(noAccountFound, request.correlationId);
|
|
1993
1985
|
}
|
|
1994
1986
|
return new Promise((resolve, reject) => {
|
|
1995
1987
|
const resultCallback = (result) => {
|
|
@@ -1997,7 +1989,7 @@ class NativeBrokerPlugin {
|
|
|
1997
1989
|
result.CheckError();
|
|
1998
1990
|
}
|
|
1999
1991
|
catch (e) {
|
|
2000
|
-
const wrappedError = this.wrapError(e);
|
|
1992
|
+
const wrappedError = this.wrapError(e, request.correlationId);
|
|
2001
1993
|
if (wrappedError) {
|
|
2002
1994
|
reject(wrappedError);
|
|
2003
1995
|
return;
|
|
@@ -2009,7 +2001,7 @@ class NativeBrokerPlugin {
|
|
|
2009
2001
|
msalNodeRuntime.msalNodeRuntime.SignOutSilentlyAsync(request.clientId, request.correlationId, account, resultCallback);
|
|
2010
2002
|
}
|
|
2011
2003
|
catch (e) {
|
|
2012
|
-
const wrappedError = this.wrapError(e);
|
|
2004
|
+
const wrappedError = this.wrapError(e, request.correlationId);
|
|
2013
2005
|
if (wrappedError) {
|
|
2014
2006
|
reject(wrappedError);
|
|
2015
2007
|
}
|
|
@@ -2031,7 +2023,7 @@ class NativeBrokerPlugin {
|
|
|
2031
2023
|
result.CheckError();
|
|
2032
2024
|
}
|
|
2033
2025
|
catch (e) {
|
|
2034
|
-
const wrappedError = this.wrapError(e);
|
|
2026
|
+
const wrappedError = this.wrapError(e, correlationId);
|
|
2035
2027
|
if (wrappedError) {
|
|
2036
2028
|
reject(wrappedError);
|
|
2037
2029
|
return;
|
|
@@ -2043,7 +2035,7 @@ class NativeBrokerPlugin {
|
|
|
2043
2035
|
msalNodeRuntime.msalNodeRuntime.ReadAccountByIdAsync(accountId, correlationId, resultCallback);
|
|
2044
2036
|
}
|
|
2045
2037
|
catch (e) {
|
|
2046
|
-
const wrappedError = this.wrapError(e);
|
|
2038
|
+
const wrappedError = this.wrapError(e, correlationId);
|
|
2047
2039
|
if (wrappedError) {
|
|
2048
2040
|
reject(wrappedError);
|
|
2049
2041
|
}
|
|
@@ -2089,7 +2081,7 @@ class NativeBrokerPlugin {
|
|
|
2089
2081
|
}));
|
|
2090
2082
|
}
|
|
2091
2083
|
catch (e) {
|
|
2092
|
-
const wrappedError = this.wrapError(e);
|
|
2084
|
+
const wrappedError = this.wrapError(e, request.correlationId);
|
|
2093
2085
|
if (wrappedError) {
|
|
2094
2086
|
throw wrappedError;
|
|
2095
2087
|
}
|
|
@@ -2180,39 +2172,39 @@ class NativeBrokerPlugin {
|
|
|
2180
2172
|
result.hasOwnProperty("errorContext") ||
|
|
2181
2173
|
result.hasOwnProperty("errorTag"));
|
|
2182
2174
|
}
|
|
2183
|
-
wrapError(error) {
|
|
2175
|
+
wrapError(error, correlationId) {
|
|
2184
2176
|
if (error &&
|
|
2185
2177
|
typeof error === "object" &&
|
|
2186
2178
|
this.isMsalRuntimeError(error)) {
|
|
2187
2179
|
const { errorCode, errorStatus, errorContext, errorTag } = error;
|
|
2188
|
-
const msalNodeRuntimeError = new PlatformBrokerError(msalNodeRuntime.ErrorStatus[errorStatus], errorContext, errorCode, errorTag);
|
|
2180
|
+
const msalNodeRuntimeError = new PlatformBrokerError(msalNodeRuntime.ErrorStatus[errorStatus], correlationId, errorContext, errorCode, errorTag);
|
|
2189
2181
|
let wrappedError;
|
|
2190
2182
|
switch (errorStatus) {
|
|
2191
2183
|
case msalNodeRuntime.ErrorStatus.InteractionRequired:
|
|
2192
2184
|
case msalNodeRuntime.ErrorStatus.AccountUnusable:
|
|
2193
|
-
wrappedError = new InteractionRequiredAuthError(ErrorCodes.INTERATION_REQUIRED_ERROR_CODE, msalNodeRuntimeError.message);
|
|
2185
|
+
wrappedError = new InteractionRequiredAuthError(ErrorCodes.INTERATION_REQUIRED_ERROR_CODE, correlationId, msalNodeRuntimeError.message);
|
|
2194
2186
|
break;
|
|
2195
2187
|
case msalNodeRuntime.ErrorStatus.NoNetwork:
|
|
2196
2188
|
case msalNodeRuntime.ErrorStatus.NetworkTemporarilyUnavailable:
|
|
2197
|
-
wrappedError = createClientAuthError(noNetworkConnectivity);
|
|
2189
|
+
wrappedError = createClientAuthError(noNetworkConnectivity, correlationId);
|
|
2198
2190
|
break;
|
|
2199
2191
|
case msalNodeRuntime.ErrorStatus.ServerTemporarilyUnavailable:
|
|
2200
|
-
wrappedError = new ServerError(ErrorCodes.SERVER_UNAVAILABLE, msalNodeRuntimeError.message);
|
|
2192
|
+
wrappedError = new ServerError(ErrorCodes.SERVER_UNAVAILABLE, correlationId, msalNodeRuntimeError.message);
|
|
2201
2193
|
break;
|
|
2202
2194
|
case msalNodeRuntime.ErrorStatus.UserCanceled:
|
|
2203
|
-
wrappedError = createClientAuthError(userCanceled);
|
|
2195
|
+
wrappedError = createClientAuthError(userCanceled, correlationId);
|
|
2204
2196
|
break;
|
|
2205
2197
|
case msalNodeRuntime.ErrorStatus.AuthorityUntrusted:
|
|
2206
|
-
wrappedError = createClientConfigurationError(untrustedAuthority);
|
|
2198
|
+
wrappedError = createClientConfigurationError(untrustedAuthority, correlationId);
|
|
2207
2199
|
break;
|
|
2208
2200
|
case msalNodeRuntime.ErrorStatus.UserSwitched:
|
|
2209
2201
|
// Not an error case, if there's customer demand we can surface this as a response property
|
|
2210
2202
|
return null;
|
|
2211
2203
|
case msalNodeRuntime.ErrorStatus.AccountNotFound:
|
|
2212
|
-
wrappedError = createClientAuthError(noAccountFound);
|
|
2204
|
+
wrappedError = createClientAuthError(noAccountFound, correlationId);
|
|
2213
2205
|
break;
|
|
2214
2206
|
default:
|
|
2215
|
-
wrappedError = createClientAuthError(platformBrokerError);
|
|
2207
|
+
wrappedError = createClientAuthError(platformBrokerError, correlationId);
|
|
2216
2208
|
}
|
|
2217
2209
|
wrappedError.platformBrokerError = msalNodeRuntimeError;
|
|
2218
2210
|
return wrappedError;
|