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 5.1.2 to 5.1.3

2

dist/_virtual/_tslib.js

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

import { AccountCache, AccountFilter, CredentialFilter, CredentialCache, ValidCredentialType, AppMetadataFilter, AppMetadataCache } from "./utils/CacheTypes";
import { AccountCache, AccountFilter, CredentialFilter, CredentialCache, AppMetadataFilter, AppMetadataCache } from "./utils/CacheTypes";
import { CacheRecord } from "./entities/CacheRecord";

@@ -130,6 +130,2 @@ import { AuthenticationScheme } from "../utils/Constants";

/**
* Function which updates an outdated credential cache key
*/
abstract updateCredentialCacheKey(currentCacheKey: string, credential: ValidCredentialType): string;
/**
* Returns all accounts in cache

@@ -380,4 +376,3 @@ */

clear(): Promise<void>;
updateCredentialCacheKey(): string;
}
//# sourceMappingURL=CacheManager.d.ts.map

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

}
/*
* At this point, the entity matches the request, update cache key if key schema has changed
* Migration code for forwards compatibility with new versions of the library in case of rollback.
*/
var updatedCacheKey = _this.updateCredentialCacheKey(cacheKey, entity);
switch (credType) {
case CredentialType.ID_TOKEN:
matchingCredentials.idTokens[updatedCacheKey] = entity;
matchingCredentials.idTokens[cacheKey] = entity;
break;
case CredentialType.ACCESS_TOKEN:
case CredentialType.ACCESS_TOKEN_WITH_AUTH_SCHEME:
matchingCredentials.accessTokens[updatedCacheKey] = entity;
matchingCredentials.accessTokens[cacheKey] = entity;
break;
case CredentialType.REFRESH_TOKEN:
matchingCredentials.refreshTokens[updatedCacheKey] = entity;
matchingCredentials.refreshTokens[cacheKey] = entity;
break;

@@ -500,2 +495,3 @@ }

CacheManager.prototype.readIdTokenFromCache = function (clientId, account) {
var _this = this;
var idTokenFilter = {

@@ -515,3 +511,6 @@ homeAccountId: account.homeAccountId,

else if (numIdTokens > 1) {
throw ClientAuthError.createMultipleMatchingTokensInCacheError();
idTokens.forEach(function (idToken) {
_this.removeItem(idToken.generateCredentialKey());
});
return null;
}

@@ -528,2 +527,3 @@ return idTokens[0];

CacheManager.prototype.readAccessTokenFromCache = function (clientId, account, scopes, authScheme, keyId) {
var _this = this;
// Distinguish between Bearer and PoP/SSH token cache types

@@ -548,3 +548,6 @@ var credentialType = (authScheme && authScheme !== AuthenticationScheme.BEARER) ? CredentialType.ACCESS_TOKEN_WITH_AUTH_SCHEME : CredentialType.ACCESS_TOKEN;

else if (numAccessTokens > 1) {
throw ClientAuthError.createMultipleMatchingTokensInCacheError();
accessTokens.forEach(function (accessToken) {
_this.removeItem(accessToken.generateCredentialKey());
});
return null;
}

@@ -849,6 +852,2 @@ return accessTokens[0];

};
DefaultStorageClass.prototype.updateCredentialCacheKey = function () {
var notImplErr = "Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.";
throw AuthError.createUnexpectedError(notImplErr);
};
return DefaultStorageClass;

@@ -855,0 +854,0 @@ }(CacheManager));

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

import { CredentialEntity } from "../entities/CredentialEntity";
import { AccountCache, CredentialCache, AccountFilter, CredentialFilter, ValidCredentialType } from "../utils/CacheTypes";
import { AccountCache, CredentialCache, AccountFilter, CredentialFilter } from "../utils/CacheTypes";
import { CacheRecord } from "../entities/CacheRecord";

@@ -156,7 +156,3 @@ import { AccountEntity } from "../entities/AccountEntity";

removeCredential(credential: CredentialEntity): Promise<boolean>;
/**
* Function which updates an outdated credential cache key
*/
updateCredentialCacheKey(currentCacheKey: string, credential: ValidCredentialType): string;
}
//# sourceMappingURL=ICacheManager.d.ts.map

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

@@ -73,4 +73,3 @@ import { BaseClient } from "./BaseClient";

private extractAccountSid;
private extractLoginHint;
}
//# sourceMappingURL=AuthorizationCodeClient.d.ts.map

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

}
// Add sid or loginHint with preference for login_hint claim (in request) -> sid -> loginHint (upn/email) -> username of AccountInfo object
// Add sid or loginHint with preference for sid -> loginHint -> username of AccountInfo object
if (request.prompt !== PromptValue.SELECT_ACCOUNT) {

@@ -310,20 +310,5 @@ // AAD will throw if prompt=select_account is passed with an account hint

var accountSid = this.extractAccountSid(request.account);
var accountLoginHintClaim = this.extractLoginHint(request.account);
// If login_hint claim is present, use it over sid/username
if (accountLoginHintClaim) {
this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account");
parameterBuilder.addLoginHint(accountLoginHintClaim);
try {
var clientInfo = buildClientInfoFromHomeAccountId(request.account.homeAccountId);
parameterBuilder.addCcsOid(clientInfo);
}
catch (e) {
this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header");
}
}
else if (accountSid && request.prompt === PromptValue.NONE) {
/*
* If account and loginHint are provided, we will check account first for sid before adding loginHint
* SessionId is only used in silent calls
*/
// If account and loginHint are provided, we will check account first for sid before adding loginHint
if (accountSid && request.prompt === PromptValue.NONE) {
// SessionId is only used in silent calls
this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account");

@@ -336,3 +321,3 @@ parameterBuilder.addSid(accountSid);

catch (e) {
this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header");
this.logger.verbose("Could not parse home account ID for CCS Header: " + e);
}

@@ -354,3 +339,3 @@ }

catch (e) {
this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header");
this.logger.verbose("Could not parse home account ID for CCS Header: " + e);
}

@@ -410,9 +395,8 @@ }

AuthorizationCodeClient.prototype.extractAccountSid = function (account) {
var _a;
return ((_a = account.idTokenClaims) === null || _a === void 0 ? void 0 : _a["sid"]) || null;
if (account.idTokenClaims) {
var tokenClaims = account.idTokenClaims;
return tokenClaims.sid || null;
}
return null;
};
AuthorizationCodeClient.prototype.extractLoginHint = function (account) {
var _a;
return ((_a = account.idTokenClaims) === null || _a === void 0 ? void 0 : _a["login_hint"]) || null;
};
return AuthorizationCodeClient;

@@ -419,0 +403,0 @@ }(BaseClient));

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'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 = "5.1.2";
export declare const version = "5.1.3";
//# sourceMappingURL=packageMetadata.d.ts.map

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';
/* eslint-disable header/header */
var name = "@azure/msal-common";
var version = "5.1.2";
var version = "5.1.3";
export { name, version };
//# sourceMappingURL=packageMetadata.js.map

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

/*! @azure/msal-common v5.1.2 2022-08-03 */
/*! @azure/msal-common v5.1.3 2023-08-24 */
'use strict';

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

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

},
"version": "5.1.2",
"version": "5.1.3",
"description": "Microsoft Authentication Library for js",

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

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

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