@azure/msal-node 3.5.0 → 3.5.1

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 (63) hide show
  1. package/dist/cache/NodeStorage.mjs +1 -1
  2. package/dist/cache/TokenCache.mjs +1 -1
  3. package/dist/cache/distributed/DistributedCachePlugin.mjs +1 -1
  4. package/dist/cache/serializer/Deserializer.mjs +1 -1
  5. package/dist/cache/serializer/Serializer.mjs +1 -1
  6. package/dist/client/ClientApplication.mjs +1 -1
  7. package/dist/client/ClientAssertion.mjs +1 -1
  8. package/dist/client/ClientCredentialClient.mjs +1 -1
  9. package/dist/client/ConfidentialClientApplication.mjs +1 -1
  10. package/dist/client/DeviceCodeClient.mjs +1 -1
  11. package/dist/client/ManagedIdentityApplication.mjs +1 -1
  12. package/dist/client/ManagedIdentityClient.mjs +1 -1
  13. package/dist/client/ManagedIdentitySources/AppService.mjs +1 -1
  14. package/dist/client/ManagedIdentitySources/AzureArc.mjs +1 -1
  15. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs +1 -1
  16. package/dist/client/ManagedIdentitySources/CloudShell.mjs +1 -1
  17. package/dist/client/ManagedIdentitySources/Imds.mjs +1 -1
  18. package/dist/client/ManagedIdentitySources/MachineLearning.mjs +1 -1
  19. package/dist/client/ManagedIdentitySources/ServiceFabric.mjs +1 -1
  20. package/dist/client/OnBehalfOfClient.mjs +1 -1
  21. package/dist/client/PublicClientApplication.mjs +1 -1
  22. package/dist/client/UsernamePasswordClient.mjs +1 -1
  23. package/dist/config/Configuration.d.ts +5 -0
  24. package/dist/config/Configuration.d.ts.map +1 -1
  25. package/dist/config/Configuration.mjs +2 -1
  26. package/dist/config/Configuration.mjs.map +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.mjs +1 -1
  36. package/dist/index.mjs +1 -1
  37. package/dist/internals.mjs +1 -1
  38. package/dist/network/HttpClient.mjs +1 -1
  39. package/dist/network/HttpClientWithRetries.mjs +1 -1
  40. package/dist/network/LoopbackClient.mjs +1 -1
  41. package/dist/packageMetadata.d.ts +1 -1
  42. package/dist/packageMetadata.mjs +2 -2
  43. package/dist/protocol/Authorize.d.ts.map +1 -1
  44. package/dist/protocol/Authorize.mjs +2 -2
  45. package/dist/protocol/Authorize.mjs.map +1 -1
  46. package/dist/retry/DefaultManagedIdentityRetryPolicy.mjs +1 -1
  47. package/dist/retry/ExponentialRetryStrategy.mjs +1 -1
  48. package/dist/retry/ImdsRetryPolicy.mjs +1 -1
  49. package/dist/retry/LinearRetryStrategy.mjs +1 -1
  50. package/dist/utils/Constants.mjs +1 -1
  51. package/dist/utils/EncodingUtils.mjs +1 -1
  52. package/dist/utils/NetworkUtils.mjs +1 -1
  53. package/dist/utils/TimeUtils.mjs +1 -1
  54. package/lib/msal-node.cjs +76 -67
  55. package/lib/msal-node.cjs.map +1 -1
  56. package/lib/types/config/Configuration.d.ts +5 -0
  57. package/lib/types/config/Configuration.d.ts.map +1 -1
  58. package/lib/types/packageMetadata.d.ts +1 -1
  59. package/lib/types/protocol/Authorize.d.ts.map +1 -1
  60. package/package.json +2 -2
  61. package/src/config/Configuration.ts +6 -0
  62. package/src/packageMetadata.ts +1 -1
  63. package/src/protocol/Authorize.ts +6 -1
