Socket
Socket
Sign inDemoInstall

@azure/msal-common

Package Overview
Dependencies
Maintainers
3
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@azure/msal-common - npm Package Compare versions

Comparing version 9.1.1 to 10.0.0

2

dist/_virtual/_tslib.js

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ /*! *****************************************************************************

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ import { ClientAuthError } from '../error/ClientAuthError.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ /*

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ import { ClientAuthError } from '../error/ClientAuthError.js';

@@ -12,2 +12,3 @@ import { AuthorityType } from "./AuthorityType";

import { Logger } from "../logger/Logger";
import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient";
/**

@@ -26,5 +27,6 @@ * The authority class validates the authority URIs used by the user, and retrieves the OpenID Configuration Data from the

regionDiscoveryMetadata: RegionDiscoveryMetadata;
private proxyUrl;
private logger;
constructor(authority: string, networkInterface: INetworkModule, cacheManager: ICacheManager, authorityOptions: AuthorityOptions, logger: Logger, proxyUrl?: string);
protected performanceClient: IPerformanceClient | undefined;
protected correlationId: string | undefined;
constructor(authority: string, networkInterface: INetworkModule, cacheManager: ICacheManager, authorityOptions: AuthorityOptions, logger: Logger, performanceClient?: IPerformanceClient, correlationId?: string);
get authorityType(): AuthorityType;

@@ -31,0 +33,0 @@ /**

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -18,2 +18,3 @@ import { __awaiter, __generator, __assign } from '../_virtual/_tslib.js';

import { AuthError } from '../error/AuthError.js';
import { PerformanceEvents } from '../telemetry/performance/PerformanceEvent.js';

@@ -29,3 +30,3 @@ /*

var Authority = /** @class */ (function () {
function Authority(authority, networkInterface, cacheManager, authorityOptions, logger, proxyUrl) {
function Authority(authority, networkInterface, cacheManager, authorityOptions, logger, performanceClient, correlationId) {
this.canonicalAuthority = authority;

@@ -36,6 +37,7 @@ this._canonicalAuthority.validateAsUri();

this.authorityOptions = authorityOptions;
this.regionDiscovery = new RegionDiscovery(networkInterface);
this.regionDiscoveryMetadata = { region_used: undefined, region_source: undefined, region_outcome: undefined };
this.proxyUrl = proxyUrl || Constants.EMPTY_STRING;
this.logger = logger;
this.performanceClient = performanceClient;
this.correlationId = correlationId;
this.regionDiscovery = new RegionDiscovery(networkInterface, this.performanceClient, this.correlationId);
}

@@ -277,7 +279,9 @@ Object.defineProperty(Authority.prototype, "authorityType", {

Authority.prototype.resolveEndpointsAsync = function () {
var _a, _b, _c;
return __awaiter(this, void 0, void 0, function () {
var metadataEntity, cloudDiscoverySource, endpointSource, cacheKey;
return __generator(this, function (_a) {
switch (_a.label) {
return __generator(this, function (_d) {
switch (_d.label) {
case 0:
(_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.AuthorityResolveEndpointsAsync, this.correlationId);
metadataEntity = this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort);

@@ -288,9 +292,11 @@ if (!metadataEntity) {

}
(_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.setPreQueueTime(PerformanceEvents.AuthorityUpdateCloudDiscoveryMetadata, this.correlationId);
return [4 /*yield*/, this.updateCloudDiscoveryMetadata(metadataEntity)];
case 1:
cloudDiscoverySource = _a.sent();
cloudDiscoverySource = _d.sent();
this.canonicalAuthority = this.canonicalAuthority.replace(this.hostnameAndPort, metadataEntity.preferred_network);
(_c = this.performanceClient) === null || _c === void 0 ? void 0 : _c.setPreQueueTime(PerformanceEvents.AuthorityUpdateEndpointMetadata, this.correlationId);
return [4 /*yield*/, this.updateEndpointMetadata(metadataEntity)];
case 2:
endpointSource = _a.sent();
endpointSource = _d.sent();
if (cloudDiscoverySource !== AuthorityMetadataSource.CACHE && endpointSource !== AuthorityMetadataSource.CACHE) {

@@ -314,8 +320,9 @@ // Reset the expiration time unless both values came from a successful cache lookup

Authority.prototype.updateEndpointMetadata = function (metadataEntity) {
var _a, _b;
var _a, _b, _c, _d, _e, _f;
return __awaiter(this, void 0, void 0, function () {
var metadata, harcodedMetadata;
return __generator(this, function (_c) {
switch (_c.label) {
return __generator(this, function (_g) {
switch (_g.label) {
case 0:
(_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.AuthorityUpdateEndpointMetadata, this.correlationId);
metadata = this.getEndpointMetadataFromConfig();

@@ -331,11 +338,13 @@ if (metadata) {

harcodedMetadata = this.getEndpointMetadataFromHardcodedValues();
(_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.setPreQueueTime(PerformanceEvents.AuthorityGetEndpointMetadataFromNetwork, this.correlationId);
return [4 /*yield*/, this.getEndpointMetadataFromNetwork()];
case 1:
metadata = _c.sent();
metadata = _g.sent();
if (!metadata) return [3 /*break*/, 4];
if (!((_a = this.authorityOptions.azureRegionConfiguration) === null || _a === void 0 ? void 0 : _a.azureRegion)) return [3 /*break*/, 3];
if (!((_c = this.authorityOptions.azureRegionConfiguration) === null || _c === void 0 ? void 0 : _c.azureRegion)) return [3 /*break*/, 3];
(_d = this.performanceClient) === null || _d === void 0 ? void 0 : _d.setPreQueueTime(PerformanceEvents.AuthorityUpdateMetadataWithRegionalInformation, this.correlationId);
return [4 /*yield*/, this.updateMetadataWithRegionalInformation(metadata)];
case 2:
metadata = _c.sent();
_c.label = 3;
metadata = _g.sent();
_g.label = 3;
case 3:

@@ -346,7 +355,8 @@ metadataEntity.updateEndpointMetadata(metadata, true);

if (!(harcodedMetadata && !this.authorityOptions.skipAuthorityMetadataCache)) return [3 /*break*/, 7];
if (!((_b = this.authorityOptions.azureRegionConfiguration) === null || _b === void 0 ? void 0 : _b.azureRegion)) return [3 /*break*/, 6];
if (!((_e = this.authorityOptions.azureRegionConfiguration) === null || _e === void 0 ? void 0 : _e.azureRegion)) return [3 /*break*/, 6];
(_f = this.performanceClient) === null || _f === void 0 ? void 0 : _f.setPreQueueTime(PerformanceEvents.AuthorityUpdateMetadataWithRegionalInformation, this.correlationId);
return [4 /*yield*/, this.updateMetadataWithRegionalInformation(harcodedMetadata)];
case 5:
harcodedMetadata = _c.sent();
_c.label = 6;
harcodedMetadata = _g.sent();
_g.label = 6;
case 6:

@@ -391,21 +401,20 @@ metadataEntity.updateEndpointMetadata(harcodedMetadata, false);

Authority.prototype.getEndpointMetadataFromNetwork = function () {
var _a;
return __awaiter(this, void 0, void 0, function () {
var options, response;
return __generator(this, function (_a) {
switch (_a.label) {
return __generator(this, function (_b) {
switch (_b.label) {
case 0:
(_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.AuthorityGetEndpointMetadataFromNetwork, this.correlationId);
options = {};
if (this.proxyUrl) {
options.proxyUrl = this.proxyUrl;
}
_a.label = 1;
_b.label = 1;
case 1:
_a.trys.push([1, 3, , 4]);
_b.trys.push([1, 3, , 4]);
return [4 /*yield*/, this.networkInterface.
sendGetRequestAsync(this.defaultOpenIdConfigurationEndpoint, options)];
case 2:
response = _a.sent();
response = _b.sent();
return [2 /*return*/, isOpenIdConfigResponse(response.body) ? response.body : null];
case 3:
_a.sent();
_b.sent();
return [2 /*return*/, null];

@@ -430,14 +439,17 @@ case 4: return [2 /*return*/];

Authority.prototype.updateMetadataWithRegionalInformation = function (metadata) {
var _a, _b, _c, _d, _e;
var _a, _b, _c, _d, _e, _f, _g;
return __awaiter(this, void 0, void 0, function () {
var autodetectedRegionName, azureRegion;
return __generator(this, function (_f) {
switch (_f.label) {
case 0: return [4 /*yield*/, this.regionDiscovery.detectRegion((_a = this.authorityOptions.azureRegionConfiguration) === null || _a === void 0 ? void 0 : _a.environmentRegion, this.regionDiscoveryMetadata, this.proxyUrl)];
return __generator(this, function (_h) {
switch (_h.label) {
case 0:
(_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.AuthorityUpdateMetadataWithRegionalInformation, this.correlationId);
(_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.setPreQueueTime(PerformanceEvents.RegionDiscoveryDetectRegion, this.correlationId);
return [4 /*yield*/, this.regionDiscovery.detectRegion((_c = this.authorityOptions.azureRegionConfiguration) === null || _c === void 0 ? void 0 : _c.environmentRegion, this.regionDiscoveryMetadata)];
case 1:
autodetectedRegionName = _f.sent();
azureRegion = ((_b = this.authorityOptions.azureRegionConfiguration) === null || _b === void 0 ? void 0 : _b.azureRegion) === Constants.AZURE_REGION_AUTO_DISCOVER_FLAG
autodetectedRegionName = _h.sent();
azureRegion = ((_d = this.authorityOptions.azureRegionConfiguration) === null || _d === void 0 ? void 0 : _d.azureRegion) === Constants.AZURE_REGION_AUTO_DISCOVER_FLAG
? autodetectedRegionName
: (_c = this.authorityOptions.azureRegionConfiguration) === null || _c === void 0 ? void 0 : _c.azureRegion;
if (((_d = this.authorityOptions.azureRegionConfiguration) === null || _d === void 0 ? void 0 : _d.azureRegion) === Constants.AZURE_REGION_AUTO_DISCOVER_FLAG) {
: (_e = this.authorityOptions.azureRegionConfiguration) === null || _e === void 0 ? void 0 : _e.azureRegion;
if (((_f = this.authorityOptions.azureRegionConfiguration) === null || _f === void 0 ? void 0 : _f.azureRegion) === Constants.AZURE_REGION_AUTO_DISCOVER_FLAG) {
this.regionDiscoveryMetadata.region_outcome = autodetectedRegionName ?

@@ -449,3 +461,3 @@ RegionDiscoveryOutcomes.AUTO_DETECTION_REQUESTED_SUCCESSFUL :

if (autodetectedRegionName) {
this.regionDiscoveryMetadata.region_outcome = (((_e = this.authorityOptions.azureRegionConfiguration) === null || _e === void 0 ? void 0 : _e.azureRegion) === autodetectedRegionName) ?
this.regionDiscoveryMetadata.region_outcome = (((_g = this.authorityOptions.azureRegionConfiguration) === null || _g === void 0 ? void 0 : _g.azureRegion) === autodetectedRegionName) ?
RegionDiscoveryOutcomes.CONFIGURED_MATCHES_DETECTED :

@@ -474,7 +486,9 @@ RegionDiscoveryOutcomes.CONFIGURED_NOT_DETECTED;

Authority.prototype.updateCloudDiscoveryMetadata = function (metadataEntity) {
var _a, _b;
return __awaiter(this, void 0, void 0, function () {
var metadata, metadataEntityExpired, harcodedMetadata;
return __generator(this, function (_a) {
switch (_a.label) {
return __generator(this, function (_c) {
switch (_c.label) {
case 0:
(_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.AuthorityUpdateCloudDiscoveryMetadata, this.correlationId);
this.logger.verbose("Attempting to get cloud discovery metadata in the config");

@@ -502,5 +516,6 @@ this.logger.verbosePii("Known Authorities: " + (this.authorityOptions.knownAuthorities || Constants.NOT_APPLICABLE));

this.logger.verbose("Did not find cloud discovery metadata in the cache... Attempting to get cloud discovery metadata from the network.");
(_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.setPreQueueTime(PerformanceEvents.AuthorityGetCloudDiscoveryMetadataFromNetwork, this.correlationId);
return [4 /*yield*/, this.getCloudDiscoveryMetadataFromNetwork()];
case 1:
metadata = _a.sent();
metadata = _c.sent();
if (metadata) {

@@ -563,19 +578,18 @@ this.logger.verbose("cloud discovery metadata was successfully returned from getCloudDiscoveryMetadataFromNetwork()");

Authority.prototype.getCloudDiscoveryMetadataFromNetwork = function () {
var _a;
return __awaiter(this, void 0, void 0, function () {
var instanceDiscoveryEndpoint, options, match, response, typedResponseBody, metadata, error_1, typedError;
return __generator(this, function (_a) {
switch (_a.label) {
return __generator(this, function (_b) {
switch (_b.label) {
case 0:
(_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.AuthorityGetCloudDiscoveryMetadataFromNetwork, this.correlationId);
instanceDiscoveryEndpoint = "" + Constants.AAD_INSTANCE_DISCOVERY_ENDPT + this.canonicalAuthority + "oauth2/v2.0/authorize";
options = {};
if (this.proxyUrl) {
options.proxyUrl = this.proxyUrl;
}
match = null;
_a.label = 1;
_b.label = 1;
case 1:
_a.trys.push([1, 3, , 4]);
_b.trys.push([1, 3, , 4]);
return [4 /*yield*/, this.networkInterface.sendGetRequestAsync(instanceDiscoveryEndpoint, options)];
case 2:
response = _a.sent();
response = _b.sent();
typedResponseBody = void 0;

@@ -608,3 +622,3 @@ metadata = void 0;

case 3:
error_1 = _a.sent();
error_1 = _b.sent();
if (error_1 instanceof AuthError) {

@@ -611,0 +625,0 @@ this.logger.error("There was a network error while attempting to get the cloud discovery instance metadata.\nError: " + error_1.errorCode + "\nError Description: " + error_1.errorMessage);

@@ -6,2 +6,3 @@ import { Authority } from "./Authority";

import { Logger } from "../logger/Logger";
import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient";
export declare class AuthorityFactory {

@@ -18,3 +19,3 @@ /**

*/
static createDiscoveredInstance(authorityUri: string, networkClient: INetworkModule, cacheManager: ICacheManager, authorityOptions: AuthorityOptions, logger: Logger, proxyUrl?: string): Promise<Authority>;
static createDiscoveredInstance(authorityUri: string, networkClient: INetworkModule, cacheManager: ICacheManager, authorityOptions: AuthorityOptions, logger: Logger, performanceClient?: IPerformanceClient, correlationId?: string): Promise<Authority>;
/**

@@ -30,4 +31,4 @@ * Create an authority object of the correct type based on the url

*/
static createInstance(authorityUrl: string, networkInterface: INetworkModule, cacheManager: ICacheManager, authorityOptions: AuthorityOptions, logger: Logger, proxyUrl?: string): Authority;
static createInstance(authorityUrl: string, networkInterface: INetworkModule, cacheManager: ICacheManager, authorityOptions: AuthorityOptions, logger: Logger, performanceClient?: IPerformanceClient, correlationId?: string): Authority;
}
//# sourceMappingURL=AuthorityFactory.d.ts.map

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -8,2 +8,3 @@ import { __awaiter, __generator } from '../_virtual/_tslib.js';

import { ClientAuthError } from '../error/ClientAuthError.js';
import { PerformanceEvents } from '../telemetry/performance/PerformanceEvent.js';

@@ -27,3 +28,3 @@ /*

*/
AuthorityFactory.createDiscoveredInstance = function (authorityUri, networkClient, cacheManager, authorityOptions, logger, proxyUrl) {
AuthorityFactory.createDiscoveredInstance = function (authorityUri, networkClient, cacheManager, authorityOptions, logger, performanceClient, correlationId) {
return __awaiter(this, void 0, void 0, function () {

@@ -34,6 +35,8 @@ var acquireTokenAuthority, e_1;

case 0:
acquireTokenAuthority = AuthorityFactory.createInstance(authorityUri, networkClient, cacheManager, authorityOptions, logger, proxyUrl);
performanceClient === null || performanceClient === void 0 ? void 0 : performanceClient.addQueueMeasurement(PerformanceEvents.AuthorityFactoryCreateDiscoveredInstance, correlationId);
acquireTokenAuthority = AuthorityFactory.createInstance(authorityUri, networkClient, cacheManager, authorityOptions, logger, performanceClient, correlationId);
_a.label = 1;
case 1:
_a.trys.push([1, 3, , 4]);
performanceClient === null || performanceClient === void 0 ? void 0 : performanceClient.setPreQueueTime(PerformanceEvents.AuthorityResolveEndpointsAsync, correlationId);
return [4 /*yield*/, acquireTokenAuthority.resolveEndpointsAsync()];

@@ -61,3 +64,3 @@ case 2:

*/
AuthorityFactory.createInstance = function (authorityUrl, networkInterface, cacheManager, authorityOptions, logger, proxyUrl) {
AuthorityFactory.createInstance = function (authorityUrl, networkInterface, cacheManager, authorityOptions, logger, performanceClient, correlationId) {
// Throw error if authority url is empty

@@ -67,3 +70,3 @@ if (StringUtils.isEmpty(authorityUrl)) {

}
return new Authority(authorityUrl, networkInterface, cacheManager, authorityOptions, logger, proxyUrl);
return new Authority(authorityUrl, networkInterface, cacheManager, authorityOptions, logger, performanceClient, correlationId);
};

@@ -70,0 +73,0 @@ return AuthorityFactory;

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ /*

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ /*

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ /*

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ /*

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ /*

@@ -5,4 +5,3 @@ export declare type ImdsOptions = {

};
proxyUrl?: string;
};
//# sourceMappingURL=ImdsOptions.d.ts.map

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ /*

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ /*

import { INetworkModule } from "../network/INetworkModule";
import { RegionDiscoveryMetadata } from "./RegionDiscoveryMetadata";
import { ImdsOptions } from "./ImdsOptions";
import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient";
export declare class RegionDiscovery {
protected networkInterface: INetworkModule;
protected performanceClient: IPerformanceClient | undefined;
protected correlationId: string | undefined;
protected static IMDS_OPTIONS: ImdsOptions;
constructor(networkInterface: INetworkModule);
constructor(networkInterface: INetworkModule, performanceClient?: IPerformanceClient, correlationId?: string);
/**

@@ -13,3 +16,3 @@ * Detect the region from the application's environment.

*/
detectRegion(environmentRegion: string | undefined, regionDiscoveryMetadata: RegionDiscoveryMetadata, proxyUrl: string): Promise<string | null>;
detectRegion(environmentRegion: string | undefined, regionDiscoveryMetadata: RegionDiscoveryMetadata): Promise<string | null>;
/**

@@ -16,0 +19,0 @@ * Make the call to the IMDS endpoint

@@ -1,5 +0,6 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';
import { __awaiter, __generator } from '../_virtual/_tslib.js';
import { RegionDiscoverySources, ResponseCodes, Constants } from '../utils/Constants.js';
import { PerformanceEvents } from '../telemetry/performance/PerformanceEvent.js';

@@ -11,4 +12,6 @@ /*

var RegionDiscovery = /** @class */ (function () {
function RegionDiscovery(networkInterface) {
function RegionDiscovery(networkInterface, performanceClient, correlationId) {
this.networkInterface = networkInterface;
this.performanceClient = performanceClient;
this.correlationId = correlationId;
}

@@ -20,20 +23,20 @@ /**

*/
RegionDiscovery.prototype.detectRegion = function (environmentRegion, regionDiscoveryMetadata, proxyUrl) {
RegionDiscovery.prototype.detectRegion = function (environmentRegion, regionDiscoveryMetadata) {
var _a, _b, _c, _d;
return __awaiter(this, void 0, void 0, function () {
var autodetectedRegionName, options, localIMDSVersionResponse, currentIMDSVersion, currentIMDSVersionResponse;
return __generator(this, function (_a) {
switch (_a.label) {
return __generator(this, function (_e) {
switch (_e.label) {
case 0:
(_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.RegionDiscoveryDetectRegion, this.correlationId);
autodetectedRegionName = environmentRegion;
if (!!autodetectedRegionName) return [3 /*break*/, 8];
options = RegionDiscovery.IMDS_OPTIONS;
if (proxyUrl) {
options.proxyUrl = proxyUrl;
}
_a.label = 1;
_e.label = 1;
case 1:
_a.trys.push([1, 6, , 7]);
_e.trys.push([1, 6, , 7]);
(_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.setPreQueueTime(PerformanceEvents.RegionDiscoveryGetRegionFromIMDS, this.correlationId);
return [4 /*yield*/, this.getRegionFromIMDS(Constants.IMDS_VERSION, options)];
case 2:
localIMDSVersionResponse = _a.sent();
localIMDSVersionResponse = _e.sent();
if (localIMDSVersionResponse.status === ResponseCodes.httpSuccess) {

@@ -44,5 +47,6 @@ autodetectedRegionName = localIMDSVersionResponse.body;

if (!(localIMDSVersionResponse.status === ResponseCodes.httpBadRequest)) return [3 /*break*/, 5];
(_c = this.performanceClient) === null || _c === void 0 ? void 0 : _c.setPreQueueTime(PerformanceEvents.RegionDiscoveryGetCurrentVersion, this.correlationId);
return [4 /*yield*/, this.getCurrentVersion(options)];
case 3:
currentIMDSVersion = _a.sent();
currentIMDSVersion = _e.sent();
if (!currentIMDSVersion) {

@@ -52,5 +56,6 @@ regionDiscoveryMetadata.region_source = RegionDiscoverySources.FAILED_AUTO_DETECTION;

}
(_d = this.performanceClient) === null || _d === void 0 ? void 0 : _d.setPreQueueTime(PerformanceEvents.RegionDiscoveryGetRegionFromIMDS, this.correlationId);
return [4 /*yield*/, this.getRegionFromIMDS(currentIMDSVersion, options)];
case 4:
currentIMDSVersionResponse = _a.sent();
currentIMDSVersionResponse = _e.sent();
if (currentIMDSVersionResponse.status === ResponseCodes.httpSuccess) {

@@ -60,6 +65,6 @@ autodetectedRegionName = currentIMDSVersionResponse.body;

}
_a.label = 5;
_e.label = 5;
case 5: return [3 /*break*/, 7];
case 6:
_a.sent();
_e.sent();
regionDiscoveryMetadata.region_source = RegionDiscoverySources.FAILED_AUTO_DETECTION;

@@ -70,3 +75,3 @@ return [2 /*return*/, null];

regionDiscoveryMetadata.region_source = RegionDiscoverySources.ENVIRONMENT_VARIABLE;
_a.label = 9;
_e.label = 9;
case 9:

@@ -89,4 +94,6 @@ // If no region was auto detected from the environment or from the IMDS endpoint, mark the attempt as a FAILED_AUTO_DETECTION

RegionDiscovery.prototype.getRegionFromIMDS = function (version, options) {
var _a;
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
return __generator(this, function (_b) {
(_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.RegionDiscoveryGetRegionFromIMDS, this.correlationId);
return [2 /*return*/, this.networkInterface.sendGetRequestAsync(Constants.IMDS_ENDPOINT + "?api-version=" + version + "&format=text", options, Constants.IMDS_TIMEOUT)];

@@ -102,11 +109,15 @@ });

RegionDiscovery.prototype.getCurrentVersion = function (options) {
var _a;
return __awaiter(this, void 0, void 0, function () {
var response;
return __generator(this, function (_a) {
switch (_a.label) {
return __generator(this, function (_b) {
switch (_b.label) {
case 0:
_a.trys.push([0, 2, , 3]);
(_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.RegionDiscoveryGetCurrentVersion, this.correlationId);
_b.label = 1;
case 1:
_b.trys.push([1, 3, , 4]);
return [4 /*yield*/, this.networkInterface.sendGetRequestAsync(Constants.IMDS_ENDPOINT + "?format=json", options)];
case 1:
response = _a.sent();
case 2:
response = _b.sent();
// When IMDS endpoint is called without the api version query param, bad request response comes back with latest version.

@@ -117,6 +128,6 @@ if (response.status === ResponseCodes.httpBadRequest && response.body && response.body["newest-versions"] && response.body["newest-versions"].length > 0) {

return [2 /*return*/, null];
case 2:
_a.sent();
case 3:
_b.sent();
return [2 /*return*/, null];
case 3: return [2 /*return*/];
case 4: return [2 /*return*/];
}

@@ -123,0 +134,0 @@ });

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ import { __awaiter, __generator, __extends } from '../_virtual/_tslib.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ import { __extends } from '../../_virtual/_tslib.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ import { Separators, CacheAccountType, CacheType, Constants } from '../../utils/Constants.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ import { Separators, APP_METADATA } from '../../utils/Constants.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ import { AUTHORITY_METADATA_CONSTANTS } from '../../utils/Constants.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ /*

@@ -37,3 +37,9 @@ import { CredentialType, AuthenticationScheme } from "../../utils/Constants";

requestedClaimsHash?: string;
private static credentialDomainRegex;
private static credentialRegexMap;
/**
* Initializes a map with credential {CredentialType} regular expressions.
*/
static _initRegex(): void;
/**
* Generate Account Id key component as per the schema: <home_account_id>-<environment>

@@ -40,0 +46,0 @@ */

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -36,2 +36,21 @@ import { CredentialType, CacheType, Constants, Separators, AuthenticationScheme } from '../../utils/Constants.js';

/**
* Initializes a map with credential {CredentialType} regular expressions.
*/
CredentialEntity._initRegex = function () {
var separator = Separators.CACHE_KEY_SEPARATOR;
CredentialEntity.credentialRegexMap = new Map();
for (var _i = 0, _a = Object.keys(CredentialType); _i < _a.length; _i++) {
var credKey = _a[_i];
var credVal = CredentialType[credKey].toLowerCase();
try {
// Verify credential type is preceded by a valid host name (environment) using lookbehind
CredentialEntity.credentialRegexMap.set(CredentialType[credKey], new RegExp("(?<=" + separator + CredentialEntity.credentialDomainRegex + ")" + separator + credVal + separator));
}
catch (err) {
// Lookbehind is not supported (Safari or older versions of IE) - removing it
CredentialEntity.credentialRegexMap.set(CredentialType[credKey], new RegExp("" + separator + CredentialEntity.credentialDomainRegex + separator + credVal + separator));
}
}
};
/**
* Generate Account Id key component as per the schema: <home_account_id>-<environment>

@@ -82,10 +101,6 @@ */

CredentialEntity.getCredentialType = function (key) {
var separator = Separators.CACHE_KEY_SEPARATOR;
// Match host names like "login.microsoftonline.com", "https://accounts.google.com:4000", etc.
var domainRe = "(https?:\\/\\/)?([\\w-]+\\.)*([\\w-]{1,63})(\\.(\\w{2,63}))(\\:[0-9]{4,5})?";
for (var _i = 0, _a = Object.keys(CredentialType); _i < _a.length; _i++) {
var credKey = _a[_i];
var credVal = CredentialType[credKey].toLowerCase();
// Verify credential type is preceded by a valid host name (environment)
if (key.toLowerCase().search("" + separator + domainRe + separator + credVal + separator) !== -1) {
var _a;
for (var _i = 0, _b = Object.keys(CredentialType); _i < _b.length; _i++) {
var credKey = _b[_i];
if ((_a = this.credentialRegexMap.get(CredentialType[credKey])) === null || _a === void 0 ? void 0 : _a.test(key.toLowerCase())) {
return CredentialType[credKey];

@@ -159,6 +174,9 @@ }

};
// Match host names like "login.microsoftonline.com", "https://accounts.google.com:4000", https://localhost:5000, etc.
CredentialEntity.credentialDomainRegex = "(https?:\\/\\/)?((([\\w-]+\\.)*([\\w-]{1,63})(\\.(\\w{2,63})))|(localhost))(\\:[0-9]{4,5})?";
return CredentialEntity;
}());
CredentialEntity._initRegex();
export { CredentialEntity };
//# sourceMappingURL=CredentialEntity.js.map

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ import { __extends } from '../../_virtual/_tslib.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ import { __extends } from '../../_virtual/_tslib.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ import { SERVER_TELEM_CONSTANTS } from '../../utils/Constants.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ import { ThrottlingConstants } from '../../utils/Constants.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ /*

@@ -51,7 +51,2 @@ import { BaseClient } from "./BaseClient";

/**
* Creates query string for the /token request
* @param request
*/
private createTokenQueryParameters;
/**
* Generates a map for all the params to be sent to the service

@@ -58,0 +53,0 @@ * @param request

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -17,2 +17,3 @@ import { __extends, __awaiter, __generator, __assign, __spreadArrays } from '../_virtual/_tslib.js';

import { RequestValidator } from '../request/RequestValidator.js';
import { PerformanceEvents } from '../telemetry/performance/PerformanceEvent.js';

@@ -45,9 +46,13 @@ /*

AuthorizationCodeClient.prototype.getAuthCodeUrl = function (request) {
var _a, _b;
return __awaiter(this, void 0, void 0, function () {
var queryString;
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, this.createAuthCodeUrlQueryString(request)];
return __generator(this, function (_c) {
switch (_c.label) {
case 0:
(_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.GetAuthCodeUrl, request.correlationId);
(_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.setPreQueueTime(PerformanceEvents.AuthClientCreateQueryString, request.correlationId);
return [4 /*yield*/, this.createAuthCodeUrlQueryString(request)];
case 1:
queryString = _a.sent();
queryString = _c.sent();
return [2 /*return*/, UrlString.appendQueryString(this.authority.authorizationEndpoint, queryString)];

@@ -64,20 +69,22 @@ }

AuthorizationCodeClient.prototype.acquireToken = function (request, authCodePayload) {
var _a, _b, _c;
var _a, _b, _c, _d, _e, _f;
return __awaiter(this, void 0, void 0, function () {
var atsMeasurement, reqTimestamp, response, requestId, httpVerAuthority, responseHandler;
var _this = this;
return __generator(this, function (_d) {
switch (_d.label) {
return __generator(this, function (_g) {
switch (_g.label) {
case 0:
atsMeasurement = (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.startMeasurement("AuthCodeClientAcquireToken", request.correlationId);
this.logger.info("in acquireToken call in auth-code client");
if (!request || StringUtils.isEmpty(request.code)) {
if (!request || !request.code) {
throw ClientAuthError.createTokenRequestCannotBeMadeError();
}
(_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.AuthClientAcquireToken, request.correlationId);
atsMeasurement = (_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.startMeasurement("AuthCodeClientAcquireToken", request.correlationId);
this.logger.info("in acquireToken call in auth-code client");
reqTimestamp = TimeUtils.nowSeconds();
(_c = this.performanceClient) === null || _c === void 0 ? void 0 : _c.setPreQueueTime(PerformanceEvents.AuthClientExecuteTokenRequest, request.correlationId);
return [4 /*yield*/, this.executeTokenRequest(this.authority, request)];
case 1:
response = _d.sent();
requestId = (_b = response.headers) === null || _b === void 0 ? void 0 : _b[HeaderNames.X_MS_REQUEST_ID];
httpVerAuthority = (_c = response.headers) === null || _c === void 0 ? void 0 : _c[HeaderNames.X_MS_HTTP_VERSION];
response = _g.sent();
requestId = (_d = response.headers) === null || _d === void 0 ? void 0 : _d[HeaderNames.X_MS_REQUEST_ID];
httpVerAuthority = (_e = response.headers) === null || _e === void 0 ? void 0 : _e[HeaderNames.X_MS_HTTP_VERSION];
if (httpVerAuthority) {

@@ -88,5 +95,6 @@ atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.addStaticFields({

}
responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin);
responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin, this.performanceClient);
// Validate response. This function throws a server error if an error is returned by the server.
responseHandler.validateTokenResponse(response.body);
(_f = this.performanceClient) === null || _f === void 0 ? void 0 : _f.setPreQueueTime(PerformanceEvents.HandleServerTokenResponse, request.correlationId);
return [2 /*return*/, responseHandler.handleServerTokenResponse(response.body, this.authority, reqTimestamp, request, authCodePayload, undefined, undefined, undefined, requestId).then(function (result) {

@@ -153,22 +161,15 @@ atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.endMeasurement({

AuthorizationCodeClient.prototype.executeTokenRequest = function (authority, request) {
var _a, _b;
return __awaiter(this, void 0, void 0, function () {
var thumbprint, requestBody, queryParameters, ccsCredential, clientInfo, headers, endpoint;
return __generator(this, function (_a) {
switch (_a.label) {
var queryParametersString, endpoint, requestBody, ccsCredential, clientInfo, headers, thumbprint;
return __generator(this, function (_c) {
switch (_c.label) {
case 0:
thumbprint = {
clientId: this.config.authOptions.clientId,
authority: authority.canonicalAuthority,
scopes: request.scopes,
claims: request.claims,
authenticationScheme: request.authenticationScheme,
resourceRequestMethod: request.resourceRequestMethod,
resourceRequestUri: request.resourceRequestUri,
shrClaims: request.shrClaims,
sshKid: request.sshKid
};
(_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.AuthClientExecuteTokenRequest, request.correlationId);
(_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.setPreQueueTime(PerformanceEvents.AuthClientCreateTokenRequestBody, request.correlationId);
queryParametersString = this.createTokenQueryParameters(request);
endpoint = UrlString.appendQueryString(authority.tokenEndpoint, queryParametersString);
return [4 /*yield*/, this.createTokenRequestBody(request)];
case 1:
requestBody = _a.sent();
queryParameters = this.createTokenQueryParameters(request);
requestBody = _c.sent();
ccsCredential = undefined;

@@ -188,3 +189,13 @@ if (request.clientInfo) {

headers = this.createTokenRequestHeaders(ccsCredential || request.ccsCredential);
endpoint = StringUtils.isEmpty(queryParameters) ? authority.tokenEndpoint : authority.tokenEndpoint + "?" + queryParameters;
thumbprint = {
clientId: this.config.authOptions.clientId,
authority: authority.canonicalAuthority,
scopes: request.scopes,
claims: request.claims,
authenticationScheme: request.authenticationScheme,
resourceRequestMethod: request.resourceRequestMethod,
resourceRequestUri: request.resourceRequestUri,
shrClaims: request.shrClaims,
sshKid: request.sshKid
};
return [2 /*return*/, this.executePostToTokenEndpoint(endpoint, requestBody, headers, thumbprint)];

@@ -196,13 +207,2 @@ }

/**
* Creates query string for the /token request
* @param request
*/
AuthorizationCodeClient.prototype.createTokenQueryParameters = function (request) {
var parameterBuilder = new RequestParameterBuilder();
if (request.tokenQueryParameters) {
parameterBuilder.addExtraQueryParameters(request.tokenQueryParameters);
}
return parameterBuilder.createQueryString();
};
/**
* Generates a map for all the params to be sent to the service

@@ -212,8 +212,10 @@ * @param request

AuthorizationCodeClient.prototype.createTokenRequestBody = function (request) {
var _a, _b;
return __awaiter(this, void 0, void 0, function () {
var parameterBuilder, clientAssertion, popTokenGenerator, reqCnfData, correlationId, ccsCred, clientInfo, clientInfo;
var _a;
return __generator(this, function (_b) {
switch (_b.label) {
var _c;
return __generator(this, function (_d) {
switch (_d.label) {
case 0:
(_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.AuthClientCreateTokenRequestBody, request.correlationId);
parameterBuilder = new RequestParameterBuilder();

@@ -259,6 +261,7 @@ parameterBuilder.addClientId(this.config.authOptions.clientId);

if (!(request.authenticationScheme === AuthenticationScheme.POP)) return [3 /*break*/, 2];
popTokenGenerator = new PopTokenGenerator(this.cryptoUtils);
popTokenGenerator = new PopTokenGenerator(this.cryptoUtils, this.performanceClient);
(_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.setPreQueueTime(PerformanceEvents.PopTokenGenerateCnf, request.correlationId);
return [4 /*yield*/, popTokenGenerator.generateCnf(request)];
case 1:
reqCnfData = _b.sent();
reqCnfData = _d.sent();
// SPA PoP requires full Base64Url encoded req_cnf string (unhashed)

@@ -276,3 +279,3 @@ parameterBuilder.addPopToken(reqCnfData.reqCnfString);

}
_b.label = 3;
_d.label = 3;
case 3:

@@ -322,5 +325,5 @@ correlationId = request.correlationId || this.config.cryptoInterface.createNewGuid();

if (request.enableSpaAuthorizationCode && (!request.tokenBodyParameters || !request.tokenBodyParameters[AADServerParamKeys.RETURN_SPA_CODE])) {
parameterBuilder.addExtraQueryParameters((_a = {},
_a[AADServerParamKeys.RETURN_SPA_CODE] = "1",
_a));
parameterBuilder.addExtraQueryParameters((_c = {},
_c[AADServerParamKeys.RETURN_SPA_CODE] = "1",
_c));
}

@@ -337,7 +340,9 @@ return [2 /*return*/, parameterBuilder.createQueryString()];

AuthorizationCodeClient.prototype.createAuthCodeUrlQueryString = function (request) {
var _a;
return __awaiter(this, void 0, void 0, function () {
var parameterBuilder, requestScopes, correlationId, accountSid, accountLoginHintClaim, clientInfo, clientInfo, clientInfo, popTokenGenerator, reqCnfData;
return __generator(this, function (_a) {
switch (_a.label) {
return __generator(this, function (_b) {
switch (_b.label) {
case 0:
(_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.AuthClientCreateQueryString, request.correlationId);
parameterBuilder = new RequestParameterBuilder();

@@ -453,5 +458,5 @@ parameterBuilder.addClientId(this.config.authOptions.clientId);

case 1:
reqCnfData = _a.sent();
reqCnfData = _b.sent();
parameterBuilder.addPopToken(reqCnfData.reqCnfHash);
_a.label = 2;
_b.label = 2;
case 2: return [2 /*return*/, parameterBuilder.createQueryString()];

@@ -458,0 +463,0 @@ }

@@ -13,2 +13,3 @@ import { ClientConfiguration, CommonClientConfiguration } from "../config/ClientConfiguration";

import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient";
import { BaseAuthRequest } from "../request/BaseAuthRequest";
/**

@@ -45,3 +46,8 @@ * Base application class which will construct requests to send to and handle responses from the Microsoft STS using the authorization code flow.

updateAuthority(updatedAuthority: Authority): void;
/**
* Creates query string for the /token request
* @param request
*/
createTokenQueryParameters(request: BaseAuthRequest): string;
}
//# sourceMappingURL=BaseClient.d.ts.map

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -12,2 +12,3 @@ import { __awaiter, __generator } from '../_virtual/_tslib.js';

import { buildClientInfoFromHomeAccountId } from '../account/ClientInfo.js';
import { RequestParameterBuilder } from '../request/RequestParameterBuilder.js';

@@ -78,3 +79,3 @@ /*

switch (_a.label) {
case 0: return [4 /*yield*/, this.networkManager.sendPostRequest(thumbprint, tokenEndpoint, { body: queryString, headers: headers, proxyUrl: this.config.systemOptions.proxyUrl })];
case 0: return [4 /*yield*/, this.networkManager.sendPostRequest(thumbprint, tokenEndpoint, { body: queryString, headers: headers })];
case 1:

@@ -101,2 +102,13 @@ response = _a.sent();

};
/**
* Creates query string for the /token request
* @param request
*/
BaseClient.prototype.createTokenQueryParameters = function (request) {
var parameterBuilder = new RequestParameterBuilder();
if (request.tokenQueryParameters) {
parameterBuilder.addExtraQueryParameters(request.tokenQueryParameters);
}
return parameterBuilder.createQueryString();
};
return BaseClient;

@@ -103,0 +115,0 @@ }());

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -12,2 +12,3 @@ import { __extends, __awaiter, __generator } from '../_virtual/_tslib.js';

import { ClientAuthError } from '../error/ClientAuthError.js';
import { UrlString } from '../url/UrlString.js';

@@ -114,3 +115,3 @@ /*

return __awaiter(this, void 0, void 0, function () {
var serverTokenResponse, reqTimestamp, appTokenPropviderParameters, appTokenProviderResult, requestBody, headers, thumbprint, response, responseHandler, tokenResponse;
var serverTokenResponse, reqTimestamp, appTokenPropviderParameters, appTokenProviderResult, queryParametersString, endpoint, requestBody, headers, thumbprint, response, responseHandler, tokenResponse;
return __generator(this, function (_a) {

@@ -139,2 +140,4 @@ switch (_a.label) {

case 2:
queryParametersString = this.createTokenQueryParameters(request);
endpoint = UrlString.appendQueryString(authority.tokenEndpoint, queryParametersString);
requestBody = this.createTokenRequestBody(request);

@@ -154,3 +157,3 @@ headers = this.createTokenRequestHeaders();

reqTimestamp = TimeUtils.nowSeconds();
return [4 /*yield*/, this.executePostToTokenEndpoint(authority.tokenEndpoint, requestBody, headers, thumbprint)];
return [4 /*yield*/, this.executePostToTokenEndpoint(endpoint, requestBody, headers, thumbprint)];
case 3:

@@ -157,0 +160,0 @@ response = _a.sent();

@@ -22,2 +22,7 @@ import { BaseClient } from "./BaseClient";

/**
* Creates query string for the device code request
* @param request
*/
createExtraQueryParameters(request: CommonDeviceCodeRequest): string;
/**
* Executes POST request to device code endpoint

@@ -24,0 +29,0 @@ * @param deviceCodeEndpoint

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -12,2 +12,3 @@ import { __extends, __awaiter, __generator } from '../_virtual/_tslib.js';

import { ServerError } from '../error/ServerError.js';
import { UrlString } from '../url/UrlString.js';

@@ -59,4 +60,6 @@ /*

return __awaiter(this, void 0, void 0, function () {
var queryString, headers, thumbprint;
var queryParametersString, endpoint, queryString, headers, thumbprint;
return __generator(this, function (_a) {
queryParametersString = this.createExtraQueryParameters(request);
endpoint = UrlString.appendQueryString(this.authority.deviceCodeEndpoint, queryParametersString);
queryString = this.createQueryString(request);

@@ -75,3 +78,3 @@ headers = this.createTokenRequestHeaders();

};
return [2 /*return*/, this.executePostRequestToDeviceCodeEndpoint(this.authority.deviceCodeEndpoint, queryString, headers, thumbprint)];
return [2 /*return*/, this.executePostRequestToDeviceCodeEndpoint(endpoint, queryString, headers, thumbprint)];
});

@@ -81,2 +84,13 @@ });

/**
* Creates query string for the device code request
* @param request
*/
DeviceCodeClient.prototype.createExtraQueryParameters = function (request) {
var parameterBuilder = new RequestParameterBuilder();
if (request.extraQueryParameters) {
parameterBuilder.addExtraQueryParameters(request.extraQueryParameters);
}
return parameterBuilder.createQueryString();
};
/**
* Executes POST request to device code endpoint

@@ -94,4 +108,3 @@ * @param deviceCodeEndpoint

body: queryString,
headers: headers,
proxyUrl: this.config.systemOptions.proxyUrl
headers: headers
})];

@@ -119,2 +132,5 @@ case 1:

parameterBuilder.addClientId(this.config.authOptions.clientId);
if (request.extraQueryParameters) {
parameterBuilder.addExtraQueryParameters(request.extraQueryParameters);
}
if (!StringUtils.isEmpty(request.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) {

@@ -156,6 +172,8 @@ parameterBuilder.addClaims(request.claims, this.config.authOptions.clientCapabilities);

return __awaiter(this, void 0, void 0, function () {
var requestBody, headers, userSpecifiedTimeout, deviceCodeExpirationTime, pollingIntervalMilli, thumbprint, response;
var queryParametersString, endpoint, requestBody, headers, userSpecifiedTimeout, deviceCodeExpirationTime, pollingIntervalMilli, thumbprint, response;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
queryParametersString = this.createTokenQueryParameters(request);
endpoint = UrlString.appendQueryString(this.authority.tokenEndpoint, queryParametersString);
requestBody = this.createTokenRequestBody(request, deviceCodeResponse);

@@ -180,3 +198,3 @@ headers = this.createTokenRequestHeaders();

};
return [4 /*yield*/, this.executePostToTokenEndpoint(this.authority.tokenEndpoint, requestBody, headers, thumbprint)];
return [4 /*yield*/, this.executePostToTokenEndpoint(endpoint, requestBody, headers, thumbprint)];
case 2:

@@ -183,0 +201,0 @@ response = _a.sent();

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -12,2 +12,3 @@ import { __extends, __awaiter, __generator } from '../_virtual/_tslib.js';

import { ClientAuthError } from '../error/ClientAuthError.js';
import { UrlString } from '../url/UrlString.js';

@@ -180,6 +181,8 @@ /*

return __awaiter(this, void 0, void 0, function () {
var requestBody, headers, thumbprint, reqTimestamp, response, responseHandler, tokenResponse;
var queryParametersString, endpoint, requestBody, headers, thumbprint, reqTimestamp, response, responseHandler, tokenResponse;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
queryParametersString = this.createTokenQueryParameters(request);
endpoint = UrlString.appendQueryString(authority.tokenEndpoint, queryParametersString);
requestBody = this.createTokenRequestBody(request);

@@ -199,3 +202,3 @@ headers = this.createTokenRequestHeaders();

reqTimestamp = TimeUtils.nowSeconds();
return [4 /*yield*/, this.executePostToTokenEndpoint(authority.tokenEndpoint, requestBody, headers, thumbprint)];
return [4 /*yield*/, this.executePostToTokenEndpoint(endpoint, requestBody, headers, thumbprint)];
case 1:

@@ -202,0 +205,0 @@ response = _a.sent();

@@ -30,7 +30,2 @@ import { ClientConfiguration } from "../config/ClientConfiguration";

/**
* Creates query string for the /token request
* @param request
*/
private createTokenQueryParameters;
/**
* Helper function to create the token request body

@@ -37,0 +32,0 @@ * @param request

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -33,18 +33,20 @@ import { __extends, __awaiter, __generator, __assign } from '../_virtual/_tslib.js';

RefreshTokenClient.prototype.acquireToken = function (request) {
var _a, _b, _c, _d;
var _a, _b, _c, _d, _e, _f, _g;
return __awaiter(this, void 0, void 0, function () {
var atsMeasurement, reqTimestamp, response, httpVerToken, requestId, responseHandler;
var _this = this;
return __generator(this, function (_e) {
switch (_e.label) {
return __generator(this, function (_h) {
switch (_h.label) {
case 0:
atsMeasurement = (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.startMeasurement(PerformanceEvents.RefreshTokenClientAcquireToken, request.correlationId);
(_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.RefreshTokenClientAcquireToken, request.correlationId);
atsMeasurement = (_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.startMeasurement(PerformanceEvents.RefreshTokenClientAcquireToken, request.correlationId);
this.logger.verbose("RefreshTokenClientAcquireToken called", request.correlationId);
reqTimestamp = TimeUtils.nowSeconds();
(_c = this.performanceClient) === null || _c === void 0 ? void 0 : _c.setPreQueueTime(PerformanceEvents.RefreshTokenClientExecuteTokenRequest, request.correlationId);
return [4 /*yield*/, this.executeTokenRequest(request, this.authority)];
case 1:
response = _e.sent();
httpVerToken = (_b = response.headers) === null || _b === void 0 ? void 0 : _b[HeaderNames.X_MS_HTTP_VERSION];
response = _h.sent();
httpVerToken = (_d = response.headers) === null || _d === void 0 ? void 0 : _d[HeaderNames.X_MS_HTTP_VERSION];
atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.addStaticFields({
refreshTokenSize: ((_c = response.body.refresh_token) === null || _c === void 0 ? void 0 : _c.length) || 0,
refreshTokenSize: ((_e = response.body.refresh_token) === null || _e === void 0 ? void 0 : _e.length) || 0,
});

@@ -56,5 +58,6 @@ if (httpVerToken) {

}
requestId = (_d = response.headers) === null || _d === void 0 ? void 0 : _d[HeaderNames.X_MS_REQUEST_ID];
requestId = (_f = response.headers) === null || _f === void 0 ? void 0 : _f[HeaderNames.X_MS_REQUEST_ID];
responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin);
responseHandler.validateTokenResponse(response.body);
(_g = this.performanceClient) === null || _g === void 0 ? void 0 : _g.setPreQueueTime(PerformanceEvents.HandleServerTokenResponse, request.correlationId);
return [2 /*return*/, responseHandler.handleServerTokenResponse(response.body, this.authority, reqTimestamp, request, undefined, undefined, true, request.forceCache, requestId).then(function (result) {

@@ -84,5 +87,6 @@ atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.endMeasurement({

RefreshTokenClient.prototype.acquireTokenByRefreshToken = function (request) {
var _a, _b, _c, _d;
return __awaiter(this, void 0, void 0, function () {
var isFOCI, noFamilyRTInCache, clientMismatchErrorWithFamilyRT;
return __generator(this, function (_a) {
return __generator(this, function (_e) {
// Cannot renew token if no request object is given.

@@ -92,2 +96,3 @@ if (!request) {

}
(_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.RefreshTokenClientAcquireTokenByRefreshToken, request.correlationId);
// We currently do not support silent flow for account === null use cases; This will be revisited for confidential flow usecases

@@ -101,2 +106,3 @@ if (!request.account) {

try {
(_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.setPreQueueTime(PerformanceEvents.RefreshTokenClientAcquireTokenWithCachedRefreshToken, request.correlationId);
return [2 /*return*/, this.acquireTokenWithCachedRefreshToken(request, true)];

@@ -109,2 +115,3 @@ }

if (noFamilyRTInCache || clientMismatchErrorWithFamilyRT) {
(_c = this.performanceClient) === null || _c === void 0 ? void 0 : _c.setPreQueueTime(PerformanceEvents.RefreshTokenClientAcquireTokenWithCachedRefreshToken, request.correlationId);
return [2 /*return*/, this.acquireTokenWithCachedRefreshToken(request, false)];

@@ -119,2 +126,3 @@ // throw in all other cases

// fall back to application refresh token acquisition
(_d = this.performanceClient) === null || _d === void 0 ? void 0 : _d.setPreQueueTime(PerformanceEvents.RefreshTokenClientAcquireTokenWithCachedRefreshToken, request.correlationId);
return [2 /*return*/, this.acquireTokenWithCachedRefreshToken(request, false)];

@@ -129,7 +137,8 @@ });

RefreshTokenClient.prototype.acquireTokenWithCachedRefreshToken = function (request, foci) {
var _a;
var _a, _b, _c;
return __awaiter(this, void 0, void 0, function () {
var atsMeasurement, refreshToken, refreshTokenRequest;
return __generator(this, function (_b) {
atsMeasurement = (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.startMeasurement(PerformanceEvents.RefreshTokenClientAcquireTokenWithCachedRefreshToken, request.correlationId);
return __generator(this, function (_d) {
(_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.RefreshTokenClientAcquireTokenWithCachedRefreshToken, request.correlationId);
atsMeasurement = (_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.startMeasurement(PerformanceEvents.RefreshTokenClientAcquireTokenWithCachedRefreshToken, request.correlationId);
this.logger.verbose("RefreshTokenClientAcquireTokenWithCachedRefreshToken called", request.correlationId);

@@ -149,2 +158,3 @@ refreshToken = this.cacheManager.readRefreshTokenFromCache(this.config.authOptions.clientId, request.account, foci);

} });
(_c = this.performanceClient) === null || _c === void 0 ? void 0 : _c.setPreQueueTime(PerformanceEvents.RefreshTokenClientAcquireToken, request.correlationId);
return [2 /*return*/, this.acquireToken(refreshTokenRequest)];

@@ -160,13 +170,16 @@ });

RefreshTokenClient.prototype.executeTokenRequest = function (request, authority) {
var _a;
var _a, _b, _c;
return __awaiter(this, void 0, void 0, function () {
var acquireTokenMeasurement, requestBody, queryParameters, headers, thumbprint, endpoint;
return __generator(this, function (_b) {
switch (_b.label) {
var acquireTokenMeasurement, queryParametersString, endpoint, requestBody, headers, thumbprint;
return __generator(this, function (_d) {
switch (_d.label) {
case 0:
acquireTokenMeasurement = (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.startMeasurement(PerformanceEvents.RefreshTokenClientExecuteTokenRequest, request.correlationId);
(_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.RefreshTokenClientExecuteTokenRequest, request.correlationId);
acquireTokenMeasurement = (_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.startMeasurement(PerformanceEvents.RefreshTokenClientExecuteTokenRequest, request.correlationId);
(_c = this.performanceClient) === null || _c === void 0 ? void 0 : _c.setPreQueueTime(PerformanceEvents.RefreshTokenClientCreateTokenRequestBody, request.correlationId);
queryParametersString = this.createTokenQueryParameters(request);
endpoint = UrlString.appendQueryString(authority.tokenEndpoint, queryParametersString);
return [4 /*yield*/, this.createTokenRequestBody(request)];
case 1:
requestBody = _b.sent();
queryParameters = this.createTokenQueryParameters(request);
requestBody = _d.sent();
headers = this.createTokenRequestHeaders(request.ccsCredential);

@@ -184,3 +197,2 @@ thumbprint = {

};
endpoint = UrlString.appendQueryString(authority.tokenEndpoint, queryParameters);
return [2 /*return*/, this.executePostToTokenEndpoint(endpoint, requestBody, headers, thumbprint)

@@ -204,13 +216,2 @@ .then(function (result) {

/**
* Creates query string for the /token request
* @param request
*/
RefreshTokenClient.prototype.createTokenQueryParameters = function (request) {
var parameterBuilder = new RequestParameterBuilder();
if (request.tokenQueryParameters) {
parameterBuilder.addExtraQueryParameters(request.tokenQueryParameters);
}
return parameterBuilder.createQueryString();
};
/**
* Helper function to create the token request body

@@ -220,10 +221,11 @@ * @param request

RefreshTokenClient.prototype.createTokenRequestBody = function (request) {
var _a;
var _a, _b, _c;
return __awaiter(this, void 0, void 0, function () {
var correlationId, acquireTokenMeasurement, parameterBuilder, clientAssertion, popTokenGenerator, reqCnfData, clientInfo;
return __generator(this, function (_b) {
switch (_b.label) {
return __generator(this, function (_d) {
switch (_d.label) {
case 0:
(_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.RefreshTokenClientCreateTokenRequestBody, request.correlationId);
correlationId = request.correlationId;
acquireTokenMeasurement = (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.startMeasurement(PerformanceEvents.BaseClientCreateTokenRequestHeaders, correlationId);
acquireTokenMeasurement = (_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.startMeasurement(PerformanceEvents.BaseClientCreateTokenRequestHeaders, correlationId);
parameterBuilder = new RequestParameterBuilder();

@@ -251,6 +253,7 @@ parameterBuilder.addClientId(this.config.authOptions.clientId);

if (!(request.authenticationScheme === AuthenticationScheme.POP)) return [3 /*break*/, 2];
popTokenGenerator = new PopTokenGenerator(this.cryptoUtils);
popTokenGenerator = new PopTokenGenerator(this.cryptoUtils, this.performanceClient);
(_c = this.performanceClient) === null || _c === void 0 ? void 0 : _c.setPreQueueTime(PerformanceEvents.PopTokenGenerateCnf, request.correlationId);
return [4 /*yield*/, popTokenGenerator.generateCnf(request)];
case 1:
reqCnfData = _b.sent();
reqCnfData = _d.sent();
// SPA PoP requires full Base64Url encoded req_cnf string (unhashed)

@@ -271,3 +274,3 @@ parameterBuilder.addPopToken(reqCnfData.reqCnfString);

}
_b.label = 3;
_d.label = 3;
case 3:

@@ -274,0 +277,0 @@ if (!StringUtils.isEmptyObj(request.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) {

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ import { __extends, __awaiter, __generator } from '../_virtual/_tslib.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -11,2 +11,3 @@ import { __extends, __awaiter, __generator } from '../_virtual/_tslib.js';

import { CcsCredentialType } from '../account/CcsCredential.js';
import { UrlString } from '../url/UrlString.js';

@@ -64,4 +65,11 @@ /*

return __awaiter(this, void 0, void 0, function () {
var thumbprint, requestBody, headers;
var queryParametersString, endpoint, requestBody, headers, thumbprint;
return __generator(this, function (_a) {
queryParametersString = this.createTokenQueryParameters(request);
endpoint = UrlString.appendQueryString(authority.tokenEndpoint, queryParametersString);
requestBody = this.createTokenRequestBody(request);
headers = this.createTokenRequestHeaders({
credential: request.username,
type: CcsCredentialType.UPN
});
thumbprint = {

@@ -78,8 +86,3 @@ clientId: this.config.authOptions.clientId,

};
requestBody = this.createTokenRequestBody(request);
headers = this.createTokenRequestHeaders({
credential: request.username,
type: CcsCredentialType.UPN
});
return [2 /*return*/, this.executePostToTokenEndpoint(authority.tokenEndpoint, requestBody, headers, thumbprint)];
return [2 /*return*/, this.executePostToTokenEndpoint(endpoint, requestBody, headers, thumbprint)];
});

@@ -86,0 +89,0 @@ });

@@ -79,3 +79,2 @@ import { INetworkModule } from "../network/INetworkModule";

preventCorsPreflight?: boolean;
proxyUrl?: string;
};

@@ -82,0 +81,0 @@ /**

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -20,4 +20,3 @@ import { __assign, __awaiter, __generator } from '../_virtual/_tslib.js';

tokenRenewalOffsetSeconds: DEFAULT_TOKEN_RENEWAL_OFFSET_SEC,
preventCorsPreflight: false,
proxyUrl: Constants.EMPTY_STRING
preventCorsPreflight: false
};

@@ -24,0 +23,0 @@ var DEFAULT_LOGGER_IMPLEMENTATION = {

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ import { __awaiter, __generator } from '../_virtual/_tslib.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ import { JoseHeaderError } from '../error/JoseHeaderError.js';

import { ICrypto, SignedHttpRequestParameters } from "./ICrypto";
import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient";
/**

@@ -24,3 +25,4 @@ * See eSTS docs for more info.

private cryptoUtils;
constructor(cryptoUtils: ICrypto);
private performanceClient?;
constructor(cryptoUtils: ICrypto, performanceClient?: IPerformanceClient);
/**

@@ -27,0 +29,0 @@ * Generates the req_cnf validated at the RP in the POP protocol for SHR parameters

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -6,2 +6,3 @@ import { __awaiter, __generator, __assign } from '../_virtual/_tslib.js';

import { UrlString } from '../url/UrlString.js';
import { PerformanceEvents } from '../telemetry/performance/PerformanceEvent.js';

@@ -18,4 +19,5 @@ /*

var PopTokenGenerator = /** @class */ (function () {
function PopTokenGenerator(cryptoUtils) {
function PopTokenGenerator(cryptoUtils, performanceClient) {
this.cryptoUtils = cryptoUtils;
this.performanceClient = performanceClient;
}

@@ -29,11 +31,15 @@ /**

PopTokenGenerator.prototype.generateCnf = function (request) {
var _a, _b;
return __awaiter(this, void 0, void 0, function () {
var reqCnf, reqCnfString, _a;
return __generator(this, function (_b) {
switch (_b.label) {
case 0: return [4 /*yield*/, this.generateKid(request)];
var reqCnf, reqCnfString, _c;
return __generator(this, function (_d) {
switch (_d.label) {
case 0:
(_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.PopTokenGenerateCnf, request.correlationId);
(_b = this.performanceClient) === null || _b === void 0 ? void 0 : _b.setPreQueueTime(PerformanceEvents.PopTokenGenerateKid, request.correlationId);
return [4 /*yield*/, this.generateKid(request)];
case 1:
reqCnf = _b.sent();
reqCnf = _d.sent();
reqCnfString = this.cryptoUtils.base64Encode(JSON.stringify(reqCnf));
_a = {
_c = {
kid: reqCnf.kid,

@@ -43,4 +49,4 @@ reqCnfString: reqCnfString

return [4 /*yield*/, this.cryptoUtils.hashString(reqCnfString)];
case 2: return [2 /*return*/, (_a.reqCnfHash = _b.sent(),
_a)];
case 2: return [2 /*return*/, (_c.reqCnfHash = _d.sent(),
_c)];
}

@@ -56,9 +62,12 @@ });

PopTokenGenerator.prototype.generateKid = function (request) {
var _a;
return __awaiter(this, void 0, void 0, function () {
var kidThumbprint;
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, this.cryptoUtils.getPublicKeyThumbprint(request)];
return __generator(this, function (_b) {
switch (_b.label) {
case 0:
(_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.PopTokenGenerateKid, request.correlationId);
return [4 /*yield*/, this.cryptoUtils.getPublicKeyThumbprint(request)];
case 1:
kidThumbprint = _a.sent();
kidThumbprint = _b.sent();
return [2 /*return*/, {

@@ -65,0 +74,0 @@ kid: kidThumbprint,

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ import { __extends } from '../_virtual/_tslib.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ import { __extends } from '../_virtual/_tslib.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ import { __extends } from '../_virtual/_tslib.js';

@@ -24,4 +24,22 @@ import { AuthError } from "./AuthError";

export declare class InteractionRequiredAuthError extends AuthError {
constructor(errorCode?: string, errorMessage?: string, subError?: string);
/**
* The time the error occured at
*/
timestamp: string;
/**
* TraceId associated with the error
*/
traceId: string;
/**
* https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-common/docs/claims-challenge.md
*
* A string with extra claims needed for the token request to succeed
* web site: redirect the user to the authorization page and set the extra claims
* web api: include the claims in the WWW-Authenticate header that are sent back to the client so that it knows to request a token with the extra claims
* desktop application or browser context: include the claims when acquiring the token interactively
* app to app context (client_credentials): include the claims in the AcquireTokenByClientCredential request
*/
claims: string;
constructor(errorCode?: string, errorMessage?: string, subError?: string, timestamp?: string, traceId?: string, correlationId?: string, claims?: string);
/**
* Helper function used to determine if an error thrown by the server requires interaction to resolve

@@ -28,0 +46,0 @@ * @param errorCode

@@ -1,4 +0,5 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';
import { __extends } from '../_virtual/_tslib.js';
import { Constants } from '../utils/Constants.js';
import { AuthError } from './AuthError.js';

@@ -43,6 +44,10 @@

__extends(InteractionRequiredAuthError, _super);
function InteractionRequiredAuthError(errorCode, errorMessage, subError) {
function InteractionRequiredAuthError(errorCode, errorMessage, subError, timestamp, traceId, correlationId, claims) {
var _this = _super.call(this, errorCode, errorMessage, subError) || this;
Object.setPrototypeOf(_this, InteractionRequiredAuthError.prototype);
_this.timestamp = timestamp || Constants.EMPTY_STRING;
_this.traceId = traceId || Constants.EMPTY_STRING;
_this.correlationId = correlationId || Constants.EMPTY_STRING;
_this.claims = claims || Constants.EMPTY_STRING;
_this.name = "InteractionRequiredAuthError";
Object.setPrototypeOf(_this, InteractionRequiredAuthError.prototype);
return _this;

@@ -49,0 +54,0 @@ }

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ import { __extends } from '../_virtual/_tslib.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ import { __extends } from '../_virtual/_tslib.js';

@@ -85,4 +85,4 @@ /**

export { ServerTelemetryRequest } from "./telemetry/server/ServerTelemetryRequest";
export { IPerformanceClient, PerformanceCallbackFunction, InProgressPerformanceEvent } from "./telemetry/performance/IPerformanceClient";
export { PerformanceEvent, PerformanceEvents, PerformanceEventStatus, StaticFields } from "./telemetry/performance/PerformanceEvent";
export { IPerformanceClient, PerformanceCallbackFunction, InProgressPerformanceEvent, QueueMeasurement } from "./telemetry/performance/IPerformanceClient";
export { Counters, IntFields, PerformanceEvent, PerformanceEvents, PerformanceEventStatus, StaticFields } from "./telemetry/performance/PerformanceEvent";
export { IPerformanceMeasurement } from "./telemetry/performance/IPerformanceMeasurement";

@@ -89,0 +89,0 @@ export { PerformanceClient } from "./telemetry/performance/PerformanceClient";

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -50,3 +50,3 @@ export { AuthorizationCodeClient } from './client/AuthorizationCodeClient.js';

export { ServerTelemetryManager } from './telemetry/server/ServerTelemetryManager.js';
export { PerformanceEventStatus, PerformanceEvents } from './telemetry/performance/PerformanceEvent.js';
export { IntFields, PerformanceEventStatus, PerformanceEvents } from './telemetry/performance/PerformanceEvent.js';
export { PerformanceClient } from './telemetry/performance/PerformanceClient.js';

@@ -53,0 +53,0 @@ export { StubPerformanceClient } from './telemetry/performance/StubPerformanceClient.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ import { StringUtils } from '../utils/StringUtils.js';

@@ -8,3 +8,2 @@ import { NetworkResponse } from "./NetworkManager";

body?: string;
proxyUrl?: string;
};

@@ -11,0 +10,0 @@ /**

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ import { AuthError } from '../error/AuthError.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ import { __awaiter, __generator } from '../_virtual/_tslib.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ import { ThrottlingConstants, CacheSchemaType, Constants, HeaderNames } from '../utils/Constants.js';

export declare const name = "@azure/msal-common";
export declare const version = "9.1.1";
export declare const version = "10.0.0";
//# sourceMappingURL=packageMetadata.d.ts.map

@@ -1,8 +0,8 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';
/* eslint-disable header/header */
var name = "@azure/msal-common";
var version = "9.1.1";
var version = "10.0.0";
export { name, version };
//# sourceMappingURL=packageMetadata.js.map

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ import { ClientConfigurationError } from '../error/ClientConfigurationError.js';

import { AuthenticationScheme } from "../utils/Constants";
import { AzureCloudOptions } from "../config/ClientConfiguration";
import { StringDict } from "../utils/MsalTypes";
/**

@@ -18,2 +19,3 @@ * BaseAuthRequest

* - requestedClaimsHash - SHA 256 hash string of the requested claims string, used as part of an access token cache key so tokens can be filtered by requested claims
* - tokenQueryParameters - String to string map of custom query parameters added to the /token call
*/

@@ -35,3 +37,4 @@ export declare type BaseAuthRequest = {

maxAge?: number;
tokenQueryParameters?: StringDict;
};
//# sourceMappingURL=BaseAuthRequest.d.ts.map

@@ -14,5 +14,6 @@ import { BaseAuthRequest } from "./BaseAuthRequest";

* - codeVerifier - The same code_verifier that was used to obtain the authorization_code. Required if PKCE was used in the authorization code grant request.For more information, see the PKCE RFC: https://tools.ietf.org/html/rfc7636
* - resourceRequestMethod - HTTP Request type used to request data from the resource (i.e. "GET", "POST", etc.). Used for proof-of-possession flows.
* - resourceRequestUri - URI that token will be used for. Used for proof-of-possession flows.
* - enableSpaAuthCode - Enables the acqusition of a spa authorization code (confidential clients only)
* - resourceRequestMethod - HTTP Request type used to request data from the resource (i.e. "GET", "POST", etc.). Used for proof-of-possession flows.
* - resourceRequestUri - URI that token will be used for. Used for proof-of-possession flows.
* - enableSpaAuthCode - Enables the acqusition of a spa authorization code (confidential clients only)
* - tokenQueryParameters - String to string map of custom query parameters added to the /token call
*/

@@ -23,3 +24,2 @@ export declare type CommonAuthorizationCodeRequest = BaseAuthRequest & {

codeVerifier?: string;
tokenQueryParameters?: StringDict;
tokenBodyParameters?: StringDict;

@@ -26,0 +26,0 @@ enableSpaAuthorizationCode?: boolean;

@@ -43,3 +43,2 @@ import { ResponseMode } from "../utils/Constants";

extraQueryParameters?: StringDict;
tokenQueryParameters?: StringDict;
extraScopesToConsent?: Array<string>;

@@ -46,0 +45,0 @@ loginHint?: string;

@@ -11,2 +11,3 @@ import { BaseAuthRequest } from "./BaseAuthRequest";

* - preferredAzureRegionOptions - Options of the user's preferred azure region
* - tokenQueryParameters - String to string map of custom query parameters added to the /token call
*/

@@ -13,0 +14,0 @@ export declare type CommonClientCredentialRequest = BaseAuthRequest & {

import { DeviceCodeResponse } from "../response/DeviceCodeResponse";
import { StringDict } from "../utils/MsalTypes";
import { BaseAuthRequest } from "./BaseAuthRequest";

@@ -13,8 +14,10 @@ /**

* - timeout - Timeout period in seconds which the user explicitly configures for the polling of the device code endpoint. At the end of this period; assuming the device code has not expired yet; the device code polling is stopped and the request cancelled. The device code expiration window will always take precedence over this set period.
* - extraQueryParameters - String to string map of custom query parameters added to the query string
*/
export declare type CommonDeviceCodeRequest = BaseAuthRequest & {
export declare type CommonDeviceCodeRequest = Omit<BaseAuthRequest, "tokenQueryParameters"> & {
deviceCodeCallback: (response: DeviceCodeResponse) => void;
cancel?: boolean;
timeout?: number;
extraQueryParameters?: StringDict;
};
//# sourceMappingURL=CommonDeviceCodeRequest.d.ts.map

@@ -11,2 +11,3 @@ import { AccountInfo } from "../account/AccountInfo";

* - logoutHint - A string that specifies the account that is being logged out in order to skip the server account picker on logout
* - extraQueryParameters - String to string map of custom query parameters added to the /authorize call
*/

@@ -13,0 +14,0 @@ export declare type CommonEndSessionRequest = {

@@ -8,2 +8,3 @@ import { BaseAuthRequest } from "./BaseAuthRequest";

* - skipCache - Skip token cache lookup and force request to authority to get a a new token. Defaults to false.
* - tokenQueryParameters - String to string map of custom query parameters added to the /token call
*/

@@ -10,0 +11,0 @@ export declare type CommonOnBehalfOfRequest = BaseAuthRequest & {

import { BaseAuthRequest } from "./BaseAuthRequest";
import { StringDict } from "../utils/MsalTypes";
import { CcsCredential } from "../account/CcsCredential";

@@ -14,6 +13,6 @@ /**

* - forceCache - Force MSAL to cache a refresh token flow response when there is no account in the cache. Used for migration scenarios.
* - tokenQueryParameters - String to string map of custom query parameters added to the /token call
*/
export declare type CommonRefreshTokenRequest = BaseAuthRequest & {
refreshToken: string;
tokenQueryParameters?: StringDict;
ccsCredential?: CcsCredential;

@@ -20,0 +19,0 @@ forceCache?: boolean;

import { AccountInfo } from "../account/AccountInfo";
import { BaseAuthRequest } from "./BaseAuthRequest";
import { StringDict } from "../utils/MsalTypes";
/**

@@ -12,4 +11,5 @@ * SilentFlow parameters passed by the user to retrieve credentials silently

* - forceRefresh - Forces silent requests to make network calls if true.
* - resourceRequestMethod - HTTP Request type used to request data from the resource (i.e. "GET", "POST", etc.). Used for proof-of-possession flows.
* - resourceRequestUri - URI that token will be used for. Used for proof-of-possession flows.
* - resourceRequestMethod - HTTP Request type used to request data from the resource (i.e. "GET", "POST", etc.). Used for proof-of-possession flows.
* - resourceRequestUri - URI that token will be used for. Used for proof-of-possession flows.
* - tokenQueryParameters - String to string map of custom query parameters added to the /token call
*/

@@ -19,4 +19,3 @@ export declare type CommonSilentFlowRequest = BaseAuthRequest & {

forceRefresh: boolean;
tokenQueryParameters?: StringDict;
};
//# sourceMappingURL=CommonSilentFlowRequest.d.ts.map

@@ -12,2 +12,3 @@ import { BaseAuthRequest } from "./BaseAuthRequest";

* - password - credentials
* - tokenQueryParameters - String to string map of custom query parameters added to the /token call
*/

@@ -14,0 +15,0 @@ export declare type CommonUsernamePasswordRequest = BaseAuthRequest & {

@@ -176,5 +176,5 @@ import { ResponseMode } from "../utils/Constants";

* add extraQueryParams
* @param eQparams
* @param eQParams
*/
addExtraQueryParameters(eQparams: StringDict): void;
addExtraQueryParameters(eQParams: StringDict): void;
addClientCapabilitiesToClaims(claims?: string, clientCapabilities?: Array<string>): string;

@@ -181,0 +181,0 @@ /**

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -285,9 +285,9 @@ import { __spreadArrays } from '../_virtual/_tslib.js';

* add extraQueryParams
* @param eQparams
* @param eQParams
*/
RequestParameterBuilder.prototype.addExtraQueryParameters = function (eQparams) {
RequestParameterBuilder.prototype.addExtraQueryParameters = function (eQParams) {
var _this = this;
RequestValidator.sanitizeEQParams(eQparams, this.parameters);
Object.keys(eQparams).forEach(function (key) {
_this.parameters.set(key, eQparams[key]);
var sanitizedEQParams = RequestValidator.sanitizeEQParams(eQParams, this.parameters);
Object.keys(sanitizedEQParams).forEach(function (key) {
_this.parameters.set(key, eQParams[key]);
});

@@ -294,0 +294,0 @@ };

@@ -29,3 +29,3 @@ import { StringDict } from "../utils/MsalTypes";

/**
* Removes unnecessary or duplicate query parameters from extraQueryParameters
* Removes unnecessary, duplicate, and empty string query parameters from extraQueryParameters
* @param request

@@ -32,0 +32,0 @@ */

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -73,3 +73,3 @@ import { StringUtils } from '../utils/StringUtils.js';

/**
* Removes unnecessary or duplicate query parameters from extraQueryParameters
* Removes unnecessary, duplicate, and empty string query parameters from extraQueryParameters
* @param request

@@ -87,3 +87,8 @@ */

});
return eQParams;
// remove empty string parameters
// eslint-disable-next-line @typescript-eslint/no-unused-vars
return Object.fromEntries(Object.entries(eQParams).filter(function (_a) {
var value = _a[1];
return value !== "";
}));
};

@@ -90,0 +95,0 @@ return RequestValidator;

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ import { __spreadArrays } from '../_virtual/_tslib.js';

@@ -15,2 +15,3 @@ import { ServerAuthorizationTokenResponse } from "./ServerAuthorizationTokenResponse";

import { BaseAuthRequest } from "../request/BaseAuthRequest";
import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient";
/**

@@ -27,3 +28,4 @@ * Class that handles response parsing.

private persistencePlugin;
constructor(clientId: string, cacheStorage: CacheManager, cryptoObj: ICrypto, logger: Logger, serializableCache: ISerializableTokenCache | null, persistencePlugin: ICachePlugin | null);
private performanceClient?;
constructor(clientId: string, cacheStorage: CacheManager, cryptoObj: ICrypto, logger: Logger, serializableCache: ISerializableTokenCache | null, persistencePlugin: ICachePlugin | null, performanceClient?: IPerformanceClient);
/**

@@ -30,0 +32,0 @@ * Function which validates server authorization code response.

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -22,2 +22,3 @@ import { __awaiter, __generator } from '../_virtual/_tslib.js';

import { TokenCacheContext } from '../cache/persistence/TokenCacheContext.js';
import { PerformanceEvents } from '../telemetry/performance/PerformanceEvent.js';

@@ -32,3 +33,3 @@ /*

var ResponseHandler = /** @class */ (function () {
function ResponseHandler(clientId, cacheStorage, cryptoObj, logger, serializableCache, persistencePlugin) {
function ResponseHandler(clientId, cacheStorage, cryptoObj, logger, serializableCache, persistencePlugin, performanceClient) {
this.clientId = clientId;

@@ -40,2 +41,3 @@ this.cacheStorage = cacheStorage;

this.persistencePlugin = persistencePlugin;
this.performanceClient = performanceClient;
}

@@ -58,3 +60,3 @@ /**

if (InteractionRequiredAuthError.isInteractionRequiredError(serverResponseHash.error, serverResponseHash.error_description, serverResponseHash.suberror)) {
throw new InteractionRequiredAuthError(serverResponseHash.error || Constants.EMPTY_STRING, serverResponseHash.error_description, serverResponseHash.suberror);
throw new InteractionRequiredAuthError(serverResponseHash.error || Constants.EMPTY_STRING, serverResponseHash.error_description, serverResponseHash.suberror, serverResponseHash.timestamp || Constants.EMPTY_STRING, serverResponseHash.trace_id || Constants.EMPTY_STRING, serverResponseHash.correlation_id || Constants.EMPTY_STRING, serverResponseHash.claims || Constants.EMPTY_STRING);
}

@@ -75,3 +77,3 @@ throw new ServerError(serverResponseHash.error || Constants.EMPTY_STRING, serverResponseHash.error_description, serverResponseHash.suberror);

if (InteractionRequiredAuthError.isInteractionRequiredError(serverResponse.error, serverResponse.error_description, serverResponse.suberror)) {
throw new InteractionRequiredAuthError(serverResponse.error, serverResponse.error_description, serverResponse.suberror);
throw new InteractionRequiredAuthError(serverResponse.error, serverResponse.error_description, serverResponse.suberror, serverResponse.timestamp || Constants.EMPTY_STRING, serverResponse.trace_id || Constants.EMPTY_STRING, serverResponse.correlation_id || Constants.EMPTY_STRING, serverResponse.claims || Constants.EMPTY_STRING);
}

@@ -88,7 +90,9 @@ var errString = serverResponse.error_codes + " - [" + serverResponse.timestamp + "]: " + serverResponse.error_description + " - Correlation ID: " + serverResponse.correlation_id + " - Trace ID: " + serverResponse.trace_id;

ResponseHandler.prototype.handleServerTokenResponse = function (serverTokenResponse, authority, reqTimestamp, request, authCodePayload, userAssertionHash, handlingRefreshTokenResponse, forceCacheRefreshTokenResponse, serverRequestId) {
var _a;
return __awaiter(this, void 0, void 0, function () {
var idTokenObj, authTime, requestStateObj, cacheRecord, cacheContext, key, account;
return __generator(this, function (_a) {
switch (_a.label) {
return __generator(this, function (_b) {
switch (_b.label) {
case 0:
(_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.addQueueMeasurement(PerformanceEvents.HandleServerTokenResponse, serverTokenResponse.correlation_id);
if (serverTokenResponse.id_token) {

@@ -119,5 +123,5 @@ idTokenObj = new AuthToken(serverTokenResponse.id_token || Constants.EMPTY_STRING, this.cryptoObj);

cacheRecord = this.generateCacheRecord(serverTokenResponse, authority, reqTimestamp, request, idTokenObj, userAssertionHash, authCodePayload);
_a.label = 1;
_b.label = 1;
case 1:
_a.trys.push([1, , 5, 8]);
_b.trys.push([1, , 5, 8]);
if (!(this.persistencePlugin && this.serializableCache)) return [3 /*break*/, 3];

@@ -128,4 +132,4 @@ this.logger.verbose("Persistence enabled, calling beforeCacheAccess");

case 2:
_a.sent();
_a.label = 3;
_b.sent();
_b.label = 3;
case 3:

@@ -148,3 +152,3 @@ /*

case 4:
_a.sent();
_b.sent();
return [3 /*break*/, 8];

@@ -156,4 +160,4 @@ case 5:

case 6:
_a.sent();
_a.label = 7;
_b.sent();
_b.label = 7;
case 7: return [7 /*endfinally*/];

@@ -160,0 +164,0 @@ case 8: return [2 /*return*/, ResponseHandler.generateAuthenticationResult(this.cryptoObj, authority, cacheRecord, false, request, idTokenObj, requestStateObj, serverTokenResponse.spa_code, serverRequestId)];

@@ -20,4 +20,8 @@ /**

suberror?: string;
timestamp?: string;
trace_id?: string;
correlation_id?: string;
claims?: string;
accountId?: string;
};
//# sourceMappingURL=ServerAuthorizationCodeResponse.d.ts.map

@@ -42,3 +42,4 @@ import { AuthenticationScheme } from "../utils/Constants";

correlation_id?: string;
claims?: string;
};
//# sourceMappingURL=ServerAuthorizationTokenResponse.d.ts.map

@@ -25,3 +25,19 @@ import { Counters, PerformanceEvent, PerformanceEvents, StaticFields } from "./PerformanceEvent";

generateId(): string;
calculateQueuedTime(preQueueTime: number, currentTime: number): number;
addQueueMeasurement(eventName: PerformanceEvents, correlationId?: string, queueTime?: number): void;
setPreQueueTime(eventName: PerformanceEvents, correlationId?: string): void;
}
/**
* Queue measurement type
*/
export declare type QueueMeasurement = {
/**
* Name of performance event
*/
eventName: PerformanceEvents;
/**
* Time spent in JS queue
*/
queueTime: number;
};
//# sourceMappingURL=IPerformanceClient.d.ts.map
import { ApplicationTelemetry } from "../../config/ClientConfiguration";
import { Logger } from "../../logger/Logger";
import { InProgressPerformanceEvent, IPerformanceClient, PerformanceCallbackFunction } from "./IPerformanceClient";
import { InProgressPerformanceEvent, IPerformanceClient, PerformanceCallbackFunction, QueueMeasurement } from "./IPerformanceClient";
import { IPerformanceMeasurement } from "./IPerformanceMeasurement";

@@ -38,2 +38,16 @@ import { Counters, PerformanceEvent, PerformanceEvents, StaticFields } from "./PerformanceEvent";

/**
* Map of pre-queue times by correlation Id
*
* @protected
* @type {Map<string, Map<string, number>>}
*/
protected preQueueTimeByCorrelationId: Map<string, Map<string, number>>;
/**
* Map of queue measurements by correlation Id
*
* @protected
* @type {Map<string, Array<QueueMeasurement>>}
*/
protected queueMeasurements: Map<string, Array<QueueMeasurement>>;
/**
* Creates an instance of PerformanceClient,

@@ -76,2 +90,42 @@ * an abstract class containing core performance telemetry logic.

/**
* Sets pre-queue time by correlation Id
*
* @abstract
* @param {PerformanceEvents} eventName
* @param {string} correlationId
* @returns
*/
abstract setPreQueueTime(eventName: PerformanceEvents, correlationId?: string): void;
/**
* Get integral fields.
* Override to change the set.
*/
getIntFields(): ReadonlySet<string>;
/**
* Gets map of pre-queue times by correlation Id
*
* @param {PerformanceEvents} eventName
* @param {string} correlationId
* @returns {number}
*/
getPreQueueTime(eventName: PerformanceEvents, correlationId: string): number | void;
/**
* Calculates the difference between current time and time when function was queued.
* Note: It is possible to have 0 as the queue time if the current time and the queued time was the same.
*
* @param {number} preQueueTime
* @param {number} currentTime
* @returns {number}
*/
calculateQueuedTime(preQueueTime: number, currentTime: number): number;
/**
* Adds queue measurement time to QueueMeasurements array for given correlation ID.
*
* @param {PerformanceEvents} name
* @param {?string} correlationId
* @param {?number} time
* @returns
*/
addQueueMeasurement(eventName: PerformanceEvents, correlationId?: string, queueTime?: number): void;
/**
* Starts measuring performance for a given operation. Returns a function that should be used to end the measurement.

@@ -162,3 +216,9 @@ *

emitEvents(events: PerformanceEvent[], correlationId: string): void;
/**
* Enforce truncation of integral fields in performance event.
* @param {PerformanceEvent} event performance event to update.
* @param {Set<string>} intFields integral fields.
*/
private truncateIntegralFields;
}
//# sourceMappingURL=PerformanceClient.d.ts.map

@@ -1,5 +0,5 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';
import { __assign } from '../../_virtual/_tslib.js';
import { PerformanceEventStatus } from './PerformanceEvent.js';
import { IntFields, PerformanceEventStatus } from './PerformanceEvent.js';

@@ -33,2 +33,4 @@ /*

this.measurementsById = new Map();
this.queueMeasurements = new Map();
this.preQueueTimeByCorrelationId = new Map();
this.countersByCorrelationId = new Map();

@@ -61,2 +63,86 @@ }

/**
* Get integral fields.
* Override to change the set.
*/
PerformanceClient.prototype.getIntFields = function () {
return IntFields;
};
/**
* Gets map of pre-queue times by correlation Id
*
* @param {PerformanceEvents} eventName
* @param {string} correlationId
* @returns {number}
*/
PerformanceClient.prototype.getPreQueueTime = function (eventName, correlationId) {
var preQueueTimesByEvents = this.preQueueTimeByCorrelationId.get(correlationId);
if (!preQueueTimesByEvents) {
this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue times found for correlationId: " + correlationId + ", unable to add queue measurement");
return;
}
else if (!preQueueTimesByEvents.get(eventName)) {
this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue time found for " + eventName + ", unable to add queue measurement");
return;
}
return preQueueTimesByEvents.get(eventName);
};
/**
* Calculates the difference between current time and time when function was queued.
* Note: It is possible to have 0 as the queue time if the current time and the queued time was the same.
*
* @param {number} preQueueTime
* @param {number} currentTime
* @returns {number}
*/
PerformanceClient.prototype.calculateQueuedTime = function (preQueueTime, currentTime) {
if (preQueueTime < 1) {
this.logger.trace("PerformanceClient: preQueueTime should be a positive integer and not " + preQueueTime);
return 0;
}
if (currentTime < 1) {
this.logger.trace("PerformanceClient: currentTime should be a positive integer and not " + currentTime);
return 0;
}
if (currentTime < preQueueTime) {
this.logger.trace("PerformanceClient: currentTime is less than preQueueTime, check how time is being retrieved");
return 0;
}
return currentTime - preQueueTime;
};
/**
* Adds queue measurement time to QueueMeasurements array for given correlation ID.
*
* @param {PerformanceEvents} name
* @param {?string} correlationId
* @param {?number} time
* @returns
*/
PerformanceClient.prototype.addQueueMeasurement = function (eventName, correlationId, queueTime) {
if (!correlationId) {
this.logger.trace("PerformanceClient.addQueueMeasurement: correlationId not provided for " + eventName + ", cannot add queue measurement");
return;
}
if (queueTime === 0) {
// Possible for there to be no queue time after calculation
this.logger.trace("PerformanceClient.addQueueMeasurement: queue time provided for " + eventName + " is " + queueTime);
}
else if (!queueTime) {
this.logger.trace("PerformanceClient.addQueueMeasurement: no queue time provided for " + eventName);
return;
}
var queueMeasurement = { eventName: eventName, queueTime: queueTime };
// Adds to existing correlation Id if present in queueMeasurements
var existingMeasurements = this.queueMeasurements.get(correlationId);
if (existingMeasurements) {
existingMeasurements.push(queueMeasurement);
this.queueMeasurements.set(correlationId, existingMeasurements);
}
else {
// Sets new correlation Id if not present in queueMeasurements
this.logger.trace("PerformanceClient.addQueueMeasurement: adding correlationId " + correlationId + " to queue measurements");
var measurementArray = [queueMeasurement];
this.queueMeasurements.set(correlationId, measurementArray);
}
};
/**
* Starts measuring performance for a given operation. Returns a function that should be used to end the measurement.

@@ -240,2 +326,16 @@ *

this.logger.trace("PerformanceClient: Performance measurements flushed for " + measureName, correlationId);
/**
* Adds all queue time and count measurements for given correlation ID
* then deletes queue times for given correlation ID from queueMeasurements map.
*/
var queueMeasurementForCorrelationId = this.queueMeasurements.get(correlationId);
if (!queueMeasurementForCorrelationId) {
this.logger.trace("PerformanceClient: no queue measurements found for for correlationId: " + correlationId);
}
var totalQueueTime = 0;
var totalQueueCount = 0;
queueMeasurementForCorrelationId === null || queueMeasurementForCorrelationId === void 0 ? void 0 : queueMeasurementForCorrelationId.forEach(function (measurement) {
totalQueueTime += measurement.queueTime;
totalQueueCount++;
});
var eventsForCorrelationId = this.eventsByCorrelationId.get(correlationId);

@@ -252,5 +352,7 @@ var staticFields = this.staticFieldsByCorrelationId.get(correlationId);

var completedEvents_1 = [];
var incompleteSubsCount_1 = 0;
eventsForCorrelationId.forEach(function (event) {
if (event.name !== measureName && event.status !== PerformanceEventStatus.Completed) {
_this.logger.trace("PerformanceClient: Incomplete submeasurement " + event.name + " found for " + measureName, correlationId);
incompleteSubsCount_1++;
var completedEvent = _this.endMeasurement(event);

@@ -297,3 +399,4 @@ if (completedEvent) {

}, topLevelEvent);
var finalEvent = __assign(__assign(__assign({}, eventToEmit), staticFields), counters);
var finalEvent = __assign(__assign(__assign(__assign({}, eventToEmit), staticFields), counters), { queuedTimeMs: totalQueueTime, queuedCount: totalQueueCount, incompleteSubsCount: incompleteSubsCount_1 });
this.truncateIntegralFields(finalEvent, this.getIntFields());
this.emitEvents([finalEvent], eventToEmit.correlationId);

@@ -329,2 +432,6 @@ }

this.countersByCorrelationId.delete(correlationId);
this.logger.trace("PerformanceClient: QueueMeasurements discarded", correlationId);
this.queueMeasurements.delete(correlationId);
this.logger.trace("PerformanceClient: Pre-queue times discarded", correlationId);
this.preQueueTimeByCorrelationId.delete(correlationId);
};

@@ -373,2 +480,14 @@ /**

};
/**
* Enforce truncation of integral fields in performance event.
* @param {PerformanceEvent} event performance event to update.
* @param {Set<string>} intFields integral fields.
*/
PerformanceClient.prototype.truncateIntegralFields = function (event, intFields) {
intFields.forEach(function (key) {
if (key in event && typeof event[key] === "number") {
event[key] = Math.floor(event[key]);
}
});
};
return PerformanceClient;

@@ -375,0 +494,0 @@ }());

@@ -106,2 +106,87 @@ /**

RefreshTokenClientAcquireTokenWithCachedRefreshToken = "refreshTokenClientAcquireTokenWithCachedRefreshToken",
/**
* acquireTokenByRefreshToken API in RefreshTokenClient (msal-common).
*/
RefreshTokenClientAcquireTokenByRefreshToken = "refreshTokenClientAcquireTokenByRefreshToken",
/**
* Helper function to create token request body in RefreshTokenClient (msal-common).
*/
RefreshTokenClientCreateTokenRequestBody = "refreshTokenClientCreateTokenRequestBody",
/**
* acquireTokenFromCache (msal-browser).
* Internal API for acquiring token from cache
*/
AcquireTokenFromCache = "acquireTokenFromCache",
/**
* acquireTokenBySilentIframe (msal-browser).
* Internal API for acquiring token by silent Iframe
*/
AcquireTokenBySilentIframe = "acquireTokenBySilentIframe",
/**
* Internal API for initializing base request in BaseInteractionClient (msal-browser)
*/
InitializeBaseRequest = "initializeBaseRequest",
/**
* Internal API for initializing silent request in SilentCacheClient (msal-browser)
*/
InitializeSilentRequest = "initializeSilentRequest",
/**
* Helper function in SilentIframeClient class (msal-browser).
*/
SilentIframeClientTokenHelper = "silentIframeClientTokenHelper",
/**
* SilentHandler
*/
SilentHandlerInitiateAuthRequest = "silentHandlerInitiateAuthRequest",
SilentHandlerMonitorIframeForHash = "silentHandlerMonitorIframeForHash",
SilentHandlerLoadFrame = "silentHandlerLoadFrame",
/**
* Helper functions in StandardInteractionClient class (msal-browser)
*/
StandardInteractionClientCreateAuthCodeClient = "standardInteractionClientCreateAuthCodeClient",
StandardInteractionClientGetClientConfiguration = "standardInteractionClientGetClientConfiguration",
StandardInteractionClientInitializeAuthorizationRequest = "standardInteractionClientInitializeAuthorizationRequest",
StandardInteractionClientInitializeAuthorizationCodeRequest = "standardInteractionClientInitializeAuthorizationCodeRequest",
/**
* getAuthCodeUrl API (msal-browser and msal-node).
*/
GetAuthCodeUrl = "getAuthCodeUrl",
/**
* Functions from InteractionHandler (msal-browser)
*/
HandleCodeResponseFromServer = "handleCodeResponseFromServer",
HandleCodeResponseFromHash = "handleCodeResponseFromHash",
UpdateTokenEndpointAuthority = "updateTokenEndpointAuthority",
/**
* APIs in Authorization Code Client (msal-common)
*/
AuthClientAcquireToken = "authClientAcquireToken",
AuthClientExecuteTokenRequest = "authClientExecuteTokenRequest",
AuthClientCreateTokenRequestBody = "authClientCreateTokenRequestBody",
AuthClientCreateQueryString = "authClientCreateQueryString",
/**
* Generate functions in PopTokenGenerator (msal-common)
*/
PopTokenGenerateCnf = "popTokenGenerateCnf",
PopTokenGenerateKid = "popTokenGenerateKid",
/**
* handleServerTokenResponse API in ResponseHandler (msal-common)
*/
HandleServerTokenResponse = "handleServerTokenResponse",
/**
* Authority functions
*/
AuthorityFactoryCreateDiscoveredInstance = "authorityFactoryCreateDiscoveredInstance",
AuthorityResolveEndpointsAsync = "authorityResolveEndpointsAsync",
AuthorityGetCloudDiscoveryMetadataFromNetwork = "authorityGetCloudDiscoveryMetadataFromNetwork",
AuthorityUpdateCloudDiscoveryMetadata = "authorityUpdateCloudDiscoveryMetadata",
AuthorityGetEndpointMetadataFromNetwork = "authorityGetEndpointMetadataFromNetwork",
AuthorityUpdateEndpointMetadata = "authorityUpdateEndpointMetadata",
AuthorityUpdateMetadataWithRegionalInformation = "authorityUpdateMetadataWithRegionalInformation",
/**
* Region Discovery functions
*/
RegionDiscoveryDetectRegion = "regionDiscoveryDetectRegion",
RegionDiscoveryGetRegionFromIMDS = "regionDiscoveryGetRegionFromIMDS",
RegionDiscoveryGetCurrentVersion = "regionDiscoveryGetCurrentVersion",
AcquireTokenByCodeAsync = "acquireTokenByCodeAsync",

@@ -187,6 +272,2 @@ GetEndpointMetadataFromNetwork = "getEndpointMetadataFromNetwork",

httpVerAuthority?: string;
brokerInteractionTimeoutMs?: number;
brokerMessageTimeoutMs?: number;
brokerHandshakeTimeoutMs?: number;
brokerIframeTimeoutMs?: number;
};

@@ -198,2 +279,3 @@ /**

visibilityChangeCount?: number;
incompleteSubsCount?: number;
};

@@ -318,3 +400,22 @@ /**

requestId?: string;
/**
* Cache lookup policy
*
* @type {?number}
*/
cacheLookupPolicy?: number | undefined;
/**
* Amount of time spent in the JS queue in milliseconds.
*
* @type {?number}
*/
queuedTimeMs?: number;
/**
* Amount of times queued in the JS event queue.
*
* @type {?number}
*/
queuedCount?: number;
};
export declare const IntFields: ReadonlySet<string>;
//# sourceMappingURL=PerformanceEvent.d.ts.map

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -113,2 +113,87 @@ /*

PerformanceEvents["RefreshTokenClientAcquireTokenWithCachedRefreshToken"] = "refreshTokenClientAcquireTokenWithCachedRefreshToken";
/**
* acquireTokenByRefreshToken API in RefreshTokenClient (msal-common).
*/
PerformanceEvents["RefreshTokenClientAcquireTokenByRefreshToken"] = "refreshTokenClientAcquireTokenByRefreshToken";
/**
* Helper function to create token request body in RefreshTokenClient (msal-common).
*/
PerformanceEvents["RefreshTokenClientCreateTokenRequestBody"] = "refreshTokenClientCreateTokenRequestBody";
/**
* acquireTokenFromCache (msal-browser).
* Internal API for acquiring token from cache
*/
PerformanceEvents["AcquireTokenFromCache"] = "acquireTokenFromCache";
/**
* acquireTokenBySilentIframe (msal-browser).
* Internal API for acquiring token by silent Iframe
*/
PerformanceEvents["AcquireTokenBySilentIframe"] = "acquireTokenBySilentIframe";
/**
* Internal API for initializing base request in BaseInteractionClient (msal-browser)
*/
PerformanceEvents["InitializeBaseRequest"] = "initializeBaseRequest";
/**
* Internal API for initializing silent request in SilentCacheClient (msal-browser)
*/
PerformanceEvents["InitializeSilentRequest"] = "initializeSilentRequest";
/**
* Helper function in SilentIframeClient class (msal-browser).
*/
PerformanceEvents["SilentIframeClientTokenHelper"] = "silentIframeClientTokenHelper";
/**
* SilentHandler
*/
PerformanceEvents["SilentHandlerInitiateAuthRequest"] = "silentHandlerInitiateAuthRequest";
PerformanceEvents["SilentHandlerMonitorIframeForHash"] = "silentHandlerMonitorIframeForHash";
PerformanceEvents["SilentHandlerLoadFrame"] = "silentHandlerLoadFrame";
/**
* Helper functions in StandardInteractionClient class (msal-browser)
*/
PerformanceEvents["StandardInteractionClientCreateAuthCodeClient"] = "standardInteractionClientCreateAuthCodeClient";
PerformanceEvents["StandardInteractionClientGetClientConfiguration"] = "standardInteractionClientGetClientConfiguration";
PerformanceEvents["StandardInteractionClientInitializeAuthorizationRequest"] = "standardInteractionClientInitializeAuthorizationRequest";
PerformanceEvents["StandardInteractionClientInitializeAuthorizationCodeRequest"] = "standardInteractionClientInitializeAuthorizationCodeRequest";
/**
* getAuthCodeUrl API (msal-browser and msal-node).
*/
PerformanceEvents["GetAuthCodeUrl"] = "getAuthCodeUrl";
/**
* Functions from InteractionHandler (msal-browser)
*/
PerformanceEvents["HandleCodeResponseFromServer"] = "handleCodeResponseFromServer";
PerformanceEvents["HandleCodeResponseFromHash"] = "handleCodeResponseFromHash";
PerformanceEvents["UpdateTokenEndpointAuthority"] = "updateTokenEndpointAuthority";
/**
* APIs in Authorization Code Client (msal-common)
*/
PerformanceEvents["AuthClientAcquireToken"] = "authClientAcquireToken";
PerformanceEvents["AuthClientExecuteTokenRequest"] = "authClientExecuteTokenRequest";
PerformanceEvents["AuthClientCreateTokenRequestBody"] = "authClientCreateTokenRequestBody";
PerformanceEvents["AuthClientCreateQueryString"] = "authClientCreateQueryString";
/**
* Generate functions in PopTokenGenerator (msal-common)
*/
PerformanceEvents["PopTokenGenerateCnf"] = "popTokenGenerateCnf";
PerformanceEvents["PopTokenGenerateKid"] = "popTokenGenerateKid";
/**
* handleServerTokenResponse API in ResponseHandler (msal-common)
*/
PerformanceEvents["HandleServerTokenResponse"] = "handleServerTokenResponse";
/**
* Authority functions
*/
PerformanceEvents["AuthorityFactoryCreateDiscoveredInstance"] = "authorityFactoryCreateDiscoveredInstance";
PerformanceEvents["AuthorityResolveEndpointsAsync"] = "authorityResolveEndpointsAsync";
PerformanceEvents["AuthorityGetCloudDiscoveryMetadataFromNetwork"] = "authorityGetCloudDiscoveryMetadataFromNetwork";
PerformanceEvents["AuthorityUpdateCloudDiscoveryMetadata"] = "authorityUpdateCloudDiscoveryMetadata";
PerformanceEvents["AuthorityGetEndpointMetadataFromNetwork"] = "authorityGetEndpointMetadataFromNetwork";
PerformanceEvents["AuthorityUpdateEndpointMetadata"] = "authorityUpdateEndpointMetadata";
PerformanceEvents["AuthorityUpdateMetadataWithRegionalInformation"] = "authorityUpdateMetadataWithRegionalInformation";
/**
* Region Discovery functions
*/
PerformanceEvents["RegionDiscoveryDetectRegion"] = "regionDiscoveryDetectRegion";
PerformanceEvents["RegionDiscoveryGetRegionFromIMDS"] = "regionDiscoveryGetRegionFromIMDS";
PerformanceEvents["RegionDiscoveryGetCurrentVersion"] = "regionDiscoveryGetCurrentVersion";
PerformanceEvents["AcquireTokenByCodeAsync"] = "acquireTokenByCodeAsync";

@@ -133,4 +218,15 @@ PerformanceEvents["GetEndpointMetadataFromNetwork"] = "getEndpointMetadataFromNetwork";

})(PerformanceEventStatus || (PerformanceEventStatus = {}));
var IntFields = new Set([
"accessTokenSize",
"durationMs",
"idTokenSize",
"matsSilentStatus",
"matsHttpStatus",
"refreshTokenSize",
"queuedTimeMs",
"startTimeMs",
"status",
]);
export { PerformanceEventStatus, PerformanceEvents };
export { IntFields, PerformanceEventStatus, PerformanceEvents };
//# sourceMappingURL=PerformanceEvent.js.map
import { IPerformanceClient } from "./IPerformanceClient";
import { IPerformanceMeasurement } from "./IPerformanceMeasurement";
import { PerformanceClient } from "./PerformanceClient";
import { PerformanceEvents } from "./PerformanceEvent";
export declare class StubPerformanceMeasurement implements IPerformanceMeasurement {

@@ -13,3 +14,6 @@ startMeasurement(): void;

startPerformanceMeasurement(): IPerformanceMeasurement;
calculateQueuedTime(preQueueTime: number, currentTime: number): number;
addQueueMeasurement(eventName: PerformanceEvents, correlationId: string, queueTime: number): void;
setPreQueueTime(eventName: PerformanceEvents, correlationId?: string | undefined): void;
}
//# sourceMappingURL=StubPerformanceClient.d.ts.map

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -36,2 +36,14 @@ import { __extends } from '../../_virtual/_tslib.js';

};
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
StubPerformanceClient.prototype.calculateQueuedTime = function (preQueueTime, currentTime) {
return 0;
};
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
StubPerformanceClient.prototype.addQueueMeasurement = function (eventName, correlationId, queueTime) {
return;
};
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
StubPerformanceClient.prototype.setPreQueueTime = function (eventName, correlationId) {
return;
};
return StubPerformanceClient;

@@ -38,0 +50,0 @@ }(PerformanceClient));

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ import { SERVER_TELEM_CONSTANTS, CacheOutcome, Constants, Separators } from '../../utils/Constants.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ import { ClientConfigurationError } from '../error/ClientConfigurationError.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ import { __spreadArrays } from '../_virtual/_tslib.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ import { StringUtils } from './StringUtils.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ import { ClientAuthError } from '../error/ClientAuthError.js';

@@ -1,2 +0,2 @@

/*! @azure/msal-common v9.1.1 2023-01-19 */
/*! @azure/msal-common v10.0.0 2023-02-06 */
'use strict';

@@ -3,0 +3,0 @@ /*

@@ -13,3 +13,3 @@ {

},
"version": "9.1.1",
"version": "10.0.0",
"description": "Microsoft Authentication Library for js",

@@ -16,0 +16,0 @@ "keywords": [

@@ -0,0 +0,0 @@ # Microsoft Authentication Library for JavaScript (MSAL.js) Common Protocols Package

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc