@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.
- package/dist/account/AuthToken.mjs +1 -1
- package/dist/account/CcsCredential.mjs +1 -1
- package/dist/account/ClientInfo.mjs +1 -1
- package/dist/authority/Authority.d.ts +25 -11
- package/dist/authority/Authority.d.ts.map +1 -1
- package/dist/authority/Authority.mjs +122 -71
- package/dist/authority/Authority.mjs.map +1 -1
- package/dist/authority/AuthorityFactory.d.ts.map +1 -1
- package/dist/authority/AuthorityFactory.mjs +3 -3
- package/dist/authority/AuthorityMetadata.d.ts +23 -0
- package/dist/authority/AuthorityMetadata.d.ts.map +1 -1
- package/dist/authority/AuthorityMetadata.mjs +58 -2
- package/dist/authority/AuthorityMetadata.mjs.map +1 -1
- package/dist/authority/AuthorityOptions.d.ts +6 -0
- package/dist/authority/AuthorityOptions.d.ts.map +1 -1
- package/dist/authority/AuthorityOptions.mjs +1 -1
- package/dist/authority/AuthorityOptions.mjs.map +1 -1
- package/dist/authority/AuthorityType.mjs +1 -1
- package/dist/authority/CloudInstanceDiscoveryErrorResponse.mjs +1 -1
- package/dist/authority/CloudInstanceDiscoveryResponse.mjs +1 -1
- package/dist/authority/OpenIdConfigResponse.mjs +1 -1
- package/dist/authority/ProtocolMode.mjs +1 -1
- package/dist/authority/RegionDiscovery.mjs +1 -1
- package/dist/cache/CacheManager.d.ts +17 -1
- package/dist/cache/CacheManager.d.ts.map +1 -1
- package/dist/cache/CacheManager.mjs +72 -35
- package/dist/cache/CacheManager.mjs.map +1 -1
- package/dist/cache/entities/AccessTokenEntity.mjs +1 -1
- package/dist/cache/entities/AccountEntity.d.ts.map +1 -1
- package/dist/cache/entities/AccountEntity.mjs +1 -3
- package/dist/cache/entities/AccountEntity.mjs.map +1 -1
- package/dist/cache/entities/AppMetadataEntity.mjs +1 -1
- package/dist/cache/entities/AuthorityMetadataEntity.mjs +1 -1
- package/dist/cache/entities/CacheRecord.mjs +1 -1
- package/dist/cache/entities/CredentialEntity.mjs +1 -1
- package/dist/cache/entities/IdTokenEntity.mjs +1 -1
- package/dist/cache/entities/RefreshTokenEntity.mjs +1 -1
- package/dist/cache/entities/ServerTelemetryEntity.mjs +1 -1
- package/dist/cache/entities/ThrottlingEntity.mjs +1 -1
- package/dist/cache/persistence/TokenCacheContext.mjs +1 -1
- package/dist/cache/utils/CacheTypes.d.ts +1 -0
- package/dist/cache/utils/CacheTypes.d.ts.map +1 -1
- package/dist/client/AuthorizationCodeClient.d.ts.map +1 -1
- package/dist/client/AuthorizationCodeClient.mjs +2 -2
- package/dist/client/AuthorizationCodeClient.mjs.map +1 -1
- package/dist/client/BaseClient.d.ts +1 -1
- package/dist/client/BaseClient.d.ts.map +1 -1
- package/dist/client/BaseClient.mjs +5 -4
- package/dist/client/BaseClient.mjs.map +1 -1
- package/dist/client/RefreshTokenClient.d.ts.map +1 -1
- package/dist/client/RefreshTokenClient.mjs +4 -4
- package/dist/client/RefreshTokenClient.mjs.map +1 -1
- package/dist/client/SilentFlowClient.d.ts +1 -0
- package/dist/client/SilentFlowClient.d.ts.map +1 -1
- package/dist/client/SilentFlowClient.mjs +20 -27
- package/dist/client/SilentFlowClient.mjs.map +1 -1
- package/dist/config/ClientConfiguration.mjs +1 -1
- package/dist/crypto/ICrypto.mjs +1 -1
- package/dist/crypto/JoseHeader.mjs +1 -1
- package/dist/crypto/PopTokenGenerator.mjs +1 -1
- package/dist/error/AuthError.mjs +1 -1
- package/dist/error/AuthErrorCodes.mjs +1 -1
- package/dist/error/ClientAuthError.d.ts +5 -0
- package/dist/error/ClientAuthError.d.ts.map +1 -1
- package/dist/error/ClientAuthError.mjs +7 -2
- package/dist/error/ClientAuthError.mjs.map +1 -1
- package/dist/error/ClientAuthErrorCodes.d.ts +1 -0
- package/dist/error/ClientAuthErrorCodes.d.ts.map +1 -1
- package/dist/error/ClientAuthErrorCodes.mjs +3 -2
- package/dist/error/ClientAuthErrorCodes.mjs.map +1 -1
- package/dist/error/ClientConfigurationError.mjs +1 -1
- package/dist/error/ClientConfigurationErrorCodes.mjs +1 -1
- package/dist/error/InteractionRequiredAuthError.mjs +1 -1
- package/dist/error/InteractionRequiredAuthErrorCodes.mjs +1 -1
- package/dist/error/JoseHeaderError.mjs +1 -1
- package/dist/error/JoseHeaderErrorCodes.mjs +1 -1
- package/dist/error/ServerError.mjs +1 -1
- package/dist/index.cjs +4455 -4301
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/logger/Logger.mjs +1 -1
- package/dist/network/INetworkModule.mjs +1 -1
- package/dist/network/NetworkManager.mjs +1 -1
- package/dist/network/ThrottlingUtils.mjs +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/request/AuthenticationHeaderParser.mjs +1 -1
- package/dist/request/RequestParameterBuilder.mjs +1 -1
- package/dist/request/RequestValidator.mjs +1 -1
- package/dist/request/ScopeSet.mjs +1 -1
- package/dist/response/ResponseHandler.d.ts.map +1 -1
- package/dist/response/ResponseHandler.mjs +8 -4
- package/dist/response/ResponseHandler.mjs.map +1 -1
- package/dist/telemetry/performance/PerformanceClient.mjs +1 -1
- package/dist/telemetry/performance/PerformanceEvent.d.ts +17 -1
- package/dist/telemetry/performance/PerformanceEvent.d.ts.map +1 -1
- package/dist/telemetry/performance/PerformanceEvent.mjs +9 -2
- package/dist/telemetry/performance/PerformanceEvent.mjs.map +1 -1
- package/dist/telemetry/performance/StubPerformanceClient.mjs +1 -1
- package/dist/telemetry/server/ServerTelemetryManager.mjs +1 -1
- package/dist/url/UrlString.mjs +1 -1
- package/dist/utils/Constants.mjs +1 -1
- package/dist/utils/FunctionWrappers.mjs +1 -1
- package/dist/utils/ProtocolUtils.mjs +1 -1
- package/dist/utils/StringUtils.mjs +1 -1
- package/dist/utils/TimeUtils.mjs +1 -1
- package/package.json +1 -1
- package/src/authority/Authority.ts +207 -127
- package/src/authority/AuthorityFactory.ts +4 -4
- package/src/authority/AuthorityMetadata.ts +87 -0
- package/src/authority/AuthorityOptions.ts +9 -0
- package/src/cache/CacheManager.ts +115 -52
- package/src/cache/entities/AccountEntity.ts +0 -3
- package/src/cache/utils/CacheTypes.ts +1 -0
- package/src/client/AuthorizationCodeClient.ts +9 -2
- package/src/client/BaseClient.ts +9 -6
- package/src/client/RefreshTokenClient.ts +17 -7
- package/src/client/SilentFlowClient.ts +49 -49
- package/src/error/ClientAuthError.ts +8 -0
- package/src/error/ClientAuthErrorCodes.ts +1 -0
- package/src/index.ts +6 -1
- package/src/packageMetadata.ts +1 -1
- package/src/response/ResponseHandler.ts +9 -3
- package/src/telemetry/performance/PerformanceEvent.ts +24 -2
|
@@ -101,8 +101,10 @@ export const PerformanceEvents = {
|
|
|
101
101
|
/**
|
|
102
102
|
* Time spent sending/waiting for the response of a request to the token endpoint
|
|
103
103
|
*/
|
|
104
|
-
|
|
105
|
-
"
|
|
104
|
+
RefreshTokenClientExecutePostToTokenEndpoint:
|
|
105
|
+
"refreshTokenClientExecutePostToTokenEndpoint",
|
|
106
|
+
AuthorizationCodeClientExecutePostToTokenEndpoint:
|
|
107
|
+
"authorizationCodeClientExecutePostToTokenEndpoint",
|
|
106
108
|
/**
|
|
107
109
|
* Used to measure the time taken for completing embedded-broker handshake (PW-Broker).
|
|
108
110
|
*/
|
|
@@ -150,6 +152,9 @@ export const PerformanceEvents = {
|
|
|
150
152
|
* Internal API for acquiring token from cache
|
|
151
153
|
*/
|
|
152
154
|
AcquireTokenFromCache: "acquireTokenFromCache",
|
|
155
|
+
SilentFlowClientAcquireCachedToken: "silentFlowClientAcquireCachedToken",
|
|
156
|
+
SilentFlowClientGenerateResultFromCacheRecord:
|
|
157
|
+
"silentFlowClientGenerateResultFromCacheRecord",
|
|
153
158
|
|
|
154
159
|
/**
|
|
155
160
|
* acquireTokenBySilentIframe (msal-browser).
|
|
@@ -180,6 +185,7 @@ export const PerformanceEvents = {
|
|
|
180
185
|
SilentHandlerInitiateAuthRequest: "silentHandlerInitiateAuthRequest",
|
|
181
186
|
SilentHandlerMonitorIframeForHash: "silentHandlerMonitorIframeForHash",
|
|
182
187
|
SilentHandlerLoadFrame: "silentHandlerLoadFrame",
|
|
188
|
+
SilentHandlerLoadFrameSync: "silentHandlerLoadFrameSync",
|
|
183
189
|
|
|
184
190
|
/**
|
|
185
191
|
* Helper functions in StandardInteractionClient class (msal-browser)
|
|
@@ -230,6 +236,8 @@ export const PerformanceEvents = {
|
|
|
230
236
|
AuthorityFactoryCreateDiscoveredInstance:
|
|
231
237
|
"authorityFactoryCreateDiscoveredInstance",
|
|
232
238
|
AuthorityResolveEndpointsAsync: "authorityResolveEndpointsAsync",
|
|
239
|
+
AuthorityResolveEndpointsFromLocalSources:
|
|
240
|
+
"authorityResolveEndpointsFromLocalSources",
|
|
233
241
|
AuthorityGetCloudDiscoveryMetadataFromNetwork:
|
|
234
242
|
"authorityGetCloudDiscoveryMetadataFromNetwork",
|
|
235
243
|
AuthorityUpdateCloudDiscoveryMetadata:
|
|
@@ -264,10 +272,13 @@ export const PerformanceEvents = {
|
|
|
264
272
|
|
|
265
273
|
NativeGenerateAuthResult: "nativeGenerateAuthResult",
|
|
266
274
|
|
|
275
|
+
RemoveHiddenIframe: "removeHiddenIframe",
|
|
276
|
+
|
|
267
277
|
/**
|
|
268
278
|
* Cache operations
|
|
269
279
|
*/
|
|
270
280
|
ClearTokensAndKeysWithClaims: "clearTokensAndKeysWithClaims",
|
|
281
|
+
CacheManagerGetRefreshToken: "cacheManagerGetRefreshToken",
|
|
271
282
|
|
|
272
283
|
/**
|
|
273
284
|
* Crypto Operations
|
|
@@ -443,6 +454,12 @@ export type PerformanceEvent = {
|
|
|
443
454
|
*/
|
|
444
455
|
cacheLookupPolicy?: number | undefined;
|
|
445
456
|
|
|
457
|
+
/**
|
|
458
|
+
* Cache Outcome
|
|
459
|
+
* @type {?number}
|
|
460
|
+
*/
|
|
461
|
+
cacheOutcome?: number;
|
|
462
|
+
|
|
446
463
|
/**
|
|
447
464
|
* Amount of time spent in the JS queue in milliseconds.
|
|
448
465
|
*
|
|
@@ -536,6 +553,11 @@ export type PerformanceEvent = {
|
|
|
536
553
|
extensionInstalled?: boolean;
|
|
537
554
|
extensionHandshakeTimeoutMs?: number;
|
|
538
555
|
extensionHandshakeTimedOut?: boolean;
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* Nested App Auth Fields
|
|
559
|
+
*/
|
|
560
|
+
nestedAppAuthRequest?: boolean;
|
|
539
561
|
};
|
|
540
562
|
|
|
541
563
|
export const IntFields: ReadonlySet<string> = new Set([
|