Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@azure/msal-common

Package Overview
Dependencies
Maintainers
3
Versions
122
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 6.1.0 to 6.2.0

dist/crypto/IGuidGenerator.d.ts

2

dist/_virtual/_tslib.js

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

@@ -13,2 +13,3 @@ import { ProtocolMode } from "./ProtocolMode";

AzurePublic = "https://login.microsoftonline.com",
AzurePpe = "https://login.windows-ppe.net",
AzureChina = "https://login.chinacloudapi.cn",

@@ -15,0 +16,0 @@ AzureGermany = "https://login.microsoftonline.de",

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

AzureCloudInstance["AzurePublic"] = "https://login.microsoftonline.com";
// Microsoft PPE
AzureCloudInstance["AzurePpe"] = "https://login.windows-ppe.net";
// Microsoft Chinese national cloud

@@ -15,0 +17,0 @@ AzureCloudInstance["AzureChina"] = "https://login.chinacloudapi.cn";

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

CacheManager.prototype.getAccountsFilteredBy = function (accountFilter) {
return this.getAccountsFilteredByInternal(accountFilter ? accountFilter.homeAccountId : "", accountFilter ? accountFilter.environment : "", accountFilter ? accountFilter.realm : "");
return this.getAccountsFilteredByInternal(accountFilter ? accountFilter.homeAccountId : Constants.EMPTY_STRING, accountFilter ? accountFilter.environment : Constants.EMPTY_STRING, accountFilter ? accountFilter.realm : Constants.EMPTY_STRING);
};

@@ -135,0 +135,0 @@ /**

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

accountInterface.homeAccountId,
accountInterface.environment || "",
accountInterface.tenantId || "",
accountInterface.environment || Constants.EMPTY_STRING,
accountInterface.tenantId || Constants.EMPTY_STRING,
];

@@ -122,3 +122,3 @@ return accountKey.join(Separators.CACHE_KEY_SEPARATOR).toLowerCase();

// non AAD scenarios can have empty realm
account.realm = ((_a = idToken === null || idToken === void 0 ? void 0 : idToken.claims) === null || _a === void 0 ? void 0 : _a.tid) || "";
account.realm = ((_a = idToken === null || idToken === void 0 ? void 0 : idToken.claims) === null || _a === void 0 ? void 0 : _a.tid) || Constants.EMPTY_STRING;
account.oboAssertion = oboAssertion;

@@ -128,3 +128,3 @@ if (idToken) {

// How do you account for MSA CID here?
account.localAccountId = ((_b = idToken === null || idToken === void 0 ? void 0 : idToken.claims) === null || _b === void 0 ? void 0 : _b.oid) || ((_c = idToken === null || idToken === void 0 ? void 0 : idToken.claims) === null || _c === void 0 ? void 0 : _c.sub) || "";
account.localAccountId = ((_b = idToken === null || idToken === void 0 ? void 0 : idToken.claims) === null || _b === void 0 ? void 0 : _b.oid) || ((_c = idToken === null || idToken === void 0 ? void 0 : idToken.claims) === null || _c === void 0 ? void 0 : _c.sub) || Constants.EMPTY_STRING;
/*

@@ -134,3 +134,3 @@ * In B2C scenarios the emails claim is used instead of preferred_username and it is an array. In most cases it will contain a single email.

*/
account.username = ((_d = idToken === null || idToken === void 0 ? void 0 : idToken.claims) === null || _d === void 0 ? void 0 : _d.preferred_username) || (((_e = idToken === null || idToken === void 0 ? void 0 : idToken.claims) === null || _e === void 0 ? void 0 : _e.emails) ? idToken.claims.emails[0] : "");
account.username = ((_d = idToken === null || idToken === void 0 ? void 0 : idToken.claims) === null || _d === void 0 ? void 0 : _d.preferred_username) || (((_e = idToken === null || idToken === void 0 ? void 0 : idToken.claims) === null || _e === void 0 ? void 0 : _e.emails) ? idToken.claims.emails[0] : Constants.EMPTY_STRING);
account.name = (_f = idToken === null || idToken === void 0 ? void 0 : idToken.claims) === null || _f === void 0 ? void 0 : _f.name;

@@ -153,3 +153,3 @@ }

// non AAD scenarios can have empty realm
account.realm = "";
account.realm = Constants.EMPTY_STRING;
account.oboAssertion = oboAssertion;

@@ -162,6 +162,6 @@ var env = environment || authority && authority.getPreferredCache();

// How do you account for MSA CID here?
account.localAccountId = ((_a = idToken === null || idToken === void 0 ? void 0 : idToken.claims) === null || _a === void 0 ? void 0 : _a.oid) || ((_b = idToken === null || idToken === void 0 ? void 0 : idToken.claims) === null || _b === void 0 ? void 0 : _b.sub) || "";
account.localAccountId = ((_a = idToken === null || idToken === void 0 ? void 0 : idToken.claims) === null || _a === void 0 ? void 0 : _a.oid) || ((_b = idToken === null || idToken === void 0 ? void 0 : idToken.claims) === null || _b === void 0 ? void 0 : _b.sub) || Constants.EMPTY_STRING;
// upn claim for most ADFS scenarios
account.username = ((_c = idToken === null || idToken === void 0 ? void 0 : idToken.claims) === null || _c === void 0 ? void 0 : _c.upn) || "";
account.name = ((_d = idToken === null || idToken === void 0 ? void 0 : idToken.claims) === null || _d === void 0 ? void 0 : _d.name) || "";
account.username = ((_c = idToken === null || idToken === void 0 ? void 0 : idToken.claims) === null || _c === void 0 ? void 0 : _c.upn) || Constants.EMPTY_STRING;
account.name = ((_d = idToken === null || idToken === void 0 ? void 0 : idToken.claims) === null || _d === void 0 ? void 0 : _d.name) || Constants.EMPTY_STRING;
account.idTokenClaims = idToken === null || idToken === void 0 ? void 0 : idToken.claims;

@@ -168,0 +168,0 @@ }

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

clientOrFamilyId,
realm || "",
realm || Constants.EMPTY_STRING,
];

@@ -143,3 +143,3 @@ return credentialId.join(Separators.CACHE_KEY_SEPARATOR).toLowerCase();

CredentialEntity.generateTargetForCacheKey = function (scopes) {
return (scopes || "").toLowerCase();
return (scopes || Constants.EMPTY_STRING).toLowerCase();
};

@@ -150,3 +150,3 @@ /**

CredentialEntity.generateClaimsHashForCacheKey = function (requestedClaimsHash) {
return (requestedClaimsHash || "").toLowerCase();
return (requestedClaimsHash || Constants.EMPTY_STRING).toLowerCase();
};

@@ -161,3 +161,3 @@ /**

*/
return (tokenType && tokenType.toLowerCase() !== AuthenticationScheme.BEARER.toLowerCase()) ? tokenType.toLowerCase() : "";
return (tokenType && tokenType.toLowerCase() !== AuthenticationScheme.BEARER.toLowerCase()) ? tokenType.toLowerCase() : Constants.EMPTY_STRING;
};

@@ -164,0 +164,0 @@ return CredentialEntity;

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

parameterBuilder.addLibraryInfo(this.config.libraryInfo);
parameterBuilder.addApplicationTelemetry(this.config.telemetry.application);
parameterBuilder.addThrottling();

