@azure/msal-node 3.7.2 → 3.7.4

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 (69) 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.mjs +1 -1
  8. package/dist/client/ClientAssertion.mjs +1 -1
  9. package/dist/client/ClientCredentialClient.mjs +1 -1
  10. package/dist/client/ConfidentialClientApplication.mjs +1 -1
  11. package/dist/client/DeviceCodeClient.mjs +1 -1
  12. package/dist/client/ManagedIdentityApplication.mjs +1 -1
  13. package/dist/client/ManagedIdentityClient.mjs +1 -1
  14. package/dist/client/ManagedIdentitySources/AppService.mjs +1 -1
  15. package/dist/client/ManagedIdentitySources/AzureArc.mjs +1 -1
  16. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs +1 -1
  17. package/dist/client/ManagedIdentitySources/CloudShell.mjs +1 -1
  18. package/dist/client/ManagedIdentitySources/Imds.mjs +1 -1
  19. package/dist/client/ManagedIdentitySources/MachineLearning.mjs +1 -1
  20. package/dist/client/ManagedIdentitySources/ServiceFabric.mjs +1 -1
  21. package/dist/client/OnBehalfOfClient.mjs +1 -1
  22. package/dist/client/PublicClientApplication.d.ts.map +1 -1
  23. package/dist/client/PublicClientApplication.mjs +18 -3
  24. package/dist/client/PublicClientApplication.mjs.map +1 -1
  25. package/dist/client/UsernamePasswordClient.mjs +1 -1
  26. package/dist/config/Configuration.mjs +1 -1
  27. package/dist/config/ManagedIdentityId.mjs +1 -1
  28. package/dist/config/ManagedIdentityRequestParameters.mjs +1 -1
  29. package/dist/crypto/CryptoProvider.mjs +1 -1
  30. package/dist/crypto/GuidGenerator.mjs +1 -1
  31. package/dist/crypto/HashUtils.mjs +1 -1
  32. package/dist/crypto/PkceGenerator.mjs +1 -1
  33. package/dist/error/ManagedIdentityError.mjs +1 -1
  34. package/dist/error/ManagedIdentityErrorCodes.mjs +1 -1
  35. package/dist/error/NodeAuthError.d.ts +8 -0
  36. package/dist/error/NodeAuthError.d.ts.map +1 -1
  37. package/dist/error/NodeAuthError.mjs +11 -1
  38. package/dist/error/NodeAuthError.mjs.map +1 -1
  39. package/dist/index.mjs +1 -1
  40. package/dist/internals.mjs +1 -1
  41. package/dist/network/HttpClient.mjs +1 -1
  42. package/dist/network/HttpClientWithRetries.mjs +1 -1
  43. package/dist/network/LoopbackClient.mjs +1 -1
  44. package/dist/packageMetadata.d.ts +1 -1
  45. package/dist/packageMetadata.mjs +2 -2
  46. package/dist/protocol/Authorize.mjs +1 -1
  47. package/dist/request/InteractiveRequest.d.ts +1 -1
  48. package/dist/request/InteractiveRequest.d.ts.map +1 -1
  49. package/dist/retry/DefaultManagedIdentityRetryPolicy.mjs +1 -1
  50. package/dist/retry/ExponentialRetryStrategy.mjs +1 -1
  51. package/dist/retry/ImdsRetryPolicy.mjs +1 -1
  52. package/dist/retry/LinearRetryStrategy.mjs +1 -1
  53. package/dist/utils/Constants.mjs +1 -1
  54. package/dist/utils/EncodingUtils.mjs +1 -1
  55. package/dist/utils/NetworkUtils.mjs +1 -1
  56. package/dist/utils/TimeUtils.mjs +1 -1
  57. package/lib/msal-node.cjs +87 -62
  58. package/lib/msal-node.cjs.map +1 -1
  59. package/lib/types/client/PublicClientApplication.d.ts.map +1 -1
  60. package/lib/types/error/NodeAuthError.d.ts +8 -0
  61. package/lib/types/error/NodeAuthError.d.ts.map +1 -1
  62. package/lib/types/packageMetadata.d.ts +1 -1
  63. package/lib/types/request/InteractiveRequest.d.ts +1 -1
  64. package/lib/types/request/InteractiveRequest.d.ts.map +1 -1
  65. package/package.json +1 -1
  66. package/src/client/PublicClientApplication.ts +19 -2
  67. package/src/error/NodeAuthError.ts +14 -0
  68. package/src/packageMetadata.ts +1 -1
  69. package/src/request/InteractiveRequest.ts +1 -1
package/lib/msal-node.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v3.7.2 2025-08-19 */
1
+ /*! @azure/msal-node v3.7.4 2025-09-17 */
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.12.0 2025-08-19 */
156
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
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.12.0 2025-08-19 */
436
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
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.12.0 2025-08-19 */
453
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
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.12.0 2025-08-19 */
502
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
503
503
  /*
504
504
  * Copyright (c) Microsoft Corporation. All rights reserved.
505
505
  * Licensed under the MIT License.
@@ -597,7 +597,7 @@ var ClientAuthErrorCodes = /*#__PURE__*/Object.freeze({
597
597
  userTimeoutReached: userTimeoutReached
598
598
  });
599
599
 
600
- /*! @azure/msal-common v15.12.0 2025-08-19 */
600
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
601
601
 
602
602
  /*
603
603
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -849,7 +849,7 @@ function createClientAuthError(errorCode, additionalMessage) {
849
849
  return new ClientAuthError(errorCode, additionalMessage);
850
850
  }
851
851
 
852
- /*! @azure/msal-common v15.12.0 2025-08-19 */
852
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
853
853
 
854
854
  /*
855
855
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -888,7 +888,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
888
888
  },
889
889
  };
890
890
 
891
- /*! @azure/msal-common v15.12.0 2025-08-19 */
891
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
892
892
 
893
893
  /*
894
894
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1079,12 +1079,12 @@ class Logger {
1079
1079
  }
1080
1080
  }
1081
1081
 
1082
- /*! @azure/msal-common v15.12.0 2025-08-19 */
1082
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
1083
1083
  /* eslint-disable header/header */
1084
1084
  const name$1 = "@azure/msal-common";
1085
1085
  const version$1 = "15.12.0";
1086
1086
 
1087
- /*! @azure/msal-common v15.12.0 2025-08-19 */
1087
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
1088
1088
  /*
1089
1089
  * Copyright (c) Microsoft Corporation. All rights reserved.
1090
1090
  * Licensed under the MIT License.
@@ -1104,7 +1104,7 @@ const AzureCloudInstance = {
1104
1104
  AzureUsGovernment: "https://login.microsoftonline.us",
1105
1105
  };
1106
1106
 
1107
- /*! @azure/msal-common v15.12.0 2025-08-19 */
1107
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
1108
1108
  /*
1109
1109
  * Copyright (c) Microsoft Corporation. All rights reserved.
1110
1110
  * Licensed under the MIT License.
@@ -1160,7 +1160,7 @@ var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
1160
1160
  urlParseError: urlParseError
1161
1161
  });
1162
1162
 
1163
- /*! @azure/msal-common v15.12.0 2025-08-19 */
1163
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
1164
1164
 
1165
1165
  /*
1166
1166
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1303,7 +1303,7 @@ function createClientConfigurationError(errorCode) {
1303
1303
  return new ClientConfigurationError(errorCode);
1304
1304
  }
1305
1305
 
1306
- /*! @azure/msal-common v15.12.0 2025-08-19 */
1306
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
1307
1307
  /*
1308
1308
  * Copyright (c) Microsoft Corporation. All rights reserved.
1309
1309
  * Licensed under the MIT License.
@@ -1400,7 +1400,7 @@ class StringUtils {
1400
1400
  }
1401
1401
  }
1402
1402
 
1403
- /*! @azure/msal-common v15.12.0 2025-08-19 */
1403
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
1404
1404
 
