Socket
Socket
Sign inDemoInstall

@azure/msal-browser

Package Overview
Dependencies
1
Maintainers
3
Versions
110
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.29.0 to 2.30.0

2

dist/_virtual/_tslib.js

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

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

import { ExternalTokenResponse } from "@azure/msal-common";
import { ExternalTokenResponse, AuthenticationResult } from "@azure/msal-common";
import { SilentRequest } from "../request/SilentRequest";
import { LoadTokenOptions } from "./TokenCache";
export interface ITokenCache {
/** API to side-load tokens to MSAL cache */
loadExternalTokens(request: SilentRequest, response: ExternalTokenResponse, options: LoadTokenOptions): void;
/**
* API to side-load tokens to MSAL cache
* @returns `AuthenticationResult` for the response that was loaded.
*/
loadExternalTokens(request: SilentRequest, response: ExternalTokenResponse, options: LoadTokenOptions): AuthenticationResult;
}
//# sourceMappingURL=ITokenCache.d.ts.map

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

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

import { ICrypto, Logger, ExternalTokenResponse } from "@azure/msal-common";
import { ICrypto, Logger, ExternalTokenResponse, AuthenticationResult } from "@azure/msal-common";
import { BrowserConfiguration } from "../config/Configuration";

@@ -26,5 +26,16 @@ import { SilentRequest } from "../request/SilentRequest";

* @param options
* @returns `AuthenticationResult` for the response that was loaded.
*/
loadExternalTokens(request: SilentRequest, response: ExternalTokenResponse, options: LoadTokenOptions): void;
loadExternalTokens(request: SilentRequest, response: ExternalTokenResponse, options: LoadTokenOptions): AuthenticationResult;
/**
* Helper function to load account to msal-browser cache
* @param idToken
* @param environment
* @param clientInfo
* @param authorityType
* @param requestHomeAccountId
* @returns `AccountEntity`
*/
private loadAccount;
/**
* Helper function to load id tokens to msal-browser cache

@@ -35,3 +46,3 @@ * @param idToken

* @param tenantId
* @param options
* @returns `IdTokenEntity`
*/

@@ -43,10 +54,27 @@ private loadIdToken;

* @param response
* @param options
* @param homeAccountId
* @param environment
* @param tenantId
* @returns
* @returns `AccessTokenEntity`
*/
private loadAccessToken;
/**
* Helper function to load refresh tokens to msal-browser cache
* @param request
* @param response
* @param homeAccountId
* @param environment
* @returns `RefreshTokenEntity`
*/
private loadRefreshToken;
/**
* Helper function to generate an `AuthenticationResult` for the result.
* @param request
* @param idTokenObj
* @param cacheRecord
* @param authority
* @returns `AuthenticationResult`
*/
private generateAuthenticationResult;
}
//# sourceMappingURL=TokenCache.d.ts.map

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';
import { Authority, IdTokenEntity, AuthToken, AccountEntity, ScopeSet, AccessTokenEntity } from '@azure/msal-common';
import { AuthToken, CacheRecord, Authority, AccountEntity, IdTokenEntity, ScopeSet, AccessTokenEntity, RefreshTokenEntity, Constants } from '@azure/msal-common';
import { BrowserAuthError } from '../error/BrowserAuthError.js';

@@ -27,2 +27,3 @@

* @param options
* @returns `AuthenticationResult` for the response that was loaded.
*/

@@ -34,5 +35,8 @@ TokenCache.prototype.loadExternalTokens = function (request, response, options) {

}
var idToken = new AuthToken(response.id_token, this.cryptoObj);
var cacheRecord;
var authority;
if (request.account) {
this.loadIdToken(response.id_token, request.account.homeAccountId, request.account.environment, request.account.tenantId, options);
this.loadAccessToken(request, response, request.account.homeAccountId, request.account.environment, request.account.tenantId, options);
var cacheRecordAccount = this.loadAccount(idToken, request.account.environment, undefined, undefined, request.account.homeAccountId);
cacheRecord = new CacheRecord(cacheRecordAccount, this.loadIdToken(idToken, cacheRecordAccount.homeAccountId, request.account.environment, request.account.tenantId), this.loadAccessToken(request, response, cacheRecordAccount.homeAccountId, request.account.environment, request.account.tenantId, options), this.loadRefreshToken(request, response, cacheRecordAccount.homeAccountId, request.account.environment));
}

@@ -48,13 +52,13 @@ else if (request.authority) {

};
var authority = new Authority(authorityUrl, this.config.system.networkClient, this.storage, authorityOptions);
authority = new Authority(authorityUrl, this.config.system.networkClient, this.storage, authorityOptions);
// "clientInfo" from options takes precedence over "clientInfo" in response
if (options.clientInfo) {
this.logger.trace("TokenCache - homeAccountId from options");
this.loadIdToken(response.id_token, options.clientInfo, authority.hostnameAndPort, authority.tenant, options);
this.loadAccessToken(request, response, options.clientInfo, authority.hostnameAndPort, authority.tenant, options);
var cacheRecordAccount = this.loadAccount(idToken, authority.hostnameAndPort, options.clientInfo, authority.authorityType);
cacheRecord = new CacheRecord(cacheRecordAccount, this.loadIdToken(idToken, cacheRecordAccount.homeAccountId, authority.hostnameAndPort, authority.tenant), this.loadAccessToken(request, response, cacheRecordAccount.homeAccountId, authority.hostnameAndPort, authority.tenant, options), this.loadRefreshToken(request, response, cacheRecordAccount.homeAccountId, authority.hostnameAndPort));
}
else if (response.client_info) {
this.logger.trace("TokenCache - homeAccountId from response");
this.loadIdToken(response.id_token, response.client_info, authority.hostnameAndPort, authority.tenant, options);
this.loadAccessToken(request, response, response.client_info, authority.hostnameAndPort, authority.tenant, options);
var cacheRecordAccount = this.loadAccount(idToken, authority.hostnameAndPort, response.client_info, authority.authorityType);
cacheRecord = new CacheRecord(cacheRecordAccount, this.loadIdToken(idToken, cacheRecordAccount.homeAccountId, authority.hostnameAndPort, authority.tenant), this.loadAccessToken(request, response, cacheRecordAccount.homeAccountId, authority.hostnameAndPort, authority.tenant, options), this.loadRefreshToken(request, response, cacheRecordAccount.homeAccountId, authority.hostnameAndPort));
}

