@azure/msal-node 3.8.8 → 3.8.10
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/README.md +20 -20
- 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/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/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.d.ts.map +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/NetworkUtils.mjs +1 -1
- package/dist/utils/TimeUtils.mjs +1 -1
- package/lib/msal-node.cjs +136 -77
- package/lib/msal-node.cjs.map +1 -1
- package/lib/types/packageMetadata.d.ts +1 -1
- package/lib/types/packageMetadata.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/packageMetadata.ts +1 -1
package/lib/msal-node.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-node v3.8.
|
|
1
|
+
/*! @azure/msal-node v3.8.10 2026-03-18 */
|
|
2
2
|
'use strict';
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -153,7 +153,7 @@ class Serializer {
|
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
/*! @azure/msal-common v15.
|
|
156
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
157
157
|
/*
|
|
158
158
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
159
159
|
* Licensed under the MIT License.
|
|
@@ -433,7 +433,7 @@ const EncodingTypes = {
|
|
|
433
433
|
UTF8: "utf-8",
|
|
434
434
|
};
|
|
435
435
|
|
|
436
|
-
/*! @azure/msal-common v15.
|
|
436
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
437
437
|
/*
|
|
438
438
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
439
439
|
* Licensed under the MIT License.
|
|
@@ -450,7 +450,7 @@ var AuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
450
450
|
unexpectedError: unexpectedError
|
|
451
451
|
});
|
|
452
452
|
|
|
453
|
-
/*! @azure/msal-common v15.
|
|
453
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
454
454
|
|
|
455
455
|
/*
|
|
456
456
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -499,7 +499,7 @@ function createAuthError(code, additionalMessage) {
|
|
|
499
499
|
: AuthErrorMessages[code]);
|
|
500
500
|
}
|
|
501
501
|
|
|
502
|
-
/*! @azure/msal-common v15.
|
|
502
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
503
503
|
/*
|
|
504
504
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
505
505
|
* Licensed under the MIT License.
|
|
@@ -599,7 +599,7 @@ var ClientAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
599
599
|
userTimeoutReached: userTimeoutReached
|
|
600
600
|
});
|
|
601
601
|
|
|
602
|
-
/*! @azure/msal-common v15.
|
|
602
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
603
603
|
|
|
604
604
|
/*
|
|
605
605
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -856,7 +856,7 @@ function createClientAuthError(errorCode, additionalMessage) {
|
|
|
856
856
|
return new ClientAuthError(errorCode, additionalMessage);
|
|
857
857
|
}
|
|
858
858
|
|
|
859
|
-
/*! @azure/msal-common v15.
|
|
859
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
860
860
|
|
|
861
861
|
/*
|
|
862
862
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -895,7 +895,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
|
|
|
895
895
|
},
|
|
896
896
|
};
|
|
897
897
|
|
|
898
|
-
/*! @azure/msal-common v15.
|
|
898
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
899
899
|
|
|
900
900
|
/*
|
|
901
901
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1086,12 +1086,12 @@ class Logger {
|
|
|
1086
1086
|
}
|
|
1087
1087
|
}
|
|
1088
1088
|
|
|
1089
|
-
/*! @azure/msal-common v15.
|
|
1089
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
1090
1090
|
/* eslint-disable header/header */
|
|
1091
1091
|
const name$1 = "@azure/msal-common";
|
|
1092
|
-
const version$1 = "15.
|
|
1092
|
+
const version$1 = "15.17.0";
|
|
1093
1093
|
|
|
1094
|
-
/*! @azure/msal-common v15.
|
|
1094
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
1095
1095
|
/*
|
|
1096
1096
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1097
1097
|
* Licensed under the MIT License.
|
|
@@ -1111,7 +1111,7 @@ const AzureCloudInstance = {
|
|
|
1111
1111
|
AzureUsGovernment: "https://login.microsoftonline.us",
|
|
1112
1112
|
};
|
|
1113
1113
|
|
|
1114
|
-
/*! @azure/msal-common v15.
|
|
1114
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
1115
1115
|
/*
|
|
1116
1116
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1117
1117
|
* Licensed under the MIT License.
|
|
@@ -1169,7 +1169,7 @@ var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
1169
1169
|
urlParseError: urlParseError
|
|
1170
1170
|
});
|
|
1171
1171
|
|
|
1172
|
-
/*! @azure/msal-common v15.
|
|
1172
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
1173
1173
|
|
|
1174
1174
|
/*
|
|
1175
1175
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1317,7 +1317,7 @@ function createClientConfigurationError(errorCode) {
|
|
|
1317
1317
|
return new ClientConfigurationError(errorCode);
|
|
1318
1318
|
}
|
|
1319
1319
|
|
|
1320
|
-
/*! @azure/msal-common v15.
|
|
1320
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
1321
1321
|
/*
|
|
1322
1322
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1323
1323
|
* Licensed under the MIT License.
|
|
@@ -1412,9 +1412,48 @@ class StringUtils {
|
|
|
1412
1412
|
.replace(/\?/g, "\\?"));
|
|
1413
1413
|
return regex.test(input);
|
|
1414
1414
|
}
|
|
1415
|
+
/**
|
|
1416
|
+
* Tests if a given string matches a given pattern using stricter, anchored matching semantics.
|
|
1417
|
+
*
|
|
1418
|
+
* Differences from `matchPattern` (legacy):
|
|
1419
|
+
* - All regex metacharacters (including `.`) in the pattern are treated as literals,
|
|
1420
|
+
* so `example.com` matches only `example.com` and not `exampleXcom`.
|
|
1421
|
+
* - The generated regex is anchored with `^` and `$` so partial/substring matches
|
|
1422
|
+
* are not allowed.
|
|
1423
|
+
* - `*` is the only supported wildcard. Its behaviour depends on the URL component:
|
|
1424
|
+
* - `host` component: `*` matches any sequence of characters that does NOT include
|
|
1425
|
+
* a dot (`.`), keeping wildcards within a single DNS label boundary.
|
|
1426
|
+
* - All other components: `*` matches any sequence of characters (including `/`).
|
|
1427
|
+
*
|
|
1428
|
+
* @param pattern - The `protectedResourceMap` key pattern to match against. `*` is a
|
|
1429
|
+
* multi-character wildcard; all other characters are treated as literals.
|
|
1430
|
+
* @param input - The URL component value (e.g. host, pathname) extracted from the
|
|
1431
|
+
* outgoing request URL to test against the pattern.
|
|
1432
|
+
* @param options - Optional. Provide `component` to enable component-aware wildcard
|
|
1433
|
+
* semantics. Accepted values: `"host"`, `"path"`, `"protocol"`, `"search"`,
|
|
1434
|
+
* `"hash"`. Defaults to path-style (permissive) matching when omitted.
|
|
1435
|
+
* @returns `true` if the full input string matches the pattern; `false` otherwise.
|
|
1436
|
+
*/
|
|
1437
|
+
static matchPatternStrict(pattern, input, options) {
|
|
1438
|
+
const component = options?.component;
|
|
1439
|
+
// Step 1: Escape all regex special characters so literals are matched literally.
|
|
1440
|
+
let regexBody = pattern.replace(/[.+^${}()|[\]\\*?]/g, "\\$&");
|
|
1441
|
+
// Step 2: Replace the escaped '*' with its component-aware regex equivalent.
|
|
1442
|
+
if (component === "host") {
|
|
1443
|
+
regexBody = regexBody.replace(/\\\*/g, "[^.]*");
|
|
1444
|
+
}
|
|
1445
|
+
else {
|
|
1446
|
+
// PATH, PROTOCOL, SEARCH, HASH, or unspecified: '*' matches any characters.
|
|
1447
|
+
regexBody = regexBody.replace(/\\\*/g, ".*");
|
|
1448
|
+
}
|
|
1449
|
+
// Step 3: Anchor for full-string matching.
|
|
1450
|
+
// eslint-disable-next-line security/detect-non-literal-regexp
|
|
1451
|
+
const regex = new RegExp(`^${regexBody}$`);
|
|
1452
|
+
return regex.test(input);
|
|
1453
|
+
}
|
|
1415
1454
|
}
|
|
1416
1455
|
|
|
1417
|
-
/*! @azure/msal-common v15.
|
|
1456
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
1418
1457
|
|
|
1419
1458
|
/*
|
|
1420
1459
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1609,7 +1648,7 @@ class ScopeSet {
|
|
|
1609
1648
|
}
|
|
1610
1649
|
}
|
|
1611
1650
|
|
|
1612
|
-
/*! @azure/msal-common v15.
|
|
1651
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
1613
1652
|
|
|
1614
1653
|
/*
|
|
1615
1654
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1649,7 +1688,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
|
|
|
1649
1688
|
};
|
|
1650
1689
|
}
|
|
1651
1690
|
|
|
1652
|
-
/*! @azure/msal-common v15.
|
|
1691
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
1653
1692
|
/*
|
|
1654
1693
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1655
1694
|
* Licensed under the MIT License.
|
|
@@ -1731,7 +1770,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
|
|
|
1731
1770
|
return updatedAccountInfo;
|
|
1732
1771
|
}
|
|
1733
1772
|
|
|
1734
|
-
/*! @azure/msal-common v15.
|
|
1773
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
1735
1774
|
/*
|
|
1736
1775
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1737
1776
|
* Licensed under the MIT License.
|
|
@@ -1746,7 +1785,7 @@ const AuthorityType = {
|
|
|
1746
1785
|
Ciam: 3,
|
|
1747
1786
|
};
|
|
1748
1787
|
|
|
1749
|
-
/*! @azure/msal-common v15.
|
|
1788
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
1750
1789
|
/*
|
|
1751
1790
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1752
1791
|
* Licensed under the MIT License.
|
|
@@ -1768,7 +1807,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
|
|
|
1768
1807
|
return null;
|
|
1769
1808
|
}
|
|
1770
1809
|
|
|
1771
|
-
/*! @azure/msal-common v15.
|
|
1810
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
1772
1811
|
/*
|
|
1773
1812
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1774
1813
|
* Licensed under the MIT License.
|
|
@@ -1792,7 +1831,7 @@ const ProtocolMode = {
|
|
|
1792
1831
|
EAR: "EAR",
|
|
1793
1832
|
};
|
|
1794
1833
|
|
|
1795
|
-
/*! @azure/msal-common v15.
|
|
1834
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
1796
1835
|
|
|
1797
1836
|
/*
|
|
1798
1837
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2027,7 +2066,7 @@ class AccountEntity {
|
|
|
2027
2066
|
}
|
|
2028
2067
|
}
|
|
2029
2068
|
|
|
2030
|
-
/*! @azure/msal-common v15.
|
|
2069
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
2031
2070
|
|
|
2032
2071
|
/*
|
|
2033
2072
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2108,7 +2147,7 @@ function checkMaxAge(authTime, maxAge) {
|
|
|
2108
2147
|
}
|
|
2109
2148
|
}
|
|
2110
2149
|
|
|
2111
|
-
/*! @azure/msal-common v15.
|
|
2150
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
2112
2151
|
/**
|
|
2113
2152
|
* Parses hash string from given string. Returns empty string if no hash symbol is found.
|
|
2114
2153
|
* @param hashString
|
|
@@ -2168,7 +2207,7 @@ function mapToQueryString(parameters, encodeExtraParams = true, extraQueryParame
|
|
|
2168
2207
|
return queryParameterArray.join("&");
|
|
2169
2208
|
}
|
|
2170
2209
|
|
|
2171
|
-
/*! @azure/msal-common v15.
|
|
2210
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
2172
2211
|
|
|
2173
2212
|
/*
|
|
2174
2213
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2332,7 +2371,7 @@ class UrlString {
|
|
|
2332
2371
|
}
|
|
2333
2372
|
}
|
|
2334
2373
|
|
|
2335
|
-
/*! @azure/msal-common v15.
|
|
2374
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
2336
2375
|
|
|
2337
2376
|
/*
|
|
2338
2377
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2507,7 +2546,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
2507
2546
|
return null;
|
|
2508
2547
|
}
|
|
2509
2548
|
|
|
2510
|
-
/*! @azure/msal-common v15.
|
|
2549
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
2511
2550
|
/*
|
|
2512
2551
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2513
2552
|
* Licensed under the MIT License.
|
|
@@ -2515,7 +2554,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
2515
2554
|
const cacheQuotaExceeded = "cache_quota_exceeded";
|
|
2516
2555
|
const cacheErrorUnknown = "cache_error_unknown";
|
|
2517
2556
|
|
|
2518
|
-
/*! @azure/msal-common v15.
|
|
2557
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
2519
2558
|
|
|
2520
2559
|
/*
|
|
2521
2560
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2560,7 +2599,7 @@ function createCacheError(e) {
|
|
|
2560
2599
|
}
|
|
2561
2600
|
}
|
|
2562
2601
|
|
|
2563
|
-
/*! @azure/msal-common v15.
|
|
2602
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
2564
2603
|
|
|
2565
2604
|
/*
|
|
2566
2605
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3670,7 +3709,7 @@ class DefaultStorageClass extends CacheManager {
|
|
|
3670
3709
|
}
|
|
3671
3710
|
}
|
|
3672
3711
|
|
|
3673
|
-
/*! @azure/msal-common v15.
|
|
3712
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
3674
3713
|
/*
|
|
3675
3714
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3676
3715
|
* Licensed under the MIT License.
|
|
@@ -3947,7 +3986,7 @@ const PerformanceEvents = {
|
|
|
3947
3986
|
const PerformanceEventStatus = {
|
|
3948
3987
|
InProgress: 1};
|
|
3949
3988
|
|
|
3950
|
-
/*! @azure/msal-common v15.
|
|
3989
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
3951
3990
|
|
|
3952
3991
|
/*
|
|
3953
3992
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4026,7 +4065,7 @@ class StubPerformanceClient {
|
|
|
4026
4065
|
}
|
|
4027
4066
|
}
|
|
4028
4067
|
|
|
4029
|
-
/*! @azure/msal-common v15.
|
|
4068
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
4030
4069
|
|
|
4031
4070
|
/*
|
|
4032
4071
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4126,7 +4165,7 @@ function isOidcProtocolMode(config) {
|
|
|
4126
4165
|
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
4127
4166
|
}
|
|
4128
4167
|
|
|
4129
|
-
/*! @azure/msal-common v15.
|
|
4168
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
4130
4169
|
/*
|
|
4131
4170
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4132
4171
|
* Licensed under the MIT License.
|
|
@@ -4136,7 +4175,7 @@ const CcsCredentialType = {
|
|
|
4136
4175
|
UPN: "UPN",
|
|
4137
4176
|
};
|
|
4138
4177
|
|
|
4139
|
-
/*! @azure/msal-common v15.
|
|
4178
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
4140
4179
|
/*
|
|
4141
4180
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4142
4181
|
* Licensed under the MIT License.
|
|
@@ -4185,9 +4224,10 @@ const DOMAIN_HINT = "domain_hint";
|
|
|
4185
4224
|
const X_CLIENT_EXTRA_SKU = "x-client-xtra-sku";
|
|
4186
4225
|
const BROKER_CLIENT_ID = "brk_client_id";
|
|
4187
4226
|
const BROKER_REDIRECT_URI = "brk_redirect_uri";
|
|
4188
|
-
const INSTANCE_AWARE = "instance_aware";
|
|
4227
|
+
const INSTANCE_AWARE = "instance_aware";
|
|
4228
|
+
const CLI_DATA = "clidata";
|
|
4189
4229
|
|
|
4190
|
-
/*! @azure/msal-common v15.
|
|
4230
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
4191
4231
|
|
|
4192
4232
|
/*
|
|
4193
4233
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4468,6 +4508,12 @@ function addGrantType(parameters, grantType) {
|
|
|
4468
4508
|
function addClientInfo(parameters) {
|
|
4469
4509
|
parameters.set(CLIENT_INFO, "1");
|
|
4470
4510
|
}
|
|
4511
|
+
/**
|
|
4512
|
+
* add clidata=1 to request to indicate client data support
|
|
4513
|
+
*/
|
|
4514
|
+
function addCliData(parameters) {
|
|
4515
|
+
parameters.set(CLI_DATA, "1");
|
|
4516
|
+
}
|
|
4471
4517
|
function addInstanceAware(parameters) {
|
|
4472
4518
|
if (!parameters.has(INSTANCE_AWARE)) {
|
|
4473
4519
|
parameters.set(INSTANCE_AWARE, "true");
|
|
@@ -4573,7 +4619,7 @@ function addBrokerParameters(parameters, brokerClientId, brokerRedirectUri) {
|
|
|
4573
4619
|
}
|
|
4574
4620
|
}
|
|
4575
4621
|
|
|
4576
|
-
/*! @azure/msal-common v15.
|
|
4622
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
4577
4623
|
/*
|
|
4578
4624
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4579
4625
|
* Licensed under the MIT License.
|
|
@@ -4585,7 +4631,7 @@ function isOpenIdConfigResponse(response) {
|
|
|
4585
4631
|
response.hasOwnProperty("jwks_uri"));
|
|
4586
4632
|
}
|
|
4587
4633
|
|
|
4588
|
-
/*! @azure/msal-common v15.
|
|
4634
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
4589
4635
|
/*
|
|
4590
4636
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4591
4637
|
* Licensed under the MIT License.
|
|
@@ -4595,7 +4641,7 @@ function isCloudInstanceDiscoveryResponse(response) {
|
|
|
4595
4641
|
response.hasOwnProperty("metadata"));
|
|
4596
4642
|
}
|
|
4597
4643
|
|
|
4598
|
-
/*! @azure/msal-common v15.
|
|
4644
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
4599
4645
|
/*
|
|
4600
4646
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4601
4647
|
* Licensed under the MIT License.
|
|
@@ -4605,7 +4651,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
|
4605
4651
|
response.hasOwnProperty("error_description"));
|
|
4606
4652
|
}
|
|
4607
4653
|
|
|
4608
|
-
/*! @azure/msal-common v15.
|
|
4654
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
4609
4655
|
/*
|
|
4610
4656
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4611
4657
|
* Licensed under the MIT License.
|
|
@@ -4701,7 +4747,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
|
|
|
4701
4747
|
};
|
|
4702
4748
|
};
|
|
4703
4749
|
|
|
4704
|
-
/*! @azure/msal-common v15.
|
|
4750
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
4705
4751
|
|
|
4706
4752
|
/*
|
|
4707
4753
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4807,7 +4853,7 @@ RegionDiscovery.IMDS_OPTIONS = {
|
|
|
4807
4853
|
},
|
|
4808
4854
|
};
|
|
4809
4855
|
|
|
4810
|
-
/*! @azure/msal-common v15.
|
|
4856
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
4811
4857
|
/*
|
|
4812
4858
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4813
4859
|
* Licensed under the MIT License.
|
|
@@ -4862,7 +4908,7 @@ function delay(t, value) {
|
|
|
4862
4908
|
return new Promise((resolve) => setTimeout(() => resolve(value), t));
|
|
4863
4909
|
}
|
|
4864
4910
|
|
|
4865
|
-
/*! @azure/msal-common v15.
|
|
4911
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
4866
4912
|
|
|
4867
4913
|
/*
|
|
4868
4914
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5124,7 +5170,7 @@ function isAuthorityMetadataExpired(metadata) {
|
|
|
5124
5170
|
return metadata.expiresAt <= nowSeconds();
|
|
5125
5171
|
}
|
|
5126
5172
|
|
|
5127
|
-
/*! @azure/msal-common v15.
|
|
5173
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
5128
5174
|
|
|
5129
5175
|
/*
|
|
5130
5176
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5963,7 +6009,7 @@ function buildStaticAuthorityOptions(authOptions) {
|
|
|
5963
6009
|
};
|
|
5964
6010
|
}
|
|
5965
6011
|
|
|
5966
|
-
/*! @azure/msal-common v15.
|
|
6012
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
5967
6013
|
|
|
5968
6014
|
/*
|
|
5969
6015
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5994,7 +6040,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
|
|
|
5994
6040
|
}
|
|
5995
6041
|
}
|
|
5996
6042
|
|
|
5997
|
-
/*! @azure/msal-common v15.
|
|
6043
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
5998
6044
|
|
|
5999
6045
|
/*
|
|
6000
6046
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6013,7 +6059,7 @@ class ServerError extends AuthError {
|
|
|
6013
6059
|
}
|
|
6014
6060
|
}
|
|
6015
6061
|
|
|
6016
|
-
/*! @azure/msal-common v15.
|
|
6062
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
6017
6063
|
/*
|
|
6018
6064
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6019
6065
|
* Licensed under the MIT License.
|
|
@@ -6034,7 +6080,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
|
|
|
6034
6080
|
};
|
|
6035
6081
|
}
|
|
6036
6082
|
|
|
6037
|
-
/*! @azure/msal-common v15.
|
|
6083
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
6038
6084
|
|
|
6039
6085
|
/*
|
|
6040
6086
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6121,7 +6167,7 @@ class ThrottlingUtils {
|
|
|
6121
6167
|
}
|
|
6122
6168
|
}
|
|
6123
6169
|
|
|
6124
|
-
/*! @azure/msal-common v15.
|
|
6170
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
6125
6171
|
|
|
6126
6172
|
/*
|
|
6127
6173
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6141,7 +6187,7 @@ class NetworkError extends AuthError {
|
|
|
6141
6187
|
}
|
|
6142
6188
|
}
|
|
6143
6189
|
|
|
6144
|
-
/*! @azure/msal-common v15.
|
|
6190
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
6145
6191
|
|
|
6146
6192
|
/*
|
|
6147
6193
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6289,7 +6335,7 @@ class BaseClient {
|
|
|
6289
6335
|
}
|
|
6290
6336
|
}
|
|
6291
6337
|
|
|
6292
|
-
/*! @azure/msal-common v15.
|
|
6338
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
6293
6339
|
/*
|
|
6294
6340
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6295
6341
|
* Licensed under the MIT License.
|
|
@@ -6353,7 +6399,7 @@ var InteractionRequiredAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
6353
6399
|
uxNotAllowed: uxNotAllowed
|
|
6354
6400
|
});
|
|
6355
6401
|
|
|
6356
|
-
/*! @azure/msal-common v15.
|
|
6402
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
6357
6403
|
|
|
6358
6404
|
/*
|
|
6359
6405
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6450,7 +6496,7 @@ function createInteractionRequiredAuthError(errorCode) {
|
|
|
6450
6496
|
return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
|
|
6451
6497
|
}
|
|
6452
6498
|
|
|
6453
|
-
/*! @azure/msal-common v15.
|
|
6499
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
6454
6500
|
|
|
6455
6501
|
/*
|
|
6456
6502
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6522,7 +6568,7 @@ class ProtocolUtils {
|
|
|
6522
6568
|
}
|
|
6523
6569
|
}
|
|
6524
6570
|
|
|
6525
|
-
/*! @azure/msal-common v15.
|
|
6571
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
6526
6572
|
|
|
6527
6573
|
/*
|
|
6528
6574
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6604,7 +6650,7 @@ class PopTokenGenerator {
|
|
|
6604
6650
|
}
|
|
6605
6651
|
}
|
|
6606
6652
|
|
|
6607
|
-
/*! @azure/msal-common v15.
|
|
6653
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
6608
6654
|
/*
|
|
6609
6655
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6610
6656
|
* Licensed under the MIT License.
|
|
@@ -6631,7 +6677,7 @@ class PopTokenGenerator {
|
|
|
6631
6677
|
}
|
|
6632
6678
|
}
|
|
6633
6679
|
|
|
6634
|
-
/*! @azure/msal-common v15.
|
|
6680
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
6635
6681
|
|
|
6636
6682
|
/*
|
|
6637
6683
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6970,7 +7016,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
|
|
|
6970
7016
|
return baseAccount;
|
|
6971
7017
|
}
|
|
6972
7018
|
|
|
6973
|
-
/*! @azure/msal-common v15.
|
|
7019
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
6974
7020
|
/*
|
|
6975
7021
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6976
7022
|
* Licensed under the MIT License.
|
|
@@ -6988,7 +7034,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint) {
|
|
|
6988
7034
|
}
|
|
6989
7035
|
}
|
|
6990
7036
|
|
|
6991
|
-
/*! @azure/msal-common v15.
|
|
7037
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
6992
7038
|
|
|
6993
7039
|
/*
|
|
6994
7040
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7137,11 +7183,6 @@ class AuthorizationCodeClient extends BaseClient {
|
|
|
7137
7183
|
throw createClientConfigurationError(missingSshJwk);
|
|
7138
7184
|
}
|
|
7139
7185
|
}
|
|
7140
|
-
if (!StringUtils.isEmptyObj(request.claims) ||
|
|
7141
|
-
(this.config.authOptions.clientCapabilities &&
|
|
7142
|
-
this.config.authOptions.clientCapabilities.length > 0)) {
|
|
7143
|
-
addClaims(parameters, request.claims, this.config.authOptions.clientCapabilities);
|
|
7144
|
-
}
|
|
7145
7186
|
let ccsCred = undefined;
|
|
7146
7187
|
if (request.clientInfo) {
|
|
7147
7188
|
try {
|
|
@@ -7191,6 +7232,15 @@ class AuthorizationCodeClient extends BaseClient {
|
|
|
7191
7232
|
});
|
|
7192
7233
|
}
|
|
7193
7234
|
instrumentBrokerParams(parameters, request.correlationId, this.performanceClient);
|
|
7235
|
+
// ignore config claims if skipBrokerClaims is set to true and this is a brokered authentication flow
|
|
7236
|
+
const configClaims = request.skipBrokerClaims &&
|
|
7237
|
+
parameters.has(BROKER_CLIENT_ID)
|
|
7238
|
+
? undefined
|
|
7239
|
+
: this.config.authOptions.clientCapabilities;
|
|
7240
|
+
if (!StringUtils.isEmptyObj(request.claims) ||
|
|
7241
|
+
(configClaims && configClaims.length > 0)) {
|
|
7242
|
+
addClaims(parameters, request.claims, configClaims);
|
|
7243
|
+
}
|
|
7194
7244
|
return mapToQueryString(parameters);
|
|
7195
7245
|
}
|
|
7196
7246
|
/**
|
|
@@ -7224,7 +7274,7 @@ class AuthorizationCodeClient extends BaseClient {
|
|
|
7224
7274
|
}
|
|
7225
7275
|
}
|
|
7226
7276
|
|
|
7227
|
-
/*! @azure/msal-common v15.
|
|
7277
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
7228
7278
|
|
|
7229
7279
|
/*
|
|
7230
7280
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7402,11 +7452,6 @@ class RefreshTokenClient extends BaseClient {
|
|
|
7402
7452
|
throw createClientConfigurationError(missingSshJwk);
|
|
7403
7453
|
}
|
|
7404
7454
|
}
|
|
7405
|
-
if (!StringUtils.isEmptyObj(request.claims) ||
|
|
7406
|
-
(this.config.authOptions.clientCapabilities &&
|
|
7407
|
-
this.config.authOptions.clientCapabilities.length > 0)) {
|
|
7408
|
-
addClaims(parameters, request.claims, this.config.authOptions.clientCapabilities);
|
|
7409
|
-
}
|
|
7410
7455
|
if (this.config.systemOptions.preventCorsPreflight &&
|
|
7411
7456
|
request.ccsCredential) {
|
|
7412
7457
|
switch (request.ccsCredential.type) {
|
|
@@ -7432,11 +7477,20 @@ class RefreshTokenClient extends BaseClient {
|
|
|
7432
7477
|
addExtraQueryParameters(parameters, request.tokenBodyParameters);
|
|
7433
7478
|
}
|
|
7434
7479
|
instrumentBrokerParams(parameters, request.correlationId, this.performanceClient);
|
|
7480
|
+
// ignore config claims if skipBrokerClaims is set to true and this is a brokered authentication flow
|
|
7481
|
+
const configClaims = request.skipBrokerClaims &&
|
|
7482
|
+
parameters.has(BROKER_CLIENT_ID)
|
|
7483
|
+
? undefined
|
|
7484
|
+
: this.config.authOptions.clientCapabilities;
|
|
7485
|
+
if (!StringUtils.isEmptyObj(request.claims) ||
|
|
7486
|
+
(configClaims && configClaims.length > 0)) {
|
|
7487
|
+
addClaims(parameters, request.claims, configClaims);
|
|
7488
|
+
}
|
|
7435
7489
|
return mapToQueryString(parameters);
|
|
7436
7490
|
}
|
|
7437
7491
|
}
|
|
7438
7492
|
|
|
7439
|
-
/*! @azure/msal-common v15.
|
|
7493
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
7440
7494
|
|
|
7441
7495
|
/*
|
|
7442
7496
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7534,7 +7588,7 @@ class SilentFlowClient extends BaseClient {
|
|
|
7534
7588
|
}
|
|
7535
7589
|
}
|
|
7536
7590
|
|
|
7537
|
-
/*! @azure/msal-common v15.
|
|
7591
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
7538
7592
|
|
|
7539
7593
|
/*
|
|
7540
7594
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7566,6 +7620,8 @@ function getStandardAuthorizeRequestParameters(authOptions, request, logger, per
|
|
|
7566
7620
|
addResponseMode(parameters, request.responseMode);
|
|
7567
7621
|
// add client_info=1
|
|
7568
7622
|
addClientInfo(parameters);
|
|
7623
|
+
// add clidata=1
|
|
7624
|
+
addCliData(parameters);
|
|
7569
7625
|
if (request.prompt) {
|
|
7570
7626
|
addPrompt(parameters, request.prompt);
|
|
7571
7627
|
}
|
|
@@ -7647,14 +7703,17 @@ function getStandardAuthorizeRequestParameters(authOptions, request, logger, per
|
|
|
7647
7703
|
if (request.state) {
|
|
7648
7704
|
addState(parameters, request.state);
|
|
7649
7705
|
}
|
|
7650
|
-
if (request.claims ||
|
|
7651
|
-
(authOptions.clientCapabilities &&
|
|
7652
|
-
authOptions.clientCapabilities.length > 0)) {
|
|
7653
|
-
addClaims(parameters, request.claims, authOptions.clientCapabilities);
|
|
7654
|
-
}
|
|
7655
7706
|
if (request.embeddedClientId) {
|
|
7656
7707
|
addBrokerParameters(parameters, authOptions.clientId, authOptions.redirectUri);
|
|
7657
7708
|
}
|
|
7709
|
+
// ignore config claims if skipBrokerClaims is set to true and this is a brokered authentication flow
|
|
7710
|
+
const configClaims = request.skipBrokerClaims &&
|
|
7711
|
+
parameters.has(BROKER_CLIENT_ID)
|
|
7712
|
+
? undefined
|
|
7713
|
+
: authOptions.clientCapabilities;
|
|
7714
|
+
if (request.claims || (configClaims && configClaims.length > 0)) {
|
|
7715
|
+
addClaims(parameters, request.claims, configClaims);
|
|
7716
|
+
}
|
|
7658
7717
|
// If extraQueryParameters includes instance_aware its value will be added when extraQueryParameters are added
|
|
7659
7718
|
if (authOptions.instanceAware &&
|
|
7660
7719
|
(!request.extraQueryParameters ||
|
|
@@ -7684,7 +7743,7 @@ function extractLoginHint(account) {
|
|
|
7684
7743
|
return account.loginHint || account.idTokenClaims?.login_hint || null;
|
|
7685
7744
|
}
|
|
7686
7745
|
|
|
7687
|
-
/*! @azure/msal-common v15.
|
|
7746
|
+
/*! @azure/msal-common v15.17.0 2026-03-18 */
|
|
7688
7747
|
|
|
7689
7748
|
/*
|
|
7690
7749
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8325,7 +8384,7 @@ class NetworkUtils {
|
|
|
8325
8384
|
|
|
8326
8385
|
/* eslint-disable header/header */
|
|
8327
8386
|
const name = "@azure/msal-node";
|
|
8328
|
-
const version = "3.8.
|
|
8387
|
+
const version = "3.8.10";
|
|
8329
8388
|
|
|
8330
8389
|
/*
|
|
8331
8390
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|