@azure/msal-common 15.5.0 → 15.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 (100) hide show
  1. package/dist/account/AccountInfo.mjs +1 -1
  2. package/dist/account/AuthToken.mjs +1 -1
  3. package/dist/account/CcsCredential.mjs +1 -1
  4. package/dist/account/ClientInfo.mjs +1 -1
  5. package/dist/account/TokenClaims.mjs +1 -1
  6. package/dist/authority/Authority.mjs +1 -1
  7. package/dist/authority/AuthorityFactory.mjs +1 -1
  8. package/dist/authority/AuthorityMetadata.mjs +1 -1
  9. package/dist/authority/AuthorityOptions.mjs +1 -1
  10. package/dist/authority/AuthorityType.mjs +1 -1
  11. package/dist/authority/CloudInstanceDiscoveryErrorResponse.mjs +1 -1
  12. package/dist/authority/CloudInstanceDiscoveryResponse.mjs +1 -1
  13. package/dist/authority/OpenIdConfigResponse.mjs +1 -1
  14. package/dist/authority/ProtocolMode.mjs +1 -1
  15. package/dist/authority/RegionDiscovery.mjs +1 -1
  16. package/dist/cache/CacheManager.mjs +1 -1
  17. package/dist/cache/entities/AccountEntity.mjs +1 -1
  18. package/dist/cache/persistence/TokenCacheContext.mjs +1 -1
  19. package/dist/cache/utils/CacheHelpers.mjs +1 -1
  20. package/dist/client/AuthorizationCodeClient.d.ts.map +1 -1
  21. package/dist/client/AuthorizationCodeClient.mjs +2 -2
  22. package/dist/client/AuthorizationCodeClient.mjs.map +1 -1
  23. package/dist/client/BaseClient.mjs +1 -1
  24. package/dist/client/RefreshTokenClient.mjs +1 -1
  25. package/dist/client/SilentFlowClient.mjs +1 -1
  26. package/dist/config/ClientConfiguration.d.ts +5 -0
  27. package/dist/config/ClientConfiguration.d.ts.map +1 -1
  28. package/dist/config/ClientConfiguration.mjs +2 -1
  29. package/dist/config/ClientConfiguration.mjs.map +1 -1
  30. package/dist/constants/AADServerParamKeys.mjs +1 -1
  31. package/dist/crypto/ICrypto.mjs +1 -1
  32. package/dist/crypto/JoseHeader.mjs +1 -1
  33. package/dist/crypto/PopTokenGenerator.mjs +1 -1
  34. package/dist/error/AuthError.mjs +1 -1
  35. package/dist/error/AuthErrorCodes.mjs +1 -1
  36. package/dist/error/CacheError.mjs +1 -1
  37. package/dist/error/CacheErrorCodes.mjs +1 -1
  38. package/dist/error/ClientAuthError.mjs +1 -1
  39. package/dist/error/ClientAuthErrorCodes.mjs +1 -1
  40. package/dist/error/ClientConfigurationError.mjs +1 -1
  41. package/dist/error/ClientConfigurationErrorCodes.mjs +1 -1
  42. package/dist/error/InteractionRequiredAuthError.mjs +1 -1
  43. package/dist/error/InteractionRequiredAuthErrorCodes.mjs +1 -1
  44. package/dist/error/JoseHeaderError.mjs +1 -1
  45. package/dist/error/JoseHeaderErrorCodes.mjs +1 -1
  46. package/dist/error/NetworkError.mjs +1 -1
  47. package/dist/error/ServerError.mjs +1 -1
  48. package/dist/index-browser.mjs +1 -1
  49. package/dist/index-node.mjs +1 -1
  50. package/dist/index.mjs +1 -1
  51. package/dist/logger/Logger.mjs +1 -1
  52. package/dist/network/INetworkModule.mjs +1 -1
  53. package/dist/network/RequestThumbprint.mjs +1 -1
  54. package/dist/network/ThrottlingUtils.mjs +1 -1
  55. package/dist/packageMetadata.d.ts +1 -1
  56. package/dist/packageMetadata.mjs +2 -2
  57. package/dist/protocol/Authorize.d.ts +2 -1
  58. package/dist/protocol/Authorize.d.ts.map +1 -1
  59. package/dist/protocol/Authorize.mjs +3 -3
  60. package/dist/protocol/Authorize.mjs.map +1 -1
  61. package/dist/request/AuthenticationHeaderParser.mjs +1 -1
  62. package/dist/request/RequestParameterBuilder.mjs +1 -1
  63. package/dist/request/RequestValidator.mjs +1 -1
  64. package/dist/request/ScopeSet.mjs +1 -1
  65. package/dist/response/ResponseHandler.mjs +1 -1
  66. package/dist/telemetry/performance/PerformanceClient.mjs +1 -1
  67. package/dist/telemetry/performance/PerformanceEvent.mjs +1 -1
  68. package/dist/telemetry/performance/StubPerformanceClient.mjs +1 -1
  69. package/dist/telemetry/server/ServerTelemetryManager.mjs +1 -1
  70. package/dist/url/UrlString.mjs +1 -1
  71. package/dist/utils/ClientAssertionUtils.mjs +1 -1
  72. package/dist/utils/Constants.mjs +1 -1
  73. package/dist/utils/FunctionWrappers.mjs +1 -1
  74. package/dist/utils/ProtocolUtils.mjs +1 -1
  75. package/dist/utils/StringUtils.mjs +1 -1
  76. package/dist/utils/TimeUtils.mjs +1 -1
  77. package/dist/utils/UrlUtils.d.ts +2 -1
  78. package/dist/utils/UrlUtils.d.ts.map +1 -1
  79. package/dist/utils/UrlUtils.mjs +10 -3
  80. package/dist/utils/UrlUtils.mjs.map +1 -1
  81. package/lib/index-browser.cjs +2 -2
  82. package/lib/{index-node-DproT-OM.js → index-node-DHxgzN6_.js} +16 -8
  83. package/lib/index-node-DHxgzN6_.js.map +1 -0
  84. package/lib/index-node.cjs +2 -2
  85. package/lib/index.cjs +2 -2
  86. package/lib/types/client/AuthorizationCodeClient.d.ts.map +1 -1
  87. package/lib/types/config/ClientConfiguration.d.ts +5 -0
  88. package/lib/types/config/ClientConfiguration.d.ts.map +1 -1
  89. package/lib/types/packageMetadata.d.ts +1 -1
  90. package/lib/types/protocol/Authorize.d.ts +2 -1
  91. package/lib/types/protocol/Authorize.d.ts.map +1 -1
  92. package/lib/types/utils/UrlUtils.d.ts +2 -1
  93. package/lib/types/utils/UrlUtils.d.ts.map +1 -1
  94. package/package.json +1 -1
  95. package/src/client/AuthorizationCodeClient.ts +5 -1
  96. package/src/config/ClientConfiguration.ts +6 -0
  97. package/src/packageMetadata.ts +1 -1
  98. package/src/protocol/Authorize.ts +9 -3
  99. package/src/utils/UrlUtils.ts +15 -2
  100. package/lib/index-node-DproT-OM.js.map +0 -1
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v15.5.0 2025-04-08 */
1
+ /*! @azure/msal-common v15.5.1 2025-04-15 */
2
2
  'use strict';
3
3
  import { createClientConfigurationError } from '../error/ClientConfigurationError.mjs';
4
4
  import { Constants, HeaderNames } from '../utils/Constants.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v15.5.0 2025-04-08 */
1
+ /*! @azure/msal-common v15.5.1 2025-04-15 */
2
2
  'use strict';
3
3
  import { ResponseMode, OIDC_DEFAULT_SCOPES, HeaderNames, CLIENT_INFO, ClaimsRequestKeys, PasswordGrantConstants, AuthenticationScheme, ThrottlingConstants } from '../utils/Constants.mjs';
4
4
  import { CLIENT_ID, BROKER_CLIENT_ID, REDIRECT_URI, RESPONSE_TYPE, RESPONSE_MODE, NATIVE_BROKER, SCOPE, POST_LOGOUT_URI, ID_TOKEN_HINT, DOMAIN_HINT, LOGIN_HINT, SID, CLAIMS, CLIENT_REQUEST_ID, X_CLIENT_SKU, X_CLIENT_VER, X_CLIENT_OS, X_CLIENT_CPU, X_APP_NAME, X_APP_VER, PROMPT, STATE, NONCE, CODE_CHALLENGE, CODE_CHALLENGE_METHOD, CODE, DEVICE_CODE, REFRESH_TOKEN, CODE_VERIFIER, CLIENT_SECRET, CLIENT_ASSERTION, CLIENT_ASSERTION_TYPE, OBO_ASSERTION, REQUESTED_TOKEN_USE, GRANT_TYPE, INSTANCE_AWARE, TOKEN_TYPE, REQ_CNF, X_CLIENT_CURR_TELEM, X_CLIENT_LAST_TELEM, X_MS_LIB_CAPABILITY, LOGOUT_HINT, BROKER_REDIRECT_URI, EAR_JWK, EAR_JWE_CRYPTO } from '../constants/AADServerParamKeys.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v15.5.0 2025-04-08 */
1
+ /*! @azure/msal-common v15.5.1 2025-04-15 */
2
2
  'use strict';
3
3
  import { createClientConfigurationError } from '../error/ClientConfigurationError.mjs';
4
4
  import { CodeChallengeMethodValues, PromptValue } from '../utils/Constants.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v15.5.0 2025-04-08 */
1
+ /*! @azure/msal-common v15.5.1 2025-04-15 */
2
2
  'use strict';
3
3
  import { createClientConfigurationError } from '../error/ClientConfigurationError.mjs';
4
4
  import { StringUtils } from '../utils/StringUtils.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v15.5.0 2025-04-08 */
1
+ /*! @azure/msal-common v15.5.1 2025-04-15 */
2
2
  'use strict';
3
3
  import { createClientAuthError } from '../error/ClientAuthError.mjs';
4
4
  import { ServerError } from '../error/ServerError.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v15.5.0 2025-04-08 */
1
+ /*! @azure/msal-common v15.5.1 2025-04-15 */
2
2
  'use strict';
3
3
  import { IntFields, PerformanceEventAbbreviations, PerformanceEventStatus } from './PerformanceEvent.mjs';
4
4
  import { StubPerformanceMeasurement } from './StubPerformanceClient.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v15.5.0 2025-04-08 */
1
+ /*! @azure/msal-common v15.5.1 2025-04-15 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v15.5.0 2025-04-08 */
1
+ /*! @azure/msal-common v15.5.1 2025-04-15 */
2
2
  'use strict';
3
3
  import { PerformanceEventStatus } from './PerformanceEvent.mjs';
4
4
 
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v15.5.0 2025-04-08 */
1
+ /*! @azure/msal-common v15.5.1 2025-04-15 */
2
2
  'use strict';
3
3
  import { CacheOutcome, Constants, SERVER_TELEM_CONSTANTS, Separators } from '../../utils/Constants.mjs';
4
4
  import { AuthError } from '../../error/AuthError.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v15.5.0 2025-04-08 */
1
+ /*! @azure/msal-common v15.5.1 2025-04-15 */
2
2
  'use strict';
3
3
  import { createClientConfigurationError } from '../error/ClientConfigurationError.mjs';
4
4
  import { StringUtils } from '../utils/StringUtils.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v15.5.0 2025-04-08 */
1
+ /*! @azure/msal-common v15.5.1 2025-04-15 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v15.5.0 2025-04-08 */
1
+ /*! @azure/msal-common v15.5.1 2025-04-15 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v15.5.0 2025-04-08 */
1
+ /*! @azure/msal-common v15.5.1 2025-04-15 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v15.5.0 2025-04-08 */
1
+ /*! @azure/msal-common v15.5.1 2025-04-15 */
2
2
  'use strict';
3
3
  import { Constants } from './Constants.mjs';
4
4
  import { createClientAuthError } from '../error/ClientAuthError.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v15.5.0 2025-04-08 */
1
+ /*! @azure/msal-common v15.5.1 2025-04-15 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v15.5.0 2025-04-08 */
1
+ /*! @azure/msal-common v15.5.1 2025-04-15 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,5 @@
1
1
  import { AuthorizeResponse } from "../response/AuthorizeResponse.js";
2
+ import { StringDict } from "./MsalTypes.js";
2
3
  /**
3
4
  * Parses hash string from given string. Returns empty string if no hash symbol is found.
4
5
  * @param hashString
@@ -11,5 +12,5 @@ export declare function getDeserializedResponse(responseString: string): Authori
11
12
  /**
12
13
  * Utility to create a URL from the params map
13
14
  */
14
- export declare function mapToQueryString(parameters: Map<string, string>): string;
15
+ export declare function mapToQueryString(parameters: Map<string, string>, encodeExtraParams?: boolean, extraQueryParameters?: StringDict): string;
15
16
  //# sourceMappingURL=UrlUtils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UrlUtils.d.ts","sourceRoot":"","sources":["../../src/utils/UrlUtils.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAMrE;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAWtE;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACnC,cAAc,EAAE,MAAM,GACvB,iBAAiB,GAAG,IAAI,CA4B1B;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAQxE"}
1
+ {"version":3,"file":"UrlUtils.d.ts","sourceRoot":"","sources":["../../src/utils/UrlUtils.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAKrE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAWtE;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACnC,cAAc,EAAE,MAAM,GACvB,iBAAiB,GAAG,IAAI,CA4B1B;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC5B,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,iBAAiB,GAAE,OAAc,EACjC,oBAAoB,CAAC,EAAE,UAAU,GAClC,MAAM,CAgBR"}
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v15.5.0 2025-04-08 */
1
+ /*! @azure/msal-common v15.5.1 2025-04-15 */
2
2
  'use strict';
3
3
  import { createClientAuthError } from '../error/ClientAuthError.mjs';
4
4
  import { hashNotDeserialized } from '../error/ClientAuthErrorCodes.mjs';
@@ -51,10 +51,17 @@ function getDeserializedResponse(responseString) {
51
51
  /**
52
52
  * Utility to create a URL from the params map
53
53
  */
54
- function mapToQueryString(parameters) {
54
+ function mapToQueryString(parameters, encodeExtraParams = true, extraQueryParameters) {
55
55
  const queryParameterArray = new Array();
56
56
  parameters.forEach((value, key) => {
57
- queryParameterArray.push(`${key}=${encodeURIComponent(value)}`);
57
+ if (!encodeExtraParams &&
58
+ extraQueryParameters &&
59
+ key in extraQueryParameters) {
60
+ queryParameterArray.push(`${key}=${value}`);
61
+ }
62
+ else {
63
+ queryParameterArray.push(`${key}=${encodeURIComponent(value)}`);
64
+ }
58
65
  });
59
66
  return queryParameterArray.join("&");
60
67
  }
@@ -1 +1 @@
1
- {"version":3,"file":"UrlUtils.mjs","sources":["../../src/utils/UrlUtils.ts"],"sourcesContent":[null],"names":["ClientAuthErrorCodes.hashNotDeserialized"],"mappings":";;;;;AAAA;;;AAGG;AAQH;;;AAGG;AACG,SAAU,uBAAuB,CAAC,cAAsB,EAAA;AAC1D,IAAA,IAAI,cAAc,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE;AACjC,QAAA,OAAO,cAAc,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;AACtC,KAAA;AAAM,SAAA,IACH,cAAc,CAAC,UAAU,CAAC,GAAG,CAAC;AAC9B,QAAA,cAAc,CAAC,UAAU,CAAC,GAAG,CAAC,EAChC;AACE,QAAA,OAAO,cAAc,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;AACtC,KAAA;AAED,IAAA,OAAO,cAAc,CAAC;AAC1B,CAAC;AAED;;AAEG;AACG,SAAU,uBAAuB,CACnC,cAAsB,EAAA;;IAGtB,IAAI,CAAC,cAAc,IAAI,cAAc,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;AACpD,QAAA,OAAO,IAAI,CAAC;AACf,KAAA;IACD,IAAI;;AAEA,QAAA,MAAM,kBAAkB,GAAG,uBAAuB,CAAC,cAAc,CAAC,CAAC;;AAEnE,QAAA,MAAM,gBAAgB,GAAsB,MAAM,CAAC,WAAW,CAC1D,IA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AAA;AACH,YAAA,mBAAmB,CAAC,IAAI,CAAC,CAAA,EAAG,GAAG,CAAA,CAAA,EAAI,kBAAkB,CAAC,KAAK,CAAC,CAAE,CAAA,CAAC,CAAC;AACnE,SAAA;AACL,KAAC,CAAC,CAAC;AAEH,IAAA,OAAO,mBAAmB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACzC;;;;"}
@@ -1,8 +1,8 @@
1
- /*! @azure/msal-common v15.5.0 2025-04-08 */
1
+ /*! @azure/msal-common v15.5.1 2025-04-15 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
5
- var indexNode = require('./index-node-DproT-OM.js');
5
+ var indexNode = require('./index-node-DHxgzN6_.js');
6
6
 
7
7
  /*
8
8
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v15.5.0 2025-04-08 */
1
+ /*! @azure/msal-common v15.5.1 2025-04-15 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
@@ -1160,10 +1160,17 @@ function getDeserializedResponse(responseString) {
1160
1160
  /**
1161
1161
  * Utility to create a URL from the params map
1162
1162
  */
1163
- function mapToQueryString(parameters) {
1163
+ function mapToQueryString(parameters, encodeExtraParams = true, extraQueryParameters) {
1164
1164
  const queryParameterArray = new Array();
1165
1165
  parameters.forEach((value, key) => {
1166
- queryParameterArray.push(`${key}=${encodeURIComponent(value)}`);
1166
+ if (!encodeExtraParams &&
1167
+ extraQueryParameters &&
1168
+ key in extraQueryParameters) {
1169
+ queryParameterArray.push(`${key}=${value}`);
1170
+ }
1171
+ else {
1172
+ queryParameterArray.push(`${key}=${encodeURIComponent(value)}`);
1173
+ }
1167
1174
  });
1168
1175
  return queryParameterArray.join("&");
1169
1176
  }
@@ -3891,7 +3898,7 @@ class Logger {
3891
3898
 
3892
3899
  /* eslint-disable header/header */
3893
3900
  const name = "@azure/msal-common";
3894
- const version = "15.5.0";
3901
+ const version = "15.5.1";
3895
3902
 
3896
3903
  /*
3897
3904
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5767,6 +5774,7 @@ function buildAuthOptions(authOptions) {
5767
5774
  azureCloudOptions: DEFAULT_AZURE_CLOUD_OPTIONS,
5768
5775
  skipAuthorityMetadataCache: false,
5769
5776
  instanceAware: false,
5777
+ encodeExtraQueryParams: false,
5770
5778
  ...authOptions,
5771
5779
  };
5772
5780
  }
@@ -7465,7 +7473,7 @@ class AuthorizationCodeClient extends BaseClient {
7465
7473
  if (this.config.authOptions.instanceAware) {
7466
7474
  addInstanceAware(parameters);
7467
7475
  }
7468
- return mapToQueryString(parameters);
7476
+ return mapToQueryString(parameters, this.config.authOptions.encodeExtraQueryParams, request.extraQueryParameters);
7469
7477
  }
7470
7478
  }
7471
7479
 
@@ -7926,8 +7934,8 @@ function getStandardAuthorizeRequestParameters(authOptions, request, logger, per
7926
7934
  * @param requestParameters
7927
7935
  * @returns
7928
7936
  */
7929
- function getAuthorizeUrl(authority, requestParameters) {
7930
- const queryString = mapToQueryString(requestParameters);
7937
+ function getAuthorizeUrl(authority, requestParameters, encodeParams, extraQueryParameters) {
7938
+ const queryString = mapToQueryString(requestParameters, encodeParams, extraQueryParameters);
7931
7939
  return UrlString.appendQueryString(authority.authorizationEndpoint, queryString);
7932
7940
  }
7933
7941
  /**
@@ -8431,4 +8439,4 @@ exports.invokeAsync = invokeAsync;
8431
8439
  exports.tenantIdMatchesHomeTenant = tenantIdMatchesHomeTenant;
8432
8440
  exports.updateAccountTenantProfileData = updateAccountTenantProfileData;
8433
8441
  exports.version = version;
8434
- //# sourceMappingURL=index-node-DproT-OM.js.map
8442
+ //# sourceMappingURL=index-node-DHxgzN6_.js.map