@azure/msal-node 3.8.7 → 3.8.9

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.
Files changed (55) hide show
  1. package/README.md +20 -20
  2. package/dist/cache/CacheHelpers.mjs +1 -1
  3. package/dist/cache/NodeStorage.mjs +1 -1
  4. package/dist/cache/TokenCache.mjs +1 -1
  5. package/dist/cache/distributed/DistributedCachePlugin.mjs +1 -1
  6. package/dist/cache/serializer/Deserializer.mjs +1 -1
  7. package/dist/cache/serializer/Serializer.mjs +1 -1
  8. package/dist/client/ClientApplication.mjs +1 -1
  9. package/dist/client/ClientAssertion.mjs +1 -1
  10. package/dist/client/ClientCredentialClient.mjs +1 -1
  11. package/dist/client/ConfidentialClientApplication.mjs +1 -1
  12. package/dist/client/DeviceCodeClient.mjs +1 -1
  13. package/dist/client/ManagedIdentityApplication.mjs +1 -1
  14. package/dist/client/ManagedIdentityClient.mjs +1 -1
  15. package/dist/client/ManagedIdentitySources/AppService.mjs +1 -1
  16. package/dist/client/ManagedIdentitySources/AzureArc.mjs +1 -1
  17. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs +1 -1
  18. package/dist/client/ManagedIdentitySources/CloudShell.mjs +1 -1
  19. package/dist/client/ManagedIdentitySources/Imds.mjs +1 -1
  20. package/dist/client/ManagedIdentitySources/MachineLearning.mjs +1 -1
  21. package/dist/client/ManagedIdentitySources/ServiceFabric.mjs +1 -1
  22. package/dist/client/OnBehalfOfClient.mjs +1 -1
  23. package/dist/client/PublicClientApplication.mjs +1 -1
  24. package/dist/client/UsernamePasswordClient.mjs +1 -1
  25. package/dist/config/Configuration.mjs +1 -1
  26. package/dist/config/ManagedIdentityId.mjs +1 -1
  27. package/dist/config/ManagedIdentityRequestParameters.mjs +1 -1
  28. package/dist/crypto/CryptoProvider.mjs +1 -1
  29. package/dist/crypto/GuidGenerator.mjs +1 -1
  30. package/dist/crypto/HashUtils.mjs +1 -1
  31. package/dist/crypto/PkceGenerator.mjs +1 -1
  32. package/dist/error/ManagedIdentityError.mjs +1 -1
  33. package/dist/error/ManagedIdentityErrorCodes.mjs +1 -1
  34. package/dist/error/NodeAuthError.mjs +1 -1
  35. package/dist/index.mjs +1 -1
  36. package/dist/internals.mjs +1 -1
  37. package/dist/network/HttpClient.mjs +1 -1
  38. package/dist/network/HttpClientWithRetries.mjs +1 -1
  39. package/dist/network/LoopbackClient.mjs +1 -1
  40. package/dist/packageMetadata.d.ts +1 -1
  41. package/dist/packageMetadata.mjs +2 -2
  42. package/dist/protocol/Authorize.mjs +1 -1
  43. package/dist/retry/DefaultManagedIdentityRetryPolicy.mjs +1 -1
  44. package/dist/retry/ExponentialRetryStrategy.mjs +1 -1
  45. package/dist/retry/ImdsRetryPolicy.mjs +1 -1
  46. package/dist/retry/LinearRetryStrategy.mjs +1 -1
  47. package/dist/utils/Constants.mjs +1 -1
  48. package/dist/utils/EncodingUtils.mjs +1 -1
  49. package/dist/utils/NetworkUtils.mjs +1 -1
  50. package/dist/utils/TimeUtils.mjs +1 -1
  51. package/lib/msal-node.cjs +177 -79
  52. package/lib/msal-node.cjs.map +1 -1
  53. package/lib/types/packageMetadata.d.ts +1 -1
  54. package/package.json +2 -2
  55. package/src/packageMetadata.ts +1 -1
package/lib/msal-node.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v3.8.7 2026-02-10 */
1
+ /*! @azure/msal-node v3.8.9 2026-03-13 */
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.14.2 2026-02-10 */
156
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
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.14.2 2026-02-10 */
436
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
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.14.2 2026-02-10 */
453
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
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.14.2 2026-02-10 */
502
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
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.14.2 2026-02-10 */
602
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
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.14.2 2026-02-10 */
859
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
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.14.2 2026-02-10 */
898
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
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.14.2 2026-02-10 */
1089
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
1090
1090
  /* eslint-disable header/header */
