@azure/msal-node 7.1.0 → 7.1.2

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 (56) hide show
  1. package/dist/cache/CacheHelpers.mjs +1 -1
  2. package/dist/cache/NodeStorage.mjs +1 -1
  3. package/dist/cache/TokenCache.mjs +1 -1
  4. package/dist/cache/distributed/DistributedCachePlugin.mjs +1 -1
  5. package/dist/cache/serializer/Deserializer.mjs +1 -1
  6. package/dist/cache/serializer/Serializer.mjs +1 -1
  7. package/dist/client/BaseClient.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/SilentRequestCoalescer.mjs +1 -1
  25. package/dist/client/UserFederatedIdentityCredentialClient.mjs +1 -1
  26. package/dist/client/UsernamePasswordClient.mjs +1 -1
  27. package/dist/config/Configuration.mjs +1 -1
  28. package/dist/config/ManagedIdentityId.mjs +1 -1
  29. package/dist/config/ManagedIdentityRequestParameters.mjs +1 -1
  30. package/dist/crypto/CryptoProvider.mjs +1 -1
  31. package/dist/crypto/GuidGenerator.mjs +1 -1
  32. package/dist/crypto/HashUtils.mjs +1 -1
  33. package/dist/crypto/PkceGenerator.mjs +1 -1
  34. package/dist/error/ClientAuthErrorCodes.mjs +1 -1
  35. package/dist/error/ManagedIdentityError.mjs +1 -1
  36. package/dist/error/ManagedIdentityErrorCodes.mjs +1 -1
  37. package/dist/error/NodeAuthError.mjs +1 -1
  38. package/dist/index.mjs +1 -1
  39. package/dist/internals.mjs +1 -1
  40. package/dist/network/HttpClient.mjs +1 -1
  41. package/dist/network/HttpClientWithRetries.mjs +1 -1
  42. package/dist/network/LoopbackClient.mjs +1 -1
  43. package/dist/packageMetadata.mjs +2 -2
  44. package/dist/protocol/Authorize.mjs +1 -1
  45. package/dist/retry/DefaultManagedIdentityRetryPolicy.mjs +1 -1
  46. package/dist/retry/ExponentialRetryStrategy.mjs +1 -1
  47. package/dist/retry/ImdsRetryPolicy.mjs +1 -1
  48. package/dist/retry/LinearRetryStrategy.mjs +1 -1
  49. package/dist/utils/Constants.mjs +1 -1
  50. package/dist/utils/EncodingUtils.mjs +1 -1
  51. package/dist/utils/TimeUtils.mjs +1 -1
  52. package/lib/msal-node.cjs +167 -87
  53. package/lib/msal-node.cjs.map +1 -1
  54. package/package.json +2 -2
  55. package/src/packageMetadata.ts +1 -1
  56. package/types/packageMetadata.d.ts +1 -1
package/lib/msal-node.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v7.1.0 2026-10-13 */
1
+ /*! @azure/msal-node v7.1.2 2026-10-27 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
@@ -151,7 +151,7 @@ class Serializer {
151
151
  }
152
152
  }
153
153
 
154
- /*! @azure/msal-common v16.14.2 2026-10-13 */
154
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
155
155
  /*
156
156
  * Copyright (c) Microsoft Corporation. All rights reserved.
157
157
  * Licensed under the MIT License.
@@ -207,9 +207,15 @@ const USER_FEDERATED_IDENTITY_CREDENTIAL = "user_federated_identity_credential";
207
207
  const USERNAME = "username";
208
208
  const USER_ID = "user_id";
209
209
  const FMI_PATH = "fmi_path";
210
- const ATTRIBUTE_TOKENS = "attribute_tokens";
210
+ const ATTRIBUTE_TOKENS = "attribute_tokens";
211
+ /**
212
+ * Popup-origin-check-done. Signals to the STS that the client verified the
213
+ * popup cannot be reached by an untrusted window, so the
214
+ * Cross-Origin-Opener-Policy response header may be omitted.
215
+ */
216
+ const POPUP_ORIGIN_CHECK_DONE = "pocd";
211
217
 
212
- /*! @azure/msal-common v16.14.2 2026-10-13 */
218
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
213
219
  /*
214
220
  * Copyright (c) Microsoft Corporation. All rights reserved.
215
221
  * Licensed under the MIT License.
@@ -467,7 +473,7 @@ const EncodingTypes = {
467
473
  UTF8: "utf-8",
468
474
  };
469
475
 
470
- /*! @azure/msal-common v16.14.2 2026-10-13 */
476
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
471
477
  /*
472
478
  * Copyright (c) Microsoft Corporation. All rights reserved.
473
479
  * Licensed under the MIT License.
@@ -496,7 +502,7 @@ function createAuthError(code, correlationId, additionalMessage) {
496
502
  return new AuthError(code, correlationId, additionalMessage || getDefaultErrorMessage(code));
497
503
  }
498
504
 
499
- /*! @azure/msal-common v16.14.2 2026-10-13 */
505
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
500
506
 
501
507
  /*
502
508
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -519,7 +525,7 @@ function createClientAuthError(errorCode, correlationId, additionalMessage) {
519
525
  return new ClientAuthError(errorCode, correlationId, additionalMessage);
520
526
  }
521
527
 
522
- /*! @azure/msal-common v16.14.2 2026-10-13 */
528
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
523
529
  /*
524
530
  * Copyright (c) Microsoft Corporation. All rights reserved.
525
531
  * Licensed under the MIT License.
@@ -605,7 +611,7 @@ var ClientAuthErrorCodes = /*#__PURE__*/Object.freeze({
605
611
  userCanceled: userCanceled
606
612
  });
607
613
 
608
- /*! @azure/msal-common v16.14.2 2026-10-13 */
614
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
609
615
 
610
616
  /*
611
617
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -643,7 +649,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
643
649
  };
644
650
  }
645
651
 
646
- /*! @azure/msal-common v16.14.2 2026-10-13 */
652
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
647
653
 
648
654
  /*
649
655
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -709,7 +715,7 @@ function getJWSPayload(authToken, correlationId) {
709
715
  return matches[2];
710
716
  }
711
717
 
712
- /*! @azure/msal-common v16.14.2 2026-10-13 */
718
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
713
719
 
714
720
  /*
715
721
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -797,7 +803,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
797
803
  return updatedAccountInfo;
798
804
  }
799
805
 
800
- /*! @azure/msal-common v16.14.2 2026-10-13 */
806
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
801
807
  /*
802
808
  * Copyright (c) Microsoft Corporation. All rights reserved.
803
809
  * Licensed under the MIT License.
@@ -811,7 +817,7 @@ const AuthorityType = {
811
817
  Ciam: 3,
812
818
  };
813
819
 
814
- /*! @azure/msal-common v16.14.2 2026-10-13 */
820
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
815
821
  /*
816
822
  * Copyright (c) Microsoft Corporation. All rights reserved.
817
823
  * Licensed under the MIT License.
@@ -833,7 +839,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
833
839
  return null;
834
840
  }
835
841
 
836
- /*! @azure/msal-common v16.14.2 2026-10-13 */
842
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
837
843
  /*
838
844
  * Copyright (c) Microsoft Corporation. All rights reserved.
839
845
  * Licensed under the MIT License.
@@ -857,7 +863,7 @@ const ProtocolMode = {
857
863
  EAR: "EAR",
858
864
  };
859
865
 
860
- /*! @azure/msal-common v16.14.2 2026-10-13 */
866
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
861
867
  /**
862
868
  * Returns the AccountInfo interface for this account.
863
869
  * @internal
@@ -1006,7 +1012,7 @@ function isAccountEntity(entity) {
1006
1012
  entity.hasOwnProperty("authorityType"));
1007
1013
  }
1008
1014
 
1009
- /*! @azure/msal-common v16.14.2 2026-10-13 */
1015
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
1010
1016
  /*
1011
1017
  * Copyright (c) Microsoft Corporation. All rights reserved.
1012
1018
  * Licensed under the MIT License.
@@ -1023,7 +1029,7 @@ var AuthErrorCodes = /*#__PURE__*/Object.freeze({
1023
1029
  unexpectedError: unexpectedError
1024
1030
  });
1025
1031
 
1026
- /*! @azure/msal-common v16.14.2 2026-10-13 */
1032
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
1027
1033
 
1028
1034
  /*
1029
1035
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1043,7 +1049,47 @@ function createClientConfigurationError(errorCode, correlationId) {
1043
1049
  return new ClientConfigurationError(errorCode, correlationId);
1044
1050
  }
1045
1051
 
1046
- /*! @azure/msal-common v16.14.2 2026-10-13 */
1052
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
1053
+ /*
1054
+ * Copyright (c) Microsoft Corporation. All rights reserved.
1055
+ * Licensed under the MIT License.
1056
+ */
1057
+ // Track only our normalized copies, never caller-owned mutable inputs.
1058
+ const normalizedHeaderRecords = new WeakSet();
1059
+ /**
1060
+ * Creates a lowercase-keyed snapshot without changing header values or the input.
1061
+ * Reuses snapshots produced by this function to avoid repeated normalization.
1062
+ * @internal
1063
+ */
1064
+ function normalizeResponseHeaders(headers) {
1065
+ if (normalizedHeaderRecords.has(headers)) {
1066
+ return headers;
1067
+ }
1068
+ const normalized = Object.fromEntries(Object.entries(headers).map(([name, value]) => [
1069
+ name.toLowerCase(),
1070
+ value,
1071
+ ]));
1072
+ normalizedHeaderRecords.add(normalized);
1073
+ return normalized;
1074
+ }
1075
+ /**
1076
+ * Reads a response header case-insensitively.
1077
+ * Normalized snapshots are never scanned, even when a header is missing.
1078
+ * @internal
1079
+ */
1080
+ function getResponseHeader(headers, name) {
1081
+ const key = name.toLowerCase();
1082
+ if (Object.prototype.hasOwnProperty.call(headers, key)) {
1083
+ return headers[key];
1084
+ }
1085
+ if (normalizedHeaderRecords.has(headers)) {
1086
+ return undefined;
1087
+ }
1088
+ const headerName = Object.keys(headers).find((header) => header.toLowerCase() === key);
1089
+ return headerName === undefined ? undefined : headers[headerName];
1090
+ }
1091
+
1092
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
1047
1093
  /*
1048
1094
  * Copyright (c) Microsoft Corporation. All rights reserved.
1049
1095
  * Licensed under the MIT License.
@@ -1113,7 +1159,7 @@ var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
1113
1159
  urlParseError: urlParseError
1114
1160
  });
1115
1161
 
1116
- /*! @azure/msal-common v16.14.2 2026-10-13 */
1162
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
1117
1163
  /*
1118
1164
  * Copyright (c) Microsoft Corporation. All rights reserved.
1119
1165
  * Licensed under the MIT License.
@@ -1125,7 +1171,7 @@ function isOpenIdConfigResponse(response) {
1125
1171
  response.hasOwnProperty("jwks_uri"));
1126
1172
  }
1127
1173
 
1128
- /*! @azure/msal-common v16.14.2 2026-10-13 */
1174
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
1129
1175
  /*
1130
1176
  * Copyright (c) Microsoft Corporation. All rights reserved.
1131
1177
  * Licensed under the MIT License.
@@ -1205,7 +1251,7 @@ class StringUtils {
1205
1251
  }
1206
1252
  }
1207
1253
 
1208
- /*! @azure/msal-common v16.14.2 2026-10-13 */
1254
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
1209
1255
 
1210
1256
  /*
1211
1257
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1363,7 +1409,7 @@ class UrlString {
1363
1409
  }
1364
1410
  }
1365
1411
 
1366
- /*! @azure/msal-common v16.14.2 2026-10-13 */
1412
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
1367
1413
 
1368
1414
  /*
1369
1415
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1517,7 +1563,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
1517
1563
  return null;
1518
1564
  }
1519
1565
 
1520
- /*! @azure/msal-common v16.14.2 2026-10-13 */
1566
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
1521
1567
  /*
1522
1568
  * Copyright (c) Microsoft Corporation. All rights reserved.
1523
1569
  * Licensed under the MIT License.
@@ -1535,7 +1581,7 @@ const AzureCloudInstance = {
1535
1581
  AzureUsGovernment: "https://login.microsoftonline.us",
1536
1582
  };
1537
1583
 
1538
- /*! @azure/msal-common v16.14.2 2026-10-13 */
1584
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
1539
1585
  /*
1540
1586
  * Copyright (c) Microsoft Corporation. All rights reserved.
1541
1587
  * Licensed under the MIT License.
@@ -1545,7 +1591,7 @@ function isCloudInstanceDiscoveryResponse(response) {
1545
1591
  response.hasOwnProperty("metadata"));
1546
1592
  }
1547
1593
 
1548
- /*! @azure/msal-common v16.14.2 2026-10-13 */
1594
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
1549
1595
  /*
1550
1596
  * Copyright (c) Microsoft Corporation. All rights reserved.
1551
1597
  * Licensed under the MIT License.
@@ -1555,7 +1601,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
1555
1601
  response.hasOwnProperty("error_description"));
1556
1602
  }
1557
1603
 
1558
- /*! @azure/msal-common v16.14.2 2026-10-13 */
1604
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
1559
1605
  /*
1560
1606
  * Copyright (c) Microsoft Corporation. All rights reserved.
1561
1607
  * Licensed under the MIT License.
@@ -1617,7 +1663,7 @@ const RegionDiscoveryGetCurrentVersion = "regionDiscoveryGetCurrentVersion";
1617
1663
  */
1618
1664
  const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken";
1619
1665
 
1620
- /*! @azure/msal-common v16.14.2 2026-10-13 */
1666
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
1621
1667
  /*
1622
1668
  * Copyright (c) Microsoft Corporation. All rights reserved.
1623
1669
  * Licensed under the MIT License.
@@ -1710,7 +1756,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
1710
1756
  };
1711
1757
  };
1712
1758
 
1713
- /*! @azure/msal-common v16.14.2 2026-10-13 */
1759
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
1714
1760
 
1715
1761
  /*
1716
1762
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1821,7 +1867,7 @@ RegionDiscovery.IMDS_OPTIONS = {
1821
1867
  },
1822
1868
  };
1823
1869
 
1824
- /*! @azure/msal-common v16.14.2 2026-10-13 */
1870
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
1825
1871
  /*
1826
1872
  * Copyright (c) Microsoft Corporation. All rights reserved.
1827
1873
  * Licensed under the MIT License.
@@ -1876,7 +1922,7 @@ function delay(t, value) {
1876
1922
  return new Promise((resolve) => setTimeout(() => resolve(value), t));
1877
1923
  }
1878
1924
 
1879
- /*! @azure/msal-common v16.14.2 2026-10-13 */
1925
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
1880
1926
 
1881
1927
  /*
1882
1928
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2163,7 +2209,7 @@ function serializeAttributeTokens(attributeTokens) {
2163
2209
  return [...attributeTokens].sort().join(" ");
2164
2210
  }
2165
2211
 
2166
- /*! @azure/msal-common v16.14.2 2026-10-13 */
2212
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
2167
2213
 
2168
2214
  /*
2169
2215
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3131,7 +3177,7 @@ function buildStaticAuthorityOptions(authOptions) {
3131
3177
  };
3132
3178
  }
3133
3179
 
3134
- /*! @azure/msal-common v16.14.2 2026-10-13 */
3180
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
3135
3181
 
3136
3182
  /*
3137
3183
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3165,7 +3211,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
3165
3211
  }
3166
3212
  }
3167
3213
 
3168
- /*! @azure/msal-common v16.14.2 2026-10-13 */
3214
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
3169
3215
 
3170
3216
  /*
3171
3217
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3361,7 +3407,7 @@ class ScopeSet {
3361
3407
  }
3362
3408
  }
3363
3409
 
3364
- /*! @azure/msal-common v16.14.2 2026-10-13 */
3410
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
3365
3411
 
3366
3412
  /*
3367
3413
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3657,6 +3703,20 @@ function addInstanceAware(parameters) {
3657
3703
  parameters.set(INSTANCE_AWARE, "true");
3658
3704
  }
3659
3705
  }
3706
+ /**
3707
+ * Adds `pocd=1`, telling the STS that the client verified the popup driving
3708
+ * this request cannot be reached by an untrusted window, so the
3709
+ * Cross-Origin-Opener-Policy response header may be omitted.
3710
+ *
3711
+ * Only ever added when the check passed — a negative result is signalled by
3712
+ * omitting the parameter, which keeps the STS default (apply COOP) and stays
3713
+ * compatible with library versions that never send it.
3714
+ */
3715
+ function addPopupOriginCheckDone(parameters) {
3716
+ if (!parameters.has(POPUP_ORIGIN_CHECK_DONE)) {
3717
+ parameters.set(POPUP_ORIGIN_CHECK_DONE, "1");
3718
+ }
3719
+ }
3660
3720
  /**
3661
3721
  * Add extraParameters
3662
3722
  * @param extraParams - String dictionary containing extra parameters to be added.
@@ -3865,7 +3925,7 @@ function addAttributeTokens(parameters, attributeTokens) {
3865
3925
  }
3866
3926
  }
3867
3927
 
3868
- /*! @azure/msal-common v16.14.2 2026-10-13 */
3928
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
3869
3929
 
3870
3930
  /*
3871
3931
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3886,7 +3946,8 @@ function stripLeadingHashOrQuery(responseString) {
3886
3946
  return responseString;
3887
3947
  }
3888
3948
  /**
3889
- * Returns URL hash as server auth code response object.
3949
+ * Returns flat fragment or query parameters as an authorization response.
3950
+ * Application routes and unrecognized responses return null.
3890
3951
  */
3891
3952
  function getDeserializedResponse(responseString) {
3892
3953
  // Check if given hash is empty
@@ -3896,7 +3957,15 @@ function getDeserializedResponse(responseString) {
3896
3957
  try {
3897
3958
  // Strip the # or ? symbol if present
3898
3959
  const normalizedResponse = stripLeadingHashOrQuery(responseString);
3899
- // If # symbol was not present, above will return empty string, so give original hash value
3960
+ /*
3961
+ * Require a flat parameter name, not an application route.
3962
+ * Reject routes like #/dashboard?tab=orders&code=... and
3963
+ * #/dashboard/orders&state=..., where ?, /, or # appears before
3964
+ * the first = or &. These characters are allowed in parameter values.
3965
+ */
3966
+ if (!/^[^=&?#/]+(?:=|&|$)/.test(normalizedResponse)) {
3967
+ return null;
3968
+ }
3900
3969
  const deserializedHash = Object.fromEntries(new URLSearchParams(normalizedResponse));
3901
3970
  // Check for known response properties
3902
3971
  if (deserializedHash.code ||
@@ -3923,7 +3992,7 @@ function mapToQueryString(parameters) {
3923
3992
  return queryParameterArray.join("&");
3924
3993
  }
3925
3994
 
3926
- /*! @azure/msal-common v16.14.2 2026-10-13 */
3995
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
3927
3996
 
3928
3997
  /*
3929
3998
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3971,7 +4040,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
3971
4040
  },
3972
4041
  };
3973
4042
 
3974
- /*! @azure/msal-common v16.14.2 2026-10-13 */
4043
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
3975
4044
 
3976
4045
  /*
3977
4046
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3994,7 +4063,7 @@ const DEFAULT_TOKEN_BINDING_KEY_MANAGER = {
3994
4063
  },
3995
4064
  };
3996
4065
 
3997
- /*! @azure/msal-common v16.14.2 2026-10-13 */
4066
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
3998
4067
  /*
3999
4068
  * Copyright (c) Microsoft Corporation. All rights reserved.
4000
4069
  * Licensed under the MIT License.
@@ -4269,12 +4338,12 @@ class Logger {
4269
4338
  }
4270
4339
  }
4271
4340
 
4272
- /*! @azure/msal-common v16.14.2 2026-10-13 */
4341
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
4273
4342
  /* eslint-disable header/header */
4274
4343
  const name$1 = "@azure/msal-common";
4275
- const version$1 = "16.14.2";
4344
+ const version$1 = "16.15.0";
4276
4345
 
4277
- /*! @azure/msal-common v16.14.2 2026-10-13 */
4346
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
4278
4347
  /*
4279
4348
  * Copyright (c) Microsoft Corporation. All rights reserved.
4280
4349
  * Licensed under the MIT License.
@@ -4282,7 +4351,7 @@ const version$1 = "16.14.2";
4282
4351
  const cacheQuotaExceeded = "cache_quota_exceeded";
4283
4352
  const cacheErrorUnknown = "cache_error_unknown";
4284
4353
 
4285
- /*! @azure/msal-common v16.14.2 2026-10-13 */
4354
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
4286
4355
 
4287
4356
  /*
4288
4357
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4320,7 +4389,7 @@ function createCacheError(e) {
4320
4389
  }
4321
4390
  }
4322
4391
 
4323
- /*! @azure/msal-common v16.14.2 2026-10-13 */
4392
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
4324
4393
 
4325
4394
  /*
4326
4395
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5507,7 +5576,7 @@ class DefaultStorageClass extends CacheManager {
5507
5576
  }
5508
5577
  }
5509
5578
 
5510
- /*! @azure/msal-common v16.14.2 2026-10-13 */
5579
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
5511
5580
  /*
5512
5581
  * Copyright (c) Microsoft Corporation. All rights reserved.
5513
5582
  * Licensed under the MIT License.
@@ -5521,7 +5590,7 @@ class DefaultStorageClass extends CacheManager {
5521
5590
  const PerformanceEventStatus = {
5522
5591
  InProgress: 1};
5523
5592
 
5524
- /*! @azure/msal-common v16.14.2 2026-10-13 */
5593
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
5525
5594
 
5526
5595
  /*
5527
5596
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5579,7 +5648,7 @@ class StubPerformanceClient {
5579
5648
  }
5580
5649
  }
5581
5650
 
5582
- /*! @azure/msal-common v16.14.2 2026-10-13 */
5651
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
5583
5652
 
5584
5653
  /*
5585
5654
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5677,7 +5746,7 @@ function isOidcProtocolMode(config) {
5677
5746
  return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
5678
5747
  }
5679
5748
 
5680
- /*! @azure/msal-common v16.14.2 2026-10-13 */
5749
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
5681
5750
  /*
5682
5751
  * Copyright (c) Microsoft Corporation. All rights reserved.
5683
5752
  * Licensed under the MIT License.
@@ -5704,7 +5773,7 @@ function isOidcProtocolMode(config) {
5704
5773
  }
5705
5774
  }
5706
5775
 
5707
- /*! @azure/msal-common v16.14.2 2026-10-13 */
5776
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
5708
5777
 
5709
5778
  /*
5710
5779
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5725,7 +5794,7 @@ function createJoseHeaderError(code, correlationId) {
5725
5794
  return new JoseHeaderError(code, correlationId);
5726
5795
  }
5727
5796
 
5728
- /*! @azure/msal-common v16.14.2 2026-10-13 */
5797
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
5729
5798
  /*
5730
5799
  * Copyright (c) Microsoft Corporation. All rights reserved.
5731
5800
  * Licensed under the MIT License.
@@ -5750,7 +5819,7 @@ function isPlainObject(value) {
5750
5819
  return Object.getPrototypeOf(value) === proto;
5751
5820
  }
5752
5821
 
5753
- /*! @azure/msal-common v16.14.2 2026-10-13 */
5822
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
5754
5823
  /*
5755
5824
  * Copyright (c) Microsoft Corporation. All rights reserved.
5756
5825
  * Licensed under the MIT License.
@@ -5760,7 +5829,7 @@ const missingAlgError = "missing_alg_error";
5760
5829
  const missingJwkError = "missing_jwk_error";
5761
5830
  const invalidJwkError = "invalid_jwk_error";
5762
5831
 
5763
- /*! @azure/msal-common v16.14.2 2026-10-13 */
5832
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
5764
5833
 
5765
5834
  /*
5766
5835
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5826,7 +5895,7 @@ class JoseHeader {
5826
5895
  }
5827
5896
  }
5828
5897
 
5829
- /*! @azure/msal-common v16.14.2 2026-10-13 */
5898
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
5830
5899
 
5831
5900
  /*
5832
5901
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5927,7 +5996,7 @@ class PopTokenGenerator {
5927
5996
  }
5928
5997
  }
5929
5998
 
5930
- /*! @azure/msal-common v16.14.2 2026-10-13 */
5999
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
5931
6000
 
5932
6001
  /*
5933
6002
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6072,7 +6141,7 @@ class DpopProofGenerator {
6072
6141
  }
6073
6142
  }
6074
6143
 
6075
- /*! @azure/msal-common v16.14.2 2026-10-13 */
6144
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
6076
6145
  /*
6077
6146
  * Copyright (c) Microsoft Corporation. All rights reserved.
6078
6147
  * Licensed under the MIT License.
@@ -6136,7 +6205,7 @@ var InteractionRequiredAuthErrorCodes = /*#__PURE__*/Object.freeze({
6136
6205
  uiNotAllowed: uiNotAllowed
6137
6206
  });
6138
6207
 
6139
- /*! @azure/msal-common v16.14.2 2026-10-13 */
6208
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
6140
6209
 
6141
6210
  /*
6142
6211
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6203,7 +6272,7 @@ function createInteractionRequiredAuthError(errorCode, correlationId, errorMessa
6203
6272
  return new InteractionRequiredAuthError(errorCode, correlationId, errorMessage);
6204
6273
  }
6205
6274
 
6206
- /*! @azure/msal-common v16.14.2 2026-10-13 */
6275
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
6207
6276
 
6208
6277
  /*
6209
6278
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6222,7 +6291,7 @@ class ServerError extends AuthError {
6222
6291
  }
6223
6292
  }
6224
6293
 
6225
- /*! @azure/msal-common v16.14.2 2026-10-13 */
6294
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
6226
6295
  /**
6227
6296
  * Parses the state into the RequestStateObject, which contains the LibraryState info and the state passed by the user.
6228
6297
  * @param base64Decode
@@ -6255,7 +6324,7 @@ function parseRequestState(base64Decode, state, correlationId) {
6255
6324
  }
6256
6325
  }
6257
6326
 
6258
- /*! @azure/msal-common v16.14.2 2026-10-13 */
6327
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
6259
6328
 
6260
6329
  /*
6261
6330
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6683,7 +6752,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
6683
6752
  return baseAccount;
6684
6753
  }
6685
6754
 
6686
- /*! @azure/msal-common v16.14.2 2026-10-13 */
6755
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
6687
6756
  /*
6688
6757
  * Copyright (c) Microsoft Corporation. All rights reserved.
6689
6758
  * Licensed under the MIT License.
@@ -6693,7 +6762,7 @@ const CcsCredentialType = {
6693
6762
  UPN: "UPN",
6694
6763
  };
6695
6764
 
6696
- /*! @azure/msal-common v16.14.2 2026-10-13 */
6765
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
6697
6766
  /*
6698
6767
  * Copyright (c) Microsoft Corporation. All rights reserved.
6699
6768
  * Licensed under the MIT License.
@@ -6712,7 +6781,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint, fmiP
6712
6781
  }
6713
6782
  }
6714
6783
 
6715
- /*! @azure/msal-common v16.14.2 2026-10-13 */
6784
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
6716
6785
 
6717
6786
  /*
6718
6787
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6736,7 +6805,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
6736
6805
  };
6737
6806
  }
6738
6807
 
6739
- /*! @azure/msal-common v16.14.2 2026-10-13 */
6808
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
6740
6809
 
6741
6810
  /*
6742
6811
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6771,13 +6840,14 @@ class ThrottlingUtils {
6771
6840
  * Performs necessary throttling checks after a network request.
6772
6841
  * @param cacheManager
6773
6842
  * @param thumbprint
6774
- * @param response
6843
+ * @param response - Token response with case-insensitive header names.
6775
6844
  */
6776
6845
  static postProcess(cacheManager, thumbprint, response, correlationId) {
6846
+ const retryAfter = getRetryAfterHeader(response);
6777
6847
  if (ThrottlingUtils.checkResponseStatus(response) ||
6778
- ThrottlingUtils.checkResponseForRetryAfter(response)) {
6848
+ retryAfter !== undefined) {
6779
6849
  const thumbprintValue = {
6780
- throttleTime: ThrottlingUtils.calculateThrottleTime(parseInt(response.headers[HeaderNames.RETRY_AFTER])),
6850
+ throttleTime: ThrottlingUtils.calculateThrottleTime(parseInt(retryAfter || "")),
6781
6851
  error: response.body.error,
6782
6852
  errorCodes: response.body.error_codes,
6783
6853
  errorMessage: response.body.error_description,
@@ -6796,14 +6866,10 @@ class ThrottlingUtils {
6796
6866
  }
6797
6867
  /**
6798
6868
  * Checks a NetworkResponse object's RetryAfter header
6799
- * @param response
6869
+ * @param response - Token response with case-insensitive header names.
6800
6870
  */
6801
6871
  static checkResponseForRetryAfter(response) {
6802
- if (response.headers) {
6803
- return (response.headers.hasOwnProperty(HeaderNames.RETRY_AFTER) &&
6804
- (response.status < 200 || response.status >= 300));
6805
- }
6806
- return false;
6872
+ return getRetryAfterHeader(response) !== undefined;
6807
6873
  }
6808
6874
  /**
6809
6875
  * Calculates the Unix-time value for a throttle to expire given throttleTime in seconds.
@@ -6820,9 +6886,16 @@ class ThrottlingUtils {
6820
6886
  const key = this.generateThrottlingStorageKey(thumbprint);
6821
6887
  cacheManager.removeItem(key, request.correlationId);
6822
6888
  }
6889
+ }
6890
+ /** Reads Retry-After only for non-success responses. */
6891
+ function getRetryAfterHeader(response) {
6892
+ if ((response.status < 200 || response.status >= 300) && response.headers) {
6893
+ return getResponseHeader(response.headers, HeaderNames.RETRY_AFTER);
6894
+ }
6895
+ return undefined;
6823
6896
  }
6824
6897
 
6825
- /*! @azure/msal-common v16.14.2 2026-10-13 */
6898
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
6826
6899
 
6827
6900
  /*
6828
6901
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6853,7 +6926,7 @@ function createNetworkError(error, httpStatus, responseHeaders, additionalError)
6853
6926
  return new NetworkError(error, httpStatus, responseHeaders);
6854
6927
  }
6855
6928
 
6856
- /*! @azure/msal-common v16.14.2 2026-10-13 */
6929
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
6857
6930
 
6858
6931
  /*
6859
6932
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6951,7 +7024,8 @@ async function sendPostRequest(thumbprint, tokenEndpoint, options, correlationId
6951
7024
  let response;
6952
7025
  try {
6953
7026
  response = await invokeAsync((networkClient.sendPostRequestAsync.bind(networkClient)), NetworkClientSendPostRequestAsync, logger, performanceClient, correlationId)(tokenEndpoint, { ...options, correlationId, performanceClient });
6954
- const responseHeaders = response.headers || {};
7027
+ const responseHeaders = normalizeResponseHeaders(response.headers || {});
7028
+ response = { ...response, headers: responseHeaders };
6955
7029
  performanceClient?.addFields({
6956
7030
  refreshTokenSize: response.body.refresh_token?.length || 0,
6957
7031
  httpVerToken: responseHeaders[HeaderNames.X_MS_HTTP_VERSION] || "",
@@ -6960,16 +7034,16 @@ async function sendPostRequest(thumbprint, tokenEndpoint, options, correlationId
6960
7034
  }
6961
7035
  catch (e) {
6962
7036
  if (e instanceof NetworkError) {
6963
- const responseHeaders = e.responseHeaders;
7037
+ const responseHeaders = e.responseHeaders
7038
+ ? normalizeResponseHeaders(e.responseHeaders)
7039
+ : undefined;
6964
7040
  if (responseHeaders) {
6965
7041
  performanceClient?.addFields({
6966
7042
  httpVerToken: responseHeaders[HeaderNames.X_MS_HTTP_VERSION] ||
6967
7043
  "",
6968
7044
  requestId: responseHeaders[HeaderNames.X_MS_REQUEST_ID] || "",
6969
- contentTypeHeader: responseHeaders[HeaderNames.CONTENT_TYPE] ||
6970
- undefined,
6971
- contentLengthHeader: responseHeaders[HeaderNames.CONTENT_LENGTH] ||
6972
- undefined,
7045
+ contentTypeHeader: getResponseHeader(responseHeaders, HeaderNames.CONTENT_TYPE) || undefined,
7046
+ contentLengthHeader: getResponseHeader(responseHeaders, HeaderNames.CONTENT_LENGTH) || undefined,
6973
7047
  httpStatus: e.httpStatus,
6974
7048
  }, correlationId);
6975
7049
  }
@@ -6986,7 +7060,7 @@ async function sendPostRequest(thumbprint, tokenEndpoint, options, correlationId
6986
7060
  return response;
6987
7061
  }
6988
7062
 
6989
- /*! @azure/msal-common v16.14.2 2026-10-13 */
7063
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
6990
7064
 
6991
7065
  /*
6992
7066
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7230,6 +7304,9 @@ class AuthorizationCodeClient {
7230
7304
  if (request.logoutHint) {
7231
7305
  addLogoutHint(parameters, request.logoutHint);
7232
7306
  }
7307
+ if (request.popupOriginCheckDone) {
7308
+ addPopupOriginCheckDone(parameters);
7309
+ }
7233
7310
  if (request.extraQueryParameters) {
7234
7311
  addExtraParameters(parameters, request.extraQueryParameters);
7235
7312
  }
@@ -7250,7 +7327,7 @@ class AuthorizationCodeClient {
7250
7327
  }
7251
7328
  }
7252
7329
 
7253
- /*! @azure/msal-common v16.14.2 2026-10-13 */
7330
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
7254
7331
 
7255
7332
  /*
7256
7333
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7377,6 +7454,9 @@ function getStandardAuthorizeRequestParameters(authOptions, request, logger, per
7377
7454
  !Object.keys(request.extraQueryParameters).includes(INSTANCE_AWARE))) {
7378
7455
  addInstanceAware(parameters);
7379
7456
  }
7457
+ if (request.popupOriginCheckDone) {
7458
+ addPopupOriginCheckDone(parameters);
7459
+ }
7380
7460
  return parameters;
7381
7461
  }
7382
7462
  /**
@@ -7401,7 +7481,7 @@ function extractLoginHint(account) {
7401
7481
  return account.loginHint || account.idTokenClaims?.login_hint || null;
7402
7482
  }
7403
7483
 
7404
- /*! @azure/msal-common v16.14.2 2026-10-13 */
7484
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
7405
7485
 
7406
7486
  /*
7407
7487
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7636,7 +7716,7 @@ class RefreshTokenClient {
7636
7716
  }
7637
7717
  }
7638
7718
 
7639
- /*! @azure/msal-common v16.14.2 2026-10-13 */
7719
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
7640
7720
 
7641
7721
  /*
7642
7722
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7902,7 +7982,7 @@ class ServerTelemetryManager {
7902
7982
  }
7903
7983
  }
7904
7984
 
7905
- /*! @azure/msal-common v16.14.2 2026-10-13 */
7985
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
7906
7986
 
7907
7987
  /*
7908
7988
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8029,7 +8109,7 @@ class SilentFlowClient {
8029
8109
  }
8030
8110
  }
8031
8111
 
8032
- /*! @azure/msal-common v16.14.2 2026-10-13 */
8112
+ /*! @azure/msal-common v16.15.0 2026-10-27 */
8033
8113
 
8034
8114
  /*
8035
8115
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -10079,7 +10159,7 @@ class ClientAssertion {
10079
10159
 
10080
10160
  /* eslint-disable header/header */
10081
10161
  const name = "@azure/msal-node";
10082
- const version = "7.1.0";
10162
+ const version = "7.1.2";
10083
10163
 
10084
10164
  /*
10085
10165
  * Copyright (c) Microsoft Corporation. All rights reserved.