@azure/msal-browser
Advanced tools
Comparing version 2.25.0 to 2.26.0
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ /*! ***************************************************************************** |
@@ -195,11 +195,15 @@ import { AccountInfo, INetworkModule, AuthenticationResult, Logger, CommonSilentFlowRequest, ICrypto, PerformanceCallbackFunction, IPerformanceClient, BaseAuthRequest } from "@azure/msal-common"; | ||
* Helper to validate app environment before making an auth request | ||
* * @param interactionType | ||
* | ||
* @protected | ||
* @param {InteractionType} interactionType What kind of interaction is being used | ||
* @param {boolean} [setInteractionInProgress=true] Whether to set interaction in progress temp cache flag | ||
*/ | ||
protected preflightBrowserEnvironmentCheck(interactionType: InteractionType): void; | ||
protected preflightBrowserEnvironmentCheck(interactionType: InteractionType, setInteractionInProgress?: boolean): void; | ||
/** | ||
* Helper to validate app environment before making a request. | ||
* @param request | ||
* @param interactionType | ||
* Preflight check for interactive requests | ||
* | ||
* @protected | ||
* @param {boolean} setInteractionInProgress Whether to set interaction in progress temp cache flag | ||
*/ | ||
protected preflightInteractiveRequest(): void; | ||
protected preflightInteractiveRequest(setInteractionInProgress: boolean): void; | ||
/** | ||
@@ -206,0 +210,0 @@ * Acquire a token from native device (e.g. WAM) |
@@ -1,6 +0,6 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
import { __awaiter, __generator, __assign } from '../_virtual/_tslib.js'; | ||
import { CryptoOps } from '../crypto/CryptoOps.js'; | ||
import { Constants, PerformanceEvents, PromptValue, StringUtils, Logger, StubPerformanceClient, DEFAULT_CRYPTO_IMPLEMENTATION, ServerError, InteractionRequiredAuthError } from '@azure/msal-common'; | ||
import { Constants, PerformanceEvents, PromptValue, AuthError, StringUtils, Logger, StubPerformanceClient, DEFAULT_CRYPTO_IMPLEMENTATION, ServerError, InteractionRequiredAuthError } from '@azure/msal-common'; | ||
import { BrowserCacheManager, DEFAULT_BROWSER_CACHE_MANAGER } from '../cache/BrowserCacheManager.js'; | ||
@@ -323,2 +323,4 @@ import { buildConfiguration } from '../config/Configuration.js'; | ||
atPopupMeasurement.endMeasurement({ | ||
errorCode: e.errorCode, | ||
subErrorCode: e.subError, | ||
success: false | ||
@@ -377,3 +379,4 @@ }); | ||
ssoSilentMeasurement.endMeasurement({ | ||
success: true | ||
success: true, | ||
isNativeBroker: response.fromNativeBroker | ||
}); | ||
@@ -385,2 +388,4 @@ ssoSilentMeasurement.flushMeasurement(); | ||
ssoSilentMeasurement.endMeasurement({ | ||
errorCode: e.errorCode, | ||
subErrorCode: e.subError, | ||
success: false | ||
@@ -425,3 +430,4 @@ }); | ||
atbcMeasurement.endMeasurement({ | ||
success: true | ||
success: true, | ||
isNativeBroker: result.fromNativeBroker | ||
}); | ||
@@ -435,2 +441,4 @@ atbcMeasurement.flushMeasurement(); | ||
atbcMeasurement.endMeasurement({ | ||
errorCode: error.errorCode, | ||
subErrorCode: error.subError, | ||
success: false | ||
@@ -473,2 +481,4 @@ }); | ||
atbcMeasurement.endMeasurement({ | ||
errorCode: e instanceof AuthError && e.errorCode || undefined, | ||
subErrorCode: e instanceof AuthError && e.subError || undefined, | ||
success: false | ||
@@ -549,2 +559,4 @@ }); | ||
atbrtMeasurement.endMeasurement({ | ||
errorCode: error.errorCode, | ||
subErrorCode: error.subError, | ||
success: false | ||
@@ -699,5 +711,9 @@ }); | ||
* Helper to validate app environment before making an auth request | ||
* * @param interactionType | ||
* | ||
* @protected | ||
* @param {InteractionType} interactionType What kind of interaction is being used | ||
* @param {boolean} [setInteractionInProgress=true] Whether to set interaction in progress temp cache flag | ||
*/ | ||
ClientApplication.prototype.preflightBrowserEnvironmentCheck = function (interactionType) { | ||
ClientApplication.prototype.preflightBrowserEnvironmentCheck = function (interactionType, setInteractionInProgress) { | ||
if (setInteractionInProgress === void 0) { setInteractionInProgress = true; } | ||
this.logger.verbose("preflightBrowserEnvironmentCheck started"); | ||
@@ -721,11 +737,12 @@ // Block request if not in browser environment | ||
if (interactionType === InteractionType.Redirect || interactionType === InteractionType.Popup) { | ||
this.preflightInteractiveRequest(); | ||
this.preflightInteractiveRequest(setInteractionInProgress); | ||
} | ||
}; | ||
/** | ||
* Helper to validate app environment before making a request. | ||
* @param request | ||
* @param interactionType | ||
* Preflight check for interactive requests | ||
* | ||
* @protected | ||
* @param {boolean} setInteractionInProgress Whether to set interaction in progress temp cache flag | ||
*/ | ||
ClientApplication.prototype.preflightInteractiveRequest = function () { | ||
ClientApplication.prototype.preflightInteractiveRequest = function (setInteractionInProgress) { | ||
this.logger.verbose("preflightInteractiveRequest called, validating app environment"); | ||
@@ -735,3 +752,5 @@ // block the reload if it occurred inside a hidden iframe | ||
// Set interaction in progress temporary cache or throw if alread set. | ||
this.browserStorage.setInteractionInProgress(true); | ||
if (setInteractionInProgress) { | ||
this.browserStorage.setInteractionInProgress(true); | ||
} | ||
}; | ||
@@ -738,0 +757,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ import { BrowserConfigurationAuthError } from '../error/BrowserConfigurationAuthError.js'; |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -119,3 +119,4 @@ import { __extends, __awaiter, __generator, __assign } from '../_virtual/_tslib.js'; | ||
success: true, | ||
fromCache: result.fromCache | ||
fromCache: result.fromCache, | ||
isNativeBroker: result.fromNativeBroker | ||
}); | ||
@@ -128,2 +129,4 @@ atsMeasurement.flushMeasurement(); | ||
atsMeasurement.endMeasurement({ | ||
errorCode: error.errorCode, | ||
subErrorCode: error.subError, | ||
success: false | ||
@@ -197,3 +200,4 @@ }); | ||
success: true, | ||
fromCache: response.fromCache | ||
fromCache: response.fromCache, | ||
isNativeBroker: response.fromNativeBroker | ||
}); | ||
@@ -204,2 +208,4 @@ return response; | ||
astsAsyncMeasurement.endMeasurement({ | ||
errorCode: tokenRenewalError.errorCode, | ||
subErrorCode: tokenRenewalError.subError, | ||
success: false | ||
@@ -206,0 +212,0 @@ }); |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ import { __awaiter, __generator } from '../../_virtual/_tslib.js'; |
@@ -18,3 +18,3 @@ /** | ||
id_token: string; | ||
properties: object; | ||
properties: NativeResponseProperties; | ||
scopes: string; | ||
@@ -25,2 +25,27 @@ state: string; | ||
}; | ||
/** | ||
* Properties returned under "properties" of the NativeResponse | ||
*/ | ||
export declare type NativeResponseProperties = { | ||
MATS?: string; | ||
}; | ||
/** | ||
* The native token broker can optionally include additional information about operations it performs. If that data is returned, MSAL.js will include the following properties in the telemetry it collects. | ||
*/ | ||
export declare type MATS = { | ||
is_cached?: number; | ||
broker_version?: string; | ||
account_join_on_start?: string; | ||
account_join_on_end?: string; | ||
device_join?: string; | ||
prompt_behavior?: string; | ||
api_error_code?: number; | ||
ui_visible?: boolean; | ||
silent_code?: number; | ||
silent_bi_sub_code?: number; | ||
silent_message?: string; | ||
silent_status?: number; | ||
http_status?: number; | ||
http_event_count?: number; | ||
}; | ||
//# sourceMappingURL=NativeResponse.d.ts.map |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ import { __awaiter, __generator } from '../_virtual/_tslib.js'; |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ import { __extends, __spread, __awaiter, __generator } from '../_virtual/_tslib.js'; |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ import { BrowserConfigurationAuthError } from '../error/BrowserConfigurationAuthError.js'; |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ import { __awaiter, __generator } from '../_virtual/_tslib.js'; |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -77,4 +77,4 @@ import { Authority, IdTokenEntity, AuthToken, AccountEntity, ScopeSet, AccessTokenEntity } from '@azure/msal-common'; | ||
var accountEntity = options.clientInfo ? | ||
AccountEntity.createAccount(options.clientInfo, homeAccountId, idAuthToken, undefined, undefined, undefined, undefined, environment) : | ||
AccountEntity.createGenericAccount(homeAccountId, idAuthToken, undefined, undefined, undefined, undefined, environment); | ||
AccountEntity.createAccount(options.clientInfo, homeAccountId, idAuthToken, undefined, undefined, undefined, environment) : | ||
AccountEntity.createGenericAccount(homeAccountId, idAuthToken, undefined, undefined, undefined, environment); | ||
if (this.isBrowserEnvironment) { | ||
@@ -81,0 +81,0 @@ this.logger.verbose("TokenCache - loading id token"); |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ import { __assign } from '../_virtual/_tslib.js'; |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ import { __awaiter, __generator } from '../_virtual/_tslib.js'; |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ import { __awaiter, __generator } from '../_virtual/_tslib.js'; |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ import { Constants } from '@azure/msal-common'; |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ import { __awaiter, __generator } from '../_virtual/_tslib.js'; |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ import { __awaiter, __generator } from '../_virtual/_tslib.js'; |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ import { Constants } from '@azure/msal-common'; |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ import { Constants } from '@azure/msal-common'; |
@@ -255,3 +255,3 @@ import { AuthError } from "@azure/msal-common"; | ||
/** | ||
* Creates an error thrown when navigateWindow is called inside an iframe. | ||
* Creates an error thrown when navigateWindow is called inside an iframe or brokered applications. | ||
* @param windowParentCheck | ||
@@ -258,0 +258,0 @@ */ |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -76,3 +76,3 @@ import { __extends } from '../_virtual/_tslib.js'; | ||
code: "redirect_in_iframe", | ||
desc: "Code flow is not supported inside an iframe. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs." | ||
desc: "Redirects are not supported for iframed or brokered applications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs." | ||
}, | ||
@@ -302,3 +302,3 @@ blockTokenRequestsInHiddenIframeError: { | ||
/** | ||
* Creates an error thrown when navigateWindow is called inside an iframe. | ||
* Creates an error thrown when navigateWindow is called inside an iframe or brokered applications. | ||
* @param windowParentCheck | ||
@@ -305,0 +305,0 @@ */ |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ import { __extends } from '../_virtual/_tslib.js'; |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ import { __extends } from '../_virtual/_tslib.js'; |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ import { AccountEntity, CacheManager } from '@azure/msal-common'; |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ import { EventType } from './EventType.js'; |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ import * as internals from './internals.js'; |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ import { __awaiter, __generator, __spread, __assign } from '../_virtual/_tslib.js'; |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ import { __extends } from '../_virtual/_tslib.js'; |
@@ -52,2 +52,14 @@ import { AuthenticationResult, Logger, ICrypto, IPerformanceClient } from "@azure/msal-common"; | ||
/** | ||
* Gets MATS telemetry from native response | ||
* @param response | ||
* @returns | ||
*/ | ||
private getMATSFromResponse; | ||
/** | ||
* Returns whether or not response came from native cache | ||
* @param response | ||
* @returns | ||
*/ | ||
private isResponseFromCache; | ||
/** | ||
* Translates developer provided request object into NativeRequest object | ||
@@ -54,0 +66,0 @@ * @param request |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -6,3 +6,3 @@ import { __extends, __awaiter, __generator, __assign } from '../_virtual/_tslib.js'; | ||
import { BaseInteractionClient } from './BaseInteractionClient.js'; | ||
import { TemporaryCacheKeys, NativeExtensionMethod, ApiId } from '../utils/BrowserConstants.js'; | ||
import { TemporaryCacheKeys, NativeExtensionMethod, ApiId, NativeConstants } from '../utils/BrowserConstants.js'; | ||
import { NativeAuthError } from '../error/NativeAuthError.js'; | ||
@@ -59,2 +59,4 @@ import { BrowserAuthError } from '../error/BrowserAuthError.js'; | ||
success: false, | ||
errorCode: error.errorCode, | ||
subErrorCode: error.subError, | ||
isNativeBroker: true | ||
@@ -178,3 +180,3 @@ }); | ||
return __awaiter(this, void 0, void 0, function () { | ||
var idTokenObj, authority, authorityPreferredCache, homeAccountIdentifier, accountEntity, responseScopes, accountProperties, uid, tid, responseAccessToken, responseTokenType, _a, popTokenGenerator, shrParameters, result; | ||
var idTokenObj, authority, authorityPreferredCache, homeAccountIdentifier, accountEntity, responseScopes, accountProperties, uid, tid, responseAccessToken, responseTokenType, _a, popTokenGenerator, shrParameters, mats, result; | ||
var _this = this; | ||
@@ -195,3 +197,3 @@ return __generator(this, function (_b) { | ||
homeAccountIdentifier = AccountEntity.generateHomeAccountId(response.client_info || Constants.EMPTY_STRING, AuthorityType.Default, this.logger, this.browserCrypto, idTokenObj); | ||
accountEntity = AccountEntity.createAccount(response.client_info, homeAccountIdentifier, idTokenObj, undefined, undefined, undefined, undefined, authorityPreferredCache, response.account.id); | ||
accountEntity = AccountEntity.createAccount(response.client_info, homeAccountIdentifier, idTokenObj, undefined, undefined, undefined, authorityPreferredCache, response.account.id); | ||
this.browserStorage.setAccount(accountEntity); | ||
@@ -241,2 +243,3 @@ responseScopes = response.scopes ? ScopeSet.fromString(response.scopes) : ScopeSet.fromString(request.scopes); | ||
case 5: | ||
mats = this.getMATSFromResponse(response); | ||
result = { | ||
@@ -251,3 +254,3 @@ authority: authority.canonicalAuthority, | ||
accessToken: responseAccessToken, | ||
fromCache: false, | ||
fromCache: mats ? this.isResponseFromCache(mats) : false, | ||
expiresOn: new Date(Number(reqTimestamp + response.expires_in) * 1000), | ||
@@ -286,2 +289,30 @@ tokenType: responseTokenType, | ||
/** | ||
* Gets MATS telemetry from native response | ||
* @param response | ||
* @returns | ||
*/ | ||
NativeInteractionClient.prototype.getMATSFromResponse = function (response) { | ||
if (response.properties.MATS) { | ||
try { | ||
return JSON.parse(response.properties.MATS); | ||
} | ||
catch (e) { | ||
this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead"); | ||
} | ||
} | ||
return null; | ||
}; | ||
/** | ||
* Returns whether or not response came from native cache | ||
* @param response | ||
* @returns | ||
*/ | ||
NativeInteractionClient.prototype.isResponseFromCache = function (mats) { | ||
if (typeof mats.is_cached === "undefined") { | ||
this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."); | ||
return false; | ||
} | ||
return !!mats.is_cached; | ||
}; | ||
/** | ||
* Translates developer provided request object into NativeRequest object | ||
@@ -314,3 +345,3 @@ * @param request | ||
} | ||
validatedRequest = __assign(__assign({}, request), { accountId: this.accountId, clientId: this.config.auth.clientId, authority: canonicalAuthority.urlString, scopes: scopeSet.printScopes(), redirectUri: this.getRedirectUri(request.redirectUri), correlationId: this.correlationId, tokenType: request.authenticationScheme, windowTitleSubstring: document.title, extraParameters: __assign(__assign({}, request.extraQueryParameters), request.tokenQueryParameters), extendedExpiryToken: false // Make this configurable? | ||
validatedRequest = __assign(__assign({}, request), { accountId: this.accountId, clientId: this.config.auth.clientId, authority: canonicalAuthority.urlString, scopes: scopeSet.printScopes(), redirectUri: this.getRedirectUri(request.redirectUri), correlationId: this.correlationId, tokenType: request.authenticationScheme, windowTitleSubstring: document.title, extraParameters: __assign(__assign(__assign({}, request.extraQueryParameters), request.tokenQueryParameters), { telemetry: NativeConstants.MATS_TELEMETRY }), extendedExpiryToken: false // Make this configurable? | ||
}); | ||
@@ -317,0 +348,0 @@ if (!(request.authenticationScheme === AuthenticationScheme.POP)) return [3 /*break*/, 2]; |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ import { __extends, __awaiter, __generator, __assign } from '../_virtual/_tslib.js'; |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ import { __extends, __awaiter, __generator, __assign } from '../_virtual/_tslib.js'; |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ import { __extends, __awaiter, __generator, __assign } from '../_virtual/_tslib.js'; |
@@ -1,6 +0,6 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
import { __extends, __awaiter, __generator, __assign } from '../_virtual/_tslib.js'; | ||
import { StandardInteractionClient } from './StandardInteractionClient.js'; | ||
import { PerformanceEvents, SilentFlowClient } from '@azure/msal-common'; | ||
import { AuthError, PerformanceEvents, SilentFlowClient } from '@azure/msal-common'; | ||
import { ApiId } from '../utils/BrowserConstants.js'; | ||
@@ -51,2 +51,4 @@ import { BrowserAuthError, BrowserAuthErrorMessage } from '../error/BrowserAuthError.js'; | ||
acquireTokenMeasurement.endMeasurement({ | ||
errorCode: error_1 instanceof AuthError && error_1.errorCode || undefined, | ||
subErrorCode: error_1 instanceof AuthError && error_1.subError || undefined, | ||
success: false | ||
@@ -53,0 +55,0 @@ }); |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -74,2 +74,4 @@ import { __extends, __awaiter, __generator, __assign } from '../_virtual/_tslib.js'; | ||
acquireTokenMeasurement.endMeasurement({ | ||
errorCode: e_1 instanceof AuthError && e_1.errorCode || undefined, | ||
subErrorCode: e_1 instanceof AuthError && e_1.subError || undefined, | ||
success: false | ||
@@ -76,0 +78,0 @@ }); |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -54,2 +54,4 @@ import { __extends, __awaiter, __generator, __assign } from '../_virtual/_tslib.js'; | ||
acquireTokenMeasurement.endMeasurement({ | ||
errorCode: e.errorCode, | ||
subErrorCode: e.subError, | ||
success: false | ||
@@ -56,0 +58,0 @@ }); |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -240,2 +240,4 @@ import { __extends, __awaiter, __generator, __assign } from '../_virtual/_tslib.js'; | ||
getAuthorityMeasurement.endMeasurement({ | ||
errorCode: error.errorCode, | ||
subErrorCode: error.subError, | ||
success: false | ||
@@ -242,0 +244,0 @@ }); |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ import { __awaiter, __generator } from '../_virtual/_tslib.js'; |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ import { __extends, __awaiter, __generator } from '../_virtual/_tslib.js'; |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ import { __extends, __awaiter, __generator } from '../_virtual/_tslib.js'; |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ export { BrowserCacheManager } from './cache/BrowserCacheManager.js'; |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ import { __awaiter, __generator } from '../_virtual/_tslib.js'; |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ import { __awaiter, __generator } from '../_virtual/_tslib.js'; |
export declare const name = "@azure/msal-browser"; | ||
export declare const version = "2.25.0"; | ||
export declare const version = "2.26.0"; | ||
//# sourceMappingURL=packageMetadata.d.ts.map |
@@ -1,8 +0,8 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
/* eslint-disable header/header */ | ||
var name = "@azure/msal-browser"; | ||
var version = "2.25.0"; | ||
var version = "2.26.0"; | ||
export { name, version }; | ||
//# sourceMappingURL=packageMetadata.js.map |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ import { __extends, __assign } from '../_virtual/_tslib.js'; |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -39,2 +39,3 @@ import { PopupRequest } from "../request/PopupRequest"; | ||
PREFERRED_EXTENSION_ID: string; | ||
MATS_TELEMETRY: string; | ||
}; | ||
@@ -41,0 +42,0 @@ export declare enum NativeExtensionMethod { |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -44,3 +44,4 @@ import { OIDC_DEFAULT_SCOPES } from '@azure/msal-common'; | ||
CHANNEL_ID: "53ee284d-920a-4b59-9d30-a60315b26836", | ||
PREFERRED_EXTENSION_ID: "ppnbnpeolgkicgegkbkbjmhlideopiji" | ||
PREFERRED_EXTENSION_ID: "ppnbnpeolgkicgegkbkbjmhlideopiji", | ||
MATS_TELEMETRY: "MATS" | ||
}; | ||
@@ -47,0 +48,0 @@ var NativeExtensionMethod; |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ import { StringUtils, ProtocolUtils, ClientAuthError, UrlString } from '@azure/msal-common'; |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ import { Constants } from '@azure/msal-common'; |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ import { Constants, UrlString } from '@azure/msal-common'; |
@@ -1,2 +0,2 @@ | ||
/*! @azure/msal-browser v2.25.0 2022-06-06 */ | ||
/*! @azure/msal-browser v2.26.0 2022-06-13 */ | ||
'use strict'; | ||
@@ -3,0 +3,0 @@ /* |
@@ -13,3 +13,3 @@ { | ||
}, | ||
"version": "2.25.0", | ||
"version": "2.26.0", | ||
"description": "Microsoft Authentication Library for js", | ||
@@ -95,4 +95,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@azure/msal-common": "^6.4.0" | ||
"@azure/msal-common": "^7.0.0" | ||
} | ||
} |
@@ -62,3 +62,3 @@ # Microsoft Authentication Library for JavaScript (MSAL.js) 2.0 for Browser-Based Single-Page Applications | ||
```html | ||
<script type="text/javascript" src="https://alcdn.msauth.net/browser/2.25.0/js/msal-browser.min.js"></script> | ||
<script type="text/javascript" src="https://alcdn.msauth.net/browser/2.26.0/js/msal-browser.min.js"></script> | ||
``` | ||
@@ -65,0 +65,0 @@ |
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 too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
5572361
44562
+ Added@azure/msal-common@7.6.0(transitive)
- Removed@azure/msal-common@6.4.0(transitive)
Updated@azure/msal-common@^7.0.0