1091
1091
  const name$1 = "@azure/msal-common";
1092
- const version$1 = "15.14.2";
1092
+ const version$1 = "15.16.1";
1093
1093
 
1094
- /*! @azure/msal-common v15.14.2 2026-02-10 */
1094
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
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.14.2 2026-02-10 */
1114
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
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.14.2 2026-02-10 */
1172
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
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.14.2 2026-02-10 */
1320
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
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.14.2 2026-02-10 */
1456
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
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.14.2 2026-02-10 */
1651
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
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.14.2 2026-02-10 */
1691
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
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.14.2 2026-02-10 */
1773
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
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.14.2 2026-02-10 */
1788
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
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.14.2 2026-02-10 */
1810
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
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.14.2 2026-02-10 */
1834
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
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.14.2 2026-02-10 */
2069
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
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.14.2 2026-02-10 */
2150
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
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.14.2 2026-02-10 */
2210
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
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.14.2 2026-02-10 */
2374
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
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.14.2 2026-02-10 */
2549
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
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.14.2 2026-02-10 */
2557
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
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.14.2 2026-02-10 */
2602
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
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.14.2 2026-02-10 */
3712
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
3674
3713
  /*
3675
3714
  * Copyright (c) Microsoft Corporation. All rights reserved.
3676
3715
  * Licensed under the MIT License.
@@ -3932,6 +3971,11 @@ const PerformanceEvents = {
3932
3971
  LoadIdToken: "loadIdToken",
3933
3972
  LoadAccessToken: "loadAccessToken",
3934
3973
  LoadRefreshToken: "loadRefreshToken",
3974
+ /**
3975
+ * SSO capability verification call (msal-browser).
3976
+ * Fire-and-forget SSO verification call made after interactive authentication completes.
3977
+ */
3978
+ SsoCapable: "ssoCapable",
3935
3979
  };
3936
3980
  /**
3937
3981
  * State of the performance event.
@@ -3942,7 +3986,7 @@ const PerformanceEvents = {
3942
3986
  const PerformanceEventStatus = {
3943
3987
  InProgress: 1};
3944
3988
 
3945
- /*! @azure/msal-common v15.14.2 2026-02-10 */
3989
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
3946
3990
 
3947
3991
  /*
3948
3992
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4021,7 +4065,7 @@ class StubPerformanceClient {
4021
4065
  }
4022
4066
  }
4023
4067
 
4024
- /*! @azure/msal-common v15.14.2 2026-02-10 */
4068
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
4025
4069
 
4026
4070
  /*
4027
4071
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4121,7 +4165,7 @@ function isOidcProtocolMode(config) {
4121
4165
  return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
4122
4166
  }
4123
4167
 
4124
- /*! @azure/msal-common v15.14.2 2026-02-10 */
4168
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
4125
4169
  /*
4126
4170
  * Copyright (c) Microsoft Corporation. All rights reserved.
4127
4171
  * Licensed under the MIT License.
@@ -4131,7 +4175,7 @@ const CcsCredentialType = {
4131
4175
  UPN: "UPN",
4132
4176
  };
4133
4177
 
4134
- /*! @azure/msal-common v15.14.2 2026-02-10 */
4178
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
4135
4179
  /*
4136
4180
  * Copyright (c) Microsoft Corporation. All rights reserved.
4137
4181
  * Licensed under the MIT License.
@@ -4182,7 +4226,7 @@ const BROKER_CLIENT_ID = "brk_client_id";
4182
4226
  const BROKER_REDIRECT_URI = "brk_redirect_uri";
4183
4227
  const INSTANCE_AWARE = "instance_aware";
4184
4228
 
4185
- /*! @azure/msal-common v15.14.2 2026-02-10 */
4229
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
4186
4230
 
