@azure/msal-common 14.1.0 → 14.2.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 (126) hide show
  1. package/dist/account/AuthToken.mjs +1 -1
  2. package/dist/account/CcsCredential.mjs +1 -1
  3. package/dist/account/ClientInfo.mjs +1 -1
  4. package/dist/authority/Authority.d.ts +25 -11
  5. package/dist/authority/Authority.d.ts.map +1 -1
  6. package/dist/authority/Authority.mjs +122 -71
  7. package/dist/authority/Authority.mjs.map +1 -1
  8. package/dist/authority/AuthorityFactory.d.ts.map +1 -1
  9. package/dist/authority/AuthorityFactory.mjs +3 -3
  10. package/dist/authority/AuthorityMetadata.d.ts +23 -0
  11. package/dist/authority/AuthorityMetadata.d.ts.map +1 -1
  12. package/dist/authority/AuthorityMetadata.mjs +58 -2
  13. package/dist/authority/AuthorityMetadata.mjs.map +1 -1
  14. package/dist/authority/AuthorityOptions.d.ts +6 -0
  15. package/dist/authority/AuthorityOptions.d.ts.map +1 -1
  16. package/dist/authority/AuthorityOptions.mjs +1 -1
  17. package/dist/authority/AuthorityOptions.mjs.map +1 -1
  18. package/dist/authority/AuthorityType.mjs +1 -1
  19. package/dist/authority/CloudInstanceDiscoveryErrorResponse.mjs +1 -1
  20. package/dist/authority/CloudInstanceDiscoveryResponse.mjs +1 -1
  21. package/dist/authority/OpenIdConfigResponse.mjs +1 -1
  22. package/dist/authority/ProtocolMode.mjs +1 -1
  23. package/dist/authority/RegionDiscovery.mjs +1 -1
  24. package/dist/cache/CacheManager.d.ts +17 -1
  25. package/dist/cache/CacheManager.d.ts.map +1 -1
  26. package/dist/cache/CacheManager.mjs +72 -35
  27. package/dist/cache/CacheManager.mjs.map +1 -1
  28. package/dist/cache/entities/AccessTokenEntity.mjs +1 -1
  29. package/dist/cache/entities/AccountEntity.d.ts.map +1 -1
  30. package/dist/cache/entities/AccountEntity.mjs +1 -3
  31. package/dist/cache/entities/AccountEntity.mjs.map +1 -1
  32. package/dist/cache/entities/AppMetadataEntity.mjs +1 -1
  33. package/dist/cache/entities/AuthorityMetadataEntity.mjs +1 -1
  34. package/dist/cache/entities/CacheRecord.mjs +1 -1
  35. package/dist/cache/entities/CredentialEntity.mjs +1 -1
  36. package/dist/cache/entities/IdTokenEntity.mjs +1 -1
  37. package/dist/cache/entities/RefreshTokenEntity.mjs +1 -1
  38. package/dist/cache/entities/ServerTelemetryEntity.mjs +1 -1
  39. package/dist/cache/entities/ThrottlingEntity.mjs +1 -1
  40. package/dist/cache/persistence/TokenCacheContext.mjs +1 -1
  41. package/dist/cache/utils/CacheTypes.d.ts +1 -0
  42. package/dist/cache/utils/CacheTypes.d.ts.map +1 -1
  43. package/dist/client/AuthorizationCodeClient.d.ts.map +1 -1
  44. package/dist/client/AuthorizationCodeClient.mjs +2 -2
  45. package/dist/client/AuthorizationCodeClient.mjs.map +1 -1
  46. package/dist/client/BaseClient.d.ts +1 -1
  47. package/dist/client/BaseClient.d.ts.map +1 -1
  48. package/dist/client/BaseClient.mjs +5 -4
  49. package/dist/client/BaseClient.mjs.map +1 -1
  50. package/dist/client/RefreshTokenClient.d.ts.map +1 -1
  51. package/dist/client/RefreshTokenClient.mjs +4 -4
  52. package/dist/client/RefreshTokenClient.mjs.map +1 -1
  53. package/dist/client/SilentFlowClient.d.ts +1 -0
  54. package/dist/client/SilentFlowClient.d.ts.map +1 -1
  55. package/dist/client/SilentFlowClient.mjs +20 -27
  56. package/dist/client/SilentFlowClient.mjs.map +1 -1
  57. package/dist/config/ClientConfiguration.mjs +1 -1
  58. package/dist/crypto/ICrypto.mjs +1 -1
  59. package/dist/crypto/JoseHeader.mjs +1 -1
  60. package/dist/crypto/PopTokenGenerator.mjs +1 -1
  61. package/dist/error/AuthError.mjs +1 -1
  62. package/dist/error/AuthErrorCodes.mjs +1 -1
  63. package/dist/error/ClientAuthError.d.ts +5 -0
  64. package/dist/error/ClientAuthError.d.ts.map +1 -1
  65. package/dist/error/ClientAuthError.mjs +7 -2
  66. package/dist/error/ClientAuthError.mjs.map +1 -1
  67. package/dist/error/ClientAuthErrorCodes.d.ts +1 -0
  68. package/dist/error/ClientAuthErrorCodes.d.ts.map +1 -1
  69. package/dist/error/ClientAuthErrorCodes.mjs +3 -2
  70. package/dist/error/ClientAuthErrorCodes.mjs.map +1 -1
  71. package/dist/error/ClientConfigurationError.mjs +1 -1
  72. package/dist/error/ClientConfigurationErrorCodes.mjs +1 -1
  73. package/dist/error/InteractionRequiredAuthError.mjs +1 -1
  74. package/dist/error/InteractionRequiredAuthErrorCodes.mjs +1 -1
  75. package/dist/error/JoseHeaderError.mjs +1 -1
  76. package/dist/error/JoseHeaderErrorCodes.mjs +1 -1
  77. package/dist/error/ServerError.mjs +1 -1
  78. package/dist/index.cjs +4455 -4301
  79. package/dist/index.cjs.map +1 -1
  80. package/dist/index.d.ts +2 -2
  81. package/dist/index.d.ts.map +1 -1
  82. package/dist/index.mjs +2 -2
  83. package/dist/logger/Logger.mjs +1 -1
  84. package/dist/network/INetworkModule.mjs +1 -1
  85. package/dist/network/NetworkManager.mjs +1 -1
  86. package/dist/network/ThrottlingUtils.mjs +1 -1
  87. package/dist/packageMetadata.d.ts +1 -1
  88. package/dist/packageMetadata.mjs +2 -2
  89. package/dist/request/AuthenticationHeaderParser.mjs +1 -1
  90. package/dist/request/RequestParameterBuilder.mjs +1 -1
  91. package/dist/request/RequestValidator.mjs +1 -1
  92. package/dist/request/ScopeSet.mjs +1 -1
  93. package/dist/response/ResponseHandler.d.ts.map +1 -1
  94. package/dist/response/ResponseHandler.mjs +8 -4
  95. package/dist/response/ResponseHandler.mjs.map +1 -1
  96. package/dist/telemetry/performance/PerformanceClient.mjs +1 -1
  97. package/dist/telemetry/performance/PerformanceEvent.d.ts +17 -1
  98. package/dist/telemetry/performance/PerformanceEvent.d.ts.map +1 -1
  99. package/dist/telemetry/performance/PerformanceEvent.mjs +9 -2
  100. package/dist/telemetry/performance/PerformanceEvent.mjs.map +1 -1
  101. package/dist/telemetry/performance/StubPerformanceClient.mjs +1 -1
  102. package/dist/telemetry/server/ServerTelemetryManager.mjs +1 -1
  103. package/dist/url/UrlString.mjs +1 -1
  104. package/dist/utils/Constants.mjs +1 -1
  105. package/dist/utils/FunctionWrappers.mjs +1 -1
  106. package/dist/utils/ProtocolUtils.mjs +1 -1
  107. package/dist/utils/StringUtils.mjs +1 -1
  108. package/dist/utils/TimeUtils.mjs +1 -1
  109. package/package.json +1 -1
  110. package/src/authority/Authority.ts +207 -127
  111. package/src/authority/AuthorityFactory.ts +4 -4
  112. package/src/authority/AuthorityMetadata.ts +87 -0
  113. package/src/authority/AuthorityOptions.ts +9 -0
  114. package/src/cache/CacheManager.ts +115 -52
  115. package/src/cache/entities/AccountEntity.ts +0 -3
  116. package/src/cache/utils/CacheTypes.ts +1 -0
  117. package/src/client/AuthorizationCodeClient.ts +9 -2
  118. package/src/client/BaseClient.ts +9 -6
  119. package/src/client/RefreshTokenClient.ts +17 -7
  120. package/src/client/SilentFlowClient.ts +49 -49
  121. package/src/error/ClientAuthError.ts +8 -0
  122. package/src/error/ClientAuthErrorCodes.ts +1 -0
  123. package/src/index.ts +6 -1
  124. package/src/packageMetadata.ts +1 -1
  125. package/src/response/ResponseHandler.ts +9 -3
  126. package/src/telemetry/performance/PerformanceEvent.ts +24 -2