@@ -68,4 +72,37 @@ else {

}
return this.generateAuthenticationResult(request, idToken, cacheRecord, authority);
};
/**
* Helper function to load account to msal-browser cache
* @param idToken
* @param environment
* @param clientInfo
* @param authorityType
* @param requestHomeAccountId
* @returns `AccountEntity`
*/
TokenCache.prototype.loadAccount = function (idToken, environment, clientInfo, authorityType, requestHomeAccountId) {
var homeAccountId;
if (requestHomeAccountId) {
homeAccountId = requestHomeAccountId;
}
else if (authorityType !== undefined && clientInfo) {
homeAccountId = AccountEntity.generateHomeAccountId(clientInfo, authorityType, this.logger, this.cryptoObj, idToken);
}
if (!homeAccountId) {
throw BrowserAuthError.createUnableToLoadTokenError("Unexpected missing homeAccountId");
}
var accountEntity = clientInfo ?
AccountEntity.createAccount(clientInfo, homeAccountId, idToken, undefined, undefined, undefined, environment) :
AccountEntity.createGenericAccount(homeAccountId, idToken, undefined, undefined, undefined, environment);
if (this.isBrowserEnvironment) {
this.logger.verbose("TokenCache - loading account");
this.storage.setAccount(accountEntity);
return accountEntity;
}
else {
throw BrowserAuthError.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");
}
};
/**
* Helper function to load id tokens to msal-browser cache

@@ -76,14 +113,10 @@ * @param idToken

* @param tenantId
* @param options
* @returns `IdTokenEntity`
*/
TokenCache.prototype.loadIdToken = function (idToken, homeAccountId, environment, tenantId, options) {
var idTokenEntity = IdTokenEntity.createIdTokenEntity(homeAccountId, environment, idToken, this.config.auth.clientId, tenantId);
var idAuthToken = new AuthToken(idToken, this.cryptoObj);
var accountEntity = options.clientInfo ?
AccountEntity.createAccount(options.clientInfo, homeAccountId, idAuthToken, undefined, undefined, undefined, environment) :
AccountEntity.createGenericAccount(homeAccountId, idAuthToken, undefined, undefined, undefined, environment);
TokenCache.prototype.loadIdToken = function (idToken, homeAccountId, environment, tenantId) {
var idTokenEntity = IdTokenEntity.createIdTokenEntity(homeAccountId, environment, idToken.rawToken, this.config.auth.clientId, tenantId);
if (this.isBrowserEnvironment) {
this.logger.verbose("TokenCache - loading id token");
this.storage.setAccount(accountEntity);
this.storage.setIdTokenCredential(idTokenEntity);
return idTokenEntity;
}

@@ -98,7 +131,6 @@ else {

* @param response
* @param options
* @param homeAccountId
* @param environment
* @param tenantId
* @returns
* @returns `AccessTokenEntity`
*/

@@ -108,3 +140,3 @@ TokenCache.prototype.loadAccessToken = function (request, response, homeAccountId, environment, tenantId, options) {

this.logger.verbose("TokenCache - No access token provided for caching");
return;
return null;
}

@@ -124,2 +156,3 @@ if (!response.expires_in) {

this.storage.setAccessTokenCredential(accessTokenEntity);
return accessTokenEntity;
}

@@ -130,2 +163,70 @@ else {

};
/**
* Helper function to load refresh tokens to msal-browser cache
* @param request
* @param response
* @param homeAccountId
* @param environment
* @returns `RefreshTokenEntity`
*/
TokenCache.prototype.loadRefreshToken = function (request, response, homeAccountId, environment) {
if (!response.refresh_token) {
this.logger.verbose("TokenCache - No refresh token provided for caching");
return null;
}
var refreshTokenEntity = RefreshTokenEntity.createRefreshTokenEntity(homeAccountId, environment, response.refresh_token, this.config.auth.clientId);
if (this.isBrowserEnvironment) {
this.logger.verbose("TokenCache - loading refresh token");
this.storage.setRefreshTokenCredential(refreshTokenEntity);
return refreshTokenEntity;
}
else {
throw BrowserAuthError.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");
}
};
/**
* Helper function to generate an `AuthenticationResult` for the result.
* @param request
* @param idTokenObj
* @param cacheRecord
* @param authority
* @returns `AuthenticationResult`
*/
TokenCache.prototype.generateAuthenticationResult = function (request, idTokenObj, cacheRecord, authority) {
var _a, _b, _c;
var accessToken = Constants.EMPTY_STRING;
var responseScopes = [];
var expiresOn = null;
var extExpiresOn;
if (cacheRecord === null || cacheRecord === void 0 ? void 0 : cacheRecord.accessToken) {
accessToken = cacheRecord.accessToken.secret;
responseScopes = ScopeSet.fromString(cacheRecord.accessToken.target).asArray();
expiresOn = new Date(Number(cacheRecord.accessToken.expiresOn) * 1000);
extExpiresOn = new Date(Number(cacheRecord.accessToken.extendedExpiresOn) * 1000);
}
var uid = (idTokenObj === null || idTokenObj === void 0 ? void 0 : idTokenObj.claims.oid) || (idTokenObj === null || idTokenObj === void 0 ? void 0 : idTokenObj.claims.sub) || Constants.EMPTY_STRING;
var tid = (idTokenObj === null || idTokenObj === void 0 ? void 0 : idTokenObj.claims.tid) || Constants.EMPTY_STRING;
return {
authority: authority ? authority.canonicalAuthority : Constants.EMPTY_STRING,
uniqueId: uid,
tenantId: tid,
scopes: responseScopes,
account: (cacheRecord === null || cacheRecord === void 0 ? void 0 : cacheRecord.account) ? cacheRecord.account.getAccountInfo() : null,
idToken: idTokenObj ? idTokenObj.rawToken : Constants.EMPTY_STRING,
idTokenClaims: idTokenObj ? idTokenObj.claims : {},
accessToken: accessToken,
fromCache: true,
expiresOn: expiresOn,
correlationId: request.correlationId || Constants.EMPTY_STRING,
requestId: Constants.EMPTY_STRING,
extExpiresOn: extExpiresOn,
familyId: Constants.EMPTY_STRING,
tokenType: ((_a = cacheRecord === null || cacheRecord === void 0 ? void 0 : cacheRecord.accessToken) === null || _a === void 0 ? void 0 : _a.tokenType) || Constants.EMPTY_STRING,
state: Constants.EMPTY_STRING,
cloudGraphHostName: ((_b = cacheRecord === null || cacheRecord === void 0 ? void 0 : cacheRecord.account) === null || _b === void 0 ? void 0 : _b.cloudGraphHostName) || Constants.EMPTY_STRING,
msGraphHost: ((_c = cacheRecord === null || cacheRecord === void 0 ? void 0 : cacheRecord.account) === null || _c === void 0 ? void 0 : _c.msGraphHost) || Constants.EMPTY_STRING,
code: undefined,
fromNativeBroker: false
};
};
return TokenCache;

@@ -132,0 +233,0 @@ }());

@@ -131,2 +131,6 @@ import { SystemOptions, LoggerOptions, INetworkModule, ProtocolMode, AzureCloudOptions, ApplicationTelemetry } from "@azure/msal-common";

cryptoOptions?: CryptoOptions;
/**
* Sets the interval length in milliseconds for polling the location attribute in popup windows (default is 30ms)
*/
pollIntervalMilliseconds?: number;
};

