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 14.8.1 to 14.9.0

dist/error/CacheError.d.ts

5

dist/authority/Authority.d.ts

@@ -30,4 +30,5 @@ import { AuthorityType } from "./AuthorityType";

protected correlationId: string;
private managedIdentity;
private static reservedTenantDomains;
constructor(authority: string, networkInterface: INetworkModule, cacheManager: ICacheManager, authorityOptions: AuthorityOptions, logger: Logger, correlationId: string, performanceClient?: IPerformanceClient);
constructor(authority: string, networkInterface: INetworkModule, cacheManager: ICacheManager, authorityOptions: AuthorityOptions, logger: Logger, correlationId: string, performanceClient?: IPerformanceClient, managedIdentity?: boolean);
/**

@@ -110,3 +111,3 @@ * Get {@link AuthorityType}

/**
* Boolean that returns whethr or not tenant discovery has been completed.
* Boolean that returns whether or not tenant discovery has been completed.
*/

@@ -113,0 +114,0 @@ discoveryComplete(): boolean;

6

dist/cache/CacheManager.d.ts

@@ -180,5 +180,7 @@ import { AccountFilter, CredentialFilter, ValidCredentialType, AppMetadataFilter, AppMetadataCache, TokenKeys } from "./utils/CacheTypes";

* saves a cache record
* @param cacheRecord
* @param cacheRecord {CacheRecord}
* @param storeInCache {?StoreInCache}
* @param correlationId {?string} correlation id
*/
saveCacheRecord(cacheRecord: CacheRecord, storeInCache?: StoreInCache): Promise<void>;
saveCacheRecord(cacheRecord: CacheRecord, storeInCache?: StoreInCache, correlationId?: string): Promise<void>;
/**

@@ -185,0 +187,0 @@ * saves access token credential

@@ -81,5 +81,6 @@ /**

export { ServerError } from "./error/ServerError";
export { CacheError, CacheErrorCodes } from "./error/CacheError";
export { ClientAuthError, ClientAuthErrorMessage, ClientAuthErrorCodes, createClientAuthError, } from "./error/ClientAuthError";
export { ClientConfigurationError, ClientConfigurationErrorMessage, ClientConfigurationErrorCodes, createClientConfigurationError, } from "./error/ClientConfigurationError";
export { Constants, OIDC_DEFAULT_SCOPES, PromptValue, PersistentCacheKeys, ServerResponseType, ResponseMode, CacheOutcome, CredentialType, CacheType, CacheAccountType, AuthenticationScheme, CodeChallengeMethodValues, PasswordGrantConstants, ThrottlingConstants, ClaimsRequestKeys, HeaderNames, Errors, THE_FAMILY_ID, ONE_DAY_IN_MS, GrantType, AADAuthorityConstants, HttpStatus, JsonWebTokenTypes, } from "./utils/Constants";
export { Constants, OIDC_DEFAULT_SCOPES, PromptValue, PersistentCacheKeys, ServerResponseType, ResponseMode, CacheOutcome, CredentialType, CacheType, CacheAccountType, AuthenticationScheme, CodeChallengeMethodValues, PasswordGrantConstants, ThrottlingConstants, ClaimsRequestKeys, HeaderNames, Errors, THE_FAMILY_ID, ONE_DAY_IN_MS, GrantType, AADAuthorityConstants, HttpStatus, DEFAULT_TOKEN_RENEWAL_OFFSET_SEC, JsonWebTokenTypes, } from "./utils/Constants";
export * as AADServerParamKeys from "./constants/AADServerParamKeys";

@@ -86,0 +87,0 @@ export { StringUtils } from "./utils/StringUtils";

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

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

readonly SilentIframeClientAcquireToken: "silentIframeClientAcquireToken";
readonly AwaitConcurrentIframe: "awaitConcurrentIframe";
/**

@@ -392,2 +393,6 @@ * acquireToken API in SilentRereshClient (msal-browser).

/**
* CorrelationId of the in progress iframe request that was awaited
*/
awaitIframeCorrelationId?: string;
/**
* Amount of times queued in the JS event queue.

@@ -475,2 +480,5 @@ *

context?: string;
cacheRtCount?: number;
cacheIdCount?: number;
cacheAtCount?: number;
};

@@ -477,0 +485,0 @@ export type PerformanceEventContext = {

@@ -45,7 +45,16 @@ export declare const Constants: {

readonly SUCCESS_RANGE_START: 200;
readonly SUCCESS: 200;
readonly SUCCESS_RANGE_END: 299;
readonly REDIRECT: 302;
readonly CLIENT_ERROR_RANGE_START: 400;
readonly BAD_REQUEST: 400;
readonly UNAUTHORIZED: 401;
readonly NOT_FOUND: 404;
readonly REQUEST_TIMEOUT: 408;
readonly TOO_MANY_REQUESTS: 429;
readonly CLIENT_ERROR_RANGE_END: 499;
readonly SERVER_ERROR_RANGE_START: 500;
readonly INTERNAL_SERVER_ERROR: 500;
readonly SERVICE_UNAVAILABLE: 503;
readonly GATEWAY_TIMEOUT: 504;
readonly SERVER_ERROR_RANGE_END: 599;

@@ -298,2 +307,3 @@ };

export declare const ONE_DAY_IN_MS = 86400000;
export declare const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
//# sourceMappingURL=Constants.d.ts.map

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

},
"version": "14.8.1",
"version": "14.9.0",
"description": "Microsoft Authentication Library for js",

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

"metadata:check": "ts-node scripts/metadata.ts",
"format:check": "npx prettier --ignore-path .gitignore --check src test",
"format:fix": "npx prettier --ignore-path .gitignore --write src test"
"format:check": "prettier --ignore-path .gitignore --check src test",
"format:fix": "prettier --ignore-path .gitignore --write src test"
},

@@ -66,0 +66,0 @@ "beachball": {

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

protected correlationId: string;
// Indicates if the authority is fake, for the purpose of a Managed Identity Application
private managedIdentity: boolean;
// Reserved tenant domain names that will not be replaced with tenant id

@@ -107,3 +109,4 @@ private static reservedTenantDomains: Set<string> = new Set([

correlationId: string,
performanceClient?: IPerformanceClient
performanceClient?: IPerformanceClient,
managedIdentity?: boolean
) {

@@ -123,2 +126,3 @@ this.canonicalAuthority = authority;

this.correlationId = correlationId;
this.managedIdentity = managedIdentity || false;
this.regionDiscovery = new RegionDiscovery(

@@ -389,3 +393,3 @@ networkInterface,

/**
* Boolean that returns whethr or not tenant discovery has been completed.
* Boolean that returns whether or not tenant discovery has been completed.
*/

@@ -1172,3 +1176,5 @@ discoveryComplete(): boolean {

getPreferredCache(): string {
if (this.discoveryComplete()) {
if (this.managedIdentity) {
return Constants.DEFAULT_AUTHORITY_HOST;
} else if (this.discoveryComplete()) {
return this.metadata.preferred_cache;

@@ -1175,0 +1181,0 @@ } else {

@@ -560,5 +560,13 @@ /*

const accountSid = this.extractAccountSid(request.account);
const accountLoginHintClaim = this.extractLoginHint(
let accountLoginHintClaim = this.extractLoginHint(
request.account
);
if (accountLoginHintClaim && request.domainHint) {
this.logger.warning(
`AuthorizationCodeClient.createAuthCodeUrlQueryString: "domainHint" param is set, skipping opaque "login_hint" claim. Please consider not passing domainHint`
);
accountLoginHintClaim = null;
}
// If login_hint claim is present, use it over sid/username

@@ -565,0 +573,0 @@ if (accountLoginHintClaim) {

@@ -9,3 +9,6 @@ /*

import { ILoggerCallback, Logger, LogLevel } from "../logger/Logger";
import { Constants } from "../utils/Constants";
import {
Constants,
DEFAULT_TOKEN_RENEWAL_OFFSET_SEC,
} from "../utils/Constants";
import { version } from "../packageMetadata";

@@ -25,5 +28,2 @@ import { Authority } from "../authority/Authority";

// Token renewal offset default in seconds
const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
/**

@@ -30,0 +30,0 @@ * Use the configuration object to configure MSAL Modules and initialize the base interfaces for MSAL.

@@ -171,2 +171,3 @@ /*

export { ServerError } from "./error/ServerError";
export { CacheError, CacheErrorCodes } from "./error/CacheError";
export {

@@ -208,2 +209,3 @@ ClientAuthError,

HttpStatus,
DEFAULT_TOKEN_RENEWAL_OFFSET_SEC,
JsonWebTokenTypes,

@@ -210,0 +212,0 @@ } from "./utils/Constants";

/* eslint-disable header/header */
export const name = "@azure/msal-common";
export const version = "14.8.1";
export const version = "14.9.0";

@@ -367,3 +367,4 @@ /*

cacheRecord,
request.storeInCache
request.storeInCache,
request.correlationId
);

@@ -370,0 +371,0 @@ } finally {

@@ -26,2 +26,3 @@ /*

import { AuthError } from "../../error/AuthError";
import { CacheError } from "../../error/CacheError";

@@ -158,2 +159,5 @@ export interface PreQueueEvent {

return;
} else if (error instanceof CacheError) {
event.errorCode = error.errorCode;
return;
} else if (event.errorStack?.length) {

@@ -160,0 +164,0 @@ logger.trace(

@@ -72,2 +72,3 @@ /*

SilentIframeClientAcquireToken: "silentIframeClientAcquireToken",
AwaitConcurrentIframe: "awaitConcurrentIframe", // Time spent waiting for a concurrent iframe to complete

@@ -705,3 +706,8 @@ /**

incompleteSubsCount?: number;
/**
* CorrelationId of the in progress iframe request that was awaited
*/
awaitIframeCorrelationId?: string;
/**
* Amount of times queued in the JS event queue.

@@ -803,2 +809,7 @@ *

context?: string;
// Number of tokens in the cache to be reported when cache quota is exceeded
cacheRtCount?: number;
cacheIdCount?: number;
cacheAtCount?: number;
};

@@ -805,0 +816,0 @@

@@ -68,7 +68,16 @@ /*

SUCCESS_RANGE_START: 200,
SUCCESS: 200,
SUCCESS_RANGE_END: 299,
REDIRECT: 302,
CLIENT_ERROR_RANGE_START: 400,
BAD_REQUEST: 400,
UNAUTHORIZED: 401,
NOT_FOUND: 404,
REQUEST_TIMEOUT: 408,
TOO_MANY_REQUESTS: 429,
CLIENT_ERROR_RANGE_END: 499,
SERVER_ERROR_RANGE_START: 500,
INTERNAL_SERVER_ERROR: 500,
SERVICE_UNAVAILABLE: 503,
GATEWAY_TIMEOUT: 504,
SERVER_ERROR_RANGE_END: 599,

@@ -374,1 +383,4 @@ } as const;

export const ONE_DAY_IN_MS = 86400000;
// Token renewal offset default in seconds
export const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

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