@azure/msal-common 15.8.0 → 15.8.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 +5 -4
  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.mjs +1 -1
  27. package/dist/constants/AADServerParamKeys.mjs +1 -1
  28. package/dist/crypto/ICrypto.mjs +1 -1
  29. package/dist/crypto/JoseHeader.mjs +1 -1
  30. package/dist/crypto/PopTokenGenerator.mjs +1 -1
  31. package/dist/error/AuthError.mjs +1 -1
  32. package/dist/error/AuthErrorCodes.mjs +1 -1
  33. package/dist/error/CacheError.mjs +1 -1
  34. package/dist/error/CacheErrorCodes.mjs +1 -1
  35. package/dist/error/ClientAuthError.mjs +1 -1
  36. package/dist/error/ClientAuthErrorCodes.mjs +1 -1
  37. package/dist/error/ClientConfigurationError.d.ts +0 -5
  38. package/dist/error/ClientConfigurationError.d.ts.map +1 -1
  39. package/dist/error/ClientConfigurationError.mjs +2 -7
  40. package/dist/error/ClientConfigurationError.mjs.map +1 -1
  41. package/dist/error/ClientConfigurationErrorCodes.d.ts +0 -1
  42. package/dist/error/ClientConfigurationErrorCodes.d.ts.map +1 -1
  43. package/dist/error/ClientConfigurationErrorCodes.mjs +2 -3
  44. package/dist/error/ClientConfigurationErrorCodes.mjs.map +1 -1
  45. package/dist/error/InteractionRequiredAuthError.mjs +1 -1
  46. package/dist/error/InteractionRequiredAuthErrorCodes.mjs +1 -1
  47. package/dist/error/JoseHeaderError.mjs +1 -1
  48. package/dist/error/JoseHeaderErrorCodes.mjs +1 -1
  49. package/dist/error/NetworkError.mjs +1 -1
  50. package/dist/error/ServerError.mjs +1 -1
  51. package/dist/index-browser.mjs +1 -1
  52. package/dist/index-node.mjs +1 -1
  53. package/dist/index.mjs +1 -1
  54. package/dist/logger/Logger.mjs +1 -1
  55. package/dist/network/INetworkModule.mjs +1 -1
  56. package/dist/network/RequestThumbprint.mjs +1 -1
  57. package/dist/network/ThrottlingUtils.mjs +1 -1
  58. package/dist/packageMetadata.d.ts +1 -1
  59. package/dist/packageMetadata.mjs +2 -2
  60. package/dist/protocol/Authorize.mjs +1 -1
  61. package/dist/request/AuthenticationHeaderParser.mjs +1 -1
  62. package/dist/request/RequestParameterBuilder.mjs +1 -1
  63. package/dist/request/ScopeSet.mjs +1 -1
  64. package/dist/response/ResponseHandler.mjs +1 -1
  65. package/dist/telemetry/performance/PerformanceClient.mjs +1 -1
  66. package/dist/telemetry/performance/PerformanceEvent.mjs +1 -1
  67. package/dist/telemetry/performance/StubPerformanceClient.mjs +1 -1
  68. package/dist/telemetry/server/ServerTelemetryManager.mjs +1 -1
  69. package/dist/url/UrlString.mjs +1 -1
  70. package/dist/utils/ClientAssertionUtils.mjs +1 -1
  71. package/dist/utils/Constants.mjs +1 -1
  72. package/dist/utils/FunctionWrappers.mjs +1 -1
  73. package/dist/utils/ProtocolUtils.mjs +1 -1
  74. package/dist/utils/StringUtils.mjs +1 -1
  75. package/dist/utils/TimeUtils.mjs +1 -1
  76. package/dist/utils/UrlUtils.mjs +1 -1
  77. package/lib/index-browser.cjs +2 -2
  78. package/lib/{index-node-2PsHlOld.js → index-node-BCM1mkg5.js} +6 -76
  79. package/lib/index-node-BCM1mkg5.js.map +1 -0
  80. package/lib/index-node.cjs +2 -2
  81. package/lib/index.cjs +2 -2
  82. package/lib/types/client/AuthorizationCodeClient.d.ts.map +1 -1
  83. package/lib/types/error/ClientConfigurationError.d.ts +0 -5
  84. package/lib/types/error/ClientConfigurationError.d.ts.map +1 -1
  85. package/lib/types/error/ClientConfigurationErrorCodes.d.ts +0 -1
  86. package/lib/types/error/ClientConfigurationErrorCodes.d.ts.map +1 -1
  87. package/lib/types/packageMetadata.d.ts +1 -1
  88. package/package.json +1 -1
  89. package/src/client/AuthorizationCodeClient.ts +5 -2
  90. package/src/error/ClientConfigurationError.ts +0 -8
  91. package/src/error/ClientConfigurationErrorCodes.ts +0 -1
  92. package/src/packageMetadata.ts +1 -1
  93. package/dist/request/RequestValidator.d.ts +0 -28
  94. package/dist/request/RequestValidator.d.ts.map +0 -1
  95. package/dist/request/RequestValidator.mjs +0 -73
  96. package/dist/request/RequestValidator.mjs.map +0 -1
  97. package/lib/index-node-2PsHlOld.js.map +0 -1
  98. package/lib/types/request/RequestValidator.d.ts +0 -28
  99. package/lib/types/request/RequestValidator.d.ts.map +0 -1
  100. package/src/request/RequestValidator.ts +0 -90
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v15.8.0 2025-07-01 */
1
+ /*! @azure/msal-common v15.8.1 2025-07-08 */
2
2
  'use strict';