package/lib/msal-node.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v3.5.0 2025-04-08 */
1
+ /*! @azure/msal-node v3.5.1 2025-04-16 */
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.5.0 2025-04-08 */
156
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
157
157
  /*
158
158
  * Copyright (c) Microsoft Corporation. All rights reserved.
159
159
  * Licensed under the MIT License.
@@ -444,7 +444,7 @@ const CacheOutcome = {
444
444
  // Token renewal offset default in seconds
445
445
  const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
446
446
 
447
- /*! @azure/msal-common v15.5.0 2025-04-08 */
447
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
448
448
  /*
449
449
  * Copyright (c) Microsoft Corporation. All rights reserved.
450
450
  * Licensed under the MIT License.
@@ -461,7 +461,7 @@ var AuthErrorCodes = /*#__PURE__*/Object.freeze({
461
461
  unexpectedError: unexpectedError
462
462
  });
463
463
 
464
- /*! @azure/msal-common v15.5.0 2025-04-08 */
464
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
465
465
 
466
466
  /*
467
467
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -510,7 +510,7 @@ function createAuthError(code, additionalMessage) {
510
510
  : AuthErrorMessages[code]);
511
511
  }
512
512
 
513
- /*! @azure/msal-common v15.5.0 2025-04-08 */
513
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
514
514
  /*
515
515
  * Copyright (c) Microsoft Corporation. All rights reserved.
516
516
  * Licensed under the MIT License.
@@ -608,7 +608,7 @@ var ClientAuthErrorCodes = /*#__PURE__*/Object.freeze({
608
608
  userTimeoutReached: userTimeoutReached
609
609
  });
610
610
 
611
- /*! @azure/msal-common v15.5.0 2025-04-08 */
611
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
612
612
 
613
613
  /*
614
614
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -860,7 +860,7 @@ function createClientAuthError(errorCode, additionalMessage) {
860
860
  return new ClientAuthError(errorCode, additionalMessage);
861
861
  }
862
862
 
863
- /*! @azure/msal-common v15.5.0 2025-04-08 */
863
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
864
864
 
865
865
  /*
866
866
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -899,7 +899,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
899
899
  },
900
900
  };
901
901
 
902
- /*! @azure/msal-common v15.5.0 2025-04-08 */
902
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
903
903
 
904
904
  /*
905
905
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1090,12 +1090,12 @@ class Logger {
1090
1090
  }
1091
1091
  }
1092
1092
 
1093
- /*! @azure/msal-common v15.5.0 2025-04-08 */
1093
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
1094
1094
  /* eslint-disable header/header */
1095
1095
  const name$1 = "@azure/msal-common";
1096
- const version$1 = "15.5.0";
1096
+ const version$1 = "15.5.1";
1097
1097
 
1098
- /*! @azure/msal-common v15.5.0 2025-04-08 */
1098
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
1099
1099
  /*
1100
1100
  * Copyright (c) Microsoft Corporation. All rights reserved.
1101
1101
  * Licensed under the MIT License.
@@ -1115,7 +1115,7 @@ const AzureCloudInstance = {
1115
1115
  AzureUsGovernment: "https://login.microsoftonline.us",
1116
1116
  };
1117
1117
 
1118
- /*! @azure/msal-common v15.5.0 2025-04-08 */
1118
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
1119
1119
 
1120
1120
  /*
1121
1121
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1176,7 +1176,7 @@ function checkMaxAge(authTime, maxAge) {
1176
1176
  }
1177
1177
  }
1178
1178
 
1179
- /*! @azure/msal-common v15.5.0 2025-04-08 */
1179
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
1180
1180
  /*
1181
1181
  * Copyright (c) Microsoft Corporation. All rights reserved.
1182
1182
  * Licensed under the MIT License.
@@ -1231,7 +1231,7 @@ function delay(t, value) {
1231
1231
  return new Promise((resolve) => setTimeout(() => resolve(value), t));
1232
1232
  }
1233
1233
 
1234
- /*! @azure/msal-common v15.5.0 2025-04-08 */
1234
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
1235
1235
 