@@ -313,2 +314,3 @@ if (this.serverTelemetryManager) {

parameterBuilder.addLibraryInfo(this.config.libraryInfo);
parameterBuilder.addApplicationTelemetry(this.config.telemetry.application);
// add client_info=1

@@ -315,0 +317,0 @@ parameterBuilder.addClientInfo();

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

import { ScopeSet } from '../request/ScopeSet.js';
import { CredentialType, GrantType, CacheOutcome } from '../utils/Constants.js';
import { Constants, CredentialType, GrantType, CacheOutcome } from '../utils/Constants.js';
import { ResponseHandler } from '../response/ResponseHandler.js';

@@ -88,3 +88,3 @@ import { TimeUtils } from '../utils/TimeUtils.js';

var accessTokenFilter = {
homeAccountId: "",
homeAccountId: Constants.EMPTY_STRING,
environment: this.authority.canonicalAuthorityUrlComponents.HostNameAndPort,

@@ -154,2 +154,3 @@ credentialType: CredentialType.ACCESS_TOKEN,

parameterBuilder.addLibraryInfo(this.config.libraryInfo);
parameterBuilder.addApplicationTelemetry(this.config.telemetry.application);
parameterBuilder.addThrottling();

@@ -156,0 +157,0 @@ if (this.serverTelemetryManager) {

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

requestParameters.addLibraryInfo(this.config.libraryInfo);
requestParameters.addApplicationTelemetry(this.config.telemetry.application);
requestParameters.addThrottling();

@@ -214,0 +215,0 @@ if (this.serverTelemetryManager) {

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

username: Constants.EMPTY_STRING,
localAccountId: localAccountId || ""
localAccountId: localAccountId || Constants.EMPTY_STRING
};

@@ -194,2 +194,3 @@ cachedAccount = this.readAccountFromCache(accountInfo);

parameterBuilder.addLibraryInfo(this.config.libraryInfo);
parameterBuilder.addApplicationTelemetry(this.config.telemetry.application);
parameterBuilder.addThrottling();

@@ -196,0 +197,0 @@ if (this.serverTelemetryManager) {

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

parameterBuilder.addLibraryInfo(this.config.libraryInfo);
parameterBuilder.addApplicationTelemetry(this.config.telemetry.application);
parameterBuilder.addThrottling();

@@ -170,0 +171,0 @@ if (this.serverTelemetryManager) {

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

parameterBuilder.addLibraryInfo(this.config.libraryInfo);
parameterBuilder.addApplicationTelemetry(this.config.telemetry.application);
parameterBuilder.addThrottling();

@@ -94,0 +95,0 @@ if (this.serverTelemetryManager) {

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

* - libraryInfo - Library metadata
* - telemetry - Telemetry options and data
* - loggerOptions - Logging for application

@@ -33,2 +34,3 @@ * - networkInterface - Network implementation

libraryInfo?: LibraryInfo;
telemetry?: TelemetryOptions;
serverTelemetryManager?: ServerTelemetryManager | null;

@@ -46,2 +48,3 @@ persistencePlugin?: ICachePlugin | null;

libraryInfo: LibraryInfo;
telemetry: Required<TelemetryOptions>;
serverTelemetryManager: ServerTelemetryManager | null;

@@ -121,2 +124,14 @@ clientCredentials: ClientCredentials;

};
export declare type TelemetryOptions = {
application: ApplicationTelemetry;
};
/**
* Telemetry information sent on request
* - appName: Unique string name of an application
* - appVersion: Version of the application using MSAL
*/
export declare type ApplicationTelemetry = {
appName: string;
appVersion: string;
};
export declare const DEFAULT_SYSTEM_OPTIONS: Required<SystemOptions>;

@@ -130,3 +145,3 @@ /**

*/
export declare function buildClientConfiguration({ authOptions: userAuthOptions, systemOptions: userSystemOptions, loggerOptions: userLoggerOption, storageInterface: storageImplementation, networkInterface: networkImplementation, cryptoInterface: cryptoImplementation, clientCredentials: clientCredentials, libraryInfo: libraryInfo, serverTelemetryManager: serverTelemetryManager, persistencePlugin: persistencePlugin, serializableCache: serializableCache }: ClientConfiguration): CommonClientConfiguration;
export declare function buildClientConfiguration({ authOptions: userAuthOptions, systemOptions: userSystemOptions, loggerOptions: userLoggerOption, storageInterface: storageImplementation, networkInterface: networkImplementation, cryptoInterface: cryptoImplementation, clientCredentials: clientCredentials, libraryInfo: libraryInfo, telemetry: telemetry, serverTelemetryManager: serverTelemetryManager, persistencePlugin: persistencePlugin, serializableCache: serializableCache }: ClientConfiguration): CommonClientConfiguration;
//# sourceMappingURL=ClientConfiguration.d.ts.map

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

preventCorsPreflight: false,
proxyUrl: "",
proxyUrl: Constants.EMPTY_STRING
};

@@ -30,3 +30,3 @@ var DEFAULT_LOGGER_IMPLEMENTATION = {

logLevel: LogLevel.Info,
correlationId: ""
correlationId: Constants.EMPTY_STRING
};

@@ -56,7 +56,7 @@ var DEFAULT_NETWORK_IMPLEMENTATION = {

version: version,
cpu: "",
os: ""
cpu: Constants.EMPTY_STRING,
os: Constants.EMPTY_STRING
};
var DEFAULT_CLIENT_CREDENTIALS = {
clientSecret: "",
clientSecret: Constants.EMPTY_STRING,
clientAssertion: undefined

@@ -68,2 +68,8 @@ };

};
var DEFAULT_TELEMETRY_OPTIONS = {
application: {
appName: "",
appVersion: ""
}
};
/**

@@ -77,3 +83,3 @@ * Function that sets the default options when not explicitly configured from app developer

function buildClientConfiguration(_a) {
var userAuthOptions = _a.authOptions, userSystemOptions = _a.systemOptions, userLoggerOption = _a.loggerOptions, storageImplementation = _a.storageInterface, networkImplementation = _a.networkInterface, cryptoImplementation = _a.cryptoInterface, clientCredentials = _a.clientCredentials, libraryInfo = _a.libraryInfo, serverTelemetryManager = _a.serverTelemetryManager, persistencePlugin = _a.persistencePlugin, serializableCache = _a.serializableCache;
var userAuthOptions = _a.authOptions, userSystemOptions = _a.systemOptions, userLoggerOption = _a.loggerOptions, storageImplementation = _a.storageInterface, networkImplementation = _a.networkInterface, cryptoImplementation = _a.cryptoInterface, clientCredentials = _a.clientCredentials, libraryInfo = _a.libraryInfo, telemetry = _a.telemetry, serverTelemetryManager = _a.serverTelemetryManager, persistencePlugin = _a.persistencePlugin, serializableCache = _a.serializableCache;
var loggerOptions = __assign(__assign({}, DEFAULT_LOGGER_IMPLEMENTATION), userLoggerOption);

@@ -89,2 +95,3 @@ return {

libraryInfo: __assign(__assign({}, DEFAULT_LIBRARY_INFO), libraryInfo),
telemetry: __assign(__assign({}, DEFAULT_TELEMETRY_OPTIONS), telemetry),
serverTelemetryManager: serverTelemetryManager || null,

@@ -91,0 +98,0 @@ persistencePlugin: persistencePlugin || null,

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

};
export declare type SignedHttpRequestParameters = Pick<BaseAuthRequest, "resourceRequestMethod" | "resourceRequestUri" | "shrClaims" | "shrNonce">;
export declare type SignedHttpRequestParameters = Pick<BaseAuthRequest, "resourceRequestMethod" | "resourceRequestUri" | "shrClaims" | "shrNonce"> & {
correlationId?: string;
};
/**

@@ -54,3 +56,3 @@ * Interface for crypto functions used by library

*/
signJwt(payload: SignedHttpRequest, kid: string): Promise<string>;
signJwt(payload: SignedHttpRequest, kid: string, correlationId?: string): Promise<string>;
/**

@@ -57,0 +59,0 @@ * Returns the SHA-256 hash of an input string

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

resourceUrlComponents = resourceUrlString === null || resourceUrlString === void 0 ? void 0 : resourceUrlString.getUrlComponents();
return [4 /*yield*/, this.cryptoUtils.signJwt(__assign({ at: payload, ts: TimeUtils.nowSeconds(), m: resourceRequestMethod === null || resourceRequestMethod === void 0 ? void 0 : resourceRequestMethod.toUpperCase(), u: resourceUrlComponents === null || resourceUrlComponents === void 0 ? void 0 : resourceUrlComponents.HostNameAndPort, nonce: shrNonce || this.cryptoUtils.createNewGuid(), p: resourceUrlComponents === null || resourceUrlComponents === void 0 ? void 0 : resourceUrlComponents.AbsolutePath, q: (resourceUrlComponents === null || resourceUrlComponents === void 0 ? void 0 : resourceUrlComponents.QueryString) ? [[], resourceUrlComponents.QueryString] : undefined, client_claims: shrClaims || undefined }, claims), kid)];
return [4 /*yield*/, this.cryptoUtils.signJwt(__assign({ at: payload, ts: TimeUtils.nowSeconds(), m: resourceRequestMethod === null || resourceRequestMethod === void 0 ? void 0 : resourceRequestMethod.toUpperCase(), u: resourceUrlComponents === null || resourceUrlComponents === void 0 ? void 0 : resourceUrlComponents.HostNameAndPort, nonce: shrNonce || this.cryptoUtils.createNewGuid(), p: resourceUrlComponents === null || resourceUrlComponents === void 0 ? void 0 : resourceUrlComponents.AbsolutePath, q: (resourceUrlComponents === null || resourceUrlComponents === void 0 ? void 0 : resourceUrlComponents.QueryString) ? [[], resourceUrlComponents.QueryString] : undefined, client_claims: shrClaims || undefined }, claims), kid, request.correlationId)];
case 1: return [2 /*return*/, _a.sent()];

@@ -76,0 +76,0 @@ }

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

_this.errorCode = errorCode || Constants.EMPTY_STRING;
_this.errorMessage = errorMessage || "";
_this.subError = suberror || "";
_this.errorMessage = errorMessage || Constants.EMPTY_STRING;
_this.subError = suberror || Constants.EMPTY_STRING;
_this.name = "AuthError";

@@ -34,0 +34,0 @@ return _this;

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

@@ -12,3 +12,3 @@ /**

export { UsernamePasswordClient } from "./client/UsernamePasswordClient";
export { AuthOptions, SystemOptions, LoggerOptions, DEFAULT_SYSTEM_OPTIONS, AzureCloudOptions } from "./config/ClientConfiguration";
export { AuthOptions, SystemOptions, LoggerOptions, DEFAULT_SYSTEM_OPTIONS, AzureCloudOptions, ApplicationTelemetry } from "./config/ClientConfiguration";
export { ClientConfiguration } from "./config/ClientConfiguration";

@@ -48,2 +48,3 @@ export { AccountInfo } from "./account/AccountInfo";

export { SignedHttpRequest } from "./crypto/SignedHttpRequest";
export { IGuidGenerator } from "./crypto/IGuidGenerator";
export { BaseAuthRequest } from "./request/BaseAuthRequest";

@@ -82,4 +83,9 @@ export { CommonAuthorizationUrlRequest } from "./request/CommonAuthorizationUrlRequest";

export { ServerTelemetryRequest } from "./telemetry/server/ServerTelemetryRequest";
export { IPerformanceClient, PerformanceCallbackFunction, InProgressPerformanceEvent } from "./telemetry/performance/IPerformanceClient";
export { PerformanceEvent, PerformanceEvents, PerformanceEventStatus } from "./telemetry/performance/PerformanceEvent";
export { IPerformanceMeasurement } from "./telemetry/performance/IPerformanceMeasurement";
export { PerformanceClient } from "./telemetry/performance/PerformanceClient";
export { StubPerformanceClient } from "./telemetry/performance/StubPerformanceClient";
export { PopTokenGenerator } from "./crypto/PopTokenGenerator";
export { version } from "./packageMetadata";
//# sourceMappingURL=index.d.ts.map

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

@@ -47,4 +47,7 @@ export { AuthorizationCodeClient } from './client/AuthorizationCodeClient.js';

export { ServerTelemetryManager } from './telemetry/server/ServerTelemetryManager.js';
export { PerformanceEventStatus, PerformanceEvents } from './telemetry/performance/PerformanceEvent.js';
export { PerformanceClient } from './telemetry/performance/PerformanceClient.js';
export { StubPerformanceClient } from './telemetry/performance/StubPerformanceClient.js';
export { PopTokenGenerator } from './crypto/PopTokenGenerator.js';
export { version } from './packageMetadata.js';
//# sourceMappingURL=index.js.map

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

this.level = typeof (loggerOptions.logLevel) === "number" ? loggerOptions.logLevel : LogLevel.Info;
this.correlationId = loggerOptions.correlationId || "";
this.correlationId = loggerOptions.correlationId || Constants.EMPTY_STRING;
this.packageName = packageName || Constants.EMPTY_STRING;

@@ -65,3 +65,3 @@ this.packageVersion = packageVersion || Constants.EMPTY_STRING;

var log = logHeader + " : " + this.packageName + "@" + this.packageVersion + " : " + LogLevel[options.logLevel] + " - " + logMessage;
// debug(`msal:${LogLevel[options.logLevel]}${options.containsPii ? "-Pii": ""}${options.context ? `:${options.context}` : ""}`)(logMessage);
// debug(`msal:${LogLevel[options.logLevel]}${options.containsPii ? "-Pii": Constants.EMPTY_STRING}${options.context ? `:${options.context}` : Constants.EMPTY_STRING}`)(logMessage);
this.executeCallback(options.logLevel, log, options.containsPii || false);

@@ -84,3 +84,3 @@ };

containsPii: false,
correlationId: correlationId || ""
correlationId: correlationId || Constants.EMPTY_STRING
});

@@ -95,3 +95,3 @@ };

containsPii: true,
correlationId: correlationId || ""
correlationId: correlationId || Constants.EMPTY_STRING
});

@@ -106,3 +106,3 @@ };

containsPii: false,
correlationId: correlationId || ""
correlationId: correlationId || Constants.EMPTY_STRING
});

@@ -117,3 +117,3 @@ };

containsPii: true,
correlationId: correlationId || ""
correlationId: correlationId || Constants.EMPTY_STRING
});

@@ -128,3 +128,3 @@ };

containsPii: false,
correlationId: correlationId || ""
correlationId: correlationId || Constants.EMPTY_STRING
});

@@ -139,3 +139,3 @@ };

containsPii: true,
correlationId: correlationId || ""
correlationId: correlationId || Constants.EMPTY_STRING
});

@@ -150,3 +150,3 @@ };

containsPii: false,
correlationId: correlationId || ""
correlationId: correlationId || Constants.EMPTY_STRING
});

@@ -161,3 +161,3 @@ };

containsPii: true,
correlationId: correlationId || ""
correlationId: correlationId || Constants.EMPTY_STRING
});

@@ -172,3 +172,3 @@ };

containsPii: false,
correlationId: correlationId || ""
correlationId: correlationId || Constants.EMPTY_STRING
});

@@ -183,3 +183,3 @@ };

containsPii: true,
correlationId: correlationId || ""
correlationId: correlationId || Constants.EMPTY_STRING
});

@@ -186,0 +186,0 @@ };

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'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 = "6.1.0";
export declare const version = "6.2.0";
//# sourceMappingURL=packageMetadata.d.ts.map

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';
/* eslint-disable header/header */
var name = "@azure/msal-common";
var version = "6.1.0";
var version = "6.2.0";
export { name, version };
//# sourceMappingURL=packageMetadata.js.map

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';
import { ClientConfigurationError } from '../error/ClientConfigurationError.js';
import { HeaderNames } from '../utils/Constants.js';
import { HeaderNames, Constants } from '../utils/Constants.js';

@@ -56,3 +56,3 @@ /*

// Remove escaped quotation marks (', ") from challenge string to keep only the challenge value
challengeMap[key] = unescape(value.replace(/['"]+/g, ""));
challengeMap[key] = unescape(value.replace(/['"]+/g, Constants.EMPTY_STRING));
});

@@ -59,0 +59,0 @@ return challengeMap;

import { ResponseMode } from "../utils/Constants";
import { StringDict } from "../utils/MsalTypes";
import { LibraryInfo } from "../config/ClientConfiguration";
import { ApplicationTelemetry, LibraryInfo } from "../config/ClientConfiguration";
import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager";

@@ -85,2 +85,7 @@ import { ClientInfo } from "../account/ClientInfo";

/**
* Add client telemetry parameters
* @param appTelemetry
*/
addApplicationTelemetry(appTelemetry: ApplicationTelemetry): void;
/**
* add prompt

@@ -87,0 +92,0 @@ * @param prompt

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

@@ -131,6 +131,22 @@ import { __spreadArrays } from '../_virtual/_tslib.js';

this.parameters.set(AADServerParamKeys.X_CLIENT_VER, libraryInfo.version);
this.parameters.set(AADServerParamKeys.X_CLIENT_OS, libraryInfo.os);
this.parameters.set(AADServerParamKeys.X_CLIENT_CPU, libraryInfo.cpu);
if (libraryInfo.os) {
this.parameters.set(AADServerParamKeys.X_CLIENT_OS, libraryInfo.os);
}
if (libraryInfo.cpu) {
this.parameters.set(AADServerParamKeys.X_CLIENT_CPU, libraryInfo.cpu);
}
};
/**
* Add client telemetry parameters
* @param appTelemetry
*/
RequestParameterBuilder.prototype.addApplicationTelemetry = function (appTelemetry) {
if (appTelemetry === null || appTelemetry === void 0 ? void 0 : appTelemetry.appName) {
this.parameters.set(AADServerParamKeys.X_APP_NAME, appTelemetry.appName);
}
if (appTelemetry === null || appTelemetry === void 0 ? void 0 : appTelemetry.appVersion) {
this.parameters.set(AADServerParamKeys.X_APP_VER, appTelemetry.appVersion);
}
};
/**
* add prompt

@@ -137,0 +153,0 @@ * @param prompt

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

import { ClientAuthError } from '../error/ClientAuthError.js';
import { OIDC_SCOPES } from '../utils/Constants.js';
import { OIDC_SCOPES, Constants } from '../utils/Constants.js';

@@ -37,3 +37,3 @@ /*

ScopeSet.fromString = function (inputScopeString) {
var scopeString = inputScopeString || "";
var scopeString = inputScopeString || Constants.EMPTY_STRING;
var inputScopes = scopeString.split(" ");

@@ -182,3 +182,3 @@ return new ScopeSet(inputScopes);

}
return "";
return Constants.EMPTY_STRING;
};

@@ -185,0 +185,0 @@ /**

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

var authorityType = authority.authorityType;
var cloudGraphHostName = authCodePayload ? authCodePayload.cloud_graph_host_name : "";
var msGraphhost = authCodePayload ? authCodePayload.msgraph_host : "";
var cloudGraphHostName = authCodePayload ? authCodePayload.cloud_graph_host_name : Constants.EMPTY_STRING;
var msGraphhost = authCodePayload ? authCodePayload.msgraph_host : Constants.EMPTY_STRING;
// ADFS does not require client_info in the response

@@ -235,3 +235,3 @@ if (authorityType === AuthorityType.Adfs) {

case 0:
accessToken = "";
accessToken = Constants.EMPTY_STRING;
responseScopes = [];

@@ -238,0 +238,0 @@ expiresOn = null;

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

var regionDiscoveryFields = [];
regionDiscoveryFields.push(this.regionUsed || "");
regionDiscoveryFields.push(this.regionSource || "");
regionDiscoveryFields.push(this.regionOutcome || "");
regionDiscoveryFields.push(this.regionUsed || Constants.EMPTY_STRING);
regionDiscoveryFields.push(this.regionSource || Constants.EMPTY_STRING);
regionDiscoveryFields.push(this.regionOutcome || Constants.EMPTY_STRING);
return regionDiscoveryFields.join(",");

@@ -147,0 +147,0 @@ };

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

}
return "";
return Constants.EMPTY_STRING;
};

@@ -170,0 +170,0 @@ UrlString.constructAuthorityUriFromObject = function (urlObject) {

@@ -100,2 +100,4 @@ export declare const Constants: {

X_MS_LIB_CAPABILITY = "x-ms-lib-capability",
X_APP_NAME = "x-app-name",
X_APP_VER = "x-app-ver",
POST_LOGOUT_URI = "post_logout_redirect_uri",

@@ -102,0 +104,0 @@ ID_TOKEN_HINT = "id_token_hint",

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

@@ -128,2 +128,4 @@ import { __spreadArrays } from '../_virtual/_tslib.js';

AADServerParamKeys["X_MS_LIB_CAPABILITY"] = "x-ms-lib-capability";
AADServerParamKeys["X_APP_NAME"] = "x-app-name";
AADServerParamKeys["X_APP_VER"] = "x-app-ver";
AADServerParamKeys["POST_LOGOUT_URI"] = "post_logout_redirect_uri";

@@ -130,0 +132,0 @@ AADServerParamKeys["ID_TOKEN_HINT"] = "id_token_hint";

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

@@ -61,7 +61,7 @@ import { StringUtils } from './StringUtils.js';

var libraryState = splitState[0];
var userState = splitState.length > 1 ? splitState.slice(1).join(Constants.RESOURCE_DELIM) : "";
var userState = splitState.length > 1 ? splitState.slice(1).join(Constants.RESOURCE_DELIM) : Constants.EMPTY_STRING;
var libraryStateString = cryptoObj.base64Decode(libraryState);
var libraryStateObj = JSON.parse(libraryStateString);
return {
userRequestState: !StringUtils.isEmpty(userState) ? userState : "",
userRequestState: !StringUtils.isEmpty(userState) ? userState : Constants.EMPTY_STRING,
libraryState: libraryStateObj

@@ -68,0 +68,0 @@ };

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

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

/*! @azure/msal-common v6.1.0 2022-02-08 */
/*! @azure/msal-common v6.2.0 2022-04-04 */
'use strict';

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

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

},
"version": "6.1.0",
"version": "6.2.0",
"description": "Microsoft Authentication Library for js",

@@ -74,5 +74,3 @@ "keywords": [

},
"dependencies": {
"debug": "^4.1.1"
}
"dependencies": {}
}

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

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