@azure/msal-node 3.8.3 → 3.8.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) 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/ClientApplication.d.ts.map +1 -1
  8. package/dist/client/ClientApplication.mjs +5 -5
  9. package/dist/client/ClientApplication.mjs.map +1 -1
  10. package/dist/client/ClientAssertion.mjs +1 -1
  11. package/dist/client/ClientCredentialClient.d.ts.map +1 -1
  12. package/dist/client/ClientCredentialClient.mjs +3 -2
  13. package/dist/client/ClientCredentialClient.mjs.map +1 -1
  14. package/dist/client/ConfidentialClientApplication.mjs +1 -1
  15. package/dist/client/DeviceCodeClient.d.ts.map +1 -1
  16. package/dist/client/DeviceCodeClient.mjs +3 -2
  17. package/dist/client/DeviceCodeClient.mjs.map +1 -1
  18. package/dist/client/ManagedIdentityApplication.mjs +1 -1
  19. package/dist/client/ManagedIdentityClient.mjs +1 -1
  20. package/dist/client/ManagedIdentitySources/AppService.mjs +1 -1
  21. package/dist/client/ManagedIdentitySources/AzureArc.mjs +1 -1
  22. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +1 -1
  23. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs +3 -3
  24. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs.map +1 -1
  25. package/dist/client/ManagedIdentitySources/CloudShell.mjs +1 -1
  26. package/dist/client/ManagedIdentitySources/Imds.mjs +1 -1
  27. package/dist/client/ManagedIdentitySources/MachineLearning.mjs +1 -1
  28. package/dist/client/ManagedIdentitySources/ServiceFabric.mjs +1 -1
  29. package/dist/client/OnBehalfOfClient.d.ts.map +1 -1
  30. package/dist/client/OnBehalfOfClient.mjs +3 -2
  31. package/dist/client/OnBehalfOfClient.mjs.map +1 -1
  32. package/dist/client/PublicClientApplication.mjs +1 -1
  33. package/dist/client/UsernamePasswordClient.d.ts.map +1 -1
  34. package/dist/client/UsernamePasswordClient.mjs +3 -2
  35. package/dist/client/UsernamePasswordClient.mjs.map +1 -1
  36. package/dist/config/Configuration.mjs +1 -1
  37. package/dist/config/ManagedIdentityId.mjs +1 -1
  38. package/dist/config/ManagedIdentityRequestParameters.mjs +1 -1
  39. package/dist/crypto/CryptoProvider.mjs +1 -1
  40. package/dist/crypto/GuidGenerator.mjs +1 -1
  41. package/dist/crypto/HashUtils.mjs +1 -1
  42. package/dist/crypto/PkceGenerator.mjs +1 -1
  43. package/dist/error/ManagedIdentityError.mjs +1 -1
  44. package/dist/error/ManagedIdentityErrorCodes.mjs +1 -1
  45. package/dist/error/NodeAuthError.mjs +1 -1
  46. package/dist/index.mjs +1 -1
  47. package/dist/internals.mjs +1 -1
  48. package/dist/network/HttpClient.mjs +1 -1
  49. package/dist/network/HttpClientWithRetries.mjs +1 -1
  50. package/dist/network/LoopbackClient.mjs +1 -1
  51. package/dist/packageMetadata.d.ts +1 -1
  52. package/dist/packageMetadata.mjs +2 -2
  53. package/dist/protocol/Authorize.mjs +1 -1
  54. package/dist/retry/DefaultManagedIdentityRetryPolicy.mjs +1 -1
  55. package/dist/retry/ExponentialRetryStrategy.mjs +1 -1
  56. package/dist/retry/ImdsRetryPolicy.mjs +1 -1
  57. package/dist/retry/LinearRetryStrategy.mjs +1 -1
  58. package/dist/utils/Constants.d.ts +2 -0
  59. package/dist/utils/Constants.d.ts.map +1 -1
  60. package/dist/utils/Constants.mjs +3 -1
  61. package/dist/utils/Constants.mjs.map +1 -1
  62. package/dist/utils/EncodingUtils.mjs +1 -1
  63. package/dist/utils/NetworkUtils.mjs +1 -1
  64. package/dist/utils/TimeUtils.mjs +1 -1
  65. package/lib/msal-node.cjs +114 -92
  66. package/lib/msal-node.cjs.map +1 -1
  67. package/lib/types/client/ClientApplication.d.ts.map +1 -1
  68. package/lib/types/client/ClientCredentialClient.d.ts.map +1 -1
  69. package/lib/types/client/DeviceCodeClient.d.ts.map +1 -1
  70. package/lib/types/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +1 -1
  71. package/lib/types/client/OnBehalfOfClient.d.ts.map +1 -1
  72. package/lib/types/client/UsernamePasswordClient.d.ts.map +1 -1
  73. package/lib/types/packageMetadata.d.ts +1 -1
  74. package/lib/types/utils/Constants.d.ts +2 -0
  75. package/lib/types/utils/Constants.d.ts.map +1 -1
  76. package/package.json +2 -2
  77. package/src/client/ClientApplication.ts +9 -3
  78. package/src/client/ClientCredentialClient.ts +3 -1
  79. package/src/client/DeviceCodeClient.ts +3 -1
  80. package/src/client/ManagedIdentitySources/BaseManagedIdentitySource.ts +3 -1
  81. package/src/client/OnBehalfOfClient.ts +2 -0
  82. package/src/client/UsernamePasswordClient.ts +3 -1
  83. package/src/packageMetadata.ts +1 -1
  84. package/src/utils/Constants.ts +2 -0
package/lib/msal-node.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v3.8.3 2025-11-19 */
1
+ /*! @azure/msal-node v3.8.5 2026-01-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.13.2 2025-11-19 */
156
+ /*! @azure/msal-common v15.14.0 2026-01-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.13.2 2025-11-19 */
436
+ /*! @azure/msal-common v15.14.0 2026-01-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.13.2 2025-11-19 */
453
+ /*! @azure/msal-common v15.14.0 2026-01-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.13.2 2025-11-19 */
502
+ /*! @azure/msal-common v15.14.0 2026-01-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.13.2 2025-11-19 */
602
+ /*! @azure/msal-common v15.14.0 2026-01-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.13.2 2025-11-19 */
859
+ /*! @azure/msal-common v15.14.0 2026-01-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.13.2 2025-11-19 */
898
+ /*! @azure/msal-common v15.14.0 2026-01-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.13.2 2025-11-19 */
1089
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
1090
1090
  /* eslint-disable header/header */
1091
1091
  const name$1 = "@azure/msal-common";
1092
- const version$1 = "15.13.2";
1092
+ const version$1 = "15.14.0";
1093
1093
 
1094
- /*! @azure/msal-common v15.13.2 2025-11-19 */
1094
+ /*! @azure/msal-common v15.14.0 2026-01-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.13.2 2025-11-19 */
1114
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
1115
1115
  /*
1116
1116
  * Copyright (c) Microsoft Corporation. All rights reserved.
1117
1117
  * Licensed under the MIT License.
@@ -1138,7 +1138,8 @@ const cannotSetOIDCOptions = "cannot_set_OIDCOptions";
1138
1138
  const cannotAllowPlatformBroker = "cannot_allow_platform_broker";
1139
1139
  const authorityMismatch = "authority_mismatch";
1140
1140
  const invalidRequestMethodForEAR = "invalid_request_method_for_EAR";
1141
- const invalidAuthorizePostBodyParameters = "invalid_authorize_post_body_parameters";
1141
+ const invalidAuthorizePostBodyParameters = "invalid_authorize_post_body_parameters";
1142
+ const invalidPlatformBrokerConfiguration = "invalid_platform_broker_configuration";
1142
1143
 
1143
1144
  var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
1144
1145
  __proto__: null,
@@ -1154,6 +1155,7 @@ var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
1154
1155
  invalidClaims: invalidClaims,
1155
1156
  invalidCloudDiscoveryMetadata: invalidCloudDiscoveryMetadata,
1156
1157
  invalidCodeChallengeMethod: invalidCodeChallengeMethod,
1158
+ invalidPlatformBrokerConfiguration: invalidPlatformBrokerConfiguration,
1157
1159
  invalidRequestMethodForEAR: invalidRequestMethodForEAR,
1158
1160
  logoutRequestEmpty: logoutRequestEmpty,
1159
1161
  missingNonceAuthenticationHeader: missingNonceAuthenticationHeader,
@@ -1167,7 +1169,7 @@ var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
1167
1169
  urlParseError: urlParseError
1168
1170
  });
1169
1171
 
1170
- /*! @azure/msal-common v15.13.2 2025-11-19 */
1172
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
1171
1173
 
1172
1174
  /*
1173
1175
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1197,6 +1199,7 @@ const ClientConfigurationErrorMessages = {
1197
1199
  [authorityMismatch]: "Authority mismatch error. Authority provided in login request or PublicClientApplication config does not match the environment of the provided account. Please use a matching account or make an interactive request to login to this authority.",
1198
1200
  [invalidAuthorizePostBodyParameters]: "Invalid authorize post body parameters provided. If you are using authorizePostBodyParameters, the request method must be POST. Please check the request method and parameters.",
1199
1201
  [invalidRequestMethodForEAR]: "Invalid request method for EAR protocol mode. The request method cannot be GET when using EAR protocol mode. Please change the request method to POST.",
1202
+ [invalidPlatformBrokerConfiguration]: "Invalid platform broker configuration. `allowPlatformBrokerWithDOM` can only be enabled when `allowPlatformBroker` is enabled.",
1200
1203
  };
1201
1204
  /**
1202
1205
  * ClientConfigurationErrorMessage class containing string constants used by error codes and messages.
@@ -1295,6 +1298,10 @@ const ClientConfigurationErrorMessage = {
1295
1298
  code: invalidRequestMethodForEAR,
1296
1299
  desc: ClientConfigurationErrorMessages[invalidRequestMethodForEAR],
1297
1300
  },
1301
+ invalidPlatformBrokerConfiguration: {
1302
+ code: invalidPlatformBrokerConfiguration,
1303
+ desc: ClientConfigurationErrorMessages[invalidPlatformBrokerConfiguration],
1304
+ },
1298
1305
  };
1299
1306
  /**
1300
1307
  * Error thrown when there is an error in configuration of the MSAL.js library.
@@ -1310,7 +1317,7 @@ function createClientConfigurationError(errorCode) {
1310
1317
  return new ClientConfigurationError(errorCode);
1311
1318
  }
1312
1319
 
1313
- /*! @azure/msal-common v15.13.2 2025-11-19 */
1320
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
1314
1321
  /*
1315
1322
  * Copyright (c) Microsoft Corporation. All rights reserved.
1316
1323
  * Licensed under the MIT License.
@@ -1407,7 +1414,7 @@ class StringUtils {
1407
1414
  }
1408
1415
  }
1409
1416
 
1410
- /*! @azure/msal-common v15.13.2 2025-11-19 */
1417
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
1411
1418
 
1412
1419
  /*
1413
1420
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1602,7 +1609,7 @@ class ScopeSet {
1602
1609
  }
1603
1610
  }
1604
1611
 
1605
- /*! @azure/msal-common v15.13.2 2025-11-19 */
1612
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
1606
1613
 