1236
1236
  /*
1237
1237
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1558,7 +1558,7 @@ function isAuthorityMetadataExpired(metadata) {
1558
1558
  return metadata.expiresAt <= nowSeconds();
1559
1559
  }
1560
1560
 
1561
- /*! @azure/msal-common v15.5.0 2025-04-08 */
1561
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
1562
1562
  /*
1563
1563
  * Copyright (c) Microsoft Corporation. All rights reserved.
1564
1564
  * Licensed under the MIT License.
@@ -1612,7 +1612,7 @@ var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
1612
1612
  urlParseError: urlParseError
1613
1613
  });
1614
1614
 
1615
- /*! @azure/msal-common v15.5.0 2025-04-08 */
1615
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
1616
1616
 
1617
1617
  /*
1618
1618
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1750,7 +1750,7 @@ function createClientConfigurationError(errorCode) {
1750
1750
  return new ClientConfigurationError(errorCode);
1751
1751
  }
1752
1752
 
1753
- /*! @azure/msal-common v15.5.0 2025-04-08 */
1753
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
1754
1754
  /*
1755
1755
  * Copyright (c) Microsoft Corporation. All rights reserved.
1756
1756
  * Licensed under the MIT License.
@@ -1847,7 +1847,7 @@ class StringUtils {
1847
1847
  }
1848
1848
  }
1849
1849
 
1850
- /*! @azure/msal-common v15.5.0 2025-04-08 */
1850
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
1851
1851
 
1852
1852
  /*
1853
1853
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2038,7 +2038,7 @@ class ScopeSet {
2038
2038
  }
2039
2039
  }
2040
2040
 
2041
- /*! @azure/msal-common v15.5.0 2025-04-08 */
2041
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
2042
2042
 
2043
2043
  /*
2044
2044
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2078,7 +2078,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
2078
2078
  };
2079
2079
  }
2080
2080
 
2081
- /*! @azure/msal-common v15.5.0 2025-04-08 */
2081
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
2082
2082
  /*
2083
2083
  * Copyright (c) Microsoft Corporation. All rights reserved.
2084
2084
  * Licensed under the MIT License.
@@ -2157,7 +2157,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
2157
2157
  return updatedAccountInfo;
2158
2158
  }
2159
2159
 
2160
- /*! @azure/msal-common v15.5.0 2025-04-08 */
2160
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
2161
2161
  /*
2162
2162
  * Copyright (c) Microsoft Corporation. All rights reserved.
2163
2163
  * Licensed under the MIT License.
@@ -2172,7 +2172,7 @@ const AuthorityType = {
2172
2172
  Ciam: 3,
2173
2173
  };
2174
2174
 
2175
- /*! @azure/msal-common v15.5.0 2025-04-08 */
2175
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
2176
2176
  /*
2177
2177
  * Copyright (c) Microsoft Corporation. All rights reserved.
2178
2178
  * Licensed under the MIT License.
@@ -2194,7 +2194,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
2194
2194
  return null;
2195
2195
  }
2196
2196
 
2197
- /*! @azure/msal-common v15.5.0 2025-04-08 */
2197
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
2198
2198
  /*
2199
2199
  * Copyright (c) Microsoft Corporation. All rights reserved.
2200
2200
  * Licensed under the MIT License.
@@ -2218,7 +2218,7 @@ const ProtocolMode = {
2218
2218
  EAR: "EAR",
2219
2219
  };
2220
2220
 
2221
- /*! @azure/msal-common v15.5.0 2025-04-08 */
2221
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
2222
2222
 
2223
2223
  /*
2224
2224
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2461,7 +2461,7 @@ class AccountEntity {
2461
2461
  }
2462
2462
  }
2463
2463
 
2464
- /*! @azure/msal-common v15.5.0 2025-04-08 */
2464
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
2465
2465
 
2466
2466
  /*
2467
2467
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2511,15 +2511,22 @@ function getDeserializedResponse(responseString) {
2511
2511
  /**
2512
2512
  * Utility to create a URL from the params map
2513
2513
  */
2514
- function mapToQueryString(parameters) {
2514
+ function mapToQueryString(parameters, encodeExtraParams = true, extraQueryParameters) {
2515
2515
  const queryParameterArray = new Array();
2516
2516
  parameters.forEach((value, key) => {
2517
- queryParameterArray.push(`${key}=${encodeURIComponent(value)}`);
2517
+ if (!encodeExtraParams &&
2518
+ extraQueryParameters &&
2519
+ key in extraQueryParameters) {
2520
+ queryParameterArray.push(`${key}=${value}`);
2521
+ }
2522
+ else {
2523
+ queryParameterArray.push(`${key}=${encodeURIComponent(value)}`);
2524
+ }
2518
2525
  });
2519
2526
  return queryParameterArray.join("&");
2520
2527
  }
2521
2528
 
2522
- /*! @azure/msal-common v15.5.0 2025-04-08 */
2529
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
2523
2530
 
2524
2531
  /*
2525
2532
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2683,7 +2690,7 @@ class UrlString {
2683
2690
  }
2684
2691
  }
2685
2692
 
2686
- /*! @azure/msal-common v15.5.0 2025-04-08 */
2693
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
2687
2694
 
2688
2695
  /*
2689
2696
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2823,7 +2830,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
2823
2830
  return null;
2824
2831
  }
2825
2832
 
2826
- /*! @azure/msal-common v15.5.0 2025-04-08 */
2833
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
2827
2834
  /*
2828
2835
  * Copyright (c) Microsoft Corporation. All rights reserved.
2829
2836
  * Licensed under the MIT License.
@@ -2831,7 +2838,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
2831
2838
  const cacheQuotaExceededErrorCode = "cache_quota_exceeded";
2832
2839
  const cacheUnknownErrorCode = "cache_error_unknown";
2833
2840
 
2834
- /*! @azure/msal-common v15.5.0 2025-04-08 */
2841
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
2835
2842
 
2836
2843
  /*
2837
2844
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2858,7 +2865,7 @@ class CacheError extends Error {
2858
2865
  }
2859
2866
  }
2860
2867
 
2861
- /*! @azure/msal-common v15.5.0 2025-04-08 */
2868
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
2862
2869
 
2863
2870
  /*
2864
2871
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4042,7 +4049,7 @@ class DefaultStorageClass extends CacheManager {
4042
4049
  }
4043
4050
  }
4044
4051
 
4045
- /*! @azure/msal-common v15.5.0 2025-04-08 */
4052
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
4046
4053
 
4047
4054
  /*
4048
4055
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4130,6 +4137,7 @@ function buildAuthOptions(authOptions) {
4130
4137
  azureCloudOptions: DEFAULT_AZURE_CLOUD_OPTIONS,
4131
4138
  skipAuthorityMetadataCache: false,
4132
4139
  instanceAware: false,
4140
+ encodeExtraQueryParams: false,
4133
4141
  ...authOptions,
4134
4142
  };
4135
4143
  }
@@ -4141,7 +4149,7 @@ function isOidcProtocolMode(config) {
4141
4149
  return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
4142
4150
  }
4143
4151
 
4144
- /*! @azure/msal-common v15.5.0 2025-04-08 */
4152
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
4145
4153
  /*
4146
4154
  * Copyright (c) Microsoft Corporation. All rights reserved.
4147
4155
  * Licensed under the MIT License.
@@ -4151,7 +4159,7 @@ const CcsCredentialType = {
4151
4159
  UPN: "UPN",
4152
4160
  };
4153
4161
 
4154
- /*! @azure/msal-common v15.5.0 2025-04-08 */
4162
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
4155
4163
  /*
4156
4164
  * Copyright (c) Microsoft Corporation. All rights reserved.
4157
4165
  * Licensed under the MIT License.
@@ -4202,7 +4210,7 @@ const BROKER_CLIENT_ID = "brk_client_id";
4202
4210
  const BROKER_REDIRECT_URI = "brk_redirect_uri";
4203
4211
  const INSTANCE_AWARE = "instance_aware";
4204
4212
 
4205
- /*! @azure/msal-common v15.5.0 2025-04-08 */
4213
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
4206
4214
 
4207
4215
  /*
4208
4216
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4588,7 +4596,7 @@ function addBrokerParameters(parameters, brokerClientId, brokerRedirectUri) {
4588
4596
  }
4589
4597
  }
4590
4598
 
4591
- /*! @azure/msal-common v15.5.0 2025-04-08 */
4599
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
4592
4600
  /*
4593
4601
  * Copyright (c) Microsoft Corporation. All rights reserved.
4594
4602
  * Licensed under the MIT License.
@@ -4600,7 +4608,7 @@ function isOpenIdConfigResponse(response) {
4600
4608
  response.hasOwnProperty("jwks_uri"));
4601
4609
  }
4602
4610
 
4603
- /*! @azure/msal-common v15.5.0 2025-04-08 */
4611
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
4604
4612
  /*
4605
4613
  * Copyright (c) Microsoft Corporation. All rights reserved.
4606
4614
  * Licensed under the MIT License.
@@ -4610,7 +4618,7 @@ function isCloudInstanceDiscoveryResponse(response) {
4610
4618
  response.hasOwnProperty("metadata"));
4611
4619
  }
4612
4620
 
4613
- /*! @azure/msal-common v15.5.0 2025-04-08 */
4621
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
4614
4622
  /*
4615
4623
  * Copyright (c) Microsoft Corporation. All rights reserved.
4616
4624
  * Licensed under the MIT License.
@@ -4620,7 +4628,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
4620
4628
  response.hasOwnProperty("error_description"));
4621
4629
  }
4622
4630
 
4623
- /*! @azure/msal-common v15.5.0 2025-04-08 */
4631
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
4624
4632
  /*
4625
4633
  * Copyright (c) Microsoft Corporation. All rights reserved.
4626
4634
  * Licensed under the MIT License.
@@ -4879,7 +4887,7 @@ const PerformanceEvents = {
4879
4887
  DecryptEarResponse: "decryptEarResponse",
4880
4888
  };
4881
4889
 
4882
- /*! @azure/msal-common v15.5.0 2025-04-08 */
4890
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
4883
4891
  /*
4884
4892
  * Copyright (c) Microsoft Corporation. All rights reserved.
4885
4893
  * Licensed under the MIT License.
@@ -4975,7 +4983,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
4975
4983
  };
4976
4984
  };
4977
4985
 
4978
- /*! @azure/msal-common v15.5.0 2025-04-08 */
4986
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
4979
4987
 
4980
4988
  /*
4981
4989
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5084,7 +5092,7 @@ RegionDiscovery.IMDS_OPTIONS = {
5084
5092
  },
5085
5093
  };
5086
5094
 
5087
- /*! @azure/msal-common v15.5.0 2025-04-08 */
5095
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
5088
5096
 
5089
5097
  /*
5090
5098
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5923,7 +5931,7 @@ function buildStaticAuthorityOptions(authOptions) {
5923
5931
  };
5924
5932
  }
5925
5933
 
5926
- /*! @azure/msal-common v15.5.0 2025-04-08 */
5934
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
5927
5935
 
5928
5936
  /*
5929
5937
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5954,7 +5962,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
5954
5962
  }
5955
5963
  }
5956
5964
 
5957
- /*! @azure/msal-common v15.5.0 2025-04-08 */
5965
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
5958
5966
 
5959
5967
  /*
5960
5968
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5973,7 +5981,7 @@ class ServerError extends AuthError {
5973
5981
  }
5974
5982
  }
5975
5983
 
5976
- /*! @azure/msal-common v15.5.0 2025-04-08 */
5984
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
5977
5985
  /*
5978
5986
  * Copyright (c) Microsoft Corporation. All rights reserved.
5979
5987
  * Licensed under the MIT License.
@@ -5994,7 +6002,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
5994
6002
  };
5995
6003
  }
5996
6004
 
5997
- /*! @azure/msal-common v15.5.0 2025-04-08 */
6005
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
5998
6006
 
5999
6007
  /*
6000
6008
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6081,7 +6089,7 @@ class ThrottlingUtils {
6081
6089
  }
6082
6090
  }
6083
6091
 
6084
- /*! @azure/msal-common v15.5.0 2025-04-08 */
6092
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
6085
6093
 
6086
6094
  /*
6087
6095
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6101,7 +6109,7 @@ class NetworkError extends AuthError {
6101
6109
  }
6102
6110
  }
6103
6111
 
6104
- /*! @azure/msal-common v15.5.0 2025-04-08 */
6112
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
6105
6113
 
6106
6114
  /*
6107
6115
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6249,7 +6257,7 @@ class BaseClient {
6249
6257
  }
6250
6258
  }
6251
6259
 
6252
- /*! @azure/msal-common v15.5.0 2025-04-08 */
6260
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
6253
6261
  /*
6254
6262
  * Copyright (c) Microsoft Corporation. All rights reserved.
6255
6263
  * Licensed under the MIT License.
@@ -6275,7 +6283,7 @@ var InteractionRequiredAuthErrorCodes = /*#__PURE__*/Object.freeze({
6275
6283
  refreshTokenExpired: refreshTokenExpired
6276
6284
  });
6277
6285
 
6278
- /*! @azure/msal-common v15.5.0 2025-04-08 */
6286
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
6279
6287
 
6280
6288
  /*
6281
6289
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6363,7 +6371,7 @@ function createInteractionRequiredAuthError(errorCode) {
6363
6371
  return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
6364
6372
  }
6365
6373
 
6366
- /*! @azure/msal-common v15.5.0 2025-04-08 */
6374
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
6367
6375
 
6368
6376
  /*
6369
6377
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6435,7 +6443,7 @@ class ProtocolUtils {
6435
6443
  }
6436
6444
  }
6437
6445
 
6438
- /*! @azure/msal-common v15.5.0 2025-04-08 */
6446
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
6439
6447
 
6440
6448
  /*
6441
6449
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6519,7 +6527,7 @@ class PopTokenGenerator {
6519
6527
  }
6520
6528
  }
6521
6529
 
6522
- /*! @azure/msal-common v15.5.0 2025-04-08 */
6530
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
6523
6531
  /*
6524
6532
  * Copyright (c) Microsoft Corporation. All rights reserved.
6525
6533
  * Licensed under the MIT License.
@@ -6546,7 +6554,7 @@ class PopTokenGenerator {
6546
6554
  }
6547
6555
  }
6548
6556
 
6549
- /*! @azure/msal-common v15.5.0 2025-04-08 */
6557
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
6550
6558
 
6551
6559
  /*
6552
6560
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6877,7 +6885,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
6877
6885
  return baseAccount;
6878
6886
  }
6879
6887
 
6880
- /*! @azure/msal-common v15.5.0 2025-04-08 */
6888
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
6881
6889
 
6882
6890
  /*
6883
6891
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6944,7 +6952,7 @@ class RequestValidator {
6944
6952
  }
6945
6953
  }
6946
6954
 
6947
- /*! @azure/msal-common v15.5.0 2025-04-08 */
6955
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
6948
6956
  /*
6949
6957
  * Copyright (c) Microsoft Corporation. All rights reserved.
6950
6958
  * Licensed under the MIT License.
@@ -6962,7 +6970,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint) {
6962
6970
  }
6963
6971
  }
6964
6972
 
6965
- /*! @azure/msal-common v15.5.0 2025-04-08 */
6973
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
6966
6974
 
6967
6975
  /*
6968
6976
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7191,11 +7199,11 @@ class AuthorizationCodeClient extends BaseClient {
7191
7199
  if (this.config.authOptions.instanceAware) {
7192
7200
  addInstanceAware(parameters);
7193
7201
  }
7194
- return mapToQueryString(parameters);
7202
+ return mapToQueryString(parameters, this.config.authOptions.encodeExtraQueryParams, request.extraQueryParameters);
7195
7203
  }
7196
7204
  }
7197
7205
 
7198
- /*! @azure/msal-common v15.5.0 2025-04-08 */
7206
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
7199
7207
 
7200
7208
  /*
7201
7209
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7404,7 +7412,7 @@ class RefreshTokenClient extends BaseClient {
7404
7412
  }
7405
7413
  }
7406
7414
 
7407
- /*! @azure/msal-common v15.5.0 2025-04-08 */
7415
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
7408
7416
 
7409
7417
  /*
7410
7418
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7502,7 +7510,7 @@ class SilentFlowClient extends BaseClient {
7502
7510
  }
7503
7511
  }
7504
7512
 
7505
- /*! @azure/msal-common v15.5.0 2025-04-08 */
7513
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
7506
7514
 
7507
7515
  /*
7508
7516
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7637,8 +7645,8 @@ function getStandardAuthorizeRequestParameters(authOptions, request, logger, per
7637
7645
  * @param requestParameters
7638
7646
  * @returns
7639
7647
  */
7640
- function getAuthorizeUrl(authority, requestParameters) {
7641
- const queryString = mapToQueryString(requestParameters);
7648
+ function getAuthorizeUrl(authority, requestParameters, encodeParams, extraQueryParameters) {
7649
+ const queryString = mapToQueryString(requestParameters, encodeParams, extraQueryParameters);
7642
7650
  return UrlString.appendQueryString(authority.authorizationEndpoint, queryString);
7643
7651
  }
7644
7652
  /**
@@ -7652,7 +7660,7 @@ function extractLoginHint(account) {
7652
7660
  return account.idTokenClaims?.login_hint || null;
7653
7661
  }
7654
7662
 
7655
- /*! @azure/msal-common v15.5.0 2025-04-08 */
7663
+ /*! @azure/msal-common v15.5.1 2025-04-16 */
7656
7664
 
7657
7665
  /*
7658
7666
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8787,6 +8795,7 @@ const DEFAULT_AUTH_OPTIONS = {
8787
8795
  tenant: Constants$1.EMPTY_STRING,
8788
8796
  },
8789
8797
  skipAuthorityMetadataCache: false,
8798
+ encodeExtraQueryParams: false,
8790
8799
  };
8791
8800
  const DEFAULT_CACHE_OPTIONS = {
8792
8801
  claimsBasedCachingEnabled: false,
@@ -9935,7 +9944,7 @@ class ClientAssertion {
9935
9944
 
9936
9945
  /* eslint-disable header/header */
9937
9946
  const name = "@azure/msal-node";
9938
- const version = "3.5.0";
9947
+ const version = "3.5.1";
9939
9948
 
9940
9949
  /*
9941
9950
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -10067,7 +10076,7 @@ function getAuthCodeRequestUrl(config, authority, request, logger) {
10067
10076
  addCodeChallengeParams(parameters, request.codeChallenge, request.codeChallengeMethod);
10068
10077
  }
10069
10078
  addExtraQueryParameters(parameters, request.extraQueryParameters || {});
10070
- return getAuthorizeUrl(authority, parameters);
10079
+ return getAuthorizeUrl(authority, parameters, config.auth.encodeExtraQueryParams, request.extraQueryParameters);
10071
10080
  }
10072
10081
 
10073
10082
  /*