@@ -133,0 +137,0 @@ export declare type CryptoOptions = {

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

import { BrowserUtils } from '../utils/BrowserUtils.js';
import { BrowserCacheLocation } from '../utils/BrowserConstants.js';
import { BrowserConstants, BrowserCacheLocation } from '../utils/BrowserConstants.js';
import { NavigationClient } from '../navigation/NavigationClient.js';

@@ -64,3 +64,3 @@

// If loadFrameTimeout is provided, use that as default.
windowHashTimeout: (userInputSystem === null || userInputSystem === void 0 ? void 0 : userInputSystem.loadFrameTimeout) || DEFAULT_POPUP_TIMEOUT_MS, iframeHashTimeout: (userInputSystem === null || userInputSystem === void 0 ? void 0 : userInputSystem.loadFrameTimeout) || DEFAULT_IFRAME_TIMEOUT_MS, navigateFrameWait: isBrowserEnvironment && BrowserUtils.detectIEOrEdge() ? 500 : 0, redirectNavigationTimeout: DEFAULT_REDIRECT_TIMEOUT_MS, asyncPopups: false, allowRedirectInIframe: false, allowNativeBroker: false, nativeBrokerHandshakeTimeout: (userInputSystem === null || userInputSystem === void 0 ? void 0 : userInputSystem.nativeBrokerHandshakeTimeout) || DEFAULT_NATIVE_BROKER_HANDSHAKE_TIMEOUT_MS, cryptoOptions: {
windowHashTimeout: (userInputSystem === null || userInputSystem === void 0 ? void 0 : userInputSystem.loadFrameTimeout) || DEFAULT_POPUP_TIMEOUT_MS, iframeHashTimeout: (userInputSystem === null || userInputSystem === void 0 ? void 0 : userInputSystem.loadFrameTimeout) || DEFAULT_IFRAME_TIMEOUT_MS, navigateFrameWait: isBrowserEnvironment && BrowserUtils.detectIEOrEdge() ? 500 : 0, redirectNavigationTimeout: DEFAULT_REDIRECT_TIMEOUT_MS, asyncPopups: false, allowRedirectInIframe: false, allowNativeBroker: false, nativeBrokerHandshakeTimeout: (userInputSystem === null || userInputSystem === void 0 ? void 0 : userInputSystem.nativeBrokerHandshakeTimeout) || DEFAULT_NATIVE_BROKER_HANDSHAKE_TIMEOUT_MS, pollIntervalMilliseconds: BrowserConstants.DEFAULT_POLL_INTERVAL_MS, cryptoOptions: {
useMsrCrypto: false,

@@ -67,0 +67,0 @@ entropy: undefined

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

@@ -3,0 +3,0 @@ import { Constants } from '@azure/msal-common';

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

@@ -3,0 +3,0 @@ import { Constants } from '@azure/msal-common';

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

@@ -3,0 +3,0 @@ import { Constants } from '@azure/msal-common';

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

@@ -3,0 +3,0 @@ import { AccountEntity, CacheManager } from '@azure/msal-common';

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

@@ -3,0 +3,0 @@ import * as internals from './internals.js';

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

*/
var maxTicks = _this.config.system.windowHashTimeout / BrowserConstants.POLL_INTERVAL_MS;
var maxTicks = _this.config.system.windowHashTimeout / _this.config.system.pollIntervalMilliseconds;
var ticks = 0;

@@ -333,3 +333,3 @@ _this.logger.verbose("PopupHandler.monitorPopupForHash - polling started");

}
}, BrowserConstants.POLL_INTERVAL_MS);
}, _this.config.system.pollIntervalMilliseconds);
});

@@ -372,3 +372,3 @@ };

resolve();
}, BrowserConstants.POLL_INTERVAL_MS);
}, _this.config.system.pollIntervalMilliseconds);
});

@@ -375,0 +375,0 @@ };

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

this.logger.verbose("Auth code client created");
silentHandler = new SilentHandler(authClient, this.browserStorage, authCodeRequest, this.logger, this.config.system.navigateFrameWait);
silentHandler = new SilentHandler(authClient, this.browserStorage, authCodeRequest, this.logger, this.config.system);
// Handle auth code parameters from request

