@azure/msal-common 14.2.0 → 14.4.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.map +1 -1
- package/dist/authority/Authority.mjs +4 -5
- package/dist/authority/Authority.mjs.map +1 -1
- package/dist/authority/AuthorityFactory.mjs +1 -1
- package/dist/authority/AuthorityMetadata.d.ts +29 -172
- package/dist/authority/AuthorityMetadata.d.ts.map +1 -1
- package/dist/authority/AuthorityMetadata.mjs +79 -413
- package/dist/authority/AuthorityMetadata.mjs.map +1 -1
- package/dist/authority/AuthorityOptions.d.ts +2 -2
- 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 +24 -19
- package/dist/cache/CacheManager.d.ts.map +1 -1
- package/dist/cache/CacheManager.mjs +51 -33
- package/dist/cache/CacheManager.mjs.map +1 -1
- package/dist/cache/entities/AccessTokenEntity.d.ts +12 -43
- package/dist/cache/entities/AccessTokenEntity.d.ts.map +1 -1
- package/dist/cache/entities/AccountEntity.mjs +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.d.ts +15 -73
- package/dist/cache/entities/CredentialEntity.d.ts.map +1 -1
- package/dist/cache/entities/IdTokenEntity.d.ts +4 -30
- package/dist/cache/entities/IdTokenEntity.d.ts.map +1 -1
- package/dist/cache/entities/RefreshTokenEntity.d.ts +2 -33
- package/dist/cache/entities/RefreshTokenEntity.d.ts.map +1 -1
- package/dist/cache/entities/ServerTelemetryEntity.d.ts +2 -9
- package/dist/cache/entities/ServerTelemetryEntity.d.ts.map +1 -1
- package/dist/cache/entities/ThrottlingEntity.mjs +1 -1
- package/dist/cache/persistence/TokenCacheContext.mjs +1 -1
- package/dist/cache/utils/CacheHelpers.d.ts +65 -0
- package/dist/cache/utils/CacheHelpers.d.ts.map +1 -0
- package/dist/cache/utils/CacheHelpers.mjs +242 -0
- package/dist/cache/utils/CacheHelpers.mjs.map +1 -0
- package/dist/client/AuthorizationCodeClient.d.ts +2 -1
- package/dist/client/AuthorizationCodeClient.d.ts.map +1 -1
- package/dist/client/AuthorizationCodeClient.mjs +4 -10
- 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 +8 -8
- package/dist/client/BaseClient.mjs.map +1 -1
- package/dist/client/RefreshTokenClient.d.ts.map +1 -1
- package/dist/client/RefreshTokenClient.mjs +2 -2
- package/dist/client/RefreshTokenClient.mjs.map +1 -1
- package/dist/client/SilentFlowClient.d.ts.map +1 -1
- package/dist/client/SilentFlowClient.mjs +5 -3
- package/dist/client/SilentFlowClient.mjs.map +1 -1
- package/dist/config/ClientConfiguration.mjs +1 -1
- package/dist/crypto/ICrypto.d.ts +3 -3
- package/dist/crypto/ICrypto.d.ts.map +1 -1
- package/dist/crypto/ICrypto.mjs +1 -1
- package/dist/crypto/ICrypto.mjs.map +1 -1
- package/dist/crypto/JoseHeader.d.ts +3 -3
- package/dist/crypto/JoseHeader.d.ts.map +1 -1
- package/dist/crypto/JoseHeader.mjs +3 -3
- package/dist/crypto/JoseHeader.mjs.map +1 -1
- package/dist/crypto/PopTokenGenerator.d.ts.map +1 -1
- package/dist/crypto/PopTokenGenerator.mjs +3 -3
- package/dist/crypto/PopTokenGenerator.mjs.map +1 -1
- package/dist/crypto/SignedHttpRequest.d.ts +4 -0
- package/dist/crypto/SignedHttpRequest.d.ts.map +1 -1
- package/dist/error/AuthError.mjs +1 -1
- package/dist/error/AuthErrorCodes.mjs +1 -1
- package/dist/error/ClientAuthError.mjs +1 -1
- package/dist/error/ClientAuthErrorCodes.mjs +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 +2768 -3303
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +6 -7
- package/dist/index.mjs.map +1 -1
- package/dist/logger/Logger.mjs +1 -1
- package/dist/network/INetworkModule.mjs +1 -1
- package/dist/network/NetworkManager.mjs +1 -1
- package/dist/network/RequestThumbprint.d.ts +2 -0
- package/dist/network/RequestThumbprint.d.ts.map +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/BaseAuthRequest.d.ts +3 -0
- package/dist/request/BaseAuthRequest.d.ts.map +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 +2 -2
- package/dist/response/ResponseHandler.d.ts.map +1 -1
- package/dist/response/ResponseHandler.mjs +23 -29
- package/dist/response/ResponseHandler.mjs.map +1 -1
- package/dist/telemetry/performance/PerformanceClient.mjs +1 -1
- package/dist/telemetry/performance/PerformanceEvent.d.ts +8 -1
- package/dist/telemetry/performance/PerformanceEvent.d.ts.map +1 -1
- package/dist/telemetry/performance/PerformanceEvent.mjs +6 -2
- package/dist/telemetry/performance/PerformanceEvent.mjs.map +1 -1
- package/dist/telemetry/performance/StubPerformanceClient.mjs +1 -1
- package/dist/telemetry/server/ServerTelemetryManager.d.ts.map +1 -1
- package/dist/telemetry/server/ServerTelemetryManager.mjs +11 -8
- package/dist/telemetry/server/ServerTelemetryManager.mjs.map +1 -1
- package/dist/url/UrlString.d.ts +2 -37
- package/dist/url/UrlString.d.ts.map +1 -1
- package/dist/url/UrlString.mjs +7 -126
- package/dist/url/UrlString.mjs.map +1 -1
- package/dist/utils/Constants.d.ts +2 -3
- package/dist/utils/Constants.d.ts.map +1 -1
- package/dist/utils/Constants.mjs +3 -4
- package/dist/utils/Constants.mjs.map +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/dist/utils/UrlUtils.d.ts +11 -0
- package/dist/utils/UrlUtils.d.ts.map +1 -0
- package/dist/utils/UrlUtils.mjs +52 -0
- package/dist/utils/UrlUtils.mjs.map +1 -0
- package/package.json +1 -1
- package/src/authority/Authority.ts +5 -8
- package/src/authority/AuthorityMetadata.ts +109 -435
- package/src/authority/AuthorityOptions.ts +2 -2
- package/src/cache/CacheManager.ts +79 -42
- package/src/cache/entities/AccessTokenEntity.ts +13 -149
- package/src/cache/entities/CredentialEntity.ts +16 -200
- package/src/cache/entities/IdTokenEntity.ts +4 -64
- package/src/cache/entities/RefreshTokenEntity.ts +2 -69
- package/src/cache/entities/ServerTelemetryEntity.ts +2 -30
- package/src/cache/utils/CacheHelpers.ts +327 -0
- package/src/client/AuthorizationCodeClient.ts +4 -15
- package/src/client/BaseClient.ts +21 -10
- package/src/client/RefreshTokenClient.ts +7 -1
- package/src/client/SilentFlowClient.ts +8 -4
- package/src/crypto/ICrypto.ts +7 -2
- package/src/crypto/JoseHeader.ts +4 -4
- package/src/crypto/PopTokenGenerator.ts +2 -0
- package/src/crypto/SignedHttpRequest.ts +6 -0
- package/src/index.ts +4 -1
- package/src/network/RequestThumbprint.ts +2 -0
- package/src/packageMetadata.ts +1 -1
- package/src/request/BaseAuthRequest.ts +3 -0
- package/src/response/ResponseHandler.ts +36 -41
- package/src/telemetry/performance/PerformanceEvent.ts +12 -1
- package/src/telemetry/server/ServerTelemetryManager.ts +12 -6
- package/src/url/UrlString.ts +6 -153
- package/src/utils/Constants.ts +3 -3
- package/src/utils/UrlUtils.ts +60 -0
- package/dist/cache/entities/AccessTokenEntity.mjs +0 -121
- package/dist/cache/entities/AccessTokenEntity.mjs.map +0 -1
- package/dist/cache/entities/CredentialEntity.mjs +0 -145
- package/dist/cache/entities/CredentialEntity.mjs.map +0 -1
- package/dist/cache/entities/IdTokenEntity.mjs +0 -64
- package/dist/cache/entities/IdTokenEntity.mjs.map +0 -1
- package/dist/cache/entities/RefreshTokenEntity.mjs +0 -67
- package/dist/cache/entities/RefreshTokenEntity.mjs.map +0 -1
- package/dist/cache/entities/ServerTelemetryEntity.mjs +0 -34
- package/dist/cache/entities/ServerTelemetryEntity.mjs.map +0 -1
|
@@ -1,37 +1,6 @@
|
|
|
1
1
|
import { CredentialEntity } from "./CredentialEntity";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* Key:Value Schema:
|
|
6
|
-
*
|
|
7
|
-
* Key Example: uid.utid-login.microsoftonline.com-refreshtoken-clientId--
|
|
8
|
-
*
|
|
9
|
-
* Value:
|
|
10
|
-
* {
|
|
11
|
-
* homeAccountId: home account identifier for the auth scheme,
|
|
12
|
-
* environment: entity that issued the token, represented as a full host
|
|
13
|
-
* credentialType: Type of credential as a string, can be one of the following: RefreshToken, AccessToken, IdToken, Password, Cookie, Certificate, Other
|
|
14
|
-
* clientId: client ID of the application
|
|
15
|
-
* secret: Actual credential as a string
|
|
16
|
-
* familyId: Family ID identifier, '1' represents Microsoft Family
|
|
17
|
-
* realm: Full tenant or organizational identifier that the account belongs to
|
|
18
|
-
* target: Permissions that are included in the token, or for refresh tokens, the resource identifier.
|
|
19
|
-
* }
|
|
3
|
+
* Refresh Token Cache Type
|
|
20
4
|
*/
|
|
21
|
-
export
|
|
22
|
-
familyId?: string;
|
|
23
|
-
/**
|
|
24
|
-
* Create RefreshTokenEntity
|
|
25
|
-
* @param homeAccountId
|
|
26
|
-
* @param authenticationResult
|
|
27
|
-
* @param clientId
|
|
28
|
-
* @param authority
|
|
29
|
-
*/
|
|
30
|
-
static createRefreshTokenEntity(homeAccountId: string, environment: string, refreshToken: string, clientId: string, familyId?: string, userAssertionHash?: string): RefreshTokenEntity;
|
|
31
|
-
/**
|
|
32
|
-
* Validates an entity: checks for all expected params
|
|
33
|
-
* @param entity
|
|
34
|
-
*/
|
|
35
|
-
static isRefreshTokenEntity(entity: object): boolean;
|
|
36
|
-
}
|
|
5
|
+
export type RefreshTokenEntity = CredentialEntity;
|
|
37
6
|
//# sourceMappingURL=RefreshTokenEntity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RefreshTokenEntity.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/RefreshTokenEntity.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"RefreshTokenEntity.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/RefreshTokenEntity.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,CAAC"}
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type ServerTelemetryEntity = {
|
|
2
2
|
failedRequests: Array<string | number>;
|
|
3
3
|
errors: string[];
|
|
4
4
|
cacheHits: number;
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* validates if a given cache entry is "Telemetry", parses <key,value>
|
|
8
|
-
* @param key
|
|
9
|
-
* @param entity
|
|
10
|
-
*/
|
|
11
|
-
static isServerTelemetryEntity(key: string, entity?: object): boolean;
|
|
12
|
-
}
|
|
5
|
+
};
|
|
13
6
|
//# sourceMappingURL=ServerTelemetryEntity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServerTelemetryEntity.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/ServerTelemetryEntity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ServerTelemetryEntity.d.ts","sourceRoot":"","sources":["../../../src/cache/entities/ServerTelemetryEntity.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,qBAAqB,GAAG;IAChC,cAAc,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IACvC,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACrB,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { AuthenticationScheme } from "../../utils/Constants";
|
|
2
|
+
import { AccessTokenEntity } from "../entities/AccessTokenEntity";
|
|
3
|
+
import { CredentialEntity } from "../entities/CredentialEntity";
|
|
4
|
+
import { IdTokenEntity } from "../entities/IdTokenEntity";
|
|
5
|
+
import { RefreshTokenEntity } from "../entities/RefreshTokenEntity";
|
|
6
|
+
/**
|
|
7
|
+
* Cache Key: <home_account_id>-<environment>-<credential_type>-<client_id or familyId>-<realm>-<scopes>-<claims hash>-<scheme>
|
|
8
|
+
* IdToken Example: uid.utid-login.microsoftonline.com-idtoken-app_client_id-contoso.com
|
|
9
|
+
* AccessToken Example: uid.utid-login.microsoftonline.com-accesstoken-app_client_id-contoso.com-scope1 scope2--pop
|
|
10
|
+
* RefreshToken Example: uid.utid-login.microsoftonline.com-refreshtoken-1-contoso.com
|
|
11
|
+
* @param credentialEntity
|
|
12
|
+
* @returns
|
|
13
|
+
*/
|
|
14
|
+
export declare function generateCredentialKey(credentialEntity: CredentialEntity): string;
|
|
15
|
+
/**
|
|
16
|
+
* Create IdTokenEntity
|
|
17
|
+
* @param homeAccountId
|
|
18
|
+
* @param authenticationResult
|
|
19
|
+
* @param clientId
|
|
20
|
+
* @param authority
|
|
21
|
+
*/
|
|
22
|
+
export declare function createIdTokenEntity(homeAccountId: string, environment: string, idToken: string, clientId: string, tenantId: string): IdTokenEntity;
|
|
23
|
+
/**
|
|
24
|
+
* Create AccessTokenEntity
|
|
25
|
+
* @param homeAccountId
|
|
26
|
+
* @param environment
|
|
27
|
+
* @param accessToken
|
|
28
|
+
* @param clientId
|
|
29
|
+
* @param tenantId
|
|
30
|
+
* @param scopes
|
|
31
|
+
* @param expiresOn
|
|
32
|
+
* @param extExpiresOn
|
|
33
|
+
*/
|
|
34
|
+
export declare function createAccessTokenEntity(homeAccountId: string, environment: string, accessToken: string, clientId: string, tenantId: string, scopes: string, expiresOn: number, extExpiresOn: number, base64Decode: (input: string) => string, refreshOn?: number, tokenType?: AuthenticationScheme, userAssertionHash?: string, keyId?: string, requestedClaims?: string, requestedClaimsHash?: string): AccessTokenEntity;
|
|
35
|
+
/**
|
|
36
|
+
* Create RefreshTokenEntity
|
|
37
|
+
* @param homeAccountId
|
|
38
|
+
* @param authenticationResult
|
|
39
|
+
* @param clientId
|
|
40
|
+
* @param authority
|
|
41
|
+
*/
|
|
42
|
+
export declare function createRefreshTokenEntity(homeAccountId: string, environment: string, refreshToken: string, clientId: string, familyId?: string, userAssertionHash?: string): RefreshTokenEntity;
|
|
43
|
+
export declare function isCredentialEntity(entity: object): boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Validates an entity: checks for all expected params
|
|
46
|
+
* @param entity
|
|
47
|
+
*/
|
|
48
|
+
export declare function isAccessTokenEntity(entity: object): boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Validates an entity: checks for all expected params
|
|
51
|
+
* @param entity
|
|
52
|
+
*/
|
|
53
|
+
export declare function isIdTokenEntity(entity: object): boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Validates an entity: checks for all expected params
|
|
56
|
+
* @param entity
|
|
57
|
+
*/
|
|
58
|
+
export declare function isRefreshTokenEntity(entity: object): boolean;
|
|
59
|
+
/**
|
|
60
|
+
* validates if a given cache entry is "Telemetry", parses <key,value>
|
|
61
|
+
* @param key
|
|
62
|
+
* @param entity
|
|
63
|
+
*/
|
|
64
|
+
export declare function isServerTelemetryEntity(key: string, entity?: object): boolean;
|
|
65
|
+
//# sourceMappingURL=CacheHelpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CacheHelpers.d.ts","sourceRoot":"","sources":["../../../src/cache/utils/CacheHelpers.ts"],"names":[],"mappings":"AAWA,OAAO,EACH,oBAAoB,EAIvB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACjC,gBAAgB,EAAE,gBAAgB,GACnC,MAAM,CAUR;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAC/B,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,GACjB,aAAa,CAWf;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CACnC,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,EACvC,SAAS,CAAC,EAAE,MAAM,EAClB,SAAS,CAAC,EAAE,oBAAoB,EAChC,iBAAiB,CAAC,EAAE,MAAM,EAC1B,KAAK,CAAC,EAAE,MAAM,EACd,eAAe,CAAC,EAAE,MAAM,EACxB,mBAAmB,CAAC,EAAE,MAAM,GAC7B,iBAAiB,CAyDnB;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACpC,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,MAAM,EAChB,QAAQ,CAAC,EAAE,MAAM,EACjB,iBAAiB,CAAC,EAAE,MAAM,GAC3B,kBAAkB,CAkBpB;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAQ1D;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAa3D;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAUvD;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAS5D;AA2DD;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAa7E"}
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
/*! @azure/msal-common v14.4.0 2023-11-07 */
|
|
2
|
+
'use strict';
|
|
3
|
+
import { extractTokenClaims } from '../../account/AuthToken.mjs';
|
|
4
|
+
import { createClientAuthError } from '../../error/ClientAuthError.mjs';
|
|
5
|
+
import { Separators, CredentialType, AuthenticationScheme, SERVER_TELEM_CONSTANTS } from '../../utils/Constants.mjs';
|
|
6
|
+
import { TimeUtils } from '../../utils/TimeUtils.mjs';
|
|
7
|
+
import { tokenClaimsCnfRequiredForSignedJwt } from '../../error/ClientAuthErrorCodes.mjs';
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
11
|
+
* Licensed under the MIT License.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Cache Key: <home_account_id>-<environment>-<credential_type>-<client_id or familyId>-<realm>-<scopes>-<claims hash>-<scheme>
|
|
15
|
+
* IdToken Example: uid.utid-login.microsoftonline.com-idtoken-app_client_id-contoso.com
|
|
16
|
+
* AccessToken Example: uid.utid-login.microsoftonline.com-accesstoken-app_client_id-contoso.com-scope1 scope2--pop
|
|
17
|
+
* RefreshToken Example: uid.utid-login.microsoftonline.com-refreshtoken-1-contoso.com
|
|
18
|
+
* @param credentialEntity
|
|
19
|
+
* @returns
|
|
20
|
+
*/
|
|
21
|
+
function generateCredentialKey(credentialEntity) {
|
|
22
|
+
const credentialKey = [
|
|
23
|
+
generateAccountId(credentialEntity),
|
|
24
|
+
generateCredentialId(credentialEntity),
|
|
25
|
+
generateTarget(credentialEntity),
|
|
26
|
+
generateClaimsHash(credentialEntity),
|
|
27
|
+
generateScheme(credentialEntity),
|
|
28
|
+
];
|
|
29
|
+
return credentialKey.join(Separators.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Create IdTokenEntity
|
|
33
|
+
* @param homeAccountId
|
|
34
|
+
* @param authenticationResult
|
|
35
|
+
* @param clientId
|
|
36
|
+
* @param authority
|
|
37
|
+
*/
|
|
38
|
+
function createIdTokenEntity(homeAccountId, environment, idToken, clientId, tenantId) {
|
|
39
|
+
const idTokenEntity = {
|
|
40
|
+
credentialType: CredentialType.ID_TOKEN,
|
|
41
|
+
homeAccountId: homeAccountId,
|
|
42
|
+
environment: environment,
|
|
43
|
+
clientId: clientId,
|
|
44
|
+
secret: idToken,
|
|
45
|
+
realm: tenantId,
|
|
46
|
+
};
|
|
47
|
+
return idTokenEntity;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Create AccessTokenEntity
|
|
51
|
+
* @param homeAccountId
|
|
52
|
+
* @param environment
|
|
53
|
+
* @param accessToken
|
|
54
|
+
* @param clientId
|
|
55
|
+
* @param tenantId
|
|
56
|
+
* @param scopes
|
|
57
|
+
* @param expiresOn
|
|
58
|
+
* @param extExpiresOn
|
|
59
|
+
*/
|
|
60
|
+
function createAccessTokenEntity(homeAccountId, environment, accessToken, clientId, tenantId, scopes, expiresOn, extExpiresOn, base64Decode, refreshOn, tokenType, userAssertionHash, keyId, requestedClaims, requestedClaimsHash) {
|
|
61
|
+
const atEntity = {
|
|
62
|
+
homeAccountId: homeAccountId,
|
|
63
|
+
credentialType: CredentialType.ACCESS_TOKEN,
|
|
64
|
+
secret: accessToken,
|
|
65
|
+
cachedAt: TimeUtils.nowSeconds().toString(),
|
|
66
|
+
expiresOn: expiresOn.toString(),
|
|
67
|
+
extendedExpiresOn: extExpiresOn.toString(),
|
|
68
|
+
environment: environment,
|
|
69
|
+
clientId: clientId,
|
|
70
|
+
realm: tenantId,
|
|
71
|
+
target: scopes,
|
|
72
|
+
tokenType: tokenType || AuthenticationScheme.BEARER,
|
|
73
|
+
};
|
|
74
|
+
if (userAssertionHash) {
|
|
75
|
+
atEntity.userAssertionHash = userAssertionHash;
|
|
76
|
+
}
|
|
77
|
+
if (refreshOn) {
|
|
78
|
+
atEntity.refreshOn = refreshOn.toString();
|
|
79
|
+
}
|
|
80
|
+
if (requestedClaims) {
|
|
81
|
+
atEntity.requestedClaims = requestedClaims;
|
|
82
|
+
atEntity.requestedClaimsHash = requestedClaimsHash;
|
|
83
|
+
}
|
|
84
|
+
/*
|
|
85
|
+
* Create Access Token With Auth Scheme instead of regular access token
|
|
86
|
+
* Cast to lower to handle "bearer" from ADFS
|
|
87
|
+
*/
|
|
88
|
+
if (atEntity.tokenType?.toLowerCase() !==
|
|
89
|
+
AuthenticationScheme.BEARER.toLowerCase()) {
|
|
90
|
+
atEntity.credentialType = CredentialType.ACCESS_TOKEN_WITH_AUTH_SCHEME;
|
|
91
|
+
switch (atEntity.tokenType) {
|
|
92
|
+
case AuthenticationScheme.POP:
|
|
93
|
+
// Make sure keyId is present and add it to credential
|
|
94
|
+
const tokenClaims = extractTokenClaims(accessToken, base64Decode);
|
|
95
|
+
if (!tokenClaims?.cnf?.kid) {
|
|
96
|
+
throw createClientAuthError(tokenClaimsCnfRequiredForSignedJwt);
|
|
97
|
+
}
|
|
98
|
+
atEntity.keyId = tokenClaims.cnf.kid;
|
|
99
|
+
break;
|
|
100
|
+
case AuthenticationScheme.SSH:
|
|
101
|
+
atEntity.keyId = keyId;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
return atEntity;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Create RefreshTokenEntity
|
|
108
|
+
* @param homeAccountId
|
|
109
|
+
* @param authenticationResult
|
|
110
|
+
* @param clientId
|
|
111
|
+
* @param authority
|
|
112
|
+
*/
|
|
113
|
+
function createRefreshTokenEntity(homeAccountId, environment, refreshToken, clientId, familyId, userAssertionHash) {
|
|
114
|
+
const rtEntity = {
|
|
115
|
+
credentialType: CredentialType.REFRESH_TOKEN,
|
|
116
|
+
homeAccountId: homeAccountId,
|
|
117
|
+
environment: environment,
|
|
118
|
+
clientId: clientId,
|
|
119
|
+
secret: refreshToken,
|
|
120
|
+
};
|
|
121
|
+
if (userAssertionHash) {
|
|
122
|
+
rtEntity.userAssertionHash = userAssertionHash;
|
|
123
|
+
}
|
|
124
|
+
if (familyId) {
|
|
125
|
+
rtEntity.familyId = familyId;
|
|
126
|
+
}
|
|
127
|
+
return rtEntity;
|
|
128
|
+
}
|
|
129
|
+
function isCredentialEntity(entity) {
|
|
130
|
+
return (entity.hasOwnProperty("homeAccountId") &&
|
|
131
|
+
entity.hasOwnProperty("environment") &&
|
|
132
|
+
entity.hasOwnProperty("credentialType") &&
|
|
133
|
+
entity.hasOwnProperty("clientId") &&
|
|
134
|
+
entity.hasOwnProperty("secret"));
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Validates an entity: checks for all expected params
|
|
138
|
+
* @param entity
|
|
139
|
+
*/
|
|
140
|
+
function isAccessTokenEntity(entity) {
|
|
141
|
+
if (!entity) {
|
|
142
|
+
return false;
|
|
143
|
+
}
|
|
144
|
+
return (isCredentialEntity(entity) &&
|
|
145
|
+
entity.hasOwnProperty("realm") &&
|
|
146
|
+
entity.hasOwnProperty("target") &&
|
|
147
|
+
(entity["credentialType"] === CredentialType.ACCESS_TOKEN ||
|
|
148
|
+
entity["credentialType"] ===
|
|
149
|
+
CredentialType.ACCESS_TOKEN_WITH_AUTH_SCHEME));
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Validates an entity: checks for all expected params
|
|
153
|
+
* @param entity
|
|
154
|
+
*/
|
|
155
|
+
function isIdTokenEntity(entity) {
|
|
156
|
+
if (!entity) {
|
|
157
|
+
return false;
|
|
158
|
+
}
|
|
159
|
+
return (isCredentialEntity(entity) &&
|
|
160
|
+
entity.hasOwnProperty("realm") &&
|
|
161
|
+
entity["credentialType"] === CredentialType.ID_TOKEN);
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Validates an entity: checks for all expected params
|
|
165
|
+
* @param entity
|
|
166
|
+
*/
|
|
167
|
+
function isRefreshTokenEntity(entity) {
|
|
168
|
+
if (!entity) {
|
|
169
|
+
return false;
|
|
170
|
+
}
|
|
171
|
+
return (isCredentialEntity(entity) &&
|
|
172
|
+
entity["credentialType"] === CredentialType.REFRESH_TOKEN);
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Generate Account Id key component as per the schema: <home_account_id>-<environment>
|
|
176
|
+
*/
|
|
177
|
+
function generateAccountId(credentialEntity) {
|
|
178
|
+
const accountId = [
|
|
179
|
+
credentialEntity.homeAccountId,
|
|
180
|
+
credentialEntity.environment,
|
|
181
|
+
];
|
|
182
|
+
return accountId.join(Separators.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Generate Credential Id key component as per the schema: <credential_type>-<client_id>-<realm>
|
|
186
|
+
*/
|
|
187
|
+
function generateCredentialId(credentialEntity) {
|
|
188
|
+
const clientOrFamilyId = credentialEntity.credentialType === CredentialType.REFRESH_TOKEN
|
|
189
|
+
? credentialEntity.familyId || credentialEntity.clientId
|
|
190
|
+
: credentialEntity.clientId;
|
|
191
|
+
const credentialId = [
|
|
192
|
+
credentialEntity.credentialType,
|
|
193
|
+
clientOrFamilyId,
|
|
194
|
+
credentialEntity.realm || "",
|
|
195
|
+
];
|
|
196
|
+
return credentialId.join(Separators.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Generate target key component as per schema: <target>
|
|
200
|
+
*/
|
|
201
|
+
function generateTarget(credentialEntity) {
|
|
202
|
+
return (credentialEntity.target || "").toLowerCase();
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Generate requested claims key component as per schema: <requestedClaims>
|
|
206
|
+
*/
|
|
207
|
+
function generateClaimsHash(credentialEntity) {
|
|
208
|
+
return (credentialEntity.requestedClaimsHash || "").toLowerCase();
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Generate scheme key componenet as per schema: <scheme>
|
|
212
|
+
*/
|
|
213
|
+
function generateScheme(credentialEntity) {
|
|
214
|
+
/*
|
|
215
|
+
* PoP Tokens and SSH certs include scheme in cache key
|
|
216
|
+
* Cast to lowercase to handle "bearer" from ADFS
|
|
217
|
+
*/
|
|
218
|
+
return credentialEntity.tokenType &&
|
|
219
|
+
credentialEntity.tokenType.toLowerCase() !==
|
|
220
|
+
AuthenticationScheme.BEARER.toLowerCase()
|
|
221
|
+
? credentialEntity.tokenType.toLowerCase()
|
|
222
|
+
: "";
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* validates if a given cache entry is "Telemetry", parses <key,value>
|
|
226
|
+
* @param key
|
|
227
|
+
* @param entity
|
|
228
|
+
*/
|
|
229
|
+
function isServerTelemetryEntity(key, entity) {
|
|
230
|
+
const validateKey = key.indexOf(SERVER_TELEM_CONSTANTS.CACHE_KEY) === 0;
|
|
231
|
+
let validateEntity = true;
|
|
232
|
+
if (entity) {
|
|
233
|
+
validateEntity =
|
|
234
|
+
entity.hasOwnProperty("failedRequests") &&
|
|
235
|
+
entity.hasOwnProperty("errors") &&
|
|
236
|
+
entity.hasOwnProperty("cacheHits");
|
|
237
|
+
}
|
|
238
|
+
return validateKey && validateEntity;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export { createAccessTokenEntity, createIdTokenEntity, createRefreshTokenEntity, generateCredentialKey, isAccessTokenEntity, isCredentialEntity, isIdTokenEntity, isRefreshTokenEntity, isServerTelemetryEntity };
|
|
242
|
+
//# sourceMappingURL=CacheHelpers.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CacheHelpers.mjs","sources":["../../../src/cache/utils/CacheHelpers.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;AAWA;AAOA;AACA;AACA;;;;;AAUG;AACH;AAcA;;;;;;AAMG,QAAA,cAAA,CAAA,gBAAA,CAAA;AACH,QAAgB,kBAAA,CAAA,gBAAmB,CAC/B;AAkBJ,QAAA,cAAA,CAAA,gBAAA,CAAA;;;;;;;;;;AAUG;AACH,SAAA,mBAAuC,CAAA,aACtB,EAAA,WAAA,SACb,EAAA,QAAA,EAAa,UACF;AAwEf,IAAA,MAAA,aAAA,GAAA;;;;;;AAMG,QAAA,KAAA,EAAA,QAAA;AACH,KAAA,CAAA;AA2BA,IAAA,OAAA,aAAgB;AAUhB,CAAA;;;AAGG;AACH;AAeA;;;AAGG;AACH;AAYA;;;AAGG,IAAA,MAAA,QAAA,GAAA;AACH,QAAA,aAAA,EAAA;AAoEA,QAAA,cAAA,EAAA,cAAA,CAAA,YAAA;;;;AAIG,QAAA,iBAAA,EAAA,YAAA,CAAA,QAAA,EAAA;AACH,QAAA,WAAA,EAAA,WAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -3,6 +3,7 @@ import { CommonAuthorizationUrlRequest } from "../request/CommonAuthorizationUrl
|
|
|
3
3
|
import { CommonAuthorizationCodeRequest } from "../request/CommonAuthorizationCodeRequest";
|
|
4
4
|
import { ClientConfiguration } from "../config/ClientConfiguration";
|
|
5
5
|
import { AuthenticationResult } from "../response/AuthenticationResult";
|
|
6
|
+
import { ServerAuthorizationCodeResponse } from "../response/ServerAuthorizationCodeResponse";
|
|
6
7
|
import { CommonEndSessionRequest } from "../request/CommonEndSessionRequest";
|
|
7
8
|
import { AuthorizationCodePayload } from "../response/AuthorizationCodePayload";
|
|
8
9
|
import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient";
|
|
@@ -36,7 +37,7 @@ export declare class AuthorizationCodeClient extends BaseClient {
|
|
|
36
37
|
* the client to exchange for a token in acquireToken.
|
|
37
38
|
* @param hashFragment
|
|
38
39
|
*/
|
|
39
|
-
handleFragmentResponse(
|
|
40
|
+
handleFragmentResponse(serverParams: ServerAuthorizationCodeResponse, cachedState: string): AuthorizationCodePayload;
|
|
40
41
|
/**
|
|
41
42
|
* Used to log out the current user, and redirect the user to the postLogoutRedirectUri.
|
|
42
43
|
* Default behaviour is to redirect the user to `window.location.href`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthorizationCodeClient.d.ts","sourceRoot":"","sources":["../../src/client/AuthorizationCodeClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,6BAA6B,EAAE,MAAM,0CAA0C,CAAC;AACzF,OAAO,EAAE,8BAA8B,EAAE,MAAM,2CAA2C,CAAC;AAW3F,OAAO,EACH,mBAAmB,EAEtB,MAAM,+BAA+B,CAAC;AAIvC,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"AuthorizationCodeClient.d.ts","sourceRoot":"","sources":["../../src/client/AuthorizationCodeClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,6BAA6B,EAAE,MAAM,0CAA0C,CAAC;AACzF,OAAO,EAAE,8BAA8B,EAAE,MAAM,2CAA2C,CAAC;AAW3F,OAAO,EACH,mBAAmB,EAEtB,MAAM,+BAA+B,CAAC;AAIvC,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAOxE,OAAO,EAAE,+BAA+B,EAAE,MAAM,6CAA6C,CAAC;AAC9F,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAG7E,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAahF,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AAIjF;;;GAGG;AACH,qBAAa,uBAAwB,SAAQ,UAAU;IAEnD,SAAS,CAAC,kBAAkB,EAAE,OAAO,CAAQ;IAC7C,OAAO,CAAC,iBAAiB,CAAC;gBAGtB,aAAa,EAAE,mBAAmB,EAClC,iBAAiB,CAAC,EAAE,kBAAkB;IAO1C;;;;;;;;;OASG;IACG,cAAc,CAChB,OAAO,EAAE,6BAA6B,GACvC,OAAO,CAAC,MAAM,CAAC;IAoBlB;;;;OAIG;IACG,YAAY,CACd,OAAO,EAAE,8BAA8B,EACvC,eAAe,CAAC,EAAE,wBAAwB,GAC3C,OAAO,CAAC,oBAAoB,CAAC;IAwDhC;;;;OAIG;IACH,sBAAsB,CAClB,YAAY,EAAE,+BAA+B,EAC7C,WAAW,EAAE,MAAM,GACpB,wBAAwB;IA2B3B;;;;OAIG;IACH,YAAY,CAAC,aAAa,EAAE,uBAAuB,GAAG,MAAM;IAgB5D;;;;OAIG;YACW,mBAAmB;IA0EjC;;;OAGG;YACW,sBAAsB;IAgLpC;;;OAGG;YACW,4BAA4B;IAoM1C;;;OAGG;IACH,OAAO,CAAC,0BAA0B;IAoClC;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,gBAAgB;CAG3B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-common v14.
|
|
1
|
+
/*! @azure/msal-common v14.4.0 2023-11-07 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { BaseClient } from './BaseClient.mjs';
|
|
4
4
|
import { RequestParameterBuilder } from '../request/RequestParameterBuilder.mjs';
|
|
@@ -74,22 +74,16 @@ class AuthorizationCodeClient extends BaseClient {
|
|
|
74
74
|
* the client to exchange for a token in acquireToken.
|
|
75
75
|
* @param hashFragment
|
|
76
76
|
*/
|
|
77
|
-
handleFragmentResponse(
|
|
77
|
+
handleFragmentResponse(serverParams, cachedState) {
|
|
78
78
|
// Handle responses.
|
|
79
79
|
const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, null, null);
|
|
80
|
-
const serverParams = UrlString.getDeserializedCodeResponse(this.config.authOptions.authority.options.OIDCOptions
|
|
81
|
-
?.serverResponseType, hashFragment);
|
|
82
80
|
// Get code response
|
|
83
|
-
responseHandler.validateServerAuthorizationCodeResponse(serverParams, cachedState
|
|
81
|
+
responseHandler.validateServerAuthorizationCodeResponse(serverParams, cachedState);
|
|
84
82
|
// throw when there is no auth code in the response
|
|
85
83
|
if (!serverParams.code) {
|
|
86
84
|
throw createClientAuthError(authorizationCodeMissingFromServerResponse);
|
|
87
85
|
}
|
|
88
|
-
return
|
|
89
|
-
...serverParams,
|
|
90
|
-
// Code param is optional in ServerAuthorizationCodeResponse but required in AuthorizationCodePaylod
|
|
91
|
-
code: serverParams.code,
|
|
92
|
-
};
|
|
86
|
+
return serverParams;
|
|
93
87
|
}
|
|
94
88
|
/**
|
|
95
89
|
* Used to log out the current user, and redirect the user to the postLogoutRedirectUri.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthorizationCodeClient.mjs","sources":["../../src/client/AuthorizationCodeClient.ts"],"sourcesContent":[null],"names":["ClientAuthErrorCodes.requestCannotBeMade"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAKA;AACA;AACA;AAWA
|
|
1
|
+
{"version":3,"file":"AuthorizationCodeClient.mjs","sources":["../../src/client/AuthorizationCodeClient.ts"],"sourcesContent":[null],"names":["ClientAuthErrorCodes.requestCannotBeMade"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAKA;AACA;AACA;AAWA;;;;;;;AA8DO,QAAA,KAAA,CAAA,aAAA,EAAA,iBAAA,CAAA,CAAA;;AAuBH,QAAA,IAAA,CAAA,kBAAA,GAAA,IAAA,CAAA;;;;AAIG;AACG;AA2DN;;;;AAIG;;AA+BH;;;;AAIG,QAAA,MAAA,WAAA,GAAA,MAAA,WAAA,CAAA,IAAA,CAAA,4BAAA,CAAA,IAAA,CAAA,IAAA,CAAA,EAAA,iBAAA,CAAA,2BAAA,EAAA,IAAA,CAAA,MAAA,EAAA,IAAA,CAAA,iBAAA,EAAA,OAAA,CAAA,aAAA,CAAA,CAAA,OAAA,CAAA,CAAA;AACH,QAAA,OAAA,SAAa,CAAA,iBAAe,CAAA,IAAA,CAAA,UAA0B,qBAAM,EAAA,WAAA,CAAA,CAAA;AAgB5D,KAAA;;;;AAIG;;AA2EH,IAAA,MAAA,YAAA,CAAA,OAAA,EAAA,eAAA,EAAA;;;AAGG,YAAA,MAAA,qBAAA,CAAAA,mBAAA,CAAA,CAAA;;AAiLH,QAAA,MAAA,YAAA,GAAA,SAAA,CAAA,UAAA,EAAA,CAAA;;;AAGG,QAAA,MAAA,SAAA,GAAA,QAAA,CAAA,OAAA,GAAA,WAAA,CAAA,eAAA,CAAA,CAAA;cACuC,eAAA,GAAA,IAAA,eAAA,CAAA,IAAA,CAAA,MAAA,CAAA,WAAA,CAAA,QAAA,EAAA,IAAA,CAAA,YAAA,EAAA,IAAA,CAAA,WAAA,EAAA,IAAA,CAAA,MAAA,EAAA,IAAA,CAAA,MAAA,CAAA,iBAAA,EAAA,IAAA,CAAA,MAAA,CAAA,iBAAA,EAAA,IAAA,CAAA,iBAAA,CAAA,CAAA;AAoM1C;;;AAGG,KAAA;AACH;AAoCA;;;AAGG;AACH,IAAA,sBAAyB,CAAA,YAAA,EAAA,WAAA,EAAA;AAIzB;AAGH,QAAA,MAAA,eAAA,GAAA,IAAA,eAAA,CAAA,IAAA,CAAA,MAAA,CAAA,WAAA,CAAA,QAAA,EAAA,IAAA,CAAA,YAAA,EAAA,IAAA,CAAA,WAAA,EAAA,IAAA,CAAA,MAAA,EAAA,IAAA,EAAA,IAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -42,7 +42,7 @@ export declare abstract class BaseClient {
|
|
|
42
42
|
* Updates the authority object of the client. Endpoint discovery must be completed.
|
|
43
43
|
* @param updatedAuthority
|
|
44
44
|
*/
|
|
45
|
-
updateAuthority(
|
|
45
|
+
updateAuthority(cloudInstanceHostname: string, correlationId: string): Promise<void>;
|
|
46
46
|
/**
|
|
47
47
|
* Creates query string for the /token request
|
|
48
48
|
* @param request
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseClient.d.ts","sourceRoot":"","sources":["../../src/client/BaseClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,mBAAmB,EAEnB,yBAAyB,EAC5B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,OAAO,EAAE,gCAAgC,EAAE,MAAM,8CAA8C,CAAC;AAChG,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"BaseClient.d.ts","sourceRoot":"","sources":["../../src/client/BaseClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,mBAAmB,EAEnB,yBAAyB,EAC5B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,OAAO,EAAE,gCAAgC,EAAE,MAAM,8CAA8C,CAAC;AAChG,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEjE,OAAO,EAAE,aAAa,EAAqB,MAAM,0BAA0B,CAAC;AAE5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AAEjF,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAI7D;;;GAGG;AACH,8BAAsB,UAAU;IAErB,MAAM,EAAE,MAAM,CAAC;IAGtB,SAAS,CAAC,MAAM,EAAE,yBAAyB,CAAC;IAG5C,SAAS,CAAC,WAAW,EAAE,OAAO,CAAC;IAG/B,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IAGrC,SAAS,CAAC,aAAa,EAAE,cAAc,CAAC;IAGxC,SAAS,CAAC,sBAAsB,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAGhE,SAAS,CAAC,cAAc,EAAE,cAAc,CAAC;IAGlC,SAAS,EAAE,SAAS,CAAC;IAG5B,SAAS,CAAC,iBAAiB,CAAC,EAAE,kBAAkB,CAAC;IAEjD,SAAS,aACL,aAAa,EAAE,mBAAmB,EAClC,iBAAiB,CAAC,EAAE,kBAAkB;IAiC1C;;OAEG;IACH,SAAS,CAAC,yBAAyB,CAC/B,OAAO,CAAC,EAAE,aAAa,GACxB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IA8BzB;;;;;;OAMG;cACa,0BAA0B,CACtC,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,UAAU,EAAE,iBAAiB,EAC7B,aAAa,EAAE,MAAM,EACrB,WAAW,CAAC,EAAE,MAAM,GACrB,OAAO,CAAC,eAAe,CAAC,gCAAgC,CAAC,CAAC;IAmC7D;;;OAGG;IACG,eAAe,CACjB,qBAAqB,EAAE,MAAM,EAC7B,aAAa,EAAE,MAAM,GACtB,OAAO,CAAC,IAAI,CAAC;IAmBhB;;;OAGG;IACH,0BAA0B,CAAC,OAAO,EAAE,eAAe,GAAG,MAAM;CAW/D"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
/*! @azure/msal-common v14.
|
|
1
|
+
/*! @azure/msal-common v14.4.0 2023-11-07 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { buildClientConfiguration } from '../config/ClientConfiguration.mjs';
|
|
4
4
|
import { NetworkManager } from '../network/NetworkManager.mjs';
|
|
5
5
|
import { Logger } from '../logger/Logger.mjs';
|
|
6
6
|
import { HeaderNames, Constants } from '../utils/Constants.mjs';
|
|
7
7
|
import { name, version } from '../packageMetadata.mjs';
|
|
8
|
-
import { createClientAuthError } from '../error/ClientAuthError.mjs';
|
|
9
8
|
import { CcsCredentialType } from '../account/CcsCredential.mjs';
|
|
10
9
|
import { buildClientInfoFromHomeAccountId } from '../account/ClientInfo.mjs';
|
|
11
10
|
import { RequestParameterBuilder } from '../request/RequestParameterBuilder.mjs';
|
|
12
|
-
import {
|
|
11
|
+
import { AuthorityFactory } from '../authority/AuthorityFactory.mjs';
|
|
12
|
+
import { PerformanceEvents } from '../telemetry/performance/PerformanceEvent.mjs';
|
|
13
13
|
|
|
14
14
|
/*
|
|
15
15
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -93,11 +93,11 @@ class BaseClient {
|
|
|
93
93
|
* Updates the authority object of the client. Endpoint discovery must be completed.
|
|
94
94
|
* @param updatedAuthority
|
|
95
95
|
*/
|
|
96
|
-
updateAuthority(
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
this.authority =
|
|
96
|
+
async updateAuthority(cloudInstanceHostname, correlationId) {
|
|
97
|
+
this.performanceClient?.addQueueMeasurement(PerformanceEvents.UpdateTokenEndpointAuthority, correlationId);
|
|
98
|
+
const cloudInstanceAuthorityUri = `https://${cloudInstanceHostname}/${this.authority.tenant}/`;
|
|
99
|
+
const cloudInstanceAuthority = await AuthorityFactory.createDiscoveredInstance(cloudInstanceAuthorityUri, this.networkClient, this.cacheManager, this.authority.options, this.logger, this.performanceClient, correlationId);
|
|
100
|
+
this.authority = cloudInstanceAuthority;
|
|
101
101
|
}
|
|
102
102
|
/**
|
|
103
103
|
* Creates query string for the /token request
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseClient.mjs","sources":["../../src/client/BaseClient.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;AAKA;AAKA;AACA;AACA
|
|
1
|
+
{"version":3,"file":"BaseClient.mjs","sources":["../../src/client/BaseClient.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;AAKA;AAKA;AACA;AACA;;;AAoBG;AACH;AAEiB,gBAAS,CAAA;AAGtB,IAAA,WAAU,CAAA,aAAQ,EAAA,iBAA0B,EAAA;AAG5C;AAGA,QAAA,IAAA,CAAS,MAAC,GAAA,wBAA2B,CAAA,aAAA,CAAA,CAAA;AAGrC;AAGA,QAAA,IAAA,CAAS,MAAuB,GAAA,IAAA,MAAA,CAAA,IAAA,CAAE,MAAsB,CAAA,aAAA,EAAA,aAAQ,CAAA,CAAA;AAGhE;QAGgB,IAAA,CAAA,WAAW,GAAC,IAAA,CAAA,MAAA,CAAA,eAAA,CAAA;AAG5B;QAES,IAAA,CAAA,YAAA,cACQ,CAAE,gBAAA,CAAA;AAkCnB;;AAEG;AACH,QAAA,IAAA,CAAS,cAAC,GAAA,IAAA,cACE,CAAA,IAAe,CAAA,aAClB,EAAA,IAAC,CAAM,aAAQ,CAAC;AA8BzB;;;;;;AAMG,KAAA;AACa;AA0ChB;;;AAGG,QAAA,MAAA,OAAA,GAAA,EAAA,CAAA;AACG,QAAA,OAAA,CAAA,WACF,CAAA,YAAA,CAAqB,GAAE,SACvB,CAAA,qBACD,CAAA;AAmBH,QAAA,IAAA,CAAA,IAAA,CAAA,MAAA,CAAA,aAAA,CAAA,oBAAA,IAAA,OAAA,EAAA;;;AAGG,oBAAA,IAAA;AACH,wBAAA,MAA0B,UAAU,GAAA,gCAAwB,CAAA,OAAA,CAAA,UAAA,CAAA,CAAA;AAW/D,wBAAA,OAAA,CAAA,WAAA,CAAA,UAAA,CAAA,GAAA,CAAA,IAAA,EAAA,UAAA,CAAA,GAAA,CAAA,CAAA,EAAA,UAAA,CAAA,IAAA,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -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;IAmDhD;;;;OAIG;YACW,mBAAmB;IAuDjC;;;OAGG;YACW,sBAAsB;CAgIvC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-common v14.
|
|
1
|
+
/*! @azure/msal-common v14.4.0 2023-11-07 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { isOidcProtocolMode } from '../config/ClientConfiguration.mjs';
|
|
4
4
|
import { BaseClient } from './BaseClient.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 = invoke(this.cacheManager.getRefreshToken.bind(this.cacheManager), PerformanceEvents.CacheManagerGetRefreshToken, this.logger, this.performanceClient, request.correlationId)(request.account, foci);
|
|
94
|
+
const refreshToken = invoke(this.cacheManager.getRefreshToken.bind(this.cacheManager), PerformanceEvents.CacheManagerGetRefreshToken, this.logger, this.performanceClient, request.correlationId)(request.account, foci, undefined, this.performanceClient, request.correlationId);
|
|
95
95
|
if (!refreshToken) {
|
|
96
96
|
throw createInteractionRequiredAuthError(noTokensFound);
|
|
97
97
|
}
|
|
@@ -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;;AAoDH;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -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;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;
|
|
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;IA4FhD,OAAO,CAAC,eAAe;IAkBvB;;;OAGG;YACW,6BAA6B;CAqC9C"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-common v14.
|
|
1
|
+
/*! @azure/msal-common v14.4.0 2023-11-07 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { BaseClient } from './BaseClient.mjs';
|
|
4
4
|
import { TimeUtils } from '../utils/TimeUtils.mjs';
|
|
@@ -73,7 +73,7 @@ class SilentFlowClient extends BaseClient {
|
|
|
73
73
|
throw createClientAuthError(noAccountInSilentRequest);
|
|
74
74
|
}
|
|
75
75
|
const environment = request.authority || this.authority.getPreferredCache();
|
|
76
|
-
const cacheRecord = this.cacheManager.readCacheRecord(request.account, request, environment);
|
|
76
|
+
const cacheRecord = this.cacheManager.readCacheRecord(request.account, request, environment, this.performanceClient, request.correlationId);
|
|
77
77
|
if (!cacheRecord.accessToken) {
|
|
78
78
|
// must refresh due to non-existent access_token
|
|
79
79
|
this.setCacheOutcome(CacheOutcome.NO_CACHED_ACCESS_TOKEN, request.correlationId);
|
|
@@ -105,7 +105,9 @@ class SilentFlowClient extends BaseClient {
|
|
|
105
105
|
this.performanceClient?.addFields({
|
|
106
106
|
cacheOutcome: cacheOutcome,
|
|
107
107
|
}, correlationId);
|
|
108
|
-
|
|
108
|
+
if (cacheOutcome !== CacheOutcome.NOT_APPLICABLE) {
|
|
109
|
+
this.logger.info(`Token refresh is required due to cache outcome: ${cacheOutcome}`);
|
|
110
|
+
}
|
|
109
111
|
}
|
|
110
112
|
/**
|
|
111
113
|
* Helper function to build response object from the CacheRecord
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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;AA8FN;AAkBA;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|