@azure/msal-node 5.1.4 → 5.1.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/dist/cache/CacheHelpers.mjs +1 -1
- package/dist/cache/NodeStorage.d.ts +1 -1
- package/dist/cache/NodeStorage.d.ts.map +1 -1
- package/dist/cache/NodeStorage.mjs +5 -2
- package/dist/cache/NodeStorage.mjs.map +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.d.ts +1 -1
- package/dist/client/ClientApplication.mjs +2 -2
- 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/IConfidentialClientApplication.d.ts +1 -1
- package/dist/client/IConfidentialClientApplication.d.ts.map +1 -1
- package/dist/client/IPublicClientApplication.d.ts +1 -1
- package/dist/client/IPublicClientApplication.d.ts.map +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.d.ts +2 -3
- package/dist/crypto/GuidGenerator.d.ts.map +1 -1
- package/dist/crypto/GuidGenerator.mjs +5 -6
- package/dist/crypto/GuidGenerator.mjs.map +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.d.ts +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 +76 -72
- package/lib/msal-node.cjs.map +1 -1
- package/lib/types/cache/NodeStorage.d.ts +1 -1
- package/lib/types/cache/NodeStorage.d.ts.map +1 -1
- package/lib/types/client/ClientApplication.d.ts +1 -1
- package/lib/types/client/IConfidentialClientApplication.d.ts +1 -1
- package/lib/types/client/IConfidentialClientApplication.d.ts.map +1 -1
- package/lib/types/client/IPublicClientApplication.d.ts +1 -1
- package/lib/types/client/IPublicClientApplication.d.ts.map +1 -1
- package/lib/types/crypto/GuidGenerator.d.ts +2 -3
- package/lib/types/crypto/GuidGenerator.d.ts.map +1 -1
- package/lib/types/packageMetadata.d.ts +1 -1
- package/package.json +3 -5
- package/src/cache/NodeStorage.ts +4 -1
- package/src/client/ClientApplication.ts +1 -1
- package/src/client/IConfidentialClientApplication.ts +1 -1
- package/src/client/IPublicClientApplication.ts +1 -1
- package/src/crypto/GuidGenerator.ts +4 -5
- package/src/packageMetadata.ts +1 -1
package/lib/msal-node.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @azure/msal-node v5.1.
|
|
1
|
+
/*! @azure/msal-node v5.1.5 2026-04-28 */
|
|
2
2
|
'use strict';
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var node_crypto = require('node:crypto');
|
|
6
6
|
var crypto = require('crypto');
|
|
7
7
|
var jwt = require('jsonwebtoken');
|
|
8
8
|
var http = require('http');
|
|
@@ -150,7 +150,7 @@ class Serializer {
|
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
/*! @azure/msal-common v16.5.
|
|
153
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
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.5.
|
|
401
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
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.5.
|
|
454
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
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.5.
|
|
485
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
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.5.
|
|
505
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
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.5.
|
|
585
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
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.5.
|
|
608
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
609
609
|
/*
|
|
610
610
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
611
611
|
* Licensed under the MIT License.
|
|
@@ -659,7 +659,7 @@ var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
659
659
|
urlParseError: urlParseError
|
|
660
660
|
});
|
|
661
661
|
|
|
662
|
-
/*! @azure/msal-common v16.5.
|
|
662
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
663
663
|
/*
|
|
664
664
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
665
665
|
* Licensed under the MIT License.
|
|
@@ -747,7 +747,7 @@ var ClientAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
747
747
|
userCanceled: userCanceled
|
|
748
748
|
});
|
|
749
749
|
|
|
750
|
-
/*! @azure/msal-common v16.5.
|
|
750
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
751
751
|
|
|
752
752
|
/*
|
|
753
753
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -942,7 +942,7 @@ class ScopeSet {
|
|
|
942
942
|
}
|
|
943
943
|
}
|
|
944
944
|
|
|
945
|
-
/*! @azure/msal-common v16.5.
|
|
945
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
946
946
|
|
|
947
947
|
/*
|
|
948
948
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1349,7 +1349,7 @@ function addResource(parameters, resource) {
|
|
|
1349
1349
|
}
|
|
1350
1350
|
}
|
|
1351
1351
|
|
|
1352
|
-
/*! @azure/msal-common v16.5.
|
|
1352
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
1353
1353
|
/**
|
|
1354
1354
|
* Parses hash string from given string. Returns empty string if no hash symbol is found.
|
|
1355
1355
|
* @param hashString
|
|
@@ -1402,7 +1402,7 @@ function mapToQueryString(parameters) {
|
|
|
1402
1402
|
return queryParameterArray.join("&");
|
|
1403
1403
|
}
|
|
1404
1404
|
|
|
1405
|
-
/*! @azure/msal-common v16.5.
|
|
1405
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
1406
1406
|
|
|
1407
1407
|
/*
|
|
1408
1408
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1441,7 +1441,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
|
|
|
1441
1441
|
},
|
|
1442
1442
|
};
|
|
1443
1443
|
|
|
1444
|
-
/*! @azure/msal-common v16.5.
|
|
1444
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
1445
1445
|
/*
|
|
1446
1446
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1447
1447
|
* Licensed under the MIT License.
|
|
@@ -1702,12 +1702,12 @@ class Logger {
|
|
|
1702
1702
|
}
|
|
1703
1703
|
}
|
|
1704
1704
|
|
|
1705
|
-
/*! @azure/msal-common v16.5.
|
|
1705
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
1706
1706
|
/* eslint-disable header/header */
|
|
1707
1707
|
const name$1 = "@azure/msal-common";
|
|
1708
|
-
const version$1 = "16.5.
|
|
1708
|
+
const version$1 = "16.5.2";
|
|
1709
1709
|
|
|
1710
|
-
/*! @azure/msal-common v16.5.
|
|
1710
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
1711
1711
|
/*
|
|
1712
1712
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1713
1713
|
* Licensed under the MIT License.
|
|
@@ -1727,7 +1727,7 @@ const AzureCloudInstance = {
|
|
|
1727
1727
|
AzureUsGovernment: "https://login.microsoftonline.us",
|
|
1728
1728
|
};
|
|
1729
1729
|
|
|
1730
|
-
/*! @azure/msal-common v16.5.
|
|
1730
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
1731
1731
|
/*
|
|
1732
1732
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1733
1733
|
* Licensed under the MIT License.
|
|
@@ -1810,7 +1810,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
|
|
|
1810
1810
|
return updatedAccountInfo;
|
|
1811
1811
|
}
|
|
1812
1812
|
|
|
1813
|
-
/*! @azure/msal-common v16.5.
|
|
1813
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
1814
1814
|
|
|
1815
1815
|
/*
|
|
1816
1816
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1890,7 +1890,7 @@ function checkMaxAge(authTime, maxAge) {
|
|
|
1890
1890
|
}
|
|
1891
1891
|
}
|
|
1892
1892
|
|
|
1893
|
-
/*! @azure/msal-common v16.5.
|
|
1893
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
1894
1894
|
|
|
1895
1895
|
/*
|
|
1896
1896
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2047,7 +2047,7 @@ class UrlString {
|
|
|
2047
2047
|
}
|
|
2048
2048
|
}
|
|
2049
2049
|
|
|
2050
|
-
/*! @azure/msal-common v16.5.
|
|
2050
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
2051
2051
|
|
|
2052
2052
|
/*
|
|
2053
2053
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2204,7 +2204,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
2204
2204
|
return null;
|
|
2205
2205
|
}
|
|
2206
2206
|
|
|
2207
|
-
/*! @azure/msal-common v16.5.
|
|
2207
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
2208
2208
|
/*
|
|
2209
2209
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2210
2210
|
* Licensed under the MIT License.
|
|
@@ -2212,7 +2212,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
2212
2212
|
const cacheQuotaExceeded = "cache_quota_exceeded";
|
|
2213
2213
|
const cacheErrorUnknown = "cache_error_unknown";
|
|
2214
2214
|
|
|
2215
|
-
/*! @azure/msal-common v16.5.
|
|
2215
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
2216
2216
|
|
|
2217
2217
|
/*
|
|
2218
2218
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2250,7 +2250,7 @@ function createCacheError(e) {
|
|
|
2250
2250
|
}
|
|
2251
2251
|
}
|
|
2252
2252
|
|
|
2253
|
-
/*! @azure/msal-common v16.5.
|
|
2253
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
2254
2254
|
|
|
2255
2255
|
/*
|
|
2256
2256
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2288,7 +2288,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
|
|
|
2288
2288
|
};
|
|
2289
2289
|
}
|
|
2290
2290
|
|
|
2291
|
-
/*! @azure/msal-common v16.5.
|
|
2291
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
2292
2292
|
/*
|
|
2293
2293
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2294
2294
|
* Licensed under the MIT License.
|
|
@@ -2303,7 +2303,7 @@ const AuthorityType = {
|
|
|
2303
2303
|
Ciam: 3,
|
|
2304
2304
|
};
|
|
2305
2305
|
|
|
2306
|
-
/*! @azure/msal-common v16.5.
|
|
2306
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
2307
2307
|
/*
|
|
2308
2308
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2309
2309
|
* Licensed under the MIT License.
|
|
@@ -2325,7 +2325,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
|
|
|
2325
2325
|
return null;
|
|
2326
2326
|
}
|
|
2327
2327
|
|
|
2328
|
-
/*! @azure/msal-common v16.5.
|
|
2328
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
2329
2329
|
/*
|
|
2330
2330
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2331
2331
|
* Licensed under the MIT License.
|
|
@@ -2349,7 +2349,7 @@ const ProtocolMode = {
|
|
|
2349
2349
|
EAR: "EAR",
|
|
2350
2350
|
};
|
|
2351
2351
|
|
|
2352
|
-
/*! @azure/msal-common v16.5.
|
|
2352
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
2353
2353
|
/**
|
|
2354
2354
|
* Returns the AccountInfo interface for this account.
|
|
2355
2355
|
*/
|
|
@@ -2492,7 +2492,7 @@ function isAccountEntity(entity) {
|
|
|
2492
2492
|
entity.hasOwnProperty("authorityType"));
|
|
2493
2493
|
}
|
|
2494
2494
|
|
|
2495
|
-
/*! @azure/msal-common v16.5.
|
|
2495
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
2496
2496
|
|
|
2497
2497
|
/*
|
|
2498
2498
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2530,8 +2530,10 @@ class CacheManager {
|
|
|
2530
2530
|
const allAccounts = this.getAllAccounts(accountFilter, correlationId);
|
|
2531
2531
|
if (allAccounts.length > 1) {
|
|
2532
2532
|
// If one or more accounts are found, prioritize accounts that have an ID token
|
|
2533
|
-
const sortedAccounts = allAccounts.sort((
|
|
2534
|
-
|
|
2533
|
+
const sortedAccounts = allAccounts.sort((a, b) => {
|
|
2534
|
+
const aHasClaims = a.idTokenClaims ? 1 : 0;
|
|
2535
|
+
const bHasClaims = b.idTokenClaims ? 1 : 0;
|
|
2536
|
+
return bHasClaims - aHasClaims;
|
|
2535
2537
|
});
|
|
2536
2538
|
return sortedAccounts[0];
|
|
2537
2539
|
}
|
|
@@ -3621,7 +3623,7 @@ class DefaultStorageClass extends CacheManager {
|
|
|
3621
3623
|
}
|
|
3622
3624
|
}
|
|
3623
3625
|
|
|
3624
|
-
/*! @azure/msal-common v16.5.
|
|
3626
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
3625
3627
|
/*
|
|
3626
3628
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3627
3629
|
* Licensed under the MIT License.
|
|
@@ -3635,7 +3637,7 @@ class DefaultStorageClass extends CacheManager {
|
|
|
3635
3637
|
const PerformanceEventStatus = {
|
|
3636
3638
|
InProgress: 1};
|
|
3637
3639
|
|
|
3638
|
-
/*! @azure/msal-common v16.5.
|
|
3640
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
3639
3641
|
|
|
3640
3642
|
/*
|
|
3641
3643
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3690,7 +3692,7 @@ class StubPerformanceClient {
|
|
|
3690
3692
|
}
|
|
3691
3693
|
}
|
|
3692
3694
|
|
|
3693
|
-
/*! @azure/msal-common v16.5.
|
|
3695
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
3694
3696
|
|
|
3695
3697
|
/*
|
|
3696
3698
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3785,7 +3787,7 @@ function isOidcProtocolMode(config) {
|
|
|
3785
3787
|
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
3786
3788
|
}
|
|
3787
3789
|
|
|
3788
|
-
/*! @azure/msal-common v16.5.
|
|
3790
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
3789
3791
|
/*
|
|
3790
3792
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3791
3793
|
* Licensed under the MIT License.
|
|
@@ -3812,7 +3814,7 @@ function isOidcProtocolMode(config) {
|
|
|
3812
3814
|
}
|
|
3813
3815
|
}
|
|
3814
3816
|
|
|
3815
|
-
/*! @azure/msal-common v16.5.
|
|
3817
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
3816
3818
|
/*
|
|
3817
3819
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3818
3820
|
* Licensed under the MIT License.
|
|
@@ -3867,7 +3869,7 @@ function delay(t, value) {
|
|
|
3867
3869
|
return new Promise((resolve) => setTimeout(() => resolve(value), t));
|
|
3868
3870
|
}
|
|
3869
3871
|
|
|
3870
|
-
/*! @azure/msal-common v16.5.
|
|
3872
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
3871
3873
|
|
|
3872
3874
|
/*
|
|
3873
3875
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4126,7 +4128,7 @@ function isAuthorityMetadataExpired(metadata) {
|
|
|
4126
4128
|
return metadata.expiresAt <= nowSeconds();
|
|
4127
4129
|
}
|
|
4128
4130
|
|
|
4129
|
-
/*! @azure/msal-common v16.5.
|
|
4131
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
4130
4132
|
/*
|
|
4131
4133
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4132
4134
|
* Licensed under the MIT License.
|
|
@@ -4188,7 +4190,7 @@ const RegionDiscoveryGetCurrentVersion = "regionDiscoveryGetCurrentVersion";
|
|
|
4188
4190
|
*/
|
|
4189
4191
|
const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken";
|
|
4190
4192
|
|
|
4191
|
-
/*! @azure/msal-common v16.5.
|
|
4193
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
4192
4194
|
/*
|
|
4193
4195
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4194
4196
|
* Licensed under the MIT License.
|
|
@@ -4281,7 +4283,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
|
|
|
4281
4283
|
};
|
|
4282
4284
|
};
|
|
4283
4285
|
|
|
4284
|
-
/*! @azure/msal-common v16.5.
|
|
4286
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
4285
4287
|
|
|
4286
4288
|
/*
|
|
4287
4289
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4361,7 +4363,7 @@ class PopTokenGenerator {
|
|
|
4361
4363
|
}
|
|
4362
4364
|
}
|
|
4363
4365
|
|
|
4364
|
-
/*! @azure/msal-common v16.5.
|
|
4366
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
4365
4367
|
/*
|
|
4366
4368
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4367
4369
|
* Licensed under the MIT License.
|
|
@@ -4425,7 +4427,7 @@ var InteractionRequiredAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
4425
4427
|
uxNotAllowed: uxNotAllowed
|
|
4426
4428
|
});
|
|
4427
4429
|
|
|
4428
|
-
/*! @azure/msal-common v16.5.
|
|
4430
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
4429
4431
|
|
|
4430
4432
|
/*
|
|
4431
4433
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4493,7 +4495,7 @@ function createInteractionRequiredAuthError(errorCode, errorMessage) {
|
|
|
4493
4495
|
return new InteractionRequiredAuthError(errorCode, errorMessage);
|
|
4494
4496
|
}
|
|
4495
4497
|
|
|
4496
|
-
/*! @azure/msal-common v16.5.
|
|
4498
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
4497
4499
|
|
|
4498
4500
|
/*
|
|
4499
4501
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4512,7 +4514,7 @@ class ServerError extends AuthError {
|
|
|
4512
4514
|
}
|
|
4513
4515
|
}
|
|
4514
4516
|
|
|
4515
|
-
/*! @azure/msal-common v16.5.
|
|
4517
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
4516
4518
|
/**
|
|
4517
4519
|
* Parses the state into the RequestStateObject, which contains the LibraryState info and the state passed by the user.
|
|
4518
4520
|
* @param base64Decode
|
|
@@ -4544,7 +4546,7 @@ function parseRequestState(base64Decode, state) {
|
|
|
4544
4546
|
}
|
|
4545
4547
|
}
|
|
4546
4548
|
|
|
4547
|
-
/*! @azure/msal-common v16.5.
|
|
4549
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
4548
4550
|
|
|
4549
4551
|
/*
|
|
4550
4552
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4892,7 +4894,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
|
|
|
4892
4894
|
return baseAccount;
|
|
4893
4895
|
}
|
|
4894
4896
|
|
|
4895
|
-
/*! @azure/msal-common v16.5.
|
|
4897
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
4896
4898
|
/*
|
|
4897
4899
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4898
4900
|
* Licensed under the MIT License.
|
|
@@ -4902,7 +4904,7 @@ const CcsCredentialType = {
|
|
|
4902
4904
|
UPN: "UPN",
|
|
4903
4905
|
};
|
|
4904
4906
|
|
|
4905
|
-
/*! @azure/msal-common v16.5.
|
|
4907
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
4906
4908
|
/*
|
|
4907
4909
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4908
4910
|
* Licensed under the MIT License.
|
|
@@ -4920,7 +4922,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint) {
|
|
|
4920
4922
|
}
|
|
4921
4923
|
}
|
|
4922
4924
|
|
|
4923
|
-
/*! @azure/msal-common v16.5.
|
|
4925
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
4924
4926
|
/*
|
|
4925
4927
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4926
4928
|
* Licensed under the MIT License.
|
|
@@ -4941,7 +4943,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
|
|
|
4941
4943
|
};
|
|
4942
4944
|
}
|
|
4943
4945
|
|
|
4944
|
-
/*! @azure/msal-common v16.5.
|
|
4946
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
4945
4947
|
|
|
4946
4948
|
/*
|
|
4947
4949
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5027,7 +5029,7 @@ class ThrottlingUtils {
|
|
|
5027
5029
|
}
|
|
5028
5030
|
}
|
|
5029
5031
|
|
|
5030
|
-
/*! @azure/msal-common v16.5.
|
|
5032
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
5031
5033
|
|
|
5032
5034
|
/*
|
|
5033
5035
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5058,7 +5060,7 @@ function createNetworkError(error, httpStatus, responseHeaders, additionalError)
|
|
|
5058
5060
|
return new NetworkError(error, httpStatus, responseHeaders);
|
|
5059
5061
|
}
|
|
5060
5062
|
|
|
5061
|
-
/*! @azure/msal-common v16.5.
|
|
5063
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
5062
5064
|
|
|
5063
5065
|
/*
|
|
5064
5066
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5172,7 +5174,7 @@ async function sendPostRequest(thumbprint, tokenEndpoint, options, correlationId
|
|
|
5172
5174
|
return response;
|
|
5173
5175
|
}
|
|
5174
5176
|
|
|
5175
|
-
/*! @azure/msal-common v16.5.
|
|
5177
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
5176
5178
|
/*
|
|
5177
5179
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5178
5180
|
* Licensed under the MIT License.
|
|
@@ -5184,7 +5186,7 @@ function isOpenIdConfigResponse(response) {
|
|
|
5184
5186
|
response.hasOwnProperty("jwks_uri"));
|
|
5185
5187
|
}
|
|
5186
5188
|
|
|
5187
|
-
/*! @azure/msal-common v16.5.
|
|
5189
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
5188
5190
|
/*
|
|
5189
5191
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5190
5192
|
* Licensed under the MIT License.
|
|
@@ -5194,7 +5196,7 @@ function isCloudInstanceDiscoveryResponse(response) {
|
|
|
5194
5196
|
response.hasOwnProperty("metadata"));
|
|
5195
5197
|
}
|
|
5196
5198
|
|
|
5197
|
-
/*! @azure/msal-common v16.5.
|
|
5199
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
5198
5200
|
/*
|
|
5199
5201
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5200
5202
|
* Licensed under the MIT License.
|
|
@@ -5204,7 +5206,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
|
5204
5206
|
response.hasOwnProperty("error_description"));
|
|
5205
5207
|
}
|
|
5206
5208
|
|
|
5207
|
-
/*! @azure/msal-common v16.5.
|
|
5209
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
5208
5210
|
|
|
5209
5211
|
/*
|
|
5210
5212
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5309,7 +5311,7 @@ RegionDiscovery.IMDS_OPTIONS = {
|
|
|
5309
5311
|
},
|
|
5310
5312
|
};
|
|
5311
5313
|
|
|
5312
|
-
/*! @azure/msal-common v16.5.
|
|
5314
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
5313
5315
|
|
|
5314
5316
|
/*
|
|
5315
5317
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6132,7 +6134,7 @@ function buildStaticAuthorityOptions(authOptions) {
|
|
|
6132
6134
|
};
|
|
6133
6135
|
}
|
|
6134
6136
|
|
|
6135
|
-
/*! @azure/msal-common v16.5.
|
|
6137
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
6136
6138
|
|
|
6137
6139
|
/*
|
|
6138
6140
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6166,7 +6168,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
|
|
|
6166
6168
|
}
|
|
6167
6169
|
}
|
|
6168
6170
|
|
|
6169
|
-
/*! @azure/msal-common v16.5.
|
|
6171
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
6170
6172
|
|
|
6171
6173
|
/*
|
|
6172
6174
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6423,7 +6425,7 @@ class AuthorizationCodeClient {
|
|
|
6423
6425
|
}
|
|
6424
6426
|
}
|
|
6425
6427
|
|
|
6426
|
-
/*! @azure/msal-common v16.5.
|
|
6428
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
6427
6429
|
|
|
6428
6430
|
/*
|
|
6429
6431
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6644,7 +6646,7 @@ class RefreshTokenClient {
|
|
|
6644
6646
|
}
|
|
6645
6647
|
}
|
|
6646
6648
|
|
|
6647
|
-
/*! @azure/msal-common v16.5.
|
|
6649
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
6648
6650
|
|
|
6649
6651
|
/*
|
|
6650
6652
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6760,7 +6762,7 @@ class SilentFlowClient {
|
|
|
6760
6762
|
}
|
|
6761
6763
|
}
|
|
6762
6764
|
|
|
6763
|
-
/*! @azure/msal-common v16.5.
|
|
6765
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
6764
6766
|
|
|
6765
6767
|
/*
|
|
6766
6768
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6909,7 +6911,7 @@ function extractLoginHint(account) {
|
|
|
6909
6911
|
return account.loginHint || account.idTokenClaims?.login_hint || null;
|
|
6910
6912
|
}
|
|
6911
6913
|
|
|
6912
|
-
/*! @azure/msal-common v16.5.
|
|
6914
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
6913
6915
|
|
|
6914
6916
|
/*
|
|
6915
6917
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6942,7 +6944,7 @@ function containsResourceParam(params) {
|
|
|
6942
6944
|
return Object.prototype.hasOwnProperty.call(params, "resource");
|
|
6943
6945
|
}
|
|
6944
6946
|
|
|
6945
|
-
/*! @azure/msal-common v16.5.
|
|
6947
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
6946
6948
|
/*
|
|
6947
6949
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6948
6950
|
* Licensed under the MIT License.
|
|
@@ -6959,7 +6961,7 @@ var AuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
6959
6961
|
unexpectedError: unexpectedError
|
|
6960
6962
|
});
|
|
6961
6963
|
|
|
6962
|
-
/*! @azure/msal-common v16.5.
|
|
6964
|
+
/*! @azure/msal-common v16.5.2 2026-04-28 */
|
|
6963
6965
|
|
|
6964
6966
|
/*
|
|
6965
6967
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8042,12 +8044,11 @@ function buildManagedIdentityConfiguration({ clientCapabilities, managedIdentity
|
|
|
8042
8044
|
*/
|
|
8043
8045
|
class GuidGenerator {
|
|
8044
8046
|
/**
|
|
8045
|
-
*
|
|
8046
|
-
*
|
|
8047
|
-
* uuidv4 generates guids from cryprtographically-string random
|
|
8047
|
+
* Generates a random [RFC 4122](https://www.rfc-editor.org/rfc/rfc4122.txt) version 4 UUID. The UUID is generated using a
|
|
8048
|
+
* cryptographic pseudorandom number generator.
|
|
8048
8049
|
*/
|
|
8049
8050
|
generateGuid() {
|
|
8050
|
-
return
|
|
8051
|
+
return node_crypto.randomUUID();
|
|
8051
8052
|
}
|
|
8052
8053
|
/**
|
|
8053
8054
|
* verifies if a string is GUID
|
|
@@ -8668,7 +8669,7 @@ class NodeStorage extends CacheManager {
|
|
|
8668
8669
|
return [...Object.keys(cache)];
|
|
8669
8670
|
}
|
|
8670
8671
|
/**
|
|
8671
|
-
* Clears all cache entries created by MSAL
|
|
8672
|
+
* Clears all cache entries created by MSAL except authority metadata..
|
|
8672
8673
|
*/
|
|
8673
8674
|
clear() {
|
|
8674
8675
|
this.logger.trace("Clearing cache entries created by MSAL", "");
|
|
@@ -8676,6 +8677,9 @@ class NodeStorage extends CacheManager {
|
|
|
8676
8677
|
const cacheKeys = this.getKeys();
|
|
8677
8678
|
// delete each element
|
|
8678
8679
|
cacheKeys.forEach((key) => {
|
|
8680
|
+
if (this.isAuthorityMetadata(key)) {
|
|
8681
|
+
return;
|
|
8682
|
+
}
|
|
8679
8683
|
this.removeItem(key);
|
|
8680
8684
|
});
|
|
8681
8685
|
this.emitChange();
|
|
@@ -9162,7 +9166,7 @@ class ClientAssertion {
|
|
|
9162
9166
|
|
|
9163
9167
|
/* eslint-disable header/header */
|
|
9164
9168
|
const name = "@azure/msal-node";
|
|
9165
|
-
const version = "5.1.
|
|
9169
|
+
const version = "5.1.5";
|
|
9166
9170
|
|
|
9167
9171
|
/*
|
|
9168
9172
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -9711,7 +9715,7 @@ class ClientApplication {
|
|
|
9711
9715
|
return createDiscoveredInstance(authorityUrl, this.config.system.networkClient, this.storage, authorityOptions, this.logger, requestCorrelationId, new StubPerformanceClient());
|
|
9712
9716
|
}
|
|
9713
9717
|
/**
|
|
9714
|
-
* Clear the cache
|
|
9718
|
+
* Clear the cache except for authority metadata.
|
|
9715
9719
|
*/
|
|
9716
9720
|
clearCache() {
|
|
9717
9721
|
this.storage.clear();
|