@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
|
@@ -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;
|
|
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
|
+
/*! @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.
|
|
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;;
|
|
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;
|
|
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
|
+
/*! @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
|
-
|
|
64
|
-
|
|
65
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/crypto/ICrypto.mjs
CHANGED
package/dist/error/AuthError.mjs
CHANGED
|
@@ -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":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,oBAAoB,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,CAAC;AAEhC;;GAEG;AAEH,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"ClientAuthError.d.ts","sourceRoot":"","sources":["../../src/error/ClientAuthError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,oBAAoB,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,CAAC;AAEhC;;GAEG;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgFnC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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
|
+
/*! @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.
|
|
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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/*! @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,wBAAoB;AACvC,MAAA,YAAsB,GAAA,gBAAA;AACtB,MAAA,aAAsB,GAAA,iBAAA;AACtB,MAAA,aAA4B,GAAA,kBAAA;AAC5B,MAAA,aAA8B,GAAA,iBAAA;AAC9B,MAAA,gBAAiC,GAAA,sBAAA;AACjC,MAAA,gBAAyB,GAAA,qBAAA;AACzB,MAAA,sBAA4B,GAAA,2BAAA;AAC5B,MAAA,wBAA0B,GAAA,6BAA4B;AACtD,MAAA,2BAAwB,GAAA,gCAA0B;AAClD,MAAA,mBAAgC,GAAA,yBAAA;AAChC,MAAA,sBAAuB,GAAA,4BAAyB;AAChD,MAAA,oBAA4B,GAAA,yBAAA;AAC5B,MAAA,kBAA8B,GAAA,uBAAA;AAC9B,MAAA,0BAAwB,GAAA,gCAA0B;AAClD,MAAA,iBAA6B,GAAA,sBAAA;AAC7B,MAAA,sBAAoB,GAAA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AAA,gCAA0B;AAClD,MAAA,mBAAgC,GAAA,yBAAA;AAChC,MAAA,sBAAuB,GAAA,4BAAyB;AAChD,MAAA,oBAA4B,GAAA,yBAAA;AAC5B,MAAA,kBAA8B,GAAA,uBAAA;AAC9B,MAAA,0BAAwB,GAAA,gCAA0B;AAClD,MAAA,iBAA6B,GAAA,sBAAA;AAC7B,MAAA,sBAAoB,GAAA,4BAAsB;AAC1C,MAAA,wBAAoB,GAAA,+BAAsB;AAC1C,MAAA,kBAA8B,GAAA,uBAAA;AAC9B,MAAA,uBAAsB,GAAA,4BAAuB;AAC7C,MAAA,cAA6B,GAAA,mBAAA;AAC7B,MAAA,cAA0B,GAAA,mBAAA;AAC1B,MAAA,wBAAwB,GAAA,6BAA0B;AAClD,MAAA,gBAAwC,GAAA,oBAAA;AAExC,MAAA,uBAAgD,GAAA,4BAAA;AAEhD,MAAA,oBAA0B,GAAA,yBAAA;AAC1B,MAAA,kBAAoC,GAAA,uBAAA;AAEpC,MAAA,kCAAkB,GAAA,0CAAoB;AACtC,MAAA,0CAA2B,GAAA,kDAA6B;AACxD,MAAA,oBAAkB,GAAA,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
|
+
/*! @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';
|