@azure/msal-common 7.5.0 → 7.6.0

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 (75) hide show
  1. package/dist/_virtual/_tslib.js +1 -1
  2. package/dist/account/AuthToken.js +1 -1
  3. package/dist/account/CcsCredential.js +1 -1
  4. package/dist/account/ClientInfo.js +1 -1
  5. package/dist/authority/Authority.js +1 -1
  6. package/dist/authority/AuthorityFactory.js +1 -1
  7. package/dist/authority/AuthorityMetadata.js +1 -1
  8. package/dist/authority/AuthorityOptions.js +1 -1
  9. package/dist/authority/AuthorityType.js +1 -1
  10. package/dist/authority/CloudInstanceDiscoveryResponse.js +1 -1
  11. package/dist/authority/OpenIdConfigResponse.js +1 -1
  12. package/dist/authority/ProtocolMode.js +1 -1
  13. package/dist/authority/RegionDiscovery.js +1 -1
  14. package/dist/cache/CacheManager.d.ts.map +1 -1
  15. package/dist/cache/CacheManager.js +7 -3
  16. package/dist/cache/CacheManager.js.map +1 -1
  17. package/dist/cache/entities/AccessTokenEntity.js +1 -1
  18. package/dist/cache/entities/AccountEntity.js +1 -1
  19. package/dist/cache/entities/AppMetadataEntity.js +1 -1
  20. package/dist/cache/entities/AuthorityMetadataEntity.js +1 -1
  21. package/dist/cache/entities/CacheRecord.js +1 -1
  22. package/dist/cache/entities/CredentialEntity.js +1 -1
  23. package/dist/cache/entities/IdTokenEntity.js +1 -1
  24. package/dist/cache/entities/RefreshTokenEntity.js +1 -1
  25. package/dist/cache/entities/ServerTelemetryEntity.js +1 -1
  26. package/dist/cache/entities/ThrottlingEntity.js +1 -1
  27. package/dist/cache/persistence/TokenCacheContext.js +1 -1
  28. package/dist/client/AuthorizationCodeClient.js +1 -1
  29. package/dist/client/BaseClient.js +1 -1
  30. package/dist/client/ClientCredentialClient.js +1 -1
  31. package/dist/client/DeviceCodeClient.js +1 -1
  32. package/dist/client/OnBehalfOfClient.js +1 -1
  33. package/dist/client/RefreshTokenClient.js +1 -1
  34. package/dist/client/SilentFlowClient.js +1 -1
  35. package/dist/client/UsernamePasswordClient.js +1 -1
  36. package/dist/config/ClientConfiguration.js +1 -1
  37. package/dist/crypto/ICrypto.js +1 -1
  38. package/dist/crypto/JoseHeader.js +1 -1
  39. package/dist/crypto/PopTokenGenerator.js +1 -1
  40. package/dist/error/AuthError.js +1 -1
  41. package/dist/error/ClientAuthError.js +1 -1
  42. package/dist/error/ClientConfigurationError.js +1 -1
  43. package/dist/error/InteractionRequiredAuthError.js +1 -1
  44. package/dist/error/JoseHeaderError.js +1 -1
  45. package/dist/error/ServerError.js +1 -1
  46. package/dist/index.cjs.js +9 -4
  47. package/dist/index.cjs.js.map +1 -1
  48. package/dist/index.d.ts +1 -0
  49. package/dist/index.d.ts.map +1 -1
  50. package/dist/index.js +2 -1
  51. package/dist/index.js.map +1 -1
  52. package/dist/logger/Logger.js +1 -1
  53. package/dist/network/INetworkModule.js +1 -1
  54. package/dist/network/NetworkManager.js +1 -1
  55. package/dist/network/ThrottlingUtils.js +1 -1
  56. package/dist/packageMetadata.d.ts +1 -1
  57. package/dist/packageMetadata.js +2 -2
  58. package/dist/packageMetadata.js.map +1 -1
  59. package/dist/request/AuthenticationHeaderParser.js +1 -1
  60. package/dist/request/RequestParameterBuilder.js +1 -1
  61. package/dist/request/RequestValidator.js +1 -1
  62. package/dist/request/ScopeSet.js +1 -1
  63. package/dist/response/ExternalTokenResponse.d.ts +2 -1
  64. package/dist/response/ExternalTokenResponse.d.ts.map +1 -1
  65. package/dist/response/ResponseHandler.js +1 -1
  66. package/dist/telemetry/performance/PerformanceClient.js +1 -1
  67. package/dist/telemetry/performance/PerformanceEvent.js +1 -1
  68. package/dist/telemetry/performance/StubPerformanceClient.js +1 -1
  69. package/dist/telemetry/server/ServerTelemetryManager.js +1 -1
  70. package/dist/url/UrlString.js +1 -1
  71. package/dist/utils/Constants.js +1 -1
  72. package/dist/utils/ProtocolUtils.js +1 -1
  73. package/dist/utils/StringUtils.js +1 -1
  74. package/dist/utils/TimeUtils.js +1 -1
  75. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v7.5.0 2022-10-03 */
1
+ /*! @azure/msal-common v7.6.0 2022-10-10 */
2
2
  'use strict';
3
3
  import { __extends, __awaiter, __generator } from '../_virtual/_tslib.js';
4
4
  import { BaseClient } from './BaseClient.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v7.5.0 2022-10-03 */
1
+ /*! @azure/msal-common v7.6.0 2022-10-10 */
2
2
  'use strict';
3
3
  import { __assign, __awaiter, __generator } from '../_virtual/_tslib.js';
4
4
  import { DEFAULT_CRYPTO_IMPLEMENTATION } from '../crypto/ICrypto.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v7.5.0 2022-10-03 */
1
+ /*! @azure/msal-common v7.6.0 2022-10-10 */
2
2
  'use strict';
3
3
  import { __awaiter, __generator } from '../_virtual/_tslib.js';
4
4
  import { AuthError } from '../error/AuthError.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v7.5.0 2022-10-03 */
1
+ /*! @azure/msal-common v7.6.0 2022-10-10 */
2
2
  'use strict';
3
3
  import { JoseHeaderError } from '../error/JoseHeaderError.js';
4
4
  import { JsonTypes } from '../utils/Constants.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v7.5.0 2022-10-03 */
1
+ /*! @azure/msal-common v7.6.0 2022-10-10 */
2
2
  'use strict';
3
3
  import { __awaiter, __generator, __assign } from '../_virtual/_tslib.js';
4
4
  import { TimeUtils } from '../utils/TimeUtils.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v7.5.0 2022-10-03 */
1
+ /*! @azure/msal-common v7.6.0 2022-10-10 */
2
2
  'use strict';
3
3
  import { __extends } from '../_virtual/_tslib.js';
4
4
  import { Constants } from '../utils/Constants.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v7.5.0 2022-10-03 */
1
+ /*! @azure/msal-common v7.6.0 2022-10-10 */
2
2
  'use strict';
3
3
  import { __extends } from '../_virtual/_tslib.js';
4
4
  import { AuthError } from './AuthError.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v7.5.0 2022-10-03 */
1
+ /*! @azure/msal-common v7.6.0 2022-10-10 */
2
2
  'use strict';
3
3
  import { __extends } from '../_virtual/_tslib.js';
4
4
  import { ClientAuthError } from './ClientAuthError.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v7.5.0 2022-10-03 */
1
+ /*! @azure/msal-common v7.6.0 2022-10-10 */
2
2
  'use strict';
3
3
  import { __extends } from '../_virtual/_tslib.js';
4
4
  import { AuthError } from './AuthError.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v7.5.0 2022-10-03 */
1
+ /*! @azure/msal-common v7.6.0 2022-10-10 */
2
2
  'use strict';
3
3
  import { __extends } from '../_virtual/_tslib.js';
4
4
  import { AuthError } from './AuthError.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v7.5.0 2022-10-03 */
1
+ /*! @azure/msal-common v7.6.0 2022-10-10 */
2
2
  'use strict';
3
3
  import { __extends } from '../_virtual/_tslib.js';
4
4
  import { AuthError } from './AuthError.js';
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v7.5.0 2022-10-03 */
1
+ /*! @azure/msal-common v7.6.0 2022-10-10 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
@@ -1409,7 +1409,7 @@ var Logger = /** @class */ (function () {
1409
1409
 
1410
1410
  /* eslint-disable header/header */
1411
1411
  var name = "@azure/msal-common";
1412
- var version = "7.5.0";
1412
+ var version = "7.6.0";
1413
1413
 
1414
1414
  /*
1415
1415
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2560,7 +2560,11 @@ var CacheManager = /** @class */ (function () {
2560
2560
  if (!!userAssertionHash && !_this.matchUserAssertionHash(entity, userAssertionHash)) {
2561
2561
  return;
2562
2562
  }
2563
- if (!!homeAccountId && !_this.matchHomeAccountId(entity, homeAccountId)) {
2563
+ /*
2564
+ * homeAccountId can undefined, and we want to filter out cached items that have a homeAccountId of ""
2565
+ * because we don't want a client_credential request to return a cached token that has a homeAccountId
2566
+ */
2567
+ if ((typeof homeAccountId === "string") && !_this.matchHomeAccountId(entity, homeAccountId)) {
2564
2568
  return;
2565
2569
  }
2566
2570
  if (!!environment && !_this.matchEnvironment(entity, environment)) {
@@ -2979,7 +2983,7 @@ var CacheManager = /** @class */ (function () {
2979
2983
  * @param homeAccountId
2980
2984
  */
2981
2985
  CacheManager.prototype.matchHomeAccountId = function (entity, homeAccountId) {
2982
- return !!(entity.homeAccountId && homeAccountId === entity.homeAccountId);
2986
+ return !!((typeof entity.homeAccountId === "string") && (homeAccountId === entity.homeAccountId));
2983
2987
  };
2984
2988
  /**
2985
2989
  * helper to match assertion
@@ -8555,6 +8559,7 @@ exports.AuthorityFactory = AuthorityFactory;
8555
8559
  exports.AuthorityMetadataEntity = AuthorityMetadataEntity;
8556
8560
  exports.AuthorizationCodeClient = AuthorizationCodeClient;
8557
8561
  exports.CacheManager = CacheManager;
8562
+ exports.CacheRecord = CacheRecord;
8558
8563
  exports.ClientAuthError = ClientAuthError;
8559
8564
  exports.ClientAuthErrorMessage = ClientAuthErrorMessage;
8560
8565
  exports.ClientConfigurationError = ClientConfigurationError;