1607
1614
  /*
1608
1615
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1642,7 +1649,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
1642
1649
  };
1643
1650
  }
1644
1651
 
1645
- /*! @azure/msal-common v15.13.2 2025-11-19 */
1652
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
1646
1653
  /*
1647
1654
  * Copyright (c) Microsoft Corporation. All rights reserved.
1648
1655
  * Licensed under the MIT License.
@@ -1724,7 +1731,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
1724
1731
  return updatedAccountInfo;
1725
1732
  }
1726
1733
 
1727
- /*! @azure/msal-common v15.13.2 2025-11-19 */
1734
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
1728
1735
  /*
1729
1736
  * Copyright (c) Microsoft Corporation. All rights reserved.
1730
1737
  * Licensed under the MIT License.
@@ -1739,7 +1746,7 @@ const AuthorityType = {
1739
1746
  Ciam: 3,
1740
1747
  };
1741
1748
 
1742
- /*! @azure/msal-common v15.13.2 2025-11-19 */
1749
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
1743
1750
  /*
1744
1751
  * Copyright (c) Microsoft Corporation. All rights reserved.
1745
1752
  * Licensed under the MIT License.
@@ -1761,7 +1768,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
1761
1768
  return null;
1762
1769
  }
1763
1770
 
1764
- /*! @azure/msal-common v15.13.2 2025-11-19 */
1771
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
1765
1772
  /*
1766
1773
  * Copyright (c) Microsoft Corporation. All rights reserved.
1767
1774
  * Licensed under the MIT License.
@@ -1785,7 +1792,7 @@ const ProtocolMode = {
1785
1792
  EAR: "EAR",
1786
1793
  };
1787
1794
 
1788
- /*! @azure/msal-common v15.13.2 2025-11-19 */
1795
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
1789
1796
 
1790
1797
  /*
1791
1798
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2006,7 +2013,7 @@ class AccountEntity {
2006
2013
  }
2007
2014
  }
2008
2015
 
2009
- /*! @azure/msal-common v15.13.2 2025-11-19 */
2016
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
2010
2017
 
2011
2018
  /*
2012
2019
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2087,7 +2094,7 @@ function checkMaxAge(authTime, maxAge) {
2087
2094
  }
2088
2095
  }
2089
2096
 
2090
- /*! @azure/msal-common v15.13.2 2025-11-19 */
2097
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
2091
2098
  /**
2092
2099
  * Parses hash string from given string. Returns empty string if no hash symbol is found.
2093
2100
  * @param hashString
@@ -2147,7 +2154,7 @@ function mapToQueryString(parameters, encodeExtraParams = true, extraQueryParame
2147
2154
  return queryParameterArray.join("&");
2148
2155
  }
2149
2156
 
2150
- /*! @azure/msal-common v15.13.2 2025-11-19 */
2157
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
2151
2158
 
2152
2159
  /*
2153
2160
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2311,7 +2318,7 @@ class UrlString {
2311
2318
  }
2312
2319
  }
2313
2320
 
2314
- /*! @azure/msal-common v15.13.2 2025-11-19 */
2321
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
2315
2322
 
2316
2323
  /*
2317
2324
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2450,7 +2457,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
2450
2457
  return null;
2451
2458
  }
2452
2459
 
2453
- /*! @azure/msal-common v15.13.2 2025-11-19 */
2460
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
2454
2461
  /*
2455
2462
  * Copyright (c) Microsoft Corporation. All rights reserved.
2456
2463
  * Licensed under the MIT License.
@@ -2458,7 +2465,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
2458
2465
  const cacheQuotaExceeded = "cache_quota_exceeded";
2459
2466
  const cacheErrorUnknown = "cache_error_unknown";
2460
2467
 
2461
- /*! @azure/msal-common v15.13.2 2025-11-19 */
2468
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
2462
2469
 
2463
2470
  /*
2464
2471
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2503,7 +2510,7 @@ function createCacheError(e) {
2503
2510
  }
2504
2511
  }
2505
2512
 
2506
- /*! @azure/msal-common v15.13.2 2025-11-19 */
2513
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
2507
2514
 
2508
2515
  /*
2509
2516
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2673,15 +2680,16 @@ class CacheManager {
2673
2680
  * @param cacheRecord {CacheRecord}
2674
2681
  * @param correlationId {?string} correlation id
2675
2682
  * @param kmsi - Keep Me Signed In
2683
+ * @param apiId - API identifier for telemetry tracking
2676
2684
  * @param storeInCache {?StoreInCache}
2677
2685
  */
2678
- async saveCacheRecord(cacheRecord, correlationId, kmsi, storeInCache) {
2686
+ async saveCacheRecord(cacheRecord, correlationId, kmsi, apiId, storeInCache) {
2679
2687
  if (!cacheRecord) {
2680
2688
  throw createClientAuthError(invalidCacheRecord);
2681
2689
  }
2682
2690
  try {
2683
2691
  if (!!cacheRecord.account) {
2684
- await this.setAccount(cacheRecord.account, correlationId, kmsi);
2692
+ await this.setAccount(cacheRecord.account, correlationId, kmsi, apiId);
2685
2693
  }
2686
2694
  if (!!cacheRecord.idToken && storeInCache?.idToken !== false) {
2687
2695
  await this.setIdTokenCredential(cacheRecord.idToken, correlationId, kmsi);
@@ -3612,7 +3620,7 @@ class DefaultStorageClass extends CacheManager {
3612
3620
  }
3613
3621
  }
3614
3622
 
3615
- /*! @azure/msal-common v15.13.2 2025-11-19 */
3623
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
3616
3624
  /*
3617
3625
  * Copyright (c) Microsoft Corporation. All rights reserved.
3618
3626
  * Licensed under the MIT License.
@@ -3869,6 +3877,11 @@ const PerformanceEvents = {
3869
3877
  Decrypt: "decrypt",
3870
3878
  GenerateEarKey: "generateEarKey",
3871
3879
  DecryptEarResponse: "decryptEarResponse",
3880
+ LoadExternalTokens: "LoadExternalTokens",
3881
+ LoadAccount: "loadAccount",
3882
+ LoadIdToken: "loadIdToken",
3883
+ LoadAccessToken: "loadAccessToken",
3884
+ LoadRefreshToken: "loadRefreshToken",
3872
3885
  };
3873
3886
  /**
3874
3887
  * State of the performance event.
@@ -3879,7 +3892,7 @@ const PerformanceEvents = {
3879
3892
  const PerformanceEventStatus = {
3880
3893
  InProgress: 1};
3881
3894
 
3882
- /*! @azure/msal-common v15.13.2 2025-11-19 */
3895
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
3883
3896
 
3884
3897
  /*
3885
3898
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3958,7 +3971,7 @@ class StubPerformanceClient {
3958
3971
  }
3959
3972
  }
3960
3973
 
3961
- /*! @azure/msal-common v15.13.2 2025-11-19 */
3974
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
3962
3975
 
3963
3976
  /*
3964
3977
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4058,7 +4071,7 @@ function isOidcProtocolMode(config) {
4058
4071
  return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
4059
4072
  }
4060
4073
 
4061
- /*! @azure/msal-common v15.13.2 2025-11-19 */
4074
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
4062
4075
  /*
4063
4076
  * Copyright (c) Microsoft Corporation. All rights reserved.
4064
4077
  * Licensed under the MIT License.
@@ -4068,7 +4081,7 @@ const CcsCredentialType = {
4068
4081
  UPN: "UPN",
4069
4082
  };
4070
4083
 
4071
- /*! @azure/msal-common v15.13.2 2025-11-19 */
4084
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
4072
4085
  /*
4073
4086
  * Copyright (c) Microsoft Corporation. All rights reserved.
4074
4087
  * Licensed under the MIT License.
@@ -4119,7 +4132,7 @@ const BROKER_CLIENT_ID = "brk_client_id";
4119
4132
  const BROKER_REDIRECT_URI = "brk_redirect_uri";
4120
4133
  const INSTANCE_AWARE = "instance_aware";
4121
4134
 
4122
- /*! @azure/msal-common v15.13.2 2025-11-19 */
4135
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
4123
4136
 
4124
4137
  /*
4125
4138
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4505,7 +4518,7 @@ function addBrokerParameters(parameters, brokerClientId, brokerRedirectUri) {
4505
4518
  }
4506
4519
  }
4507
4520
 
4508
- /*! @azure/msal-common v15.13.2 2025-11-19 */
4521
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
4509
4522
  /*
4510
4523
  * Copyright (c) Microsoft Corporation. All rights reserved.
4511
4524
  * Licensed under the MIT License.
@@ -4517,7 +4530,7 @@ function isOpenIdConfigResponse(response) {
4517
4530
  response.hasOwnProperty("jwks_uri"));
4518
4531
  }
4519
4532
 
4520
- /*! @azure/msal-common v15.13.2 2025-11-19 */
4533
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
4521
4534
  /*
4522
4535
  * Copyright (c) Microsoft Corporation. All rights reserved.
4523
4536
  * Licensed under the MIT License.
@@ -4527,7 +4540,7 @@ function isCloudInstanceDiscoveryResponse(response) {
4527
4540
  response.hasOwnProperty("metadata"));
4528
4541
  }
4529
4542
 
4530
- /*! @azure/msal-common v15.13.2 2025-11-19 */
4543
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
4531
4544
  /*
4532
4545
  * Copyright (c) Microsoft Corporation. All rights reserved.
4533
4546
  * Licensed under the MIT License.
@@ -4537,7 +4550,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
4537
4550
  response.hasOwnProperty("error_description"));
4538
4551
  }
4539
4552
 
4540
- /*! @azure/msal-common v15.13.2 2025-11-19 */
4553
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
4541
4554
  /*
4542
4555
  * Copyright (c) Microsoft Corporation. All rights reserved.
4543
4556
  * Licensed under the MIT License.
@@ -4633,7 +4646,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
4633
4646
  };
4634
4647
  };
4635
4648
 
4636
- /*! @azure/msal-common v15.13.2 2025-11-19 */
4649
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
4637
4650
 
4638
4651
  /*
4639
4652
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4739,7 +4752,7 @@ RegionDiscovery.IMDS_OPTIONS = {
4739
4752
  },
4740
4753
  };
4741
4754
 
4742
- /*! @azure/msal-common v15.13.2 2025-11-19 */
4755
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
4743
4756
  /*
4744
4757
  * Copyright (c) Microsoft Corporation. All rights reserved.
4745
4758
  * Licensed under the MIT License.
@@ -4794,7 +4807,7 @@ function delay(t, value) {
4794
4807
  return new Promise((resolve) => setTimeout(() => resolve(value), t));
4795
4808
  }
4796
4809
 
4797
- /*! @azure/msal-common v15.13.2 2025-11-19 */
4810
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
4798
4811
 
4799
4812
  /*
4800
4813
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5056,7 +5069,7 @@ function isAuthorityMetadataExpired(metadata) {
5056
5069
  return metadata.expiresAt <= nowSeconds();
5057
5070
  }
5058
5071
 
5059
- /*! @azure/msal-common v15.13.2 2025-11-19 */
5072
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
5060
5073
 
5061
5074
  /*
5062
5075
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5895,7 +5908,7 @@ function buildStaticAuthorityOptions(authOptions) {
5895
5908
  };
5896
5909
  }
5897
5910
 
5898
- /*! @azure/msal-common v15.13.2 2025-11-19 */
5911
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
5899
5912
 
5900
5913
  /*
5901
5914
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5926,7 +5939,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
5926
5939
  }
5927
5940
  }
5928
5941
 
5929
- /*! @azure/msal-common v15.13.2 2025-11-19 */
5942
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
5930
5943
 
5931
5944
  /*
5932
5945
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5945,7 +5958,7 @@ class ServerError extends AuthError {
5945
5958
  }
5946
5959
  }
5947
5960
 
5948
- /*! @azure/msal-common v15.13.2 2025-11-19 */
5961
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
5949
5962
  /*
5950
5963
  * Copyright (c) Microsoft Corporation. All rights reserved.
5951
5964
  * Licensed under the MIT License.
@@ -5966,7 +5979,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
5966
5979
  };
5967
5980
  }
5968
5981
 
5969
- /*! @azure/msal-common v15.13.2 2025-11-19 */
5982
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
5970
5983
 
5971
5984
  /*
5972
5985
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6053,7 +6066,7 @@ class ThrottlingUtils {
6053
6066
  }
6054
6067
  }
6055
6068
 
6056
- /*! @azure/msal-common v15.13.2 2025-11-19 */
6069
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
6057
6070
 
6058
6071
  /*
6059
6072
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6073,7 +6086,7 @@ class NetworkError extends AuthError {
6073
6086
  }
6074
6087
  }
6075
6088
 
6076
- /*! @azure/msal-common v15.13.2 2025-11-19 */
6089
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
6077
6090
 
6078
6091
  /*
6079
6092
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6221,7 +6234,7 @@ class BaseClient {
6221
6234
  }
6222
6235
  }
6223
6236
 
6224
- /*! @azure/msal-common v15.13.2 2025-11-19 */
6237
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
6225
6238
  /*
6226
6239
  * Copyright (c) Microsoft Corporation. All rights reserved.
6227
6240
  * Licensed under the MIT License.
@@ -6249,7 +6262,7 @@ var InteractionRequiredAuthErrorCodes = /*#__PURE__*/Object.freeze({
6249
6262
  uxNotAllowed: uxNotAllowed
6250
6263
  });
6251
6264
 
6252
- /*! @azure/msal-common v15.13.2 2025-11-19 */
6265
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
6253
6266
 
6254
6267
  /*
6255
6268
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6339,7 +6352,7 @@ function createInteractionRequiredAuthError(errorCode) {
6339
6352
  return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
6340
6353
  }
6341
6354
 
6342
- /*! @azure/msal-common v15.13.2 2025-11-19 */
6355
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
6343
6356
 
6344
6357
  /*
6345
6358
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6411,7 +6424,7 @@ class ProtocolUtils {
6411
6424
  }
6412
6425
  }
6413
6426
 
6414
- /*! @azure/msal-common v15.13.2 2025-11-19 */
6427
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
6415
6428
 
6416
6429
  /*
6417
6430
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6493,7 +6506,7 @@ class PopTokenGenerator {
6493
6506
  }
6494
6507
  }
6495
6508
 
6496
- /*! @azure/msal-common v15.13.2 2025-11-19 */
6509
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
6497
6510
  /*
6498
6511
  * Copyright (c) Microsoft Corporation. All rights reserved.
6499
6512
  * Licensed under the MIT License.
@@ -6520,7 +6533,7 @@ class PopTokenGenerator {
6520
6533
  }
6521
6534
  }
6522
6535
 
6523
- /*! @azure/msal-common v15.13.2 2025-11-19 */
6536
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
6524
6537
 
6525
6538
  /*
6526
6539
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6584,7 +6597,7 @@ class ResponseHandler {
6584
6597
  * @param serverTokenResponse
6585
6598
  * @param authority
6586
6599
  */
6587
- async handleServerTokenResponse(serverTokenResponse, authority, reqTimestamp, request, authCodePayload, userAssertionHash, handlingRefreshTokenResponse, forceCacheRefreshTokenResponse, serverRequestId) {
6600
+ async handleServerTokenResponse(serverTokenResponse, authority, reqTimestamp, request, apiId, authCodePayload, userAssertionHash, handlingRefreshTokenResponse, forceCacheRefreshTokenResponse, serverRequestId) {
6588
6601
  this.performanceClient?.addQueueMeasurement(PerformanceEvents.HandleServerTokenResponse, serverTokenResponse.correlation_id);
6589
6602
  // create an idToken object (not entity)
6590
6603
  let idTokenClaims;
@@ -6639,7 +6652,7 @@ class ResponseHandler {
6639
6652
  return await ResponseHandler.generateAuthenticationResult(this.cryptoObj, authority, cacheRecord, false, request, idTokenClaims, requestStateObj, undefined, serverRequestId);
6640
6653
  }
6641
6654
  }
6642
- await this.cacheStorage.saveCacheRecord(cacheRecord, request.correlationId, isKmsi(idTokenClaims || {}), request.storeInCache);
6655
+ await this.cacheStorage.saveCacheRecord(cacheRecord, request.correlationId, isKmsi(idTokenClaims || {}), apiId, request.storeInCache);
6643
6656
  }
6644
6657
  finally {
6645
6658
  if (this.persistencePlugin &&
@@ -6709,6 +6722,9 @@ class ResponseHandler {
6709
6722
  ? parseInt(serverTokenResponse.refresh_token_expires_in, 10)
6710
6723
  : serverTokenResponse.refresh_token_expires_in;
6711
6724
  rtExpiresOn = reqTimestamp + rtExpiresIn;
6725
+ this.performanceClient?.addFields({
6726
+ ntwkRtExpiresOnSeconds: rtExpiresOn,
6727
+ }, request.correlationId);
6712
6728
  }
6713
6729
  cachedRefreshToken = createRefreshTokenEntity(this.homeAccountIdentifier, env, serverTokenResponse.refresh_token, this.clientId, serverTokenResponse.foci, userAssertionHash, rtExpiresOn);
6714
6730
  }
@@ -6851,7 +6867,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
6851
6867
  return baseAccount;
6852
6868
  }
6853
6869
 
6854
- /*! @azure/msal-common v15.13.2 2025-11-19 */
6870
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
6855
6871
  /*
6856
6872
  * Copyright (c) Microsoft Corporation. All rights reserved.
6857
6873
  * Licensed under the MIT License.
@@ -6869,7 +6885,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint) {
6869
6885
  }
6870
6886
  }
6871
6887
 
6872
- /*! @azure/msal-common v15.13.2 2025-11-19 */
6888
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
6873
6889
 
6874
6890
  /*
6875
6891
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6891,8 +6907,9 @@ class AuthorizationCodeClient extends BaseClient {
6891
6907
  * API to acquire a token in exchange of 'authorization_code` acquired by the user in the first leg of the
6892
6908
  * authorization_code_grant
6893
6909
  * @param request
6910
+ * @param apiId - API identifier for telemetry tracking
6894
6911
  */
6895
- async acquireToken(request, authCodePayload) {
6912
+ async acquireToken(request, apiId, authCodePayload) {
6896
6913
  this.performanceClient?.addQueueMeasurement(PerformanceEvents.AuthClientAcquireToken, request.correlationId);
6897
6914
  if (!request.code) {
6898
6915
  throw createClientAuthError(requestCannotBeMade);
@@ -6904,7 +6921,7 @@ class AuthorizationCodeClient extends BaseClient {
6904
6921
  const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin, this.performanceClient);
6905
6922
  // Validate response. This function throws a server error if an error is returned by the server.
6906
6923
  responseHandler.validateTokenResponse(response.body);
6907
- return invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), PerformanceEvents.HandleServerTokenResponse, this.logger, this.performanceClient, request.correlationId)(response.body, this.authority, reqTimestamp, request, authCodePayload, undefined, undefined, undefined, requestId);
6924
+ return invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), PerformanceEvents.HandleServerTokenResponse, this.logger, this.performanceClient, request.correlationId)(response.body, this.authority, reqTimestamp, request, apiId, authCodePayload, undefined, undefined, undefined, requestId);
6908
6925
  }
6909
6926
  /**
6910
6927
  * Used to log out the current user, and redirect the user to the postLogoutRedirectUri.
@@ -7104,7 +7121,7 @@ class AuthorizationCodeClient extends BaseClient {
7104
7121
  }
7105
7122
  }
7106
7123
 
7107
- /*! @azure/msal-common v15.13.2 2025-11-19 */
7124
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
7108
7125
 
7109
7126
  /*
7110
7127
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7119,7 +7136,7 @@ class RefreshTokenClient extends BaseClient {
7119
7136
  constructor(configuration, performanceClient) {
7120
7137
  super(configuration, performanceClient);
7121
7138
  }
7122
- async acquireToken(request) {
7139
+ async acquireToken(request, apiId) {
7123
7140
  this.performanceClient?.addQueueMeasurement(PerformanceEvents.RefreshTokenClientAcquireToken, request.correlationId);
7124
7141
  const reqTimestamp = nowSeconds();
7125
7142
  const response = await invokeAsync(this.executeTokenRequest.bind(this), PerformanceEvents.RefreshTokenClientExecuteTokenRequest, this.logger, this.performanceClient, request.correlationId)(request, this.authority);
@@ -7127,13 +7144,13 @@ class RefreshTokenClient extends BaseClient {
7127
7144
  const requestId = response.headers?.[HeaderNames.X_MS_REQUEST_ID];
7128
7145
  const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin);
7129
7146
  responseHandler.validateTokenResponse(response.body);
7130
- return invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), PerformanceEvents.HandleServerTokenResponse, this.logger, this.performanceClient, request.correlationId)(response.body, this.authority, reqTimestamp, request, undefined, undefined, true, request.forceCache, requestId);
7147
+ return invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), PerformanceEvents.HandleServerTokenResponse, this.logger, this.performanceClient, request.correlationId)(response.body, this.authority, reqTimestamp, request, apiId, undefined, undefined, true, request.forceCache, requestId);
7131
7148
  }
7132
7149
  /**
7133
7150
  * Gets cached refresh token and attaches to request, then calls acquireToken API
7134
7151
  * @param request
7135
7152
  */
7136
- async acquireTokenByRefreshToken(request) {
7153
+ async acquireTokenByRefreshToken(request, apiId) {
7137
7154
  // Cannot renew token if no request object is given.
7138
7155
  if (!request) {
7139
7156
  throw createClientConfigurationError(tokenRequestEmpty);
@@ -7148,7 +7165,7 @@ class RefreshTokenClient extends BaseClient {
7148
7165
  // if the app is part of the family, retrive a Family refresh token if present and make a refreshTokenRequest
7149
7166
  if (isFOCI) {
7150
7167
  try {
7151
- return await invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), PerformanceEvents.RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, true);
7168
+ return await invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), PerformanceEvents.RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, true, apiId);
7152
7169
  }
7153
7170
  catch (e) {
7154
7171
  const noFamilyRTInCache = e instanceof InteractionRequiredAuthError &&
@@ -7159,7 +7176,7 @@ class RefreshTokenClient extends BaseClient {
7159
7176
  e.subError === Errors.CLIENT_MISMATCH_ERROR;
7160
7177
  // if family Refresh Token (FRT) cache acquisition fails or if client_mismatch error is seen with FRT, reattempt with application Refresh Token (ART)
7161
7178
  if (noFamilyRTInCache || clientMismatchErrorWithFamilyRT) {
7162
- return invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), PerformanceEvents.RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, false);
7179
+ return invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), PerformanceEvents.RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, false, apiId);
7163
7180
  // throw in all other cases
7164
7181
  }
7165
7182
  else {
@@ -7168,26 +7185,30 @@ class RefreshTokenClient extends BaseClient {
7168
7185
  }
7169
7186
  }
7170
7187
  // fall back to application refresh token acquisition
7171
- return invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), PerformanceEvents.RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, false);
7188
+ return invokeAsync(this.acquireTokenWithCachedRefreshToken.bind(this), PerformanceEvents.RefreshTokenClientAcquireTokenWithCachedRefreshToken, this.logger, this.performanceClient, request.correlationId)(request, false, apiId);
7172
7189
  }
7173
7190
  /**
7174
7191
  * makes a network call to acquire tokens by exchanging RefreshToken available in userCache; throws if refresh token is not cached
7175
7192
  * @param request
7176
7193
  */
7177
- async acquireTokenWithCachedRefreshToken(request, foci) {
7194
+ async acquireTokenWithCachedRefreshToken(request, foci, apiId) {
7178
7195
  this.performanceClient?.addQueueMeasurement(PerformanceEvents.RefreshTokenClientAcquireTokenWithCachedRefreshToken, request.correlationId);
7179
7196
  // fetches family RT or application RT based on FOCI value
7180
7197
  const refreshToken = invoke(this.cacheManager.getRefreshToken.bind(this.cacheManager), PerformanceEvents.CacheManagerGetRefreshToken, this.logger, this.performanceClient, request.correlationId)(request.account, foci, request.correlationId, undefined, this.performanceClient);
7181
7198
  if (!refreshToken) {
7182
7199
  throw createInteractionRequiredAuthError(noTokensFound);
7183
7200
  }
7184
- if (refreshToken.expiresOn &&
7185
- isTokenExpired(refreshToken.expiresOn, request.refreshTokenExpirationOffsetSeconds ||
7186
- DEFAULT_REFRESH_TOKEN_EXPIRATION_OFFSET_SECONDS)) {
7187
- this.performanceClient?.addFields({ rtExpiresOnMs: Number(refreshToken.expiresOn) }, request.correlationId);
7188
- throw createInteractionRequiredAuthError(refreshTokenExpired);
7201
+ if (refreshToken.expiresOn) {
7202
+ const offset = request.refreshTokenExpirationOffsetSeconds ||
7203
+ DEFAULT_REFRESH_TOKEN_EXPIRATION_OFFSET_SECONDS;
7204
+ this.performanceClient?.addFields({
7205
+ cacheRtExpiresOnSeconds: Number(refreshToken.expiresOn),
7206
+ rtOffsetSeconds: offset,
7207
+ }, request.correlationId);
7208
+ if (isTokenExpired(refreshToken.expiresOn, offset)) {
7209
+ throw createInteractionRequiredAuthError(refreshTokenExpired);
7210
+ }
7189
7211
  }
7190
- // attach cached RT size to the current measurement
7191
7212
  const refreshTokenRequest = {
7192
7213
  ...request,
7193
7214
  refreshToken: refreshToken.secret,
@@ -7198,11 +7219,10 @@ class RefreshTokenClient extends BaseClient {
7198
7219
  },
7199
7220
  };
7200
7221
  try {
7201
- return await invokeAsync(this.acquireToken.bind(this), PerformanceEvents.RefreshTokenClientAcquireToken, this.logger, this.performanceClient, request.correlationId)(refreshTokenRequest);
7222
+ return await invokeAsync(this.acquireToken.bind(this), PerformanceEvents.RefreshTokenClientAcquireToken, this.logger, this.performanceClient, request.correlationId)(refreshTokenRequest, apiId);
7202
7223
  }
7203
7224
  catch (e) {
7204
7225
  if (e instanceof InteractionRequiredAuthError) {
7205
- this.performanceClient?.addFields({ rtExpiresOnMs: Number(refreshToken.expiresOn) }, request.correlationId);
7206
7226
  if (e.subError === badToken) {
7207
7227
  // Remove bad refresh token from cache
7208
7228
  this.logger.verbose("acquireTokenWithRefreshToken: bad refresh token, removing from cache");
@@ -7313,7 +7333,7 @@ class RefreshTokenClient extends BaseClient {
7313
7333
  }
7314
7334
  }
7315
7335
 
7316
- /*! @azure/msal-common v15.13.2 2025-11-19 */
7336
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
7317
7337
 
7318
7338
  /*
7319
7339
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7411,7 +7431,7 @@ class SilentFlowClient extends BaseClient {
7411
7431
  }
7412
7432
  }
7413
7433
 
7414
- /*! @azure/msal-common v15.13.2 2025-11-19 */
7434
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
7415
7435
 
7416
7436
  /*
7417
7437
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7561,7 +7581,7 @@ function extractLoginHint(account) {
7561
7581
  return account.loginHint || account.idTokenClaims?.login_hint || null;
7562
7582
  }
7563
7583
 
7564
- /*! @azure/msal-common v15.13.2 2025-11-19 */
7584
+ /*! @azure/msal-common v15.14.0 2026-01-13 */
7565
7585
 
7566
7586
  /*
7567
7587
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8134,6 +8154,8 @@ const ApiId = {
8134
8154
  acquireTokenByUsernamePassword: 371,
8135
8155
  acquireTokenByDeviceCode: 671,
8136
8156
  acquireTokenByClientCredential: 771,
8157
+ acquireTokenByOBO: 772,
8158
+ acquireTokenWithManagedIdentity: 773,
8137
8159
  acquireTokenByCode: 871,
8138
8160
  acquireTokenByRefreshToken: 872,
8139
8161
  };
@@ -8200,7 +8222,7 @@ class NetworkUtils {
8200
8222
 
8201
8223
  /* eslint-disable header/header */
8202
8224
  const name = "@azure/msal-node";
8203
- const version = "3.8.3";
8225
+ const version = "3.8.5";
8204
8226
 
8205
8227
  /*
8206
8228
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -9991,7 +10013,7 @@ class UsernamePasswordClient extends BaseClient {
9991
10013
  const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin);
9992
10014
  // Validate response. This function throws a server error if an error is returned by the server.
9993
10015
  responseHandler.validateTokenResponse(response.body);
9994
- const tokenResponse = responseHandler.handleServerTokenResponse(response.body, this.authority, reqTimestamp, request);
10016
+ const tokenResponse = responseHandler.handleServerTokenResponse(response.body, this.authority, reqTimestamp, request, ApiId.acquireTokenByUsernamePassword);
9995
10017
  return tokenResponse;
9996
10018
  }
9997
10019
  /**
@@ -10166,7 +10188,7 @@ class ClientApplication {
10166
10188
  const authClientConfig = await this.buildOauthClientConfiguration(discoveredAuthority, validRequest.correlationId, validRequest.redirectUri, serverTelemetryManager);
10167
10189
  const authorizationCodeClient = new AuthorizationCodeClient(authClientConfig);
10168
10190
  this.logger.verbose("Auth code client created", validRequest.correlationId);
10169
- return await authorizationCodeClient.acquireToken(validRequest, authCodePayLoad);
10191
+ return await authorizationCodeClient.acquireToken(validRequest, ApiId.acquireTokenByCode, authCodePayLoad);
10170
10192
  }
10171
10193
  catch (e) {
10172
10194
  if (e instanceof AuthError) {
@@ -10196,7 +10218,7 @@ class ClientApplication {
10196
10218
  const refreshTokenClientConfig = await this.buildOauthClientConfiguration(discoveredAuthority, validRequest.correlationId, validRequest.redirectUri || "", serverTelemetryManager);
10197
10219
  const refreshTokenClient = new RefreshTokenClient(refreshTokenClientConfig);
10198
10220
  this.logger.verbose("Refresh token client created", validRequest.correlationId);
10199
- return await refreshTokenClient.acquireToken(validRequest);
10221
+ return await refreshTokenClient.acquireToken(validRequest, ApiId.acquireTokenByRefreshToken);
10200
10222
  }
10201
10223
  catch (e) {
10202
10224
  if (e instanceof AuthError) {
@@ -10236,7 +10258,7 @@ class ClientApplication {
10236
10258
  error.errorCode ===
10237
10259
  tokenRefreshRequired) {
10238
10260
  const refreshTokenClient = new RefreshTokenClient(clientConfiguration);
10239
- return refreshTokenClient.acquireTokenByRefreshToken(validRequest);
10261
+ return refreshTokenClient.acquireTokenByRefreshToken(validRequest, ApiId.acquireTokenSilent);
10240
10262
  }
10241
10263
  throw error;
10242
10264
  }
@@ -10261,7 +10283,7 @@ class ClientApplication {
10261
10283
  // refresh the access token in the background
10262
10284
  const refreshTokenClient = new RefreshTokenClient(clientConfiguration);
10263
10285
  try {
10264
- await refreshTokenClient.acquireTokenByRefreshToken(validRequest);
10286
+ await refreshTokenClient.acquireTokenByRefreshToken(validRequest, ApiId.acquireTokenSilent);
10265
10287
  }
10266
10288
  catch {
10267
10289
  // do nothing, this is running in the background and no action is to be taken upon success or failure
@@ -10575,7 +10597,7 @@ class DeviceCodeClient extends BaseClient {
10575
10597
  const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin);
10576
10598
  // Validate response. This function throws a server error if an error is returned by the server.
10577
10599
  responseHandler.validateTokenResponse(response);
10578
- return responseHandler.handleServerTokenResponse(response, this.authority, reqTimestamp, request);
10600
+ return responseHandler.handleServerTokenResponse(response, this.authority, reqTimestamp, request, ApiId.acquireTokenByDeviceCode);
10579
10601
  }
10580
10602
  /**
10581
10603
  * Creates device code request and executes http GET
@@ -11172,7 +11194,7 @@ class ClientCredentialClient extends BaseClient {
11172
11194
  }
11173
11195
  const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin);
11174
11196
  responseHandler.validateTokenResponse(serverTokenResponse, refreshAccessToken);
11175
- const tokenResponse = await responseHandler.handleServerTokenResponse(serverTokenResponse, this.authority, reqTimestamp, request);
11197
+ const tokenResponse = await responseHandler.handleServerTokenResponse(serverTokenResponse, this.authority, reqTimestamp, request, ApiId.acquireTokenByClientCredential);
11176
11198
  return tokenResponse;
11177
11199
  }
11178
11200
  /**
@@ -11373,7 +11395,7 @@ class OnBehalfOfClient extends BaseClient {
11373
11395
  const response = await this.executePostToTokenEndpoint(endpoint, requestBody, headers, thumbprint, request.correlationId);
11374
11396
  const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin);
11375
11397
  responseHandler.validateTokenResponse(response.body);
11376
- const tokenResponse = await responseHandler.handleServerTokenResponse(response.body, this.authority, reqTimestamp, request, undefined, userAssertionHash);
11398
+ const tokenResponse = await responseHandler.handleServerTokenResponse(response.body, this.authority, reqTimestamp, request, ApiId.acquireTokenByOBO, undefined, userAssertionHash);
11377
11399
  return tokenResponse;
11378
11400
  }
11379
11401
  /**
@@ -11828,7 +11850,7 @@ class BaseManagedIdentitySource {
11828
11850
  const serverTokenResponse = await this.getServerTokenResponseAsync(response, networkClientHelper, networkRequest, networkRequestOptions);
11829
11851
  responseHandler.validateTokenResponse(serverTokenResponse, refreshAccessToken);
11830
11852
  // caches the token
11831
- return responseHandler.handleServerTokenResponse(serverTokenResponse, fakeAuthority, reqTimestamp, managedIdentityRequest);
11853
+ return responseHandler.handleServerTokenResponse(serverTokenResponse, fakeAuthority, reqTimestamp, managedIdentityRequest, ApiId.acquireTokenWithManagedIdentity);
11832
11854
  }
11833
11855
  /**
11834
11856
  * Determines the appropriate query parameter name for user-assigned managed identity