1405
1405
  /*
1406
1406
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1595,7 +1595,7 @@ class ScopeSet {
1595
1595
  }
1596
1596
  }
1597
1597
 
1598
- /*! @azure/msal-common v15.12.0 2025-08-19 */
1598
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
1599
1599
  /*
1600
1600
  * Copyright (c) Microsoft Corporation. All rights reserved.
1601
1601
  * Licensed under the MIT License.
@@ -1677,7 +1677,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
1677
1677
  return updatedAccountInfo;
1678
1678
  }
1679
1679
 
1680
- /*! @azure/msal-common v15.12.0 2025-08-19 */
1680
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
1681
1681
 
1682
1682
  /*
1683
1683
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1738,7 +1738,7 @@ function checkMaxAge(authTime, maxAge) {
1738
1738
  }
1739
1739
  }
1740
1740
 
1741
- /*! @azure/msal-common v15.12.0 2025-08-19 */
1741
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
1742
1742
  /**
1743
1743
  * Parses hash string from given string. Returns empty string if no hash symbol is found.
1744
1744
  * @param hashString
@@ -1798,7 +1798,7 @@ function mapToQueryString(parameters, encodeExtraParams = true, extraQueryParame
1798
1798
  return queryParameterArray.join("&");
1799
1799
  }
1800
1800
 
1801
- /*! @azure/msal-common v15.12.0 2025-08-19 */
1801
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
1802
1802
 
1803
1803
  /*
1804
1804
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1962,7 +1962,7 @@ class UrlString {
1962
1962
  }
1963
1963
  }
1964
1964
 
1965
- /*! @azure/msal-common v15.12.0 2025-08-19 */
1965
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
1966
1966
 
1967
1967
  /*
1968
1968
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2101,7 +2101,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
2101
2101
  return null;
2102
2102
  }
2103
2103
 
2104
- /*! @azure/msal-common v15.12.0 2025-08-19 */
2104
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
2105
2105
  /*
2106
2106
  * Copyright (c) Microsoft Corporation. All rights reserved.
2107
2107
  * Licensed under the MIT License.
@@ -2109,7 +2109,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
2109
2109
  const cacheQuotaExceeded = "cache_quota_exceeded";
2110
2110
  const cacheErrorUnknown = "cache_error_unknown";
2111
2111
 
2112
- /*! @azure/msal-common v15.12.0 2025-08-19 */
2112
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
2113
2113
 
2114
2114
  /*
2115
2115
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2154,7 +2154,7 @@ function createCacheError(e) {
2154
2154
  }
2155
2155
  }
2156
2156
 
2157
- /*! @azure/msal-common v15.12.0 2025-08-19 */
2157
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
2158
2158
 
2159
2159
  /*
2160
2160
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3262,7 +3262,7 @@ class DefaultStorageClass extends CacheManager {
3262
3262
  }
3263
3263
  }
3264
3264
 
3265
- /*! @azure/msal-common v15.12.0 2025-08-19 */
3265
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
3266
3266
  /*
3267
3267
  * Copyright (c) Microsoft Corporation. All rights reserved.
3268
3268
  * Licensed under the MIT License.
@@ -3286,7 +3286,7 @@ const ProtocolMode = {
3286
3286
  EAR: "EAR",
3287
3287
  };
3288
3288
 
3289
- /*! @azure/msal-common v15.12.0 2025-08-19 */
3289
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
3290
3290
  /*
3291
3291
  * Copyright (c) Microsoft Corporation. All rights reserved.
3292
3292
  * Licensed under the MIT License.
@@ -3553,7 +3553,7 @@ const PerformanceEvents = {
3553
3553
  const PerformanceEventStatus = {
3554
3554
  InProgress: 1};
3555
3555
 
3556
- /*! @azure/msal-common v15.12.0 2025-08-19 */
3556
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
3557
3557
 
3558
3558
  /*
3559
3559
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3632,7 +3632,7 @@ class StubPerformanceClient {
3632
3632
  }
3633
3633
  }
3634
3634
 
3635
- /*! @azure/msal-common v15.12.0 2025-08-19 */
3635
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
3636
3636
 
3637
3637
  /*
3638
3638
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3732,7 +3732,7 @@ function isOidcProtocolMode(config) {
3732
3732
  return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
3733
3733
  }
3734
3734
 
3735
- /*! @azure/msal-common v15.12.0 2025-08-19 */
3735
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
3736
3736
  /*
3737
3737
  * Copyright (c) Microsoft Corporation. All rights reserved.
3738
3738
  * Licensed under the MIT License.
@@ -3742,7 +3742,7 @@ const CcsCredentialType = {
3742
3742
  UPN: "UPN",
3743
3743
  };
3744
3744
 
3745
- /*! @azure/msal-common v15.12.0 2025-08-19 */
3745
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
3746
3746
 
3747
3747
  /*
3748
3748
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3782,7 +3782,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
3782
3782
  };
3783
3783
  }
3784
3784
 
3785
- /*! @azure/msal-common v15.12.0 2025-08-19 */
3785
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
3786
3786
  /*
3787
3787
  * Copyright (c) Microsoft Corporation. All rights reserved.
3788
3788
  * Licensed under the MIT License.
@@ -3833,7 +3833,7 @@ const BROKER_CLIENT_ID = "brk_client_id";
3833
3833
  const BROKER_REDIRECT_URI = "brk_redirect_uri";
3834
3834
  const INSTANCE_AWARE = "instance_aware";
3835
3835
 
3836
- /*! @azure/msal-common v15.12.0 2025-08-19 */
3836
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
3837
3837
 
3838
3838
  /*
3839
3839
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4219,7 +4219,7 @@ function addBrokerParameters(parameters, brokerClientId, brokerRedirectUri) {
4219
4219
  }
4220
4220
  }
4221
4221
 
4222
- /*! @azure/msal-common v15.12.0 2025-08-19 */
4222
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
4223
4223
  /*
4224
4224
  * Copyright (c) Microsoft Corporation. All rights reserved.
4225
4225
  * Licensed under the MIT License.
@@ -4234,7 +4234,7 @@ const AuthorityType = {
4234
4234
  Ciam: 3,
4235
4235
  };
4236
4236
 
4237
- /*! @azure/msal-common v15.12.0 2025-08-19 */
4237
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
4238
4238
  /*
4239
4239
  * Copyright (c) Microsoft Corporation. All rights reserved.
4240
4240
  * Licensed under the MIT License.
@@ -4246,7 +4246,7 @@ function isOpenIdConfigResponse(response) {
4246
4246
  response.hasOwnProperty("jwks_uri"));
4247
4247
  }
4248
4248
 
4249
- /*! @azure/msal-common v15.12.0 2025-08-19 */
4249
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
4250
4250
  /*
4251
4251
  * Copyright (c) Microsoft Corporation. All rights reserved.
4252
4252
  * Licensed under the MIT License.
@@ -4256,7 +4256,7 @@ function isCloudInstanceDiscoveryResponse(response) {
4256
4256
  response.hasOwnProperty("metadata"));
4257
4257
  }
4258
4258
 
4259
- /*! @azure/msal-common v15.12.0 2025-08-19 */
4259
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
4260
4260
  /*
4261
4261
  * Copyright (c) Microsoft Corporation. All rights reserved.
4262
4262
  * Licensed under the MIT License.
@@ -4266,7 +4266,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
4266
4266
  response.hasOwnProperty("error_description"));
4267
4267
  }
4268
4268
 
4269
- /*! @azure/msal-common v15.12.0 2025-08-19 */
4269
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
4270
4270
  /*
4271
4271
  * Copyright (c) Microsoft Corporation. All rights reserved.
4272
4272
  * Licensed under the MIT License.
@@ -4362,7 +4362,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
4362
4362
  };
4363
4363
  };
4364
4364
 
4365
- /*! @azure/msal-common v15.12.0 2025-08-19 */
4365
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
4366
4366
 
4367
4367
  /*
4368
4368
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4468,7 +4468,7 @@ RegionDiscovery.IMDS_OPTIONS = {
4468
4468
  },
4469
4469
  };
4470
4470
 
4471
- /*! @azure/msal-common v15.12.0 2025-08-19 */
4471
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
4472
4472
  /*
4473
4473
  * Copyright (c) Microsoft Corporation. All rights reserved.
4474
4474
  * Licensed under the MIT License.
@@ -4523,7 +4523,7 @@ function delay(t, value) {
4523
4523
  return new Promise((resolve) => setTimeout(() => resolve(value), t));
4524
4524
  }
4525
4525
 
4526
- /*! @azure/msal-common v15.12.0 2025-08-19 */
4526
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
4527
4527
 
4528
4528
  /*
4529
4529
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4785,7 +4785,7 @@ function isAuthorityMetadataExpired(metadata) {
4785
4785
  return metadata.expiresAt <= nowSeconds();
4786
4786
  }
4787
4787
 
4788
- /*! @azure/msal-common v15.12.0 2025-08-19 */
4788
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
4789
4789
 
4790
4790
  /*
4791
4791
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5624,7 +5624,7 @@ function buildStaticAuthorityOptions(authOptions) {
5624
5624
  };
5625
5625
  }
5626
5626
 
5627
- /*! @azure/msal-common v15.12.0 2025-08-19 */
5627
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
5628
5628
 
5629
5629
  /*
5630
5630
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5655,7 +5655,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
5655
5655
  }
5656
5656
  }
5657
5657
 
5658
- /*! @azure/msal-common v15.12.0 2025-08-19 */
5658
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
5659
5659
 
5660
5660
  /*
5661
5661
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5674,7 +5674,7 @@ class ServerError extends AuthError {
5674
5674
  }
5675
5675
  }
5676
5676
 
5677
- /*! @azure/msal-common v15.12.0 2025-08-19 */
5677
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
5678
5678
  /*
5679
5679
  * Copyright (c) Microsoft Corporation. All rights reserved.
5680
5680
  * Licensed under the MIT License.
@@ -5695,7 +5695,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
5695
5695
  };
5696
5696
  }
5697
5697
 
5698
- /*! @azure/msal-common v15.12.0 2025-08-19 */
5698
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
5699
5699
 
5700
5700
  /*
5701
5701
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5782,7 +5782,7 @@ class ThrottlingUtils {
5782
5782
  }
5783
5783
  }
5784
5784
 
5785
- /*! @azure/msal-common v15.12.0 2025-08-19 */
5785
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
5786
5786
 
5787
5787
  /*
5788
5788
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5802,7 +5802,7 @@ class NetworkError extends AuthError {
5802
5802
  }
5803
5803
  }
5804
5804
 
5805
- /*! @azure/msal-common v15.12.0 2025-08-19 */
5805
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
5806
5806
 
5807
5807
  /*
5808
5808
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5950,7 +5950,7 @@ class BaseClient {
5950
5950
  }
5951
5951
  }
5952
5952
 
5953
- /*! @azure/msal-common v15.12.0 2025-08-19 */
5953
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
5954
5954
  /*
5955
5955
  * Copyright (c) Microsoft Corporation. All rights reserved.
5956
5956
  * Licensed under the MIT License.
@@ -5972,7 +5972,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
5972
5972
  return null;
5973
5973
  }
5974
5974
 
5975
- /*! @azure/msal-common v15.12.0 2025-08-19 */
5975
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
5976
5976
 
5977
5977
  /*
5978
5978
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6187,7 +6187,7 @@ class AccountEntity {
6187
6187
  }
6188
6188
  }
6189
6189
 
6190
- /*! @azure/msal-common v15.12.0 2025-08-19 */
6190
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
6191
6191
  /*
6192
6192
  * Copyright (c) Microsoft Corporation. All rights reserved.
6193
6193
  * Licensed under the MIT License.
@@ -6215,7 +6215,7 @@ var InteractionRequiredAuthErrorCodes = /*#__PURE__*/Object.freeze({
6215
6215
  uxNotAllowed: uxNotAllowed
6216
6216
  });
6217
6217
 
6218
- /*! @azure/msal-common v15.12.0 2025-08-19 */
6218
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
6219
6219
 
6220
6220
  /*
6221
6221
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6305,7 +6305,7 @@ function createInteractionRequiredAuthError(errorCode) {
6305
6305
  return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
6306
6306
  }
6307
6307
 
6308
- /*! @azure/msal-common v15.12.0 2025-08-19 */
6308
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
6309
6309
 
6310
6310
  /*
6311
6311
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6377,7 +6377,7 @@ class ProtocolUtils {
6377
6377
  }
6378
6378
  }
6379
6379
 
6380
- /*! @azure/msal-common v15.12.0 2025-08-19 */
6380
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
6381
6381
 
6382
6382
  /*
6383
6383
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6459,7 +6459,7 @@ class PopTokenGenerator {
6459
6459
  }
6460
6460
  }
6461
6461
 
6462
- /*! @azure/msal-common v15.12.0 2025-08-19 */
6462
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
6463
6463
  /*
6464
6464
  * Copyright (c) Microsoft Corporation. All rights reserved.
6465
6465
  * Licensed under the MIT License.
@@ -6486,7 +6486,7 @@ class PopTokenGenerator {
6486
6486
  }
6487
6487
  }
6488
6488
 
6489
- /*! @azure/msal-common v15.12.0 2025-08-19 */
6489
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
6490
6490
 
6491
6491
  /*
6492
6492
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6817,7 +6817,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
6817
6817
  return baseAccount;
6818
6818
  }
6819
6819
 
6820
- /*! @azure/msal-common v15.12.0 2025-08-19 */
6820
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
6821
6821
  /*
6822
6822
  * Copyright (c) Microsoft Corporation. All rights reserved.
6823
6823
  * Licensed under the MIT License.
@@ -6835,7 +6835,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint) {
6835
6835
  }
6836
6836
  }
6837
6837
 
6838
- /*! @azure/msal-common v15.12.0 2025-08-19 */
6838
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
6839
6839
 
6840
6840
  /*
6841
6841
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7070,7 +7070,7 @@ class AuthorizationCodeClient extends BaseClient {
7070
7070
  }
7071
7071
  }
7072
7072
 
7073
- /*! @azure/msal-common v15.12.0 2025-08-19 */
7073
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
7074
7074
 
7075
7075
  /*
7076
7076
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7279,7 +7279,7 @@ class RefreshTokenClient extends BaseClient {
7279
7279
  }
7280
7280
  }
7281
7281
 
7282
- /*! @azure/msal-common v15.12.0 2025-08-19 */
7282
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
7283
7283
 
7284
7284
  /*
7285
7285
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7377,7 +7377,7 @@ class SilentFlowClient extends BaseClient {
7377
7377
  }
7378
7378
  }
7379
7379
 
7380
- /*! @azure/msal-common v15.12.0 2025-08-19 */
7380
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
7381
7381
 
7382
7382
  /*
7383
7383
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7527,7 +7527,7 @@ function extractLoginHint(account) {
7527
7527
  return account.loginHint || account.idTokenClaims?.login_hint || null;
7528
7528
  }
7529
7529
 
7530
- /*! @azure/msal-common v15.12.0 2025-08-19 */
7530
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
7531
7531
 
7532
7532
  /*
7533
7533
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8602,6 +8602,10 @@ const NodeAuthErrorMessage = {
8602
8602
  code: "thumbprint_missing_from_client_certificate",
8603
8603
  desc: "Client certificate does not contain a SHA-1 or SHA-256 thumbprint.",
8604
8604
  },
8605
+ redirectUriNotSupported: {
8606
+ code: "redirect_uri_not_supported",
8607
+ desc: "RedirectUri is not supported in this scenario. Please remove redirectUri from the request.",
8608
+ },
8605
8609
  };
8606
8610
  class NodeAuthError extends AuthError {
8607
8611
  constructor(errorCode, errorMessage) {
@@ -8656,6 +8660,12 @@ class NodeAuthError extends AuthError {
8656
8660
  static createThumbprintMissingError() {
8657
8661
  return new NodeAuthError(NodeAuthErrorMessage.thumbprintMissing.code, NodeAuthErrorMessage.thumbprintMissing.desc);
8658
8662
  }
8663
+ /**
8664
+ * Creates an error thrown when redirectUri is provided in an unsupported scenario
8665
+ */
8666
+ static createRedirectUriNotSupportedError() {
8667
+ return new NodeAuthError(NodeAuthErrorMessage.redirectUriNotSupported.code, NodeAuthErrorMessage.redirectUriNotSupported.desc);
8668
+ }
8659
8669
  }
8660
8670
 
8661
8671
  /*
@@ -9874,7 +9884,7 @@ class ClientAssertion {
9874
9884
 
9875
9885
  /* eslint-disable header/header */
9876
9886
  const name = "@azure/msal-node";
9877
- const version = "3.7.2";
9887
+ const version = "3.7.4";
9878
9888
 
9879
9889
  /*
9880
9890
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -10756,7 +10766,7 @@ class PublicClientApplication extends ClientApplication {
10756
10766
  ...remainingProperties,
10757
10767
  clientId: this.config.auth.clientId,
10758
10768
  scopes: request.scopes || OIDC_DEFAULT_SCOPES,
10759
- redirectUri: `${Constants.HTTP_PROTOCOL}${Constants.LOCALHOST}`,
10769
+ redirectUri: request.redirectUri || "",
10760
10770
  authority: request.authority || this.config.auth.authority,
10761
10771
  correlationId: correlationId,
10762
10772
  extraParameters: {
@@ -10768,6 +10778,14 @@ class PublicClientApplication extends ClientApplication {
10768
10778
  };
10769
10779
  return this.nativeBrokerPlugin.acquireTokenInteractive(brokerRequest, windowHandle);
10770
10780
  }
10781
+ if (request.redirectUri) {
10782
+ // If its not a broker fallback scenario, we throw a error
10783
+ if (!this.config.broker.nativeBrokerPlugin) {
10784
+ throw NodeAuthError.createRedirectUriNotSupportedError();
10785
+ }
10786
+ // If a redirect URI is provided for a broker flow but MSAL runtime startup failed, we fall back to the browser flow and will ignore the redirect URI provided for the broker flow
10787
+ request.redirectUri = "";
10788
+ }
10771
10789
  const { verifier, challenge } = await this.cryptoProvider.generatePkceCodes();
10772
10790
  const loopbackClient = customLoopbackClient || new LoopbackClient();
10773
10791
  let authCodeResponse = {};
@@ -10831,7 +10849,7 @@ class PublicClientApplication extends ClientApplication {
10831
10849
  ...request,
10832
10850
  clientId: this.config.auth.clientId,
10833
10851
  scopes: request.scopes || OIDC_DEFAULT_SCOPES,
10834
- redirectUri: `${Constants.HTTP_PROTOCOL}${Constants.LOCALHOST}`,
10852
+ redirectUri: request.redirectUri || "",
10835
10853
  authority: request.authority || this.config.auth.authority,
10836
10854
  correlationId: correlationId,
10837
10855
  extraParameters: {
@@ -10843,6 +10861,13 @@ class PublicClientApplication extends ClientApplication {
10843
10861
  };
10844
10862
  return this.nativeBrokerPlugin.acquireTokenSilent(brokerRequest);
10845
10863
  }
10864
+ if (request.redirectUri) {
10865
+ // If its not a broker fallback scenario, we throw a error
10866
+ if (!this.config.broker.nativeBrokerPlugin) {
10867
+ throw NodeAuthError.createRedirectUriNotSupportedError();
10868
+ }
10869
+ request.redirectUri = "";
10870
+ }
10846
10871
  return super.acquireTokenSilent(request);
10847
10872
  }
10848
10873
  /**