@@ -1 +1 @@
1
- {"version":3,"file":"RefreshTokenClient.d.ts","sourceRoot":"","sources":["../../src/client/RefreshTokenClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,mBAAmB,EAEtB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AAYjF,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAKxE,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAoB7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AAEjF;;;GAGG;AACH,qBAAa,kBAAmB,SAAQ,UAAU;gBAE1C,aAAa,EAAE,mBAAmB,EAClC,iBAAiB,CAAC,EAAE,kBAAkB;IAI7B,YAAY,CACrB,OAAO,EAAE,yBAAyB,GACnC,OAAO,CAAC,oBAAoB,CAAC;IA8ChC;;;OAGG;IACU,0BAA0B,CACnC,OAAO,EAAE,uBAAuB,GACjC,OAAO,CAAC,oBAAoB,CAAC;IAsEhC;;;OAGG;YACW,kCAAkC;IA0ChD;;;;OAIG;YACW,mBAAmB;IAgDjC;;;OAGG;YACW,sBAAsB;CAgIvC"}
1
+ {"version":3,"file":"RefreshTokenClient.d.ts","sourceRoot":"","sources":["../../src/client/RefreshTokenClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,mBAAmB,EAEtB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AAYjF,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAKxE,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAoB7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AAEjF;;;GAGG;AACH,qBAAa,kBAAmB,SAAQ,UAAU;gBAE1C,aAAa,EAAE,mBAAmB,EAClC,iBAAiB,CAAC,EAAE,kBAAkB;IAI7B,YAAY,CACrB,OAAO,EAAE,yBAAyB,GACnC,OAAO,CAAC,oBAAoB,CAAC;IA8ChC;;;OAGG;IACU,0BAA0B,CACnC,OAAO,EAAE,uBAAuB,GACjC,OAAO,CAAC,oBAAoB,CAAC;IAsEhC;;;OAGG;YACW,kCAAkC;IA6ChD;;;;OAIG;YACW,mBAAmB;IAuDjC;;;OAGG;YACW,sBAAsB;CAgIvC"}
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.1.0 2023-10-05 */
1
+ /*! @azure/msal-common v14.2.0 2023-10-20 */
2
2
  'use strict';
3
3
  import { isOidcProtocolMode } from '../config/ClientConfiguration.mjs';
4
4
  import { BaseClient } from './BaseClient.mjs';
@@ -16,7 +16,7 @@ import { CcsCredentialType } from '../account/CcsCredential.mjs';
16
16
  import { buildClientInfoFromHomeAccountId } from '../account/ClientInfo.mjs';
17
17
  import { createInteractionRequiredAuthError, InteractionRequiredAuthError } from '../error/InteractionRequiredAuthError.mjs';
18
18
  import { PerformanceEvents } from '../telemetry/performance/PerformanceEvent.mjs';
19
- import { invokeAsync } from '../utils/FunctionWrappers.mjs';
19
+ import { invokeAsync, invoke } from '../utils/FunctionWrappers.mjs';
20
20
  import { tokenRequestEmpty, missingSshJwk } from '../error/ClientConfigurationErrorCodes.mjs';
21
21
  import { noAccountInSilentRequest } from '../error/ClientAuthErrorCodes.mjs';
22
22
  import { noTokensFound } from '../error/InteractionRequiredAuthErrorCodes.mjs';
@@ -91,7 +91,7 @@ class RefreshTokenClient extends BaseClient {
91
91
  async acquireTokenWithCachedRefreshToken(request, foci) {
92
92
  this.performanceClient?.addQueueMeasurement(PerformanceEvents.RefreshTokenClientAcquireTokenWithCachedRefreshToken, request.correlationId);
93
93
  // fetches family RT or application RT based on FOCI value
94
- const refreshToken = this.cacheManager.getRefreshToken(request.account, foci);
94
+ const refreshToken = invoke(this.cacheManager.getRefreshToken.bind(this.cacheManager), PerformanceEvents.CacheManagerGetRefreshToken, this.logger, this.performanceClient, request.correlationId)(request.account, foci);
95
95
  if (!refreshToken) {
96
96
  throw createInteractionRequiredAuthError(noTokensFound);
97
97
  }
@@ -130,7 +130,7 @@ class RefreshTokenClient extends BaseClient {
130
130
  shrClaims: request.shrClaims,
131
131
  sshKid: request.sshKid,
132
132
  };
133
- return invokeAsync(this.executePostToTokenEndpoint.bind(this), PerformanceEvents.BaseClientExecutePostToTokenEndpoint, this.logger, this.performanceClient, request.correlationId)(endpoint, requestBody, headers, thumbprint, request.correlationId);
133
+ return invokeAsync(this.executePostToTokenEndpoint.bind(this), PerformanceEvents.RefreshTokenClientExecutePostToTokenEndpoint, this.logger, this.performanceClient, request.correlationId)(endpoint, requestBody, headers, thumbprint, request.correlationId, PerformanceEvents.RefreshTokenClientExecutePostToTokenEndpoint);
134
134
  }
135
135
  /**
136
136
  * Helper function to create the token request body
@@ -1 +1 @@
1
- {"version":3,"file":"RefreshTokenClient.mjs","sources":["../../src/client/RefreshTokenClient.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAKA;AAIA;AACA;AAYA;AAqKO;;AA2CH;;;;AAIG,QAAA,KAAA,CAAA,aAAA,EAAA,iBAAA,CAAA,CAAA;;AAiDH,IAAA,MAAA,YAAA,CAAA,OAAA,EAAA;;;AAGG,QAAA,MAAA,QAAA,GAAA,MAAA,WAAA,CAAA,IAAA,CAAA,mBAAA,CAAA,IAAA,CAAA,IAAA,CAAA,EAAA,iBAAA,CAAA,qCAAA,EAAA,IAAA,CAAA,MAAA,EAAA,IAAA,CAAA,iBAAA,EAAA,OAAA,CAAA,aAAA,CAAA,CAAA,OAAA,EAAA,IAAA,CAAA,SAAA,CAAA,CAAA;;AAiIN,QAAA,MAAA,SAAA,GAAA,QAAA,CAAA,OAAA,GAAA,WAAA,CAAA,eAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"RefreshTokenClient.mjs","sources":["../../src/client/RefreshTokenClient.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAKA;AAIA;AACA;AAYA;AAqKO;;AA8CH;;;;AAIG,QAAA,KAAA,CAAA,aAAA,EAAA,iBAAA,CAAA,CAAA;;AAwDH,IAAA,MAAA,YAAA,CAAA,OAAA,EAAA;;;AAGG,QAAA,MAAA,QAAA,GAAA,MAAA,WAAA,CAAA,IAAA,CAAA,mBAAA,CAAA,IAAA,CAAA,IAAA,CAAA,EAAA,iBAAA,CAAA,qCAAA,EAAA,IAAA,CAAA,MAAA,EAAA,IAAA,CAAA,iBAAA,EAAA,OAAA,CAAA,aAAA,CAAA,CAAA,OAAA,EAAA,IAAA,CAAA,SAAA,CAAA,CAAA;;AAiIN,QAAA,MAAA,SAAA,GAAA,QAAA,CAAA,OAAA,GAAA,WAAA,CAAA,eAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -18,6 +18,7 @@ export declare class SilentFlowClient extends BaseClient {
18
18
  * @param request
19
19
  */
20
20
  acquireCachedToken(request: CommonSilentFlowRequest): Promise<[AuthenticationResult, CacheOutcome]>;
21
+ private setCacheOutcome;
21
22
  /**
22
23
  * Helper function to build response object from the CacheRecord
23
24
  * @param cacheRecord
@@ -1 +1 @@
1
- {"version":3,"file":"SilentFlowClient.d.ts","sourceRoot":"","sources":["../../src/client/SilentFlowClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAcxE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AAKjF,gBAAgB;AAChB,qBAAa,gBAAiB,SAAQ,UAAU;gBAExC,aAAa,EAAE,mBAAmB,EAClC,iBAAiB,CAAC,EAAE,kBAAkB;IAK1C;;;;OAIG;IACG,YAAY,CACd,OAAO,EAAE,uBAAuB,GACjC,OAAO,CAAC,oBAAoB,CAAC;IA2ChC;;;OAGG;IACG,kBAAkB,CACpB,OAAO,EAAE,uBAAuB,GACjC,OAAO,CAAC,CAAC,oBAAoB,EAAE,YAAY,CAAC,CAAC;IA4GhD;;;OAGG;YACW,6BAA6B;CAiC9C"}
1
+ {"version":3,"file":"SilentFlowClient.d.ts","sourceRoot":"","sources":["../../src/client/SilentFlowClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAUxE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AAOjF,gBAAgB;AAChB,qBAAa,gBAAiB,SAAQ,UAAU;gBAExC,aAAa,EAAE,mBAAmB,EAClC,iBAAiB,CAAC,EAAE,kBAAkB;IAK1C;;;;OAIG;IACG,YAAY,CACd,OAAO,EAAE,uBAAuB,GACjC,OAAO,CAAC,oBAAoB,CAAC;IA2ChC;;;OAGG;IACG,kBAAkB,CACpB,OAAO,EAAE,uBAAuB,GACjC,OAAO,CAAC,CAAC,oBAAoB,EAAE,YAAY,CAAC,CAAC;IA0FhD,OAAO,CAAC,eAAe;IAgBvB;;;OAGG;YACW,6BAA6B;CAqC9C"}
@@ -1,16 +1,16 @@
1
- /*! @azure/msal-common v14.1.0 2023-10-05 */
1
+ /*! @azure/msal-common v14.2.0 2023-10-20 */
2
2
  'use strict';
3
3
  import { BaseClient } from './BaseClient.mjs';
4
4
  import { TimeUtils } from '../utils/TimeUtils.mjs';
5
5
  import { RefreshTokenClient } from './RefreshTokenClient.mjs';
6
6
  import { ClientAuthError, createClientAuthError } from '../error/ClientAuthError.mjs';
7
- import { createClientConfigurationError } from '../error/ClientConfigurationError.mjs';
8
7
  import { ResponseHandler } from '../response/ResponseHandler.mjs';
9
8
  import { CacheOutcome } from '../utils/Constants.mjs';
10
9
  import { StringUtils } from '../utils/StringUtils.mjs';
11
10
  import { extractTokenClaims, checkMaxAge } from '../account/AuthToken.mjs';
11
+ import { PerformanceEvents } from '../telemetry/performance/PerformanceEvent.mjs';
12
+ import { invokeAsync } from '../utils/FunctionWrappers.mjs';
12
13
  import { tokenRefreshRequired, noAccountInSilentRequest, authTimeNotFound } from '../error/ClientAuthErrorCodes.mjs';
13
- import { tokenRequestEmpty } from '../error/ClientConfigurationErrorCodes.mjs';
14
14
 
15
15
  /*
16
16
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -59,23 +59,13 @@ class SilentFlowClient extends BaseClient {
59
59
  * @param request
60
60
  */
61
61
  async acquireCachedToken(request) {
62
+ this.performanceClient?.addQueueMeasurement(PerformanceEvents.SilentFlowClientAcquireCachedToken, request.correlationId);
62
63
  let lastCacheOutcome = CacheOutcome.NOT_APPLICABLE;
63
- // Cannot renew token if no request object is given.
64
- if (!request) {
65
- throw createClientConfigurationError(tokenRequestEmpty);
66
- }
67
- if (request.forceRefresh) {
64
+ if (request.forceRefresh ||
65
+ (!this.config.cacheOptions.claimsBasedCachingEnabled &&
66
+ !StringUtils.isEmptyObj(request.claims))) {
68
67
  // Must refresh due to present force_refresh flag.
69
- lastCacheOutcome = CacheOutcome.FORCE_REFRESH_OR_CLAIMS;
70
- this.serverTelemetryManager?.setCacheOutcome(CacheOutcome.FORCE_REFRESH_OR_CLAIMS);
71
- this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true.");
72
- throw createClientAuthError(tokenRefreshRequired);
73
- }
74
- else if (!this.config.cacheOptions.claimsBasedCachingEnabled &&
75
- !StringUtils.isEmptyObj(request.claims)) {
76
- lastCacheOutcome = CacheOutcome.FORCE_REFRESH_OR_CLAIMS;
77
- // Must refresh due to request parameters.
78
- this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because claims-based caching is disabled and claims were requested.");
68
+ this.setCacheOutcome(CacheOutcome.FORCE_REFRESH_OR_CLAIMS, request.correlationId);
79
69
  throw createClientAuthError(tokenRefreshRequired);
80
70
  }
81
71
  // We currently do not support silent flow for account === null use cases; This will be revisited for confidential flow usecases
@@ -86,40 +76,43 @@ class SilentFlowClient extends BaseClient {
86
76
  const cacheRecord = this.cacheManager.readCacheRecord(request.account, request, environment);
87
77
  if (!cacheRecord.accessToken) {
88
78
  // must refresh due to non-existent access_token
89
- lastCacheOutcome = CacheOutcome.NO_CACHED_ACCESS_TOKEN;
90
- this.serverTelemetryManager?.setCacheOutcome(CacheOutcome.NO_CACHED_ACCESS_TOKEN);
91
- this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties.");
79
+ this.setCacheOutcome(CacheOutcome.NO_CACHED_ACCESS_TOKEN, request.correlationId);
92
80
  throw createClientAuthError(tokenRefreshRequired);
93
81
  }
94
82
  else if (TimeUtils.wasClockTurnedBack(cacheRecord.accessToken.cachedAt) ||
95
83
  TimeUtils.isTokenExpired(cacheRecord.accessToken.expiresOn, this.config.systemOptions.tokenRenewalOffsetSeconds)) {
96
84
  // must refresh due to the expires_in value
97
- lastCacheOutcome = CacheOutcome.CACHED_ACCESS_TOKEN_EXPIRED;
98
- this.serverTelemetryManager?.setCacheOutcome(CacheOutcome.CACHED_ACCESS_TOKEN_EXPIRED);
99
- this.logger.info(`SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within ${this.config.systemOptions.tokenRenewalOffsetSeconds} seconds.`);
85
+ this.setCacheOutcome(CacheOutcome.CACHED_ACCESS_TOKEN_EXPIRED, request.correlationId);
100
86
  throw createClientAuthError(tokenRefreshRequired);
101
87
  }
102
88
  else if (cacheRecord.accessToken.refreshOn &&
103
89
  TimeUtils.isTokenExpired(cacheRecord.accessToken.refreshOn, 0)) {
104
90
  // must refresh (in the background) due to the refresh_in value
105
91
  lastCacheOutcome = CacheOutcome.PROACTIVELY_REFRESHED;
106
- this.serverTelemetryManager?.setCacheOutcome(CacheOutcome.PROACTIVELY_REFRESHED);
107
- this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'.");
108
92
  // don't throw ClientAuthError.createRefreshRequiredError(), return cached token instead
109
93
  }
94
+ this.setCacheOutcome(lastCacheOutcome, request.correlationId);
110
95
  if (this.config.serverTelemetryManager) {
111
96
  this.config.serverTelemetryManager.incrementCacheHits();
112
97
  }
113
98
  return [
114
- await this.generateResultFromCacheRecord(cacheRecord, request),
99
+ await invokeAsync(this.generateResultFromCacheRecord.bind(this), PerformanceEvents.SilentFlowClientGenerateResultFromCacheRecord, this.logger, this.performanceClient, request.correlationId)(cacheRecord, request),
115
100
  lastCacheOutcome,
116
101
  ];
117
102
  }
103
+ setCacheOutcome(cacheOutcome, correlationId) {
104
+ this.serverTelemetryManager?.setCacheOutcome(cacheOutcome);
105
+ this.performanceClient?.addFields({
106
+ cacheOutcome: cacheOutcome,
107
+ }, correlationId);
108
+ this.logger.info(`Token refresh is required due to cache outcome: ${cacheOutcome}`);
109
+ }
118
110
  /**
119
111
  * Helper function to build response object from the CacheRecord
120
112
  * @param cacheRecord
121
113
  */
122
114
  async generateResultFromCacheRecord(cacheRecord, request) {
115
+ this.performanceClient?.addQueueMeasurement(PerformanceEvents.SilentFlowClientGenerateResultFromCacheRecord, request.correlationId);
123
116
  let idTokenClaims;
124
117
  if (cacheRecord.idToken) {
125
118
  idTokenClaims = extractTokenClaims(cacheRecord.idToken.secret, this.config.cryptoInterface.base64Decode);
@@ -1 +1 @@
1
- {"version":3,"file":"SilentFlowClient.mjs","sources":["../../src/client/SilentFlowClient.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;AAKA;AACA;AACA;AACA;AAiCO;AACe,MAAA,gBACL,SAAA,UAAA,CAAuB;AA4CpC,IAAA,WAAA,CAAA,aAAA,EAAA,iBAAA,EAAA;;;AAGG;AACG;AA8GN;;;AAGG,IAAA,MAAA,YAAA,CAAA,OAAA,EAAA;YACW;AAiCjB,YAAA,MAAA,CAAA,YAAA,EAAA,YAAA,CAAA,GAAA,MAAA,IAAA,CAAA,kBAAA,CAAA,OAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"SilentFlowClient.mjs","sources":["../../src/client/SilentFlowClient.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;AAKA;AACA;AACA;AACA;;AA6EI,MAAA,gBAAA,SAAA,UAAA,CAAA;;;AAGG,KAAA;AACG;AA4FN;AAgBA;;;AAGG,IAAA,MAAA,YAAA,CAAA,OAAA,EAAA;YACW;AAqCjB,YAAA,MAAA,CAAA,YAAA,EAAA,YAAA,CAAA,GAAA,MAAA,IAAA,CAAA,kBAAA,CAAA,OAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.1.0 2023-10-05 */
1
+ /*! @azure/msal-common v14.2.0 2023-10-20 */
2
2
  'use strict';
3
3
  import { DEFAULT_CRYPTO_IMPLEMENTATION } from '../crypto/ICrypto.mjs';
4
4
  import { Logger, LogLevel } from '../logger/Logger.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.1.0 2023-10-05 */
1
+ /*! @azure/msal-common v14.2.0 2023-10-20 */
2
2
  'use strict';
3
3
  import { createClientAuthError } from '../error/ClientAuthError.mjs';
4
4
  import { methodNotImplemented } from '../error/ClientAuthErrorCodes.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.1.0 2023-10-05 */
1
+ /*! @azure/msal-common v14.2.0 2023-10-20 */
2
2
  'use strict';
3
3
  import { createJoseHeaderError } from '../error/JoseHeaderError.mjs';
4
4
  import { JsonTypes } from '../utils/Constants.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.1.0 2023-10-05 */
1
+ /*! @azure/msal-common v14.2.0 2023-10-20 */
2
2
  'use strict';
3
3
  import { TimeUtils } from '../utils/TimeUtils.mjs';
4
4
  import { UrlString } from '../url/UrlString.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.1.0 2023-10-05 */
1
+ /*! @azure/msal-common v14.2.0 2023-10-20 */
2
2
  'use strict';
3
3
  import { Constants } from '../utils/Constants.mjs';
4
4
  import { unexpectedError, postRequestFailed } from './AuthErrorCodes.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.1.0 2023-10-05 */
1
+ /*! @azure/msal-common v14.2.0 2023-10-20 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -48,6 +48,7 @@ export declare const ClientAuthErrorMessages: {
48
48
  user_canceled: string;
49
49
  missing_tenant_id_error: string;
50
50
  method_not_implemented: string;
51
+ nested_app_auth_bridge_disabled: string;
51
52
  };
52
53
  /**
53
54
  * String constants used by error codes and messages.
@@ -222,6 +223,10 @@ export declare const ClientAuthErrorMessage: {
222
223
  code: string;
223
224
  desc: string;
224
225
  };
226
+ nestedAppAuthBridgeDisabled: {
227
+ code: string;
228
+ desc: string;
229
+ };
225
230
  };
226
231
  /**
227
232
  * Error thrown when there is an error in the client code running on the browser.
@@ -1 +1 @@
1
- {"version":3,"file":"ClientAuthError.d.ts","sourceRoot":"","sources":["../../src/error/ClientAuthError.ts"],"names":[],"mappings":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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyNlC,CAAC;AAEF;;GAEG;AACH,qBAAa,eAAgB,SAAQ,SAAS;gBAC9B,SAAS,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,MAAM;CAW5D;AAED,wBAAgB,qBAAqB,CACjC,SAAS,EAAE,MAAM,EACjB,iBAAiB,CAAC,EAAE,MAAM,GAC3B,eAAe,CAEjB"}
@@ -1,7 +1,7 @@
1
- /*! @azure/msal-common v14.1.0 2023-10-05 */
1
+ /*! @azure/msal-common v14.2.0 2023-10-20 */
2
2
  'use strict';
3
3
  import { AuthError } from './AuthError.mjs';
4
- import { clientInfoDecodingError, clientInfoEmptyError, tokenParsingError, nullOrEmptyToken, endpointResolutionError, networkError, openIdConfigError, hashNotDeserialized, invalidState, stateMismatch, stateNotFound, nonceMismatch, authTimeNotFound, maxAgeTranspired, multipleMatchingTokens, multipleMatchingAccounts, multipleMatchingAppMetadata, requestCannotBeMade, cannotRemoveEmptyScope, cannotAppendScopeSet, emptyInputScopeSet, deviceCodePollingCancelled, deviceCodeExpired, deviceCodeUnknownError, noAccountInSilentRequest, invalidCacheRecord, invalidCacheEnvironment, noAccountFound, noCryptoObject, unexpectedCredentialType, invalidAssertion, invalidClientCredential, tokenRefreshRequired, userTimeoutReached, tokenClaimsCnfRequiredForSignedJwt, authorizationCodeMissingFromServerResponse, bindingKeyNotRemoved, endSessionEndpointNotSupported, keyIdMissing, noNetworkConnectivity, userCanceled, missingTenantIdError, methodNotImplemented } from './ClientAuthErrorCodes.mjs';
4
+ import { clientInfoDecodingError, clientInfoEmptyError, tokenParsingError, nullOrEmptyToken, endpointResolutionError, networkError, openIdConfigError, hashNotDeserialized, invalidState, stateMismatch, stateNotFound, nonceMismatch, authTimeNotFound, maxAgeTranspired, multipleMatchingTokens, multipleMatchingAccounts, multipleMatchingAppMetadata, requestCannotBeMade, cannotRemoveEmptyScope, cannotAppendScopeSet, emptyInputScopeSet, deviceCodePollingCancelled, deviceCodeExpired, deviceCodeUnknownError, noAccountInSilentRequest, invalidCacheRecord, invalidCacheEnvironment, noAccountFound, noCryptoObject, unexpectedCredentialType, invalidAssertion, invalidClientCredential, tokenRefreshRequired, userTimeoutReached, tokenClaimsCnfRequiredForSignedJwt, authorizationCodeMissingFromServerResponse, bindingKeyNotRemoved, endSessionEndpointNotSupported, keyIdMissing, noNetworkConnectivity, userCanceled, missingTenantIdError, nestedAppAuthBridgeDisabled, methodNotImplemented } from './ClientAuthErrorCodes.mjs';
5
5
  import * as ClientAuthErrorCodes from './ClientAuthErrorCodes.mjs';
6
6
  export { ClientAuthErrorCodes };
7
7
 
@@ -59,6 +59,7 @@ const ClientAuthErrorMessages = {
59
59
  [userCanceled]: "User cancelled the flow.",
60
60
  [missingTenantIdError]: "A tenant id - not common, organizations, or consumers - must be specified when using the client_credentials flow.",
61
61
  [methodNotImplemented]: "This method has not been implemented",
62
+ [nestedAppAuthBridgeDisabled]: "The nested app auth bridge is disabled",
62
63
  };
63
64
  /**
64
65
  * String constants used by error codes and messages.
@@ -233,6 +234,10 @@ const ClientAuthErrorMessage = {
233
234
  code: missingTenantIdError,
234
235
  desc: ClientAuthErrorMessages[missingTenantIdError],
235
236
  },
237
+ nestedAppAuthBridgeDisabled: {
238
+ code: nestedAppAuthBridgeDisabled,
239
+ desc: ClientAuthErrorMessages[nestedAppAuthBridgeDisabled],
240
+ },
236
241
  };
237
242
  /**
238
243
  * Error thrown when there is an error in the client code running on the browser.
@@ -1 +1 @@
1
- {"version":3,"file":"ClientAuthError.mjs","sources":["../../src/error/ClientAuthError.ts"],"sourcesContent":[null],"names":["ClientAuthErrorCodes.bindingKeyNotRemoved","ClientAuthErrorCodes.endSessionEndpointNotSupported","ClientAuthErrorCodes.userCanceled","ClientAuthErrorCodes.missingTenantIdError"],"mappings":";;;;;;;AAKA;AACA;AACA;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAkFE,CAAAA,oBAAA,GAAA,6DAAA;AAEF,IAAA,CAAAC,8BAAA,GAAA,gDAAA;;;AAGG,IAAA,CAAAC,YAAA,GAAA,0BAAA;AACH,IAAA,CAAAC,oBAAmC,GAAA,mHAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAmNjC,IAAA,EAAAD,YAAA;AAEF,QAAA,IAAA,EAAA,uBAAA,CAAAA,YAAA,CAAA;;AAEG,IAAA,oBAAA,EAAA;AACH,QAAa,IAAA,EAAAC,oBAAiC;AAC9B,QAAA,IAAA,EAAA,uBAAoC,CAAAA,oBAAS,CAAA;AAW5D,KAAA;AAED,EAAA;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ClientAuthError.mjs","sources":["../../src/error/ClientAuthError.ts"],"sourcesContent":[null],"names":["ClientAuthErrorCodes.endSessionEndpointNotSupported","ClientAuthErrorCodes.keyIdMissing","ClientAuthErrorCodes.missingTenantIdError","ClientAuthErrorCodes.methodNotImplemented","ClientAuthErrorCodes.nestedAppAuthBridgeDisabled"],"mappings":";;;;;;;AAKA;AACA;AACA;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAoFE,CAAAA,8BAAA,GAAA,gDAAA;AAEF,IAAA,CAAAC,YAAA,GAAA,uIAAA;;;AAGG,IAAA,CAAAC,oBAAA,GAAA,mHAAA;AACH,IAAA,CAAAC,oBAAmC,GAAA,sCAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAyNjC,IAAA,EAAAD,oBAAA;AAEF,QAAA,IAAA,EAAA,uBAAA,CAAAA,oBAAA,CAAA;;AAEG,IAAA,2BAAA,EAAA;AACH,QAAa,IAAA,EAAAE,2BAAiC;AAC9B,QAAA,IAAA,EAAA,uBAAoC,CAAAA,2BAAS,CAAA;AAW5D,KAAA;AAED,EAAA;;;;;;;;;;;;;;;;;;;"}
@@ -41,4 +41,5 @@ export declare const noNetworkConnectivity = "no_network_connectivity";
41
41
  export declare const userCanceled = "user_canceled";
42
42
  export declare const missingTenantIdError = "missing_tenant_id_error";
43
43
  export declare const methodNotImplemented = "method_not_implemented";
44
+ export declare const nestedAppAuthBridgeDisabled = "nested_app_auth_bridge_disabled";
44
45
  //# sourceMappingURL=ClientAuthErrorCodes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ClientAuthErrorCodes.d.ts","sourceRoot":"","sources":["../../src/error/ClientAuthErrorCodes.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,uBAAuB,+BAA+B,CAAC;AACpE,eAAO,MAAM,oBAAoB,4BAA4B,CAAC;AAC9D,eAAO,MAAM,iBAAiB,wBAAwB,CAAC;AACvD,eAAO,MAAM,gBAAgB,wBAAwB,CAAC;AACtD,eAAO,MAAM,uBAAuB,+BAA+B,CAAC;AACpE,eAAO,MAAM,YAAY,kBAAkB,CAAC;AAC5C,eAAO,MAAM,iBAAiB,wBAAwB,CAAC;AACvD,eAAO,MAAM,mBAAmB,0BAA0B,CAAC;AAC3D,eAAO,MAAM,YAAY,kBAAkB,CAAC;AAC5C,eAAO,MAAM,aAAa,mBAAmB,CAAC;AAC9C,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAC/C,eAAO,MAAM,aAAa,mBAAmB,CAAC;AAC9C,eAAO,MAAM,gBAAgB,wBAAwB,CAAC;AACtD,eAAO,MAAM,gBAAgB,uBAAuB,CAAC;AACrD,eAAO,MAAM,sBAAsB,6BAA6B,CA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C;AACrE,eAAO,MAAM,gBAAgB,sBAAsB,CAAC;AACpD,eAAO,MAAM,uBAAuB,8BAA8B,CAAC;AACnE,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAC7D,eAAO,MAAM,kBAAkB,yBAAyB,CAAC;AACzD,eAAO,MAAM,kCAAkC,4CACF,CAAC;AAC9C,eAAO,MAAM,0CAA0C,oDACF,CAAC;AACtD,eAAO,MAAM,oBAAoB,4BAA4B,CAAC;AAC9D,eAAO,MAAM,8BAA8B,uCACH,CAAC;AACzC,eAAO,MAAM,YAAY,mBAAmB,CAAC;AAC7C,eAAO,MAAM,qBAAqB,4BAA4B,CAAC;AAC/D,eAAO,MAAM,YAAY,kBAAkB,CAAC;AAC5C,eAAO,MAAM,oBAAoB,4BAA4B,CAAC;AAC9D,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAC7D,eAAO,MAAM,2BAA2B,oCAAoC,CAAC"}
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.1.0 2023-10-05 */
1
+ /*! @azure/msal-common v14.2.0 2023-10-20 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -47,6 +47,7 @@ const noNetworkConnectivity = "no_network_connectivity";
47
47
  const userCanceled = "user_canceled";
48
48
  const missingTenantIdError = "missing_tenant_id_error";
49
49
  const methodNotImplemented = "method_not_implemented";
50
+ const nestedAppAuthBridgeDisabled = "nested_app_auth_bridge_disabled";
50
51
 
51
- export { authTimeNotFound, authorizationCodeMissingFromServerResponse, bindingKeyNotRemoved, cannotAppendScopeSet, cannotRemoveEmptyScope, clientInfoDecodingError, clientInfoEmptyError, deviceCodeExpired, deviceCodePollingCancelled, deviceCodeUnknownError, emptyInputScopeSet, endSessionEndpointNotSupported, endpointResolutionError, hashNotDeserialized, invalidAssertion, invalidCacheEnvironment, invalidCacheRecord, invalidClientCredential, invalidState, keyIdMissing, maxAgeTranspired, methodNotImplemented, missingTenantIdError, multipleMatchingAccounts, multipleMatchingAppMetadata, multipleMatchingTokens, networkError, noAccountFound, noAccountInSilentRequest, noCryptoObject, noNetworkConnectivity, nonceMismatch, nullOrEmptyToken, openIdConfigError, requestCannotBeMade, stateMismatch, stateNotFound, tokenClaimsCnfRequiredForSignedJwt, tokenParsingError, tokenRefreshRequired, unexpectedCredentialType, userCanceled, userTimeoutReached };
52
+ export { authTimeNotFound, authorizationCodeMissingFromServerResponse, bindingKeyNotRemoved, cannotAppendScopeSet, cannotRemoveEmptyScope, clientInfoDecodingError, clientInfoEmptyError, deviceCodeExpired, deviceCodePollingCancelled, deviceCodeUnknownError, emptyInputScopeSet, endSessionEndpointNotSupported, endpointResolutionError, hashNotDeserialized, invalidAssertion, invalidCacheEnvironment, invalidCacheRecord, invalidClientCredential, invalidState, keyIdMissing, maxAgeTranspired, methodNotImplemented, missingTenantIdError, multipleMatchingAccounts, multipleMatchingAppMetadata, multipleMatchingTokens, nestedAppAuthBridgeDisabled, networkError, noAccountFound, noAccountInSilentRequest, noCryptoObject, noNetworkConnectivity, nonceMismatch, nullOrEmptyToken, openIdConfigError, requestCannotBeMade, stateMismatch, stateNotFound, tokenClaimsCnfRequiredForSignedJwt, tokenParsingError, tokenRefreshRequired, unexpectedCredentialType, userCanceled, userTimeoutReached };
52
53
  //# sourceMappingURL=ClientAuthErrorCodes.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ClientAuthErrorCodes.mjs","sources":["../../src/error/ClientAuthErrorCodes.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAKA;AACA;AACA;AACA;AACO,MAAA,uBAA6B,GAAA,6BAAA;AAC7B,MAAA,oBAAkB,GAAA,0BAAmB;AACrC,MAAA,iBAAuB,GAAA,sBAAA;AACvB,MAAA,gBAAyB,GAAA,sBAAA;AACzB,MAAA,uBAAkB,GAAA,6BAAmB;AACrC,MAAA,YAAmB,GAAA,gBAAA;AACnB,MAAA,iBAAmB,GAAA,sBAAqB;AACxC,MAAA,mBAAmB,GAAA,wBA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AAA,0BAAmB;AACrC,MAAA,8BAA0B,GAAA,qCAA6B;AACvD,MAAA,YAA0B,GAAA,iBAAA;AAC1B,MAAA,qBAAiC,GAAA,0BAAA;;;;;;;;"}
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.1.0 2023-10-05 */
1
+ /*! @azure/msal-common v14.2.0 2023-10-20 */
2
2
  'use strict';
3
3
  import { AuthError } from './AuthError.mjs';
4
4
  import { redirectUriEmpty, claimsRequestParsingError, authorityUriInsecure, urlParseError, urlEmptyError, emptyInputScopesError, invalidPromptValue, invalidClaims, tokenRequestEmpty, logoutRequestEmpty, invalidCodeChallengeMethod, pkceParamsMissing, invalidCloudDiscoveryMetadata, invalidAuthorityMetadata, untrustedAuthority, missingSshJwk, missingSshKid, missingNonceAuthenticationHeader, invalidAuthenticationHeader, cannotSetOIDCOptions, cannotAllowNativeBroker, authorityMismatch } from './ClientConfigurationErrorCodes.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.1.0 2023-10-05 */
1
+ /*! @azure/msal-common v14.2.0 2023-10-20 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.1.0 2023-10-05 */
1
+ /*! @azure/msal-common v14.2.0 2023-10-20 */
2
2
  'use strict';
3
3
  import { Constants } from '../utils/Constants.mjs';
4
4
  import { AuthError } from './AuthError.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.1.0 2023-10-05 */
1
+ /*! @azure/msal-common v14.2.0 2023-10-20 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.1.0 2023-10-05 */
1
+ /*! @azure/msal-common v14.2.0 2023-10-20 */
2
2
  'use strict';
3
3
  import { AuthError } from './AuthError.mjs';
4
4
  import { missingKidError, missingAlgError } from './JoseHeaderErrorCodes.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.1.0 2023-10-05 */
1
+ /*! @azure/msal-common v14.2.0 2023-10-20 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.1.0 2023-10-05 */
1
+ /*! @azure/msal-common v14.2.0 2023-10-20 */
2
2
  'use strict';
3
3
  import { AuthError } from './AuthError.mjs';
4
4