Socket
Socket
Sign inDemoInstall

@azure/msal-common

Package Overview
Dependencies
Maintainers
3
Versions
120
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 1.5.0 to 1.6.0

dist/src/cache/interface/ICachePlugin.d.ts

31

CHANGELOG.json

@@ -5,2 +5,33 @@ {

{
"date": "Wed, 14 Oct 2020 23:45:07 GMT",
"tag": "@azure/msal-common_v1.6.0",
"version": "1.6.0",
"comments": {
"none": [
{
"comment": "Docs updates for msal-node release",
"author": "sameera.gajjarapu@microsoft.com",
"commit": "20718209d5d567c02223a7f1b220b4aa40ad6817",
"package": "@azure/msal-common"
}
],
"minor": [
{
"comment": "Add support for persistence cache plugin (#2348)",
"author": "sameera.gajjarapu@microsoft.com",
"commit": "26723689e35918c59bd6ce58ba8cb886118676c6",
"package": "@azure/msal-common"
}
],
"patch": [
{
"comment": "Add Telemetry header size limit (#2223)",
"author": "thomas.norling@microsoft.com",
"commit": "82b982ba38d70d9060e3cf5d9c38e0203b60d963",
"package": "@azure/msal-common"
}
]
}
},
{
"date": "Fri, 02 Oct 2020 17:42:35 GMT",

@@ -7,0 +38,0 @@ "tag": "@azure/msal-common_v1.5.0",

14

changelog.md
# Change Log - @azure/msal-common
This log was last generated on Fri, 02 Oct 2020 17:42:35 GMT and should not be manually modified.
This log was last generated on Wed, 14 Oct 2020 23:45:07 GMT and should not be manually modified.
<!-- Start content -->
## 1.6.0
Wed, 14 Oct 2020 23:45:07 GMT
### Minor changes
- Add support for persistence cache plugin (#2348) (sameera.gajjarapu@microsoft.com)
### Patches
- Add Telemetry header size limit (#2223) (thomas.norling@microsoft.com)
## 1.5.0

@@ -8,0 +20,0 @@

2

dist/src/cache/entities/ServerTelemetryEntity.d.ts
export declare class ServerTelemetryEntity {
failedRequests: Array<string | number>;
errors: string[];
errorCount: number;
cacheHits: number;
constructor();
/**

@@ -7,0 +7,0 @@ * validates if a given cache entry is "Telemetry", parses <key,value>

@@ -7,2 +7,4 @@ import { INetworkModule } from "../network/INetworkModule";

import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager";
import { ICachePlugin } from "../cache/interface/ICachePlugin";
import { ISerializableTokenCache } from "../cache/interface/ISerializableTokenCache";
/**

@@ -31,2 +33,4 @@ * Use the configuration object to configure MSAL Modules and initialize the base interfaces for MSAL.

serverTelemetryManager?: ServerTelemetryManager;
persistencePlugin?: ICachePlugin;
serializableCache?: ISerializableTokenCache;
};

@@ -96,2 +100,2 @@ /**

*/
export declare function buildClientConfiguration({ authOptions: userAuthOptions, systemOptions: userSystemOptions, loggerOptions: userLoggerOption, storageInterface: storageImplementation, networkInterface: networkImplementation, cryptoInterface: cryptoImplementation, clientCredentials: clientCredentials, libraryInfo: libraryInfo, serverTelemetryManager: serverTelemetryManager }: ClientConfiguration): ClientConfiguration;
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): ClientConfiguration;

@@ -27,3 +27,7 @@ export { AuthorizationCodeClient } from "./client/AuthorizationCodeClient";

export { RefreshTokenEntity } from "./cache/entities/RefreshTokenEntity";
export { ServerTelemetryEntity } from "./cache/entities/ServerTelemetryEntity";
export { ThrottlingEntity } from "./cache/entities/ThrottlingEntity";
export { ICachePlugin } from "./cache/interface/ICachePlugin";
export { TokenCacheContext } from "./cache/persistence/TokenCacheContext";
export { ISerializableTokenCache } from "./cache/interface/ISerializableTokenCache";
export { INetworkModule, NetworkRequestOptions } from "./network/INetworkModule";

@@ -59,4 +63,3 @@ export { NetworkManager, NetworkResponse } from "./network/NetworkManager";

export { TimeUtils } from "./utils/TimeUtils";
export { ServerTelemetryCacheValue } from "./telemetry/server/ServerTelemetryCacheValue";
export { ServerTelemetryManager } from "./telemetry/server/ServerTelemetryManager";
export { ServerTelemetryRequest } from "./telemetry/server/ServerTelemetryRequest";

@@ -11,2 +11,4 @@ import { ServerAuthorizationTokenResponse } from "./ServerAuthorizationTokenResponse";

import { RequestStateObject } from "../utils/ProtocolUtils";
import { ICachePlugin } from "../cache/interface/ICachePlugin";
import { ISerializableTokenCache } from "../cache/interface/ISerializableTokenCache";
/**

@@ -22,3 +24,5 @@ * Class that handles response parsing.

private homeAccountIdentifier;
constructor(clientId: string, cacheStorage: CacheManager, cryptoObj: ICrypto, logger: Logger);
private serializableCache;
private persistencePlugin;
constructor(clientId: string, cacheStorage: CacheManager, cryptoObj: ICrypto, logger: Logger, serializableCache?: ISerializableTokenCache, persistencePlugin?: ICachePlugin);
/**

@@ -41,3 +45,3 @@ * Function which validates server authorization code response.

*/
handleServerTokenResponse(serverTokenResponse: ServerAuthorizationTokenResponse, authority: Authority, resourceRequestMethod?: string, resourceRequestUri?: string, cachedNonce?: string, cachedState?: string, requestScopes?: string[], oboAssertion?: string): Promise<AuthenticationResult>;
handleServerTokenResponse(serverTokenResponse: ServerAuthorizationTokenResponse, authority: Authority, resourceRequestMethod?: string, resourceRequestUri?: string, cachedNonce?: string, cachedState?: string, requestScopes?: string[], oboAssertion?: string, handlingRefreshTokenResponse?: boolean): Promise<AuthenticationResult>;
/**

@@ -44,0 +48,0 @@ * Generates CacheRecord

import { CacheManager } from "../../cache/CacheManager";
import { ServerTelemetryCacheValue } from "./ServerTelemetryCacheValue";
import { AuthError } from "../../error/AuthError";
import { ServerTelemetryRequest } from "./ServerTelemetryRequest";
import { ServerTelemetryEntity } from "../../cache/entities/ServerTelemetryEntity";
export declare class ServerTelemetryManager {

@@ -12,8 +12,32 @@ private cacheManager;

constructor(telemetryRequest: ServerTelemetryRequest, cacheManager: CacheManager);
/**
* API to add MSER Telemetry to request
*/
generateCurrentRequestHeaderValue(): string;
/**
* API to add MSER Telemetry for the last failed request
*/
generateLastRequestHeaderValue(): string;
/**
* API to cache token failures for MSER data capture
* @param error
*/
cacheFailedRequest(error: AuthError): void;
/**
* Update server telemetry cache entry by incrementing cache hit counter
*/
incrementCacheHits(): number;
getLastRequests(): ServerTelemetryCacheValue;
/**
* Get the server telemetry entity from cache or initialize a new one
*/
getLastRequests(): ServerTelemetryEntity;
/**
* Remove server telemetry cache entry
*/
clearTelemetryCache(): void;
/**
* Returns the maximum number of errors that can be flushed to the server in the next network request
* @param serverTelemetryEntity
*/
static maxErrorsToSend(serverTelemetryEntity: ServerTelemetryEntity): number;
}

@@ -227,6 +227,8 @@ export declare const Constants: {

SCHEMA_VERSION: number;
FAILURE_LIMIT: number;
MAX_HEADER_BYTES: number;
CACHE_KEY: string;
CATEGORY_SEPARATOR: string;
VALUE_SEPARATOR: string;
OVERFLOW_TRUE: string;
OVERFLOW_FALSE: string;
};

@@ -233,0 +235,0 @@ /**

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

},
"version": "1.5.0",
"version": "1.6.0",
"description": "Microsoft Authentication Library for js",

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

@@ -0,0 +0,0 @@ # Microsoft Authentication Library for JavaScript (MSAL.js) Common Protocols Package

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

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