@azure/msal-node 5.2.2 → 5.2.4
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/dist/cache/CacheHelpers.mjs +1 -1
- package/dist/cache/NodeStorage.mjs +1 -1
- package/dist/cache/TokenCache.mjs +1 -1
- package/dist/cache/distributed/DistributedCachePlugin.mjs +1 -1
- package/dist/cache/serializer/Deserializer.mjs +1 -1
- package/dist/cache/serializer/Serializer.mjs +1 -1
- package/dist/client/BaseClient.mjs +1 -1
- package/dist/client/ClientApplication.mjs +1 -1
- package/dist/client/ClientAssertion.mjs +1 -1
- package/dist/client/ClientCredentialClient.mjs +1 -1
- package/dist/client/ConfidentialClientApplication.mjs +1 -1
- package/dist/client/DeviceCodeClient.mjs +1 -1
- package/dist/client/ManagedIdentityApplication.mjs +1 -1
- package/dist/client/ManagedIdentityClient.mjs +1 -1
- package/dist/client/ManagedIdentitySources/AppService.mjs +1 -1
- package/dist/client/ManagedIdentitySources/AzureArc.mjs +1 -1
- package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs +1 -1
- package/dist/client/ManagedIdentitySources/CloudShell.mjs +1 -1
- package/dist/client/ManagedIdentitySources/Imds.mjs +1 -1
- package/dist/client/ManagedIdentitySources/MachineLearning.mjs +1 -1
- package/dist/client/ManagedIdentitySources/ServiceFabric.mjs +1 -1
- package/dist/client/OnBehalfOfClient.mjs +1 -1
- package/dist/client/PublicClientApplication.mjs +1 -1
- package/dist/client/UsernamePasswordClient.mjs +1 -1
- package/dist/config/Configuration.mjs +1 -1
- package/dist/config/ManagedIdentityId.mjs +1 -1
- package/dist/config/ManagedIdentityRequestParameters.mjs +1 -1
- package/dist/crypto/CryptoProvider.mjs +1 -1
- package/dist/crypto/GuidGenerator.mjs +1 -1
- package/dist/crypto/HashUtils.mjs +1 -1
- package/dist/crypto/PkceGenerator.mjs +1 -1
- package/dist/error/ClientAuthErrorCodes.mjs +1 -1
- package/dist/error/ManagedIdentityError.mjs +1 -1
- package/dist/error/ManagedIdentityErrorCodes.mjs +1 -1
- package/dist/error/NodeAuthError.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/internals.mjs +1 -1
- package/dist/network/HttpClient.mjs +1 -1
- package/dist/network/HttpClientWithRetries.mjs +1 -1
- package/dist/network/LoopbackClient.mjs +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/protocol/Authorize.mjs +1 -1
- package/dist/retry/DefaultManagedIdentityRetryPolicy.mjs +1 -1
- package/dist/retry/ExponentialRetryStrategy.mjs +1 -1
- package/dist/retry/ImdsRetryPolicy.mjs +1 -1
- package/dist/retry/LinearRetryStrategy.mjs +1 -1
- package/dist/utils/Constants.mjs +1 -1
- package/dist/utils/EncodingUtils.mjs +1 -1
- package/dist/utils/TimeUtils.mjs +1 -1
- package/lib/msal-node.cjs +126 -97
- package/lib/msal-node.cjs.map +1 -1
- package/package.json +2 -2
- package/src/packageMetadata.ts +1 -1
- package/types/packageMetadata.d.ts +1 -1
package/lib/msal-node.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-node v5.2.
|
|
1
|
+
/*! @azure/msal-node v5.2.4 2026-06-10 */
|
|
2
2
|
'use strict';
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -150,7 +150,7 @@ class Serializer {
|
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
/*! @azure/msal-common v16.
|
|
153
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
154
154
|
/*
|
|
155
155
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
156
156
|
* Licensed under the MIT License.
|
|
@@ -398,7 +398,7 @@ const EncodingTypes = {
|
|
|
398
398
|
UTF8: "utf-8",
|
|
399
399
|
};
|
|
400
400
|
|
|
401
|
-
/*! @azure/msal-common v16.
|
|
401
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
402
402
|
/*
|
|
403
403
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
404
404
|
* Licensed under the MIT License.
|
|
@@ -451,7 +451,7 @@ const INSTANCE_AWARE = "instance_aware";
|
|
|
451
451
|
const RESOURCE = "resource";
|
|
452
452
|
const CLI_DATA = "clidata";
|
|
453
453
|
|
|
454
|
-
/*! @azure/msal-common v16.
|
|
454
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
455
455
|
/*
|
|
456
456
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
457
457
|
* Licensed under the MIT License.
|
|
@@ -482,7 +482,7 @@ function createAuthError(code, additionalMessage) {
|
|
|
482
482
|
return new AuthError(code, additionalMessage || getDefaultErrorMessage(code));
|
|
483
483
|
}
|
|
484
484
|
|
|
485
|
-
/*! @azure/msal-common v16.
|
|
485
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
486
486
|
|
|
487
487
|
/*
|
|
488
488
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -502,7 +502,7 @@ function createClientConfigurationError(errorCode) {
|
|
|
502
502
|
return new ClientConfigurationError(errorCode);
|
|
503
503
|
}
|
|
504
504
|
|
|
505
|
-
/*! @azure/msal-common v16.
|
|
505
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
506
506
|
/*
|
|
507
507
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
508
508
|
* Licensed under the MIT License.
|
|
@@ -582,7 +582,7 @@ class StringUtils {
|
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
584
|
|
|
585
|
-
/*! @azure/msal-common v16.
|
|
585
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
586
586
|
|
|
587
587
|
/*
|
|
588
588
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -605,7 +605,7 @@ function createClientAuthError(errorCode, additionalMessage) {
|
|
|
605
605
|
return new ClientAuthError(errorCode, additionalMessage);
|
|
606
606
|
}
|
|
607
607
|
|
|
608
|
-
/*! @azure/msal-common v16.
|
|
608
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
609
609
|
/*
|
|
610
610
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
611
611
|
* Licensed under the MIT License.
|
|
@@ -663,7 +663,7 @@ var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
663
663
|
urlParseError: urlParseError
|
|
664
664
|
});
|
|
665
665
|
|
|
666
|
-
/*! @azure/msal-common v16.
|
|
666
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
667
667
|
/*
|
|
668
668
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
669
669
|
* Licensed under the MIT License.
|
|
@@ -751,7 +751,7 @@ var ClientAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
751
751
|
userCanceled: userCanceled
|
|
752
752
|
});
|
|
753
753
|
|
|
754
|
-
/*! @azure/msal-common v16.
|
|
754
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
755
755
|
|
|
756
756
|
/*
|
|
757
757
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -946,7 +946,7 @@ class ScopeSet {
|
|
|
946
946
|
}
|
|
947
947
|
}
|
|
948
948
|
|
|
949
|
-
/*! @azure/msal-common v16.
|
|
949
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
950
950
|
|
|
951
951
|
/*
|
|
952
952
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1324,8 +1324,14 @@ function addSshJwk(parameters, sshJwkString) {
|
|
|
1324
1324
|
* @param serverTelemetryManager
|
|
1325
1325
|
*/
|
|
1326
1326
|
function addServerTelemetry(parameters, serverTelemetryManager) {
|
|
1327
|
-
|
|
1328
|
-
|
|
1327
|
+
const currentTelemetryHeader = serverTelemetryManager.generateCurrentRequestHeaderValue();
|
|
1328
|
+
const lastTelemetryHeader = serverTelemetryManager.generateLastRequestHeaderValue();
|
|
1329
|
+
if (currentTelemetryHeader) {
|
|
1330
|
+
parameters.set(X_CLIENT_CURR_TELEM, currentTelemetryHeader);
|
|
1331
|
+
}
|
|
1332
|
+
if (lastTelemetryHeader) {
|
|
1333
|
+
parameters.set(X_CLIENT_LAST_TELEM, lastTelemetryHeader);
|
|
1334
|
+
}
|
|
1329
1335
|
}
|
|
1330
1336
|
/**
|
|
1331
1337
|
* Adds parameter that indicates to the server that throttling is supported
|
|
@@ -1353,7 +1359,12 @@ function addResource(parameters, resource) {
|
|
|
1353
1359
|
}
|
|
1354
1360
|
}
|
|
1355
1361
|
|
|
1356
|
-
/*! @azure/msal-common v16.
|
|
1362
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
1363
|
+
|
|
1364
|
+
/*
|
|
1365
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1366
|
+
* Licensed under the MIT License.
|
|
1367
|
+
*/
|
|
1357
1368
|
/**
|
|
1358
1369
|
* Parses hash string from given string. Returns empty string if no hash symbol is found.
|
|
1359
1370
|
* @param hashString
|
|
@@ -1406,7 +1417,7 @@ function mapToQueryString(parameters) {
|
|
|
1406
1417
|
return queryParameterArray.join("&");
|
|
1407
1418
|
}
|
|
1408
1419
|
|
|
1409
|
-
/*! @azure/msal-common v16.
|
|
1420
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
1410
1421
|
|
|
1411
1422
|
/*
|
|
1412
1423
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1445,7 +1456,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
|
|
|
1445
1456
|
},
|
|
1446
1457
|
};
|
|
1447
1458
|
|
|
1448
|
-
/*! @azure/msal-common v16.
|
|
1459
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
1449
1460
|
/*
|
|
1450
1461
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1451
1462
|
* Licensed under the MIT License.
|
|
@@ -1493,7 +1504,7 @@ function addLogToCache(correlationId, loggedMessage) {
|
|
|
1493
1504
|
// Remove LRU (first entry) if capacity exceeded
|
|
1494
1505
|
if (correlationCache.size > CACHE_CAPACITY) {
|
|
1495
1506
|
const firstKey = correlationCache.keys().next().value;
|
|
1496
|
-
if (firstKey) {
|
|
1507
|
+
if (firstKey !== undefined) {
|
|
1497
1508
|
correlationCache.delete(firstKey);
|
|
1498
1509
|
}
|
|
1499
1510
|
}
|
|
@@ -1706,12 +1717,12 @@ class Logger {
|
|
|
1706
1717
|
}
|
|
1707
1718
|
}
|
|
1708
1719
|
|
|
1709
|
-
/*! @azure/msal-common v16.
|
|
1720
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
1710
1721
|
/* eslint-disable header/header */
|
|
1711
1722
|
const name$1 = "@azure/msal-common";
|
|
1712
|
-
const version$1 = "16.
|
|
1723
|
+
const version$1 = "16.8.0";
|
|
1713
1724
|
|
|
1714
|
-
/*! @azure/msal-common v16.
|
|
1725
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
1715
1726
|
/*
|
|
1716
1727
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1717
1728
|
* Licensed under the MIT License.
|
|
@@ -1731,7 +1742,7 @@ const AzureCloudInstance = {
|
|
|
1731
1742
|
AzureUsGovernment: "https://login.microsoftonline.us",
|
|
1732
1743
|
};
|
|
1733
1744
|
|
|
1734
|
-
/*! @azure/msal-common v16.
|
|
1745
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
1735
1746
|
/*
|
|
1736
1747
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1737
1748
|
* Licensed under the MIT License.
|
|
@@ -1814,7 +1825,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
|
|
|
1814
1825
|
return updatedAccountInfo;
|
|
1815
1826
|
}
|
|
1816
1827
|
|
|
1817
|
-
/*! @azure/msal-common v16.
|
|
1828
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
1818
1829
|
|
|
1819
1830
|
/*
|
|
1820
1831
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1894,7 +1905,7 @@ function checkMaxAge(authTime, maxAge) {
|
|
|
1894
1905
|
}
|
|
1895
1906
|
}
|
|
1896
1907
|
|
|
1897
|
-
/*! @azure/msal-common v16.
|
|
1908
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
1898
1909
|
|
|
1899
1910
|
/*
|
|
1900
1911
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2051,7 +2062,7 @@ class UrlString {
|
|
|
2051
2062
|
}
|
|
2052
2063
|
}
|
|
2053
2064
|
|
|
2054
|
-
/*! @azure/msal-common v16.
|
|
2065
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
2055
2066
|
|
|
2056
2067
|
/*
|
|
2057
2068
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2217,7 +2228,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
2217
2228
|
return null;
|
|
2218
2229
|
}
|
|
2219
2230
|
|
|
2220
|
-
/*! @azure/msal-common v16.
|
|
2231
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
2221
2232
|
/*
|
|
2222
2233
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2223
2234
|
* Licensed under the MIT License.
|
|
@@ -2225,7 +2236,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
2225
2236
|
const cacheQuotaExceeded = "cache_quota_exceeded";
|
|
2226
2237
|
const cacheErrorUnknown = "cache_error_unknown";
|
|
2227
2238
|
|
|
2228
|
-
/*! @azure/msal-common v16.
|
|
2239
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
2229
2240
|
|
|
2230
2241
|
/*
|
|
2231
2242
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2263,7 +2274,7 @@ function createCacheError(e) {
|
|
|
2263
2274
|
}
|
|
2264
2275
|
}
|
|
2265
2276
|
|
|
2266
|
-
/*! @azure/msal-common v16.
|
|
2277
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
2267
2278
|
|
|
2268
2279
|
/*
|
|
2269
2280
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2301,7 +2312,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
|
|
|
2301
2312
|
};
|
|
2302
2313
|
}
|
|
2303
2314
|
|
|
2304
|
-
/*! @azure/msal-common v16.
|
|
2315
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
2305
2316
|
/*
|
|
2306
2317
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2307
2318
|
* Licensed under the MIT License.
|
|
@@ -2316,7 +2327,7 @@ const AuthorityType = {
|
|
|
2316
2327
|
Ciam: 3,
|
|
2317
2328
|
};
|
|
2318
2329
|
|
|
2319
|
-
/*! @azure/msal-common v16.
|
|
2330
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
2320
2331
|
/*
|
|
2321
2332
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2322
2333
|
* Licensed under the MIT License.
|
|
@@ -2338,7 +2349,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
|
|
|
2338
2349
|
return null;
|
|
2339
2350
|
}
|
|
2340
2351
|
|
|
2341
|
-
/*! @azure/msal-common v16.
|
|
2352
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
2342
2353
|
/*
|
|
2343
2354
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2344
2355
|
* Licensed under the MIT License.
|
|
@@ -2362,7 +2373,7 @@ const ProtocolMode = {
|
|
|
2362
2373
|
EAR: "EAR",
|
|
2363
2374
|
};
|
|
2364
2375
|
|
|
2365
|
-
/*! @azure/msal-common v16.
|
|
2376
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
2366
2377
|
/**
|
|
2367
2378
|
* Returns the AccountInfo interface for this account.
|
|
2368
2379
|
*/
|
|
@@ -2505,7 +2516,7 @@ function isAccountEntity(entity) {
|
|
|
2505
2516
|
entity.hasOwnProperty("authorityType"));
|
|
2506
2517
|
}
|
|
2507
2518
|
|
|
2508
|
-
/*! @azure/msal-common v16.
|
|
2519
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
2509
2520
|
|
|
2510
2521
|
/*
|
|
2511
2522
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2645,8 +2656,8 @@ class CacheManager {
|
|
|
2645
2656
|
return false;
|
|
2646
2657
|
}
|
|
2647
2658
|
if (!!tenantProfileFilter.username &&
|
|
2648
|
-
!
|
|
2649
|
-
|
|
2659
|
+
!this.matchUsername(tenantProfile.username, tenantProfileFilter.username) &&
|
|
2660
|
+
!this.matchUsername(tenantProfile.upn, tenantProfileFilter.username)) {
|
|
2650
2661
|
return false;
|
|
2651
2662
|
}
|
|
2652
2663
|
if (!!tenantProfileFilter.loginHint &&
|
|
@@ -3636,7 +3647,7 @@ class DefaultStorageClass extends CacheManager {
|
|
|
3636
3647
|
}
|
|
3637
3648
|
}
|
|
3638
3649
|
|
|
3639
|
-
/*! @azure/msal-common v16.
|
|
3650
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
3640
3651
|
/*
|
|
3641
3652
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3642
3653
|
* Licensed under the MIT License.
|
|
@@ -3650,7 +3661,7 @@ class DefaultStorageClass extends CacheManager {
|
|
|
3650
3661
|
const PerformanceEventStatus = {
|
|
3651
3662
|
InProgress: 1};
|
|
3652
3663
|
|
|
3653
|
-
/*! @azure/msal-common v16.
|
|
3664
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
3654
3665
|
|
|
3655
3666
|
/*
|
|
3656
3667
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3705,7 +3716,7 @@ class StubPerformanceClient {
|
|
|
3705
3716
|
}
|
|
3706
3717
|
}
|
|
3707
3718
|
|
|
3708
|
-
/*! @azure/msal-common v16.
|
|
3719
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
3709
3720
|
|
|
3710
3721
|
/*
|
|
3711
3722
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3800,7 +3811,7 @@ function isOidcProtocolMode(config) {
|
|
|
3800
3811
|
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
3801
3812
|
}
|
|
3802
3813
|
|
|
3803
|
-
/*! @azure/msal-common v16.
|
|
3814
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
3804
3815
|
/*
|
|
3805
3816
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3806
3817
|
* Licensed under the MIT License.
|
|
@@ -3827,7 +3838,7 @@ function isOidcProtocolMode(config) {
|
|
|
3827
3838
|
}
|
|
3828
3839
|
}
|
|
3829
3840
|
|
|
3830
|
-
/*! @azure/msal-common v16.
|
|
3841
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
3831
3842
|
/*
|
|
3832
3843
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3833
3844
|
* Licensed under the MIT License.
|
|
@@ -3882,7 +3893,7 @@ function delay(t, value) {
|
|
|
3882
3893
|
return new Promise((resolve) => setTimeout(() => resolve(value), t));
|
|
3883
3894
|
}
|
|
3884
3895
|
|
|
3885
|
-
/*! @azure/msal-common v16.
|
|
3896
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
3886
3897
|
|
|
3887
3898
|
/*
|
|
3888
3899
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4141,7 +4152,7 @@ function isAuthorityMetadataExpired(metadata) {
|
|
|
4141
4152
|
return metadata.expiresAt <= nowSeconds();
|
|
4142
4153
|
}
|
|
4143
4154
|
|
|
4144
|
-
/*! @azure/msal-common v16.
|
|
4155
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
4145
4156
|
/*
|
|
4146
4157
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4147
4158
|
* Licensed under the MIT License.
|
|
@@ -4203,7 +4214,7 @@ const RegionDiscoveryGetCurrentVersion = "regionDiscoveryGetCurrentVersion";
|
|
|
4203
4214
|
*/
|
|
4204
4215
|
const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken";
|
|
4205
4216
|
|
|
4206
|
-
/*! @azure/msal-common v16.
|
|
4217
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
4207
4218
|
/*
|
|
4208
4219
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4209
4220
|
* Licensed under the MIT License.
|
|
@@ -4296,7 +4307,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
|
|
|
4296
4307
|
};
|
|
4297
4308
|
};
|
|
4298
4309
|
|
|
4299
|
-
/*! @azure/msal-common v16.
|
|
4310
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
4300
4311
|
|
|
4301
4312
|
/*
|
|
4302
4313
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4376,7 +4387,7 @@ class PopTokenGenerator {
|
|
|
4376
4387
|
}
|
|
4377
4388
|
}
|
|
4378
4389
|
|
|
4379
|
-
/*! @azure/msal-common v16.
|
|
4390
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
4380
4391
|
/*
|
|
4381
4392
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4382
4393
|
* Licensed under the MIT License.
|
|
@@ -4400,7 +4411,7 @@ const refreshTokenExpired = "refresh_token_expired";
|
|
|
4400
4411
|
* MSAL-defined error code indicating UI/UX is not allowed (e.g., blocked by policy), requiring alternate interaction.
|
|
4401
4412
|
* @public
|
|
4402
4413
|
*/
|
|
4403
|
-
const
|
|
4414
|
+
const uiNotAllowed = "ui_not_allowed";
|
|
4404
4415
|
/**
|
|
4405
4416
|
* Server-originated error code indicating interaction is required to complete the request.
|
|
4406
4417
|
* @public
|
|
@@ -4437,10 +4448,10 @@ var InteractionRequiredAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
4437
4448
|
nativeAccountUnavailable: nativeAccountUnavailable,
|
|
4438
4449
|
noTokensFound: noTokensFound,
|
|
4439
4450
|
refreshTokenExpired: refreshTokenExpired,
|
|
4440
|
-
|
|
4451
|
+
uiNotAllowed: uiNotAllowed
|
|
4441
4452
|
});
|
|
4442
4453
|
|
|
4443
|
-
/*! @azure/msal-common v16.
|
|
4454
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
4444
4455
|
|
|
4445
4456
|
/*
|
|
4446
4457
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4454,7 +4465,7 @@ const InteractionRequiredServerErrorMessage = [
|
|
|
4454
4465
|
consentRequired,
|
|
4455
4466
|
loginRequired,
|
|
4456
4467
|
badToken,
|
|
4457
|
-
|
|
4468
|
+
uiNotAllowed,
|
|
4458
4469
|
interruptedUser,
|
|
4459
4470
|
];
|
|
4460
4471
|
const InteractionRequiredAuthSubErrorMessage = [
|
|
@@ -4464,7 +4475,7 @@ const InteractionRequiredAuthSubErrorMessage = [
|
|
|
4464
4475
|
"user_password_expired",
|
|
4465
4476
|
"consent_required",
|
|
4466
4477
|
"bad_token",
|
|
4467
|
-
"
|
|
4478
|
+
"ui_not_allowed",
|
|
4468
4479
|
"interrupted_user",
|
|
4469
4480
|
];
|
|
4470
4481
|
/**
|
|
@@ -4508,7 +4519,7 @@ function createInteractionRequiredAuthError(errorCode, errorMessage) {
|
|
|
4508
4519
|
return new InteractionRequiredAuthError(errorCode, errorMessage);
|
|
4509
4520
|
}
|
|
4510
4521
|
|
|
4511
|
-
/*! @azure/msal-common v16.
|
|
4522
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
4512
4523
|
|
|
4513
4524
|
/*
|
|
4514
4525
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4527,7 +4538,7 @@ class ServerError extends AuthError {
|
|
|
4527
4538
|
}
|
|
4528
4539
|
}
|
|
4529
4540
|
|
|
4530
|
-
/*! @azure/msal-common v16.
|
|
4541
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
4531
4542
|
/**
|
|
4532
4543
|
* Parses the state into the RequestStateObject, which contains the LibraryState info and the state passed by the user.
|
|
4533
4544
|
* @param base64Decode
|
|
@@ -4559,7 +4570,7 @@ function parseRequestState(base64Decode, state) {
|
|
|
4559
4570
|
}
|
|
4560
4571
|
}
|
|
4561
4572
|
|
|
4562
|
-
/*! @azure/msal-common v16.
|
|
4573
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
4563
4574
|
|
|
4564
4575
|
/*
|
|
4565
4576
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4907,7 +4918,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
|
|
|
4907
4918
|
return baseAccount;
|
|
4908
4919
|
}
|
|
4909
4920
|
|
|
4910
|
-
/*! @azure/msal-common v16.
|
|
4921
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
4911
4922
|
/*
|
|
4912
4923
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4913
4924
|
* Licensed under the MIT License.
|
|
@@ -4917,7 +4928,7 @@ const CcsCredentialType = {
|
|
|
4917
4928
|
UPN: "UPN",
|
|
4918
4929
|
};
|
|
4919
4930
|
|
|
4920
|
-
/*! @azure/msal-common v16.
|
|
4931
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
4921
4932
|
/*
|
|
4922
4933
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4923
4934
|
* Licensed under the MIT License.
|
|
@@ -4935,7 +4946,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint) {
|
|
|
4935
4946
|
}
|
|
4936
4947
|
}
|
|
4937
4948
|
|
|
4938
|
-
/*! @azure/msal-common v16.
|
|
4949
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
4939
4950
|
/*
|
|
4940
4951
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4941
4952
|
* Licensed under the MIT License.
|
|
@@ -4956,7 +4967,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
|
|
|
4956
4967
|
};
|
|
4957
4968
|
}
|
|
4958
4969
|
|
|
4959
|
-
/*! @azure/msal-common v16.
|
|
4970
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
4960
4971
|
|
|
4961
4972
|
/*
|
|
4962
4973
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5042,7 +5053,7 @@ class ThrottlingUtils {
|
|
|
5042
5053
|
}
|
|
5043
5054
|
}
|
|
5044
5055
|
|
|
5045
|
-
/*! @azure/msal-common v16.
|
|
5056
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
5046
5057
|
|
|
5047
5058
|
/*
|
|
5048
5059
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5073,7 +5084,7 @@ function createNetworkError(error, httpStatus, responseHeaders, additionalError)
|
|
|
5073
5084
|
return new NetworkError(error, httpStatus, responseHeaders);
|
|
5074
5085
|
}
|
|
5075
5086
|
|
|
5076
|
-
/*! @azure/msal-common v16.
|
|
5087
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
5077
5088
|
|
|
5078
5089
|
/*
|
|
5079
5090
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5187,7 +5198,7 @@ async function sendPostRequest(thumbprint, tokenEndpoint, options, correlationId
|
|
|
5187
5198
|
return response;
|
|
5188
5199
|
}
|
|
5189
5200
|
|
|
5190
|
-
/*! @azure/msal-common v16.
|
|
5201
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
5191
5202
|
/*
|
|
5192
5203
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5193
5204
|
* Licensed under the MIT License.
|
|
@@ -5199,7 +5210,7 @@ function isOpenIdConfigResponse(response) {
|
|
|
5199
5210
|
response.hasOwnProperty("jwks_uri"));
|
|
5200
5211
|
}
|
|
5201
5212
|
|
|
5202
|
-
/*! @azure/msal-common v16.
|
|
5213
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
5203
5214
|
/*
|
|
5204
5215
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5205
5216
|
* Licensed under the MIT License.
|
|
@@ -5209,7 +5220,7 @@ function isCloudInstanceDiscoveryResponse(response) {
|
|
|
5209
5220
|
response.hasOwnProperty("metadata"));
|
|
5210
5221
|
}
|
|
5211
5222
|
|
|
5212
|
-
/*! @azure/msal-common v16.
|
|
5223
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
5213
5224
|
/*
|
|
5214
5225
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5215
5226
|
* Licensed under the MIT License.
|
|
@@ -5219,7 +5230,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
|
5219
5230
|
response.hasOwnProperty("error_description"));
|
|
5220
5231
|
}
|
|
5221
5232
|
|
|
5222
|
-
/*! @azure/msal-common v16.
|
|
5233
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
5223
5234
|
|
|
5224
5235
|
/*
|
|
5225
5236
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5324,7 +5335,7 @@ RegionDiscovery.IMDS_OPTIONS = {
|
|
|
5324
5335
|
},
|
|
5325
5336
|
};
|
|
5326
5337
|
|
|
5327
|
-
/*! @azure/msal-common v16.
|
|
5338
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
5328
5339
|
|
|
5329
5340
|
/*
|
|
5330
5341
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5883,7 +5894,7 @@ class Authority {
|
|
|
5883
5894
|
}
|
|
5884
5895
|
}
|
|
5885
5896
|
// If cloudDiscoveryMetadata is empty or does not contain the host, check knownAuthorities
|
|
5886
|
-
if (this.isInKnownAuthorities()) {
|
|
5897
|
+
if (this.isInKnownAuthorities(this.hostnameAndPort)) {
|
|
5887
5898
|
this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host.", this.correlationId);
|
|
5888
5899
|
return Authority.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);
|
|
5889
5900
|
}
|
|
@@ -5951,13 +5962,14 @@ class Authority {
|
|
|
5951
5962
|
return match;
|
|
5952
5963
|
}
|
|
5953
5964
|
/**
|
|
5954
|
-
* Helper function to determine if
|
|
5965
|
+
* Helper function to determine if a host is included in the knownAuthorities config option.
|
|
5955
5966
|
*/
|
|
5956
|
-
isInKnownAuthorities() {
|
|
5967
|
+
isInKnownAuthorities(host) {
|
|
5968
|
+
const normalizedHost = host.toLowerCase();
|
|
5957
5969
|
const matches = this.authorityOptions.knownAuthorities.filter((authority) => {
|
|
5958
5970
|
return (authority &&
|
|
5959
5971
|
UrlString.getDomainFromUrl(authority).toLowerCase() ===
|
|
5960
|
-
|
|
5972
|
+
normalizedHost);
|
|
5961
5973
|
});
|
|
5962
5974
|
return matches.length > 0;
|
|
5963
5975
|
}
|
|
@@ -6034,6 +6046,10 @@ class Authority {
|
|
|
6034
6046
|
* 4. Same as (2), but the issuer host matches the CIAM tenant pattern
|
|
6035
6047
|
* `{tenant}.ciamlogin.com` with an optional `/{tenant}[.onmicrosoft.com][/v2.0]`
|
|
6036
6048
|
* path.
|
|
6049
|
+
* 5. The issuer host is HTTPS and is explicitly listed in the
|
|
6050
|
+
* developer-configured `knownAuthorities`. This covers scenarios where
|
|
6051
|
+
* the OIDC discovery document returns an issuer host that differs from
|
|
6052
|
+
* the authority (e.g., a GUID-based issuer for a name-based CIAM authority).
|
|
6037
6053
|
*
|
|
6038
6054
|
* @param issuer The `issuer` value returned in the OIDC discovery document.
|
|
6039
6055
|
* @throws ClientConfigurationError("issuer_validation_failed") on failure.
|
|
@@ -6070,11 +6086,19 @@ class Authority {
|
|
|
6070
6086
|
* have "{tenant}.ciamlogin.com" as the host, even when using a custom domain.
|
|
6071
6087
|
*/
|
|
6072
6088
|
const matchesCiamTenantPattern = this.matchesCiamTenantPattern(issuerUrl, authorityHost, this.canonicalAuthorityUrlComponents.PathSegments);
|
|
6089
|
+
/*
|
|
6090
|
+
* Rule 5: The issuer host is explicitly listed in the developer-configured
|
|
6091
|
+
* knownAuthorities. This covers scenarios where the OIDC discovery document
|
|
6092
|
+
* returns an issuer with a different host than the authority
|
|
6093
|
+
* (e.g., a GUID-based issuer for a name-based authority).
|
|
6094
|
+
*/
|
|
6095
|
+
const matchesKnownAuthority = issuerScheme === "https:" && this.isInKnownAuthorities(issuerHost);
|
|
6073
6096
|
// Each rule is an independent boolean; the issuer is valid if ANY rule matches.
|
|
6074
6097
|
if (matchesAuthorityOrigin ||
|
|
6075
6098
|
matchesKnownMicrosoftHost ||
|
|
6076
6099
|
matchesRegionalMicrosoftHost ||
|
|
6077
|
-
matchesCiamTenantPattern
|
|
6100
|
+
matchesCiamTenantPattern ||
|
|
6101
|
+
matchesKnownAuthority) {
|
|
6078
6102
|
return;
|
|
6079
6103
|
}
|
|
6080
6104
|
// issuer validation fails if none of the above rules are satisfied
|
|
@@ -6282,7 +6306,7 @@ function buildStaticAuthorityOptions(authOptions) {
|
|
|
6282
6306
|
};
|
|
6283
6307
|
}
|
|
6284
6308
|
|
|
6285
|
-
/*! @azure/msal-common v16.
|
|
6309
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
6286
6310
|
|
|
6287
6311
|
/*
|
|
6288
6312
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6316,7 +6340,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
|
|
|
6316
6340
|
}
|
|
6317
6341
|
}
|
|
6318
6342
|
|
|
6319
|
-
/*! @azure/msal-common v16.
|
|
6343
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
6320
6344
|
|
|
6321
6345
|
/*
|
|
6322
6346
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6573,7 +6597,7 @@ class AuthorizationCodeClient {
|
|
|
6573
6597
|
}
|
|
6574
6598
|
}
|
|
6575
6599
|
|
|
6576
|
-
/*! @azure/msal-common v16.
|
|
6600
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
6577
6601
|
|
|
6578
6602
|
/*
|
|
6579
6603
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6794,7 +6818,7 @@ class RefreshTokenClient {
|
|
|
6794
6818
|
}
|
|
6795
6819
|
}
|
|
6796
6820
|
|
|
6797
|
-
/*! @azure/msal-common v16.
|
|
6821
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
6798
6822
|
|
|
6799
6823
|
/*
|
|
6800
6824
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6910,7 +6934,7 @@ class SilentFlowClient {
|
|
|
6910
6934
|
}
|
|
6911
6935
|
}
|
|
6912
6936
|
|
|
6913
|
-
/*! @azure/msal-common v16.
|
|
6937
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
6914
6938
|
|
|
6915
6939
|
/*
|
|
6916
6940
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7059,7 +7083,7 @@ function extractLoginHint(account) {
|
|
|
7059
7083
|
return account.loginHint || account.idTokenClaims?.login_hint || null;
|
|
7060
7084
|
}
|
|
7061
7085
|
|
|
7062
|
-
/*! @azure/msal-common v16.
|
|
7086
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
7063
7087
|
|
|
7064
7088
|
/*
|
|
7065
7089
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7092,7 +7116,7 @@ function containsResourceParam(params) {
|
|
|
7092
7116
|
return Object.prototype.hasOwnProperty.call(params, "resource");
|
|
7093
7117
|
}
|
|
7094
7118
|
|
|
7095
|
-
/*! @azure/msal-common v16.
|
|
7119
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
7096
7120
|
/*
|
|
7097
7121
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7098
7122
|
* Licensed under the MIT License.
|
|
@@ -7109,7 +7133,7 @@ var AuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
7109
7133
|
unexpectedError: unexpectedError
|
|
7110
7134
|
});
|
|
7111
7135
|
|
|
7112
|
-
/*! @azure/msal-common v16.
|
|
7136
|
+
/*! @azure/msal-common v16.8.0 2026-06-10 */
|
|
7113
7137
|
|
|
7114
7138
|
/*
|
|
7115
7139
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7220,35 +7244,40 @@ class ServerTelemetryManager {
|
|
|
7220
7244
|
* @param error
|
|
7221
7245
|
*/
|
|
7222
7246
|
cacheFailedRequest(error) {
|
|
7223
|
-
|
|
7224
|
-
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
|
|
7230
|
-
|
|
7231
|
-
|
|
7232
|
-
|
|
7233
|
-
if (error instanceof
|
|
7234
|
-
if (error
|
|
7235
|
-
|
|
7236
|
-
|
|
7237
|
-
|
|
7238
|
-
|
|
7247
|
+
try {
|
|
7248
|
+
const lastRequests = this.getLastRequests();
|
|
7249
|
+
if (lastRequests.errors.length >=
|
|
7250
|
+
SERVER_TELEM_MAX_CACHED_ERRORS) {
|
|
7251
|
+
// Remove a cached error to make room, first in first out
|
|
7252
|
+
lastRequests.failedRequests.shift(); // apiId
|
|
7253
|
+
lastRequests.failedRequests.shift(); // correlationId
|
|
7254
|
+
lastRequests.errors.shift();
|
|
7255
|
+
}
|
|
7256
|
+
lastRequests.failedRequests.push(this.apiId, this.correlationId);
|
|
7257
|
+
if (error instanceof Error && !!error && error.toString()) {
|
|
7258
|
+
if (error instanceof AuthError) {
|
|
7259
|
+
if (error.subError) {
|
|
7260
|
+
lastRequests.errors.push(error.subError);
|
|
7261
|
+
}
|
|
7262
|
+
else if (error.errorCode) {
|
|
7263
|
+
lastRequests.errors.push(error.errorCode);
|
|
7264
|
+
}
|
|
7265
|
+
else {
|
|
7266
|
+
lastRequests.errors.push(error.toString());
|
|
7267
|
+
}
|
|
7239
7268
|
}
|
|
7240
7269
|
else {
|
|
7241
7270
|
lastRequests.errors.push(error.toString());
|
|
7242
7271
|
}
|
|
7243
7272
|
}
|
|
7244
7273
|
else {
|
|
7245
|
-
lastRequests.errors.push(
|
|
7274
|
+
lastRequests.errors.push(SERVER_TELEM_UNKNOWN_ERROR);
|
|
7246
7275
|
}
|
|
7276
|
+
this.cacheManager.setServerTelemetry(this.telemetryCacheKey, lastRequests, this.correlationId);
|
|
7247
7277
|
}
|
|
7248
|
-
|
|
7249
|
-
|
|
7278
|
+
catch {
|
|
7279
|
+
// Ignore telemetry cache failures to avoid masking the original auth error path.
|
|
7250
7280
|
}
|
|
7251
|
-
this.cacheManager.setServerTelemetry(this.telemetryCacheKey, lastRequests, this.correlationId);
|
|
7252
7281
|
return;
|
|
7253
7282
|
}
|
|
7254
7283
|
/**
|
|
@@ -9317,7 +9346,7 @@ class ClientAssertion {
|
|
|
9317
9346
|
|
|
9318
9347
|
/* eslint-disable header/header */
|
|
9319
9348
|
const name = "@azure/msal-node";
|
|
9320
|
-
const version = "5.2.
|
|
9349
|
+
const version = "5.2.4";
|
|
9321
9350
|
|
|
9322
9351
|
/*
|
|
9323
9352
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|