4187
4231
  /*
4188
4232
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4568,7 +4612,7 @@ function addBrokerParameters(parameters, brokerClientId, brokerRedirectUri) {
4568
4612
  }
4569
4613
  }
4570
4614
 
4571
- /*! @azure/msal-common v15.14.2 2026-02-10 */
4615
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
4572
4616
  /*
4573
4617
  * Copyright (c) Microsoft Corporation. All rights reserved.
4574
4618
  * Licensed under the MIT License.
@@ -4580,7 +4624,7 @@ function isOpenIdConfigResponse(response) {
4580
4624
  response.hasOwnProperty("jwks_uri"));
4581
4625
  }
4582
4626
 
4583
- /*! @azure/msal-common v15.14.2 2026-02-10 */
4627
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
4584
4628
  /*
4585
4629
  * Copyright (c) Microsoft Corporation. All rights reserved.
4586
4630
  * Licensed under the MIT License.
@@ -4590,7 +4634,7 @@ function isCloudInstanceDiscoveryResponse(response) {
4590
4634
  response.hasOwnProperty("metadata"));
4591
4635
  }
4592
4636
 
4593
- /*! @azure/msal-common v15.14.2 2026-02-10 */
4637
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
4594
4638
  /*
4595
4639
  * Copyright (c) Microsoft Corporation. All rights reserved.
4596
4640
  * Licensed under the MIT License.
@@ -4600,7 +4644,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
4600
4644
  response.hasOwnProperty("error_description"));
4601
4645
  }
4602
4646
 
4603
- /*! @azure/msal-common v15.14.2 2026-02-10 */
4647
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
4604
4648
  /*
4605
4649
  * Copyright (c) Microsoft Corporation. All rights reserved.
4606
4650
  * Licensed under the MIT License.
@@ -4696,7 +4740,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
4696
4740
  };
4697
4741
  };
4698
4742
 
4699
- /*! @azure/msal-common v15.14.2 2026-02-10 */
4743
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
4700
4744
 
4701
4745
  /*
4702
4746
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4802,7 +4846,7 @@ RegionDiscovery.IMDS_OPTIONS = {
4802
4846
  },
4803
4847
  };
4804
4848
 
4805
- /*! @azure/msal-common v15.14.2 2026-02-10 */
4849
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
4806
4850
  /*
4807
4851
  * Copyright (c) Microsoft Corporation. All rights reserved.
4808
4852
  * Licensed under the MIT License.
@@ -4857,7 +4901,7 @@ function delay(t, value) {
4857
4901
  return new Promise((resolve) => setTimeout(() => resolve(value), t));
4858
4902
  }
4859
4903
 
4860
- /*! @azure/msal-common v15.14.2 2026-02-10 */
4904
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
4861
4905
 
4862
4906
  /*
4863
4907
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5119,7 +5163,7 @@ function isAuthorityMetadataExpired(metadata) {
5119
5163
  return metadata.expiresAt <= nowSeconds();
5120
5164
  }
5121
5165
 
5122
- /*! @azure/msal-common v15.14.2 2026-02-10 */
5166
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
5123
5167
 
5124
5168
  /*
5125
5169
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5958,7 +6002,7 @@ function buildStaticAuthorityOptions(authOptions) {
5958
6002
  };
5959
6003
  }
5960
6004
 
5961
- /*! @azure/msal-common v15.14.2 2026-02-10 */
6005
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
5962
6006
 
5963
6007
  /*
5964
6008
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5989,7 +6033,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
5989
6033
  }
5990
6034
  }
5991
6035
 
5992
- /*! @azure/msal-common v15.14.2 2026-02-10 */
6036
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
5993
6037
 
5994
6038
  /*
5995
6039
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6008,7 +6052,7 @@ class ServerError extends AuthError {
6008
6052
  }
6009
6053
  }
6010
6054
 
6011
- /*! @azure/msal-common v15.14.2 2026-02-10 */
6055
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
6012
6056
  /*
6013
6057
  * Copyright (c) Microsoft Corporation. All rights reserved.
6014
6058
  * Licensed under the MIT License.
@@ -6029,7 +6073,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
6029
6073
  };
6030
6074
  }
6031
6075
 
6032
- /*! @azure/msal-common v15.14.2 2026-02-10 */
6076
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
6033
6077
 
6034
6078
  /*
6035
6079
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6116,7 +6160,7 @@ class ThrottlingUtils {
6116
6160
  }
6117
6161
  }
6118
6162
 
6119
- /*! @azure/msal-common v15.14.2 2026-02-10 */
6163
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
6120
6164
 
6121
6165
  /*
6122
6166
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6136,7 +6180,7 @@ class NetworkError extends AuthError {
6136
6180
  }
6137
6181
  }
6138
6182
 
6139
- /*! @azure/msal-common v15.14.2 2026-02-10 */
6183
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
6140
6184
 