@@ -54,0 +54,0 @@ return [2 /*return*/, silentHandler.handleCodeResponseFromServer({

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

navigateUrl = _a.sent();
silentHandler = new SilentHandler(authClient, this.browserStorage, authCodeRequest, this.logger, this.config.system.navigateFrameWait);
silentHandler = new SilentHandler(authClient, this.browserStorage, authCodeRequest, this.logger, this.config.system);
return [4 /*yield*/, silentHandler.initiateAuthRequest(navigateUrl)];

@@ -114,0 +114,0 @@ case 3:

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

import { CommonAuthorizationCodeRequest, AuthorizationCodeClient, Logger } from "@azure/msal-common";
import { InteractionHandler } from "./InteractionHandler";
import { BrowserCacheManager } from "../cache/BrowserCacheManager";
import { BrowserSystemOptions } from "../config/Configuration";
export declare class SilentHandler extends InteractionHandler {
private navigateFrameWait;
constructor(authCodeModule: AuthorizationCodeClient, storageImpl: BrowserCacheManager, authCodeRequest: CommonAuthorizationCodeRequest, logger: Logger, navigateFrameWait: number);
private pollIntervalMilliseconds;
constructor(authCodeModule: AuthorizationCodeClient, storageImpl: BrowserCacheManager, authCodeRequest: CommonAuthorizationCodeRequest, logger: Logger, systemOptions: Required<Pick<BrowserSystemOptions, "navigateFrameWait" | "pollIntervalMilliseconds">>);
/**

@@ -8,0 +10,0 @@ * Creates a hidden iframe to given URL using user-requested scopes as an id.

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

import { InteractionHandler } from './InteractionHandler.js';
import { BrowserConstants } from '../utils/BrowserConstants.js';
import { BrowserAuthError } from '../error/BrowserAuthError.js';

@@ -17,5 +16,6 @@ import { DEFAULT_IFRAME_TIMEOUT_MS } from '../config/Configuration.js';

__extends(SilentHandler, _super);
function SilentHandler(authCodeModule, storageImpl, authCodeRequest, logger, navigateFrameWait) {
function SilentHandler(authCodeModule, storageImpl, authCodeRequest, logger, systemOptions) {
var _this = _super.call(this, authCodeModule, storageImpl, authCodeRequest, logger) || this;
_this.navigateFrameWait = navigateFrameWait;
_this.navigateFrameWait = systemOptions.navigateFrameWait;
_this.pollIntervalMilliseconds = systemOptions.pollIntervalMilliseconds;
return _this;

@@ -98,3 +98,3 @@ }

}
}, BrowserConstants.POLL_INTERVAL_MS);
}, _this.pollIntervalMilliseconds);
});

@@ -101,0 +101,0 @@ };

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

@@ -3,0 +3,0 @@ export { BrowserCacheManager } from './cache/BrowserCacheManager.js';

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'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.29.0";
export declare const version = "2.30.0";
//# sourceMappingURL=packageMetadata.d.ts.map

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';
/* eslint-disable header/header */
var name = "@azure/msal-browser";
var version = "2.29.0";
var version = "2.30.0";
export { name, version };
//# sourceMappingURL=packageMetadata.js.map

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

@@ -30,3 +30,3 @@ import { PopupRequest } from "../request/PopupRequest";

*/
POLL_INTERVAL_MS: number;
DEFAULT_POLL_INTERVAL_MS: number;
/**

@@ -33,0 +33,0 @@ * Msal-browser SKU

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

@@ -36,3 +36,3 @@ import { OIDC_DEFAULT_SCOPES } from '@azure/msal-common';

*/
POLL_INTERVAL_MS: 50,
DEFAULT_POLL_INTERVAL_MS: 30,
/**

@@ -39,0 +39,0 @@ * Msal-browser SKU

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

@@ -3,0 +3,0 @@ import { StringUtils, ProtocolUtils, ClientAuthError, UrlString } from '@azure/msal-common';

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

@@ -3,0 +3,0 @@ import { Constants } from '@azure/msal-common';

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

@@ -3,0 +3,0 @@ import { Constants, UrlString } from '@azure/msal-common';

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

/*! @azure/msal-browser v2.29.0 2022-10-03 */
/*! @azure/msal-browser v2.30.0 2022-10-10 */
'use strict';

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

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

},
"version": "2.29.0",
"version": "2.30.0",
"description": "Microsoft Authentication Library for js",

@@ -94,4 +94,4 @@ "keywords": [

"dependencies": {
"@azure/msal-common": "^7.5.0"
"@azure/msal-common": "^7.6.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.28.3/js/msal-browser.min.js"></script>
<script type="text/javascript" src="https://alcdn.msauth.net/browser/2.30.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 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 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

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc