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 3.1.0 to 4.0.0

dist/packageMetadata.d.ts

35

CHANGELOG.json

@@ -5,2 +5,37 @@ {

{
"date": "Tue, 09 Feb 2021 01:48:22 GMT",
"tag": "@azure/msal-common_v4.0.0",
"version": "4.0.0",
"comments": {
"patch": [
{
"comment": "Fix version.json import errors (#2993)",
"author": "thomas.norling@microsoft.com",
"commit": "6dc3bc9e2148bc53b181d9f079f6e11e0159620b",
"package": "@azure/msal-common"
},
{
"comment": "Setting postLogoutRedirectUri as null will disable post logout redirect",
"author": "janutter@microsoft.com",
"commit": "cae9fa7bdd1575067d2e823402e0725f7bf8b11e",
"package": "@azure/msal-common"
},
{
"comment": "Ignore OIDC scopes during cache lookup or replacement (#2969)",
"author": "prkanher@microsoft.com",
"commit": "554f47e8ff576c3230c36df74cd73b6101d333ab",
"package": "@azure/msal-common"
}
],
"major": [
{
"comment": "Add API Extractor for msal-node",
"author": "sameera.gajjarapu@microsoft.com",
"commit": "01747296efdf08eefe585930097d9bbbf6b00789",
"package": "@azure/msal-common"
}
]
}
},
{
"date": "Tue, 02 Feb 2021 01:56:47 GMT",

@@ -7,0 +42,0 @@ "tag": "@azure/msal-common_v3.1.0",

16

changelog.md
# Change Log - @azure/msal-common
This log was last generated on Tue, 02 Feb 2021 01:56:47 GMT and should not be manually modified.
This log was last generated on Tue, 09 Feb 2021 01:48:22 GMT and should not be manually modified.
<!-- Start content -->
## 4.0.0
Tue, 09 Feb 2021 01:48:22 GMT
### Major changes
- Add API Extractor for msal-node (sameera.gajjarapu@microsoft.com)
### Patches
- Fix version.json import errors (#2993) (thomas.norling@microsoft.com)
- Setting postLogoutRedirectUri as null will disable post logout redirect (janutter@microsoft.com)
- Ignore OIDC scopes during cache lookup or replacement (#2969) (prkanher@microsoft.com)
## 3.1.0

@@ -8,0 +22,0 @@

import { ISerializableTokenCache } from "../interface/ISerializableTokenCache";
export declare class TokenCacheContext {
/**
* This class instance helps track the memory changes facilitating
* decisions to read from and write to the persistent cache
*/ export declare class TokenCacheContext {
/**
* boolean indicating cache change
*/
hasChanged: boolean;
/**
* serializable token cache interface
*/
cache: ISerializableTokenCache;
constructor(tokenCache: ISerializableTokenCache, hasChanged: boolean);
/**
* boolean which indicates the changes in cache
*/
get cacheHasChanged(): boolean;
/**
* function to retrieve the token cache
*/
get tokenCache(): ISerializableTokenCache;
}
//# sourceMappingURL=TokenCacheContext.d.ts.map

@@ -19,3 +19,9 @@ import { AccountEntity } from "../entities/AccountEntity";

};
/**
* Object type of all accepted cache types
*/
export declare type ValidCacheType = AccountEntity | IdTokenEntity | AccessTokenEntity | RefreshTokenEntity | AppMetadataEntity | AuthorityMetadataEntity | ServerTelemetryEntity | ThrottlingEntity | string;
/**
* Object type of all credential types
*/
export declare type ValidCredentialType = IdTokenEntity | AccessTokenEntity | RefreshTokenEntity;

@@ -22,0 +28,0 @@ /**

12

dist/client/AuthorizationCodeClient.d.ts
import { BaseClient } from "./BaseClient";
import { AuthorizationUrlRequest } from "../request/AuthorizationUrlRequest";
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest";
import { CommonAuthorizationUrlRequest } from "../request/CommonAuthorizationUrlRequest";
import { CommonAuthorizationCodeRequest } from "../request/CommonAuthorizationCodeRequest";
import { ClientConfiguration } from "../config/ClientConfiguration";
import { AuthenticationResult } from "../response/AuthenticationResult";
import { EndSessionRequest } from "../request/EndSessionRequest";
import { CommonEndSessionRequest } from "../request/CommonEndSessionRequest";
import { AuthorizationCodePayload } from "../response/AuthorizationCodePayload";

@@ -23,3 +23,3 @@ /**

*/
getAuthCodeUrl(request: AuthorizationUrlRequest): Promise<string>;
getAuthCodeUrl(request: CommonAuthorizationUrlRequest): Promise<string>;
/**

@@ -30,3 +30,3 @@ * API to acquire a token in exchange of 'authorization_code` acquired by the user in the first leg of the

*/
acquireToken(request: AuthorizationCodeRequest, authCodePayload?: AuthorizationCodePayload): Promise<AuthenticationResult>;
acquireToken(request: CommonAuthorizationCodeRequest, authCodePayload?: AuthorizationCodePayload): Promise<AuthenticationResult>;
/**

@@ -43,3 +43,3 @@ * Handles the hash fragment response from public client code request. Returns a code response used by

*/
getLogoutUri(logoutRequest: EndSessionRequest): string;
getLogoutUri(logoutRequest: CommonEndSessionRequest): string;
/**

@@ -46,0 +46,0 @@ * Executes POST request to token endpoint

import { ClientConfiguration } from "../config/ClientConfiguration";
import { BaseClient } from "./BaseClient";
import { AuthenticationResult } from "../response/AuthenticationResult";
import { ClientCredentialRequest } from "../request/ClientCredentialRequest";
import { CommonClientCredentialRequest } from "../request/CommonClientCredentialRequest";
/**

@@ -15,3 +15,3 @@ * OAuth2.0 client credential grant

*/
acquireToken(request: ClientCredentialRequest): Promise<AuthenticationResult | null>;
acquireToken(request: CommonClientCredentialRequest): Promise<AuthenticationResult | null>;
/**

@@ -18,0 +18,0 @@ * looks up cache if the tokens are cached already

import { BaseClient } from "./BaseClient";
import { DeviceCodeRequest } from "../request/DeviceCodeRequest";
import { CommonDeviceCodeRequest } from "../request/CommonDeviceCodeRequest";
import { ClientConfiguration } from "../config/ClientConfiguration";

@@ -15,3 +15,3 @@ import { AuthenticationResult } from "../response/AuthenticationResult";

*/
acquireToken(request: DeviceCodeRequest): Promise<AuthenticationResult | null>;
acquireToken(request: CommonDeviceCodeRequest): Promise<AuthenticationResult | null>;
/**

@@ -18,0 +18,0 @@ * Creates device code request and executes http GET

import { ClientConfiguration } from "../config/ClientConfiguration";
import { BaseClient } from "./BaseClient";
import { AuthenticationResult } from "../response/AuthenticationResult";
import { OnBehalfOfRequest } from "../request/OnBehalfOfRequest";
import { CommonOnBehalfOfRequest } from "../request/CommonOnBehalfOfRequest";
/**

@@ -15,3 +15,3 @@ * On-Behalf-Of client

*/
acquireToken(request: OnBehalfOfRequest): Promise<AuthenticationResult | null>;
acquireToken(request: CommonOnBehalfOfRequest): Promise<AuthenticationResult | null>;
/**

@@ -18,0 +18,0 @@ * look up cache for tokens

import { ClientConfiguration } from "../config/ClientConfiguration";
import { BaseClient } from "./BaseClient";
import { RefreshTokenRequest } from "../request/RefreshTokenRequest";
import { CommonRefreshTokenRequest } from "../request/CommonRefreshTokenRequest";
import { AuthenticationResult } from "../response/AuthenticationResult";
import { SilentFlowRequest } from "../request/SilentFlowRequest";
import { CommonSilentFlowRequest } from "../request/CommonSilentFlowRequest";
/**

@@ -11,3 +11,3 @@ * OAuth2.0 refresh token client

constructor(configuration: ClientConfiguration);
acquireToken(request: RefreshTokenRequest): Promise<AuthenticationResult>;
acquireToken(request: CommonRefreshTokenRequest): Promise<AuthenticationResult>;
/**

@@ -17,3 +17,3 @@ * Gets cached refresh token and attaches to request, then calls acquireToken API

*/
acquireTokenByRefreshToken(request: SilentFlowRequest): Promise<AuthenticationResult>;
acquireTokenByRefreshToken(request: CommonSilentFlowRequest): Promise<AuthenticationResult>;
/**

@@ -20,0 +20,0 @@ * makes a network call to acquire tokens by exchanging RefreshToken available in userCache; throws if refresh token is not cached

import { BaseClient } from "./BaseClient";
import { ClientConfiguration } from "../config/ClientConfiguration";
import { SilentFlowRequest } from "../request/SilentFlowRequest";
import { CommonSilentFlowRequest } from "../request/CommonSilentFlowRequest";
import { AuthenticationResult } from "../response/AuthenticationResult";

@@ -12,3 +12,3 @@ export declare class SilentFlowClient extends BaseClient {

*/
acquireToken(request: SilentFlowRequest): Promise<AuthenticationResult>;
acquireToken(request: CommonSilentFlowRequest): Promise<AuthenticationResult>;
/**

@@ -18,3 +18,3 @@ * Retrieves token from cache or throws an error if it must be refreshed.

*/
acquireCachedToken(request: SilentFlowRequest): Promise<AuthenticationResult>;
acquireCachedToken(request: CommonSilentFlowRequest): Promise<AuthenticationResult>;
/**

@@ -21,0 +21,0 @@ * Helper function to build response object from the CacheRecord

import { BaseClient } from "./BaseClient";
import { ClientConfiguration } from "../config/ClientConfiguration";
import { UsernamePasswordRequest } from "../request/UsernamePasswordRequest";
import { CommonUsernamePasswordRequest } from "../request/CommonUsernamePasswordRequest";
import { AuthenticationResult } from "../response/AuthenticationResult";

@@ -16,3 +16,3 @@ /**

*/
acquireToken(request: UsernamePasswordRequest): Promise<AuthenticationResult | null>;
acquireToken(request: CommonUsernamePasswordRequest): Promise<AuthenticationResult | null>;
/**

@@ -19,0 +19,0 @@ * Executes POST request to token endpoint

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

export declare class AuthError extends Error {
/**
* Short string denoting error
*/
errorCode: string;
/**
* Detailed description of error
*/
errorMessage: string;
/**
* Describes the subclass of an error
*/
subError: string;

@@ -18,0 +27,0 @@ constructor(errorCode?: string, errorMessage?: string, suberror?: string);

@@ -47,11 +47,11 @@ /**

export { BaseAuthRequest } from "./request/BaseAuthRequest";
export { AuthorizationUrlRequest } from "./request/AuthorizationUrlRequest";
export { AuthorizationCodeRequest } from "./request/AuthorizationCodeRequest";
export { RefreshTokenRequest } from "./request/RefreshTokenRequest";
export { ClientCredentialRequest } from "./request/ClientCredentialRequest";
export { OnBehalfOfRequest } from "./request/OnBehalfOfRequest";
export { SilentFlowRequest } from "./request/SilentFlowRequest";
export { DeviceCodeRequest } from "./request/DeviceCodeRequest";
export { EndSessionRequest } from "./request/EndSessionRequest";
export { UsernamePasswordRequest } from "./request/UsernamePasswordRequest";
export { CommonAuthorizationUrlRequest } from "./request/CommonAuthorizationUrlRequest";
export { CommonAuthorizationCodeRequest } from "./request/CommonAuthorizationCodeRequest";
export { CommonRefreshTokenRequest } from "./request/CommonRefreshTokenRequest";
export { CommonClientCredentialRequest } from "./request/CommonClientCredentialRequest";
export { CommonOnBehalfOfRequest } from "./request/CommonOnBehalfOfRequest";
export { CommonSilentFlowRequest } from "./request/CommonSilentFlowRequest";
export { CommonDeviceCodeRequest } from "./request/CommonDeviceCodeRequest";
export { CommonEndSessionRequest } from "./request/CommonEndSessionRequest";
export { CommonUsernamePasswordRequest } from "./request/CommonUsernamePasswordRequest";
export { AuthenticationResult } from "./response/AuthenticationResult";

@@ -67,3 +67,3 @@ export { AuthorizationCodePayload } from "./response/AuthorizationCodePayload";

export { ClientConfigurationError, ClientConfigurationErrorMessage } from "./error/ClientConfigurationError";
export { Constants, PromptValue, PersistentCacheKeys, ResponseMode, CacheSchemaType, CredentialType, CacheType, CacheAccountType, AuthenticationScheme } from "./utils/Constants";
export { Constants, OIDC_DEFAULT_SCOPES, PromptValue, PersistentCacheKeys, ResponseMode, CacheSchemaType, CredentialType, CacheType, CacheAccountType, AuthenticationScheme } from "./utils/Constants";
export { StringUtils } from "./utils/StringUtils";

@@ -70,0 +70,0 @@ export { StringDict } from "./utils/MsalTypes";

@@ -11,3 +11,3 @@ import { NetworkResponse } from "./NetworkManager";

* Client network interface to send backend requests.
* @hidden
* @interface
*/

@@ -14,0 +14,0 @@ export interface INetworkModule {

@@ -35,3 +35,3 @@ /**

*/
containsOnlyDefaultScopes(): boolean;
containsOnlyOIDCScopes(): boolean;
/**

@@ -56,3 +56,3 @@ * Appends single scope if passed

*/
removeDefaultScopes(): void;
removeOIDCScopes(): void;
/**

@@ -59,0 +59,0 @@ * Combines an array of scopes with the current set of scopes.

@@ -16,2 +16,3 @@ export declare const Constants: {

OFFLINE_ACCESS_SCOPE: string;
EMAIL_SCOPE: string;
CODE_RESPONSE_TYPE: string;

@@ -28,2 +29,4 @@ CODE_GRANT_TYPE: string;

};
export declare const OIDC_DEFAULT_SCOPES: string[];
export declare const OIDC_SCOPES: string[];
/**

@@ -30,0 +33,0 @@ * Request header names

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

},
"version": "3.1.0",
"version": "4.0.0",
"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 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 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

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