6141
6185
  /*
6142
6186
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6284,27 +6328,63 @@ class BaseClient {
6284
6328
  }
6285
6329
  }
6286
6330
 
6287
- /*! @azure/msal-common v15.14.2 2026-02-10 */
6331
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
6288
6332
  /*
6289
6333
  * Copyright (c) Microsoft Corporation. All rights reserved.
6290
6334
  * Licensed under the MIT License.
6291
6335
  */
6292
- // Codes defined by MSAL
6336
+ /**
6337
+ * MSAL-defined interaction required error code indicating no tokens are found in cache.
6338
+ * @public
6339
+ */
6293
6340
  const noTokensFound = "no_tokens_found";
6341
+ /**
6342
+ * MSAL-defined error code indicating a native account is unavailable on the platform.
6343
+ * @public
6344
+ */
6294
6345
  const nativeAccountUnavailable = "native_account_unavailable";
6346
+ /**
6347
+ * MSAL-defined error code indicating the refresh token has expired and user interaction is needed.
6348
+ * @public
6349
+ */
6295
6350
  const refreshTokenExpired = "refresh_token_expired";
6351
+ /**
6352
+ * MSAL-defined error code indicating UI/UX is not allowed (e.g., blocked by policy), requiring alternate interaction.
6353
+ * @public
6354
+ */
6296
6355
  const uxNotAllowed = "ux_not_allowed";
6297
- // Codes potentially returned by server
6356
+ /**
6357
+ * Server-originated error code indicating interaction is required to complete the request.
6358
+ * @public
6359
+ */
6298
6360
  const interactionRequired = "interaction_required";
6361
+ /**
6362
+ * Server-originated error code indicating user consent is required.
6363
+ * @public
6364
+ */
6299
6365
  const consentRequired = "consent_required";
6366
+ /**
6367
+ * Server-originated error code indicating user login is required.
6368
+ * @public
6369
+ */
6300
6370
  const loginRequired = "login_required";
6301
- const badToken = "bad_token";
6371
+ /**
6372
+ * Server-originated error code indicating the token is invalid or corrupted.
6373
+ * @public
6374
+ */
6375
+ const badToken = "bad_token";
6376
+ /**
6377
+ * Server-originated error code indicating the user was interrupted and must reattempt the flow.
6378
+ * @public
6379
+ */
6380
+ const interruptedUser = "interrupted_user";
6302
6381
 
6303
6382
  var InteractionRequiredAuthErrorCodes = /*#__PURE__*/Object.freeze({
6304
6383
  __proto__: null,
6305
6384
  badToken: badToken,
6306
6385
  consentRequired: consentRequired,
6307
6386
  interactionRequired: interactionRequired,
6387
+ interruptedUser: interruptedUser,
6308
6388
  loginRequired: loginRequired,
6309
6389
  nativeAccountUnavailable: nativeAccountUnavailable,
6310
6390
  noTokensFound: noTokensFound,
@@ -6312,7 +6392,7 @@ var InteractionRequiredAuthErrorCodes = /*#__PURE__*/Object.freeze({
6312
6392
  uxNotAllowed: uxNotAllowed
6313
6393
  });
6314
6394
 
6315
- /*! @azure/msal-common v15.14.2 2026-02-10 */
6395
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
6316
6396
 
6317
6397
  /*
6318
6398
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6327,6 +6407,7 @@ const InteractionRequiredServerErrorMessage = [
6327
6407
  loginRequired,
6328
6408
  badToken,
6329
6409
  uxNotAllowed,
6410
+ interruptedUser,
6330
6411
  ];
6331
6412
  const InteractionRequiredAuthSubErrorMessage = [
6332
6413
  "message_only",
@@ -6335,6 +6416,7 @@ const InteractionRequiredAuthSubErrorMessage = [
6335
6416
  "user_password_expired",
6336
6417
  "consent_required",
6337
6418
  "bad_token",
6419
+ "interrupted_user",
6338
6420
  ];
6339
6421
  const InteractionRequiredAuthErrorMessages = {
6340
6422
  [noTokensFound]: "No refresh token found in the cache. Please sign-in.",
@@ -6342,6 +6424,7 @@ const InteractionRequiredAuthErrorMessages = {
6342
6424
  [refreshTokenExpired]: "Refresh token has expired.",
6343
6425
  [badToken]: "Identity provider returned bad_token due to an expired or invalid refresh token. Please invoke an interactive API to resolve.",
6344
6426
  [uxNotAllowed]: "`canShowUI` flag in Edge was set to false. User interaction required on web page. Please invoke an interactive API to resolve.",
6427
+ [interruptedUser]: "The user could not be authenticated due to an interrupted state. Please invoke an interactive API to resolve.",
6345
6428
  };
6346
6429
  /**
6347
6430
  * Interaction required errors defined by the SDK
@@ -6360,6 +6443,10 @@ const InteractionRequiredAuthErrorMessage = {
6360
6443
  code: badToken,
6361
6444
  desc: InteractionRequiredAuthErrorMessages[badToken],
6362
6445
  },
6446
+ interrupted_user: {
6447
+ code: interruptedUser,
6448
+ desc: InteractionRequiredAuthErrorMessages[interruptedUser],
6449
+ },
6363
6450
  };
6364
6451
  /**
6365
6452
  * Error thrown when user interaction is required.
@@ -6402,7 +6489,7 @@ function createInteractionRequiredAuthError(errorCode) {
6402
6489
  return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
6403
6490
  }
6404
6491
 
6405
- /*! @azure/msal-common v15.14.2 2026-02-10 */
6492
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
6406
6493
 
6407
6494
  /*
6408
6495
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6474,7 +6561,7 @@ class ProtocolUtils {
6474
6561
  }
6475
6562
  }
6476
6563
 
6477
- /*! @azure/msal-common v15.14.2 2026-02-10 */
6564
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
6478
6565
 
6479
6566
  /*
6480
6567
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6556,7 +6643,7 @@ class PopTokenGenerator {
6556
6643
  }
6557
6644
  }
6558
6645
 
6559
- /*! @azure/msal-common v15.14.2 2026-02-10 */
6646
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
6560
6647
  /*
6561
6648
  * Copyright (c) Microsoft Corporation. All rights reserved.
6562
6649
  * Licensed under the MIT License.
@@ -6583,7 +6670,7 @@ class PopTokenGenerator {
6583
6670
  }
6584
6671
  }
6585
6672
 
6586
- /*! @azure/msal-common v15.14.2 2026-02-10 */
6673
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
6587
6674
 
6588
6675
  /*
6589
6676
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6922,7 +7009,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
6922
7009
  return baseAccount;
6923
7010
  }
6924
7011
 
6925
- /*! @azure/msal-common v15.14.2 2026-02-10 */
7012
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
6926
7013
  /*
6927
7014
  * Copyright (c) Microsoft Corporation. All rights reserved.
6928
7015
  * Licensed under the MIT License.
@@ -6940,7 +7027,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint) {
6940
7027
  }
6941
7028
  }
6942
7029
 
6943
- /*! @azure/msal-common v15.14.2 2026-02-10 */
7030
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
6944
7031
 
6945
7032
  /*
6946
7033
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7089,11 +7176,6 @@ class AuthorizationCodeClient extends BaseClient {
7089
7176
  throw createClientConfigurationError(missingSshJwk);
7090
7177
  }
7091
7178
  }
7092
- if (!StringUtils.isEmptyObj(request.claims) ||
7093
- (this.config.authOptions.clientCapabilities &&
7094
- this.config.authOptions.clientCapabilities.length > 0)) {
7095
- addClaims(parameters, request.claims, this.config.authOptions.clientCapabilities);
7096
- }
7097
7179
  let ccsCred = undefined;
7098
7180
  if (request.clientInfo) {
7099
7181
  try {
@@ -7143,6 +7225,15 @@ class AuthorizationCodeClient extends BaseClient {
7143
7225
  });
7144
7226
  }
7145
7227
  instrumentBrokerParams(parameters, request.correlationId, this.performanceClient);
7228
+ // ignore config claims if skipBrokerClaims is set to true and this is a brokered authentication flow
7229
+ const configClaims = request.skipBrokerClaims &&
7230
+ parameters.has(BROKER_CLIENT_ID)
7231
+ ? undefined
7232
+ : this.config.authOptions.clientCapabilities;
7233
+ if (!StringUtils.isEmptyObj(request.claims) ||
7234
+ (configClaims && configClaims.length > 0)) {
7235
+ addClaims(parameters, request.claims, configClaims);
7236
+ }
7146
7237
  return mapToQueryString(parameters);
7147
7238
  }
7148
7239
  /**
@@ -7176,7 +7267,7 @@ class AuthorizationCodeClient extends BaseClient {
7176
7267
  }
7177
7268
  }
7178
7269
 
7179
- /*! @azure/msal-common v15.14.2 2026-02-10 */
7270
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
7180
7271
 
7181
7272
  /*
7182
7273
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7354,11 +7445,6 @@ class RefreshTokenClient extends BaseClient {
7354
7445
  throw createClientConfigurationError(missingSshJwk);
7355
7446
  }
7356
7447
  }
7357
- if (!StringUtils.isEmptyObj(request.claims) ||
7358
- (this.config.authOptions.clientCapabilities &&
7359
- this.config.authOptions.clientCapabilities.length > 0)) {
7360
- addClaims(parameters, request.claims, this.config.authOptions.clientCapabilities);
7361
- }
7362
7448
  if (this.config.systemOptions.preventCorsPreflight &&
7363
7449
  request.ccsCredential) {
7364
7450
  switch (request.ccsCredential.type) {
@@ -7384,11 +7470,20 @@ class RefreshTokenClient extends BaseClient {
7384
7470
  addExtraQueryParameters(parameters, request.tokenBodyParameters);
7385
7471
  }
7386
7472
  instrumentBrokerParams(parameters, request.correlationId, this.performanceClient);
7473
+ // ignore config claims if skipBrokerClaims is set to true and this is a brokered authentication flow
7474
+ const configClaims = request.skipBrokerClaims &&
7475
+ parameters.has(BROKER_CLIENT_ID)
7476
+ ? undefined
7477
+ : this.config.authOptions.clientCapabilities;
7478
+ if (!StringUtils.isEmptyObj(request.claims) ||
7479
+ (configClaims && configClaims.length > 0)) {
7480
+ addClaims(parameters, request.claims, configClaims);
7481
+ }
7387
7482
  return mapToQueryString(parameters);
7388
7483
  }
7389
7484
  }
7390
7485
 
7391
- /*! @azure/msal-common v15.14.2 2026-02-10 */
7486
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
7392
7487
 
7393
7488
  /*
7394
7489
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7486,7 +7581,7 @@ class SilentFlowClient extends BaseClient {
7486
7581
  }
7487
7582
  }
7488
7583
 
7489
- /*! @azure/msal-common v15.14.2 2026-02-10 */
7584
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
7490
7585
 
7491
7586
  /*
7492
7587
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7599,14 +7694,17 @@ function getStandardAuthorizeRequestParameters(authOptions, request, logger, per
7599
7694
  if (request.state) {
7600
7695
  addState(parameters, request.state);
7601
7696
  }
7602
- if (request.claims ||
7603
- (authOptions.clientCapabilities &&
7604
- authOptions.clientCapabilities.length > 0)) {
7605
- addClaims(parameters, request.claims, authOptions.clientCapabilities);
7606
- }
7607
7697
  if (request.embeddedClientId) {
7608
7698
  addBrokerParameters(parameters, authOptions.clientId, authOptions.redirectUri);
7609
7699
  }
7700
+ // ignore config claims if skipBrokerClaims is set to true and this is a brokered authentication flow
7701
+ const configClaims = request.skipBrokerClaims &&
7702
+ parameters.has(BROKER_CLIENT_ID)
7703
+ ? undefined
7704
+ : authOptions.clientCapabilities;
7705
+ if (request.claims || (configClaims && configClaims.length > 0)) {
7706
+ addClaims(parameters, request.claims, configClaims);
7707
+ }
7610
7708
  // If extraQueryParameters includes instance_aware its value will be added when extraQueryParameters are added
7611
7709
  if (authOptions.instanceAware &&
7612
7710
  (!request.extraQueryParameters ||
@@ -7636,7 +7734,7 @@ function extractLoginHint(account) {
7636
7734
  return account.loginHint || account.idTokenClaims?.login_hint || null;
7637
7735
  }
7638
7736
 
7639
- /*! @azure/msal-common v15.14.2 2026-02-10 */
7737
+ /*! @azure/msal-common v15.16.1 2026-03-13 */
7640
7738
 
7641
7739
  /*
7642
7740
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8277,7 +8375,7 @@ class NetworkUtils {
8277
8375
 
8278
8376
  /* eslint-disable header/header */
8279
8377
  const name = "@azure/msal-node";
8280
- const version = "3.8.7";
8378
+ const version = "3.8.9";
8281
8379
 
8282
8380
  /*
8283
8381
  * Copyright (c) Microsoft Corporation. All rights reserved.