3
3
  import { OIDC_DEFAULT_SCOPES, ResponseMode, 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.8.0 2025-07-01 */
1
+ /*! @azure/msal-common v15.8.1 2025-07-08 */
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.8.0 2025-07-01 */
1
+ /*! @azure/msal-common v15.8.1 2025-07-08 */
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.8.0 2025-07-01 */
1
+ /*! @azure/msal-common v15.8.1 2025-07-08 */
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.8.0 2025-07-01 */
1
+ /*! @azure/msal-common v15.8.1 2025-07-08 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v15.8.0 2025-07-01 */
1
+ /*! @azure/msal-common v15.8.1 2025-07-08 */
2
2
  'use strict';
3
3
  import { PerformanceEventStatus } from './PerformanceEvent.mjs';
4
4
 
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v15.8.0 2025-07-01 */
1
+ /*! @azure/msal-common v15.8.1 2025-07-08 */
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.8.0 2025-07-01 */
1
+ /*! @azure/msal-common v15.8.1 2025-07-08 */
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.8.0 2025-07-01 */
1
+ /*! @azure/msal-common v15.8.1 2025-07-08 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v15.8.0 2025-07-01 */
1
+ /*! @azure/msal-common v15.8.1 2025-07-08 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v15.8.0 2025-07-01 */
1
+ /*! @azure/msal-common v15.8.1 2025-07-08 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v15.8.0 2025-07-01 */
1
+ /*! @azure/msal-common v15.8.1 2025-07-08 */
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.8.0 2025-07-01 */
1
+ /*! @azure/msal-common v15.8.1 2025-07-08 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v15.8.0 2025-07-01 */
1
+ /*! @azure/msal-common v15.8.1 2025-07-08 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v15.8.0 2025-07-01 */
1
+ /*! @azure/msal-common v15.8.1 2025-07-08 */
2
2
  'use strict';
3
3
  import { createClientAuthError } from '../error/ClientAuthError.mjs';
4
4
  import { hashNotDeserialized } from '../error/ClientAuthErrorCodes.mjs';
@@ -1,8 +1,8 @@
1
- /*! @azure/msal-common v15.8.0 2025-07-01 */
1
+ /*! @azure/msal-common v15.8.1 2025-07-08 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
5
- var indexNode = require('./index-node-2PsHlOld.js');
5
+ var indexNode = require('./index-node-BCM1mkg5.js');
6
6
 
7
7
  /*
8
8
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v15.8.0 2025-07-01 */
1
+ /*! @azure/msal-common v15.8.1 2025-07-08 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
@@ -832,7 +832,6 @@ const authorityUriInsecure = "authority_uri_insecure";
832
832
  const urlParseError = "url_parse_error";
833
833
  const urlEmptyError = "empty_url_error";
834
834
  const emptyInputScopesError = "empty_input_scopes_error";
835
- const invalidPromptValue = "invalid_prompt_value";
836
835
  const invalidClaims = "invalid_claims";
837
836
  const tokenRequestEmpty = "token_request_empty";
838
837
  const logoutRequestEmpty = "logout_request_empty";
@@ -862,7 +861,6 @@ var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
862
861
  invalidClaims: invalidClaims,
863
862
  invalidCloudDiscoveryMetadata: invalidCloudDiscoveryMetadata,
864
863
  invalidCodeChallengeMethod: invalidCodeChallengeMethod,
865
- invalidPromptValue: invalidPromptValue,
866
864
  logoutRequestEmpty: logoutRequestEmpty,
867
865
  missingNonceAuthenticationHeader: missingNonceAuthenticationHeader,
868
866
  missingSshJwk: missingSshJwk,
@@ -886,7 +884,6 @@ const ClientConfigurationErrorMessages = {
886
884
  [urlParseError]: "URL could not be parsed into appropriate segments.",
887
885
  [urlEmptyError]: "URL was empty or null.",
888
886
  [emptyInputScopesError]: "Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token.",
889
- [invalidPromptValue]: "Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest",
890
887
  [invalidClaims]: "Given claims parameter must be a stringified JSON object.",
891
888
  [tokenRequestEmpty]: "Token request was empty and not found in cache.",
892
889
  [logoutRequestEmpty]: "The logout request was null or undefined.",
@@ -932,10 +929,6 @@ const ClientConfigurationErrorMessage = {
932
929
  code: emptyInputScopesError,
933
930
  desc: ClientConfigurationErrorMessages[emptyInputScopesError],
934
931
  },
935
- invalidPrompt: {
936
- code: invalidPromptValue,
937
- desc: ClientConfigurationErrorMessages[invalidPromptValue],
938
- },
939
932
  invalidClaimsRequest: {
940
933
  code: invalidClaims,
941
934
  desc: ClientConfigurationErrorMessages[invalidClaims],
@@ -3889,7 +3882,7 @@ class Logger {
3889
3882
 
3890
3883
  /* eslint-disable header/header */
3891
3884
  const name = "@azure/msal-common";
3892
- const version = "15.8.0";
3885
+ const version = "15.8.1";
3893
3886
 
3894
3887
  /*
3895
3888
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7230,71 +7223,6 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
7230
7223
  return baseAccount;
7231
7224
  }
7232
7225
 
7233
- /*
7234
- * Copyright (c) Microsoft Corporation. All rights reserved.
7235
- * Licensed under the MIT License.
7236
- */
7237
- /**
7238
- * Validates server consumable params from the "request" objects
7239
- */
7240
- class RequestValidator {
7241
- /**
7242
- * Utility to check if the `redirectUri` in the request is a non-null value
7243
- * @param redirectUri
7244
- */
7245
- static validateRedirectUri(redirectUri) {
7246
- if (!redirectUri) {
7247
- throw createClientConfigurationError(redirectUriEmpty);
7248
- }
7249
- }
7250
- /**
7251
- * Utility to validate prompt sent by the user in the request
7252
- * @param prompt
7253
- */
7254
- static validatePrompt(prompt) {
7255
- const promptValues = [];
7256
- for (const value in PromptValue) {
7257
- promptValues.push(PromptValue[value]);
7258
- }
7259
- if (promptValues.indexOf(prompt) < 0) {
7260
- throw createClientConfigurationError(invalidPromptValue);
7261
- }
7262
- }
7263
- static validateClaims(claims) {
7264
- try {
7265
- JSON.parse(claims);
7266
- }
7267
- catch (e) {
7268
- throw createClientConfigurationError(invalidClaims);
7269
- }
7270
- }
7271
- /**
7272
- * Utility to validate code_challenge and code_challenge_method
7273
- * @param codeChallenge
7274
- * @param codeChallengeMethod
7275
- */
7276
- static validateCodeChallengeParams(codeChallenge, codeChallengeMethod) {
7277
- if (!codeChallenge || !codeChallengeMethod) {
7278
- throw createClientConfigurationError(pkceParamsMissing);
7279
- }
7280
- else {
7281
- this.validateCodeChallengeMethod(codeChallengeMethod);
7282
- }
7283
- }
7284
- /**
7285
- * Utility to validate code_challenge_method
7286
- * @param codeChallengeMethod
7287
- */
7288
- static validateCodeChallengeMethod(codeChallengeMethod) {
7289
- if ([
7290
- CodeChallengeMethodValues.PLAIN,
7291
- CodeChallengeMethodValues.S256,
7292
- ].indexOf(codeChallengeMethod) < 0) {
7293
- throw createClientConfigurationError(invalidCodeChallengeMethod);
7294
- }
7295
- }
7296
- }
7297
-
7298
7226
  /*
7299
7227
  * Copyright (c) Microsoft Corporation. All rights reserved.
7300
7228
  * Licensed under the MIT License.
@@ -7409,7 +7337,9 @@ class AuthorizationCodeClient extends BaseClient {
7409
7337
  */
7410
7338
  if (!this.includeRedirectUri) {
7411
7339
  // Just validate
7412
- RequestValidator.validateRedirectUri(request.redirectUri);
7340
+ if (!request.redirectUri) {
7341
+ throw createClientConfigurationError(redirectUriEmpty);
7342
+ }
7413
7343
  }
7414
7344
  else {
7415
7345
  // Validate and include redirect uri
@@ -8514,4 +8444,4 @@ exports.invokeAsync = invokeAsync;
8514
8444
  exports.tenantIdMatchesHomeTenant = tenantIdMatchesHomeTenant;
8515
8445
  exports.updateAccountTenantProfileData = updateAccountTenantProfileData;
8516
8446
  exports.version = version;
8517
- //# sourceMappingURL=index-node-2PsHlOld.js.map
8447
+ //# sourceMappingURL=index-node-BCM1mkg5.js.map