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.4.0 to 14.4.1-beta.0

0

dist/account/AccountInfo.d.ts

@@ -0,0 +0,0 @@ import { TokenClaims } from "./TokenClaims";

@@ -0,0 +0,0 @@ import { TokenClaims } from "./TokenClaims";

@@ -0,0 +0,0 @@ export type CcsCredential = {

@@ -0,0 +0,0 @@ import { ICrypto } from "../crypto/ICrypto";

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

@@ -0,0 +0,0 @@ import { AuthorityType } from "./AuthorityType";

@@ -0,0 +0,0 @@ import { Authority } from "./Authority";

@@ -0,0 +0,0 @@ import { Logger } from "../logger/Logger";

@@ -0,0 +0,0 @@ import { ProtocolMode } from "./ProtocolMode";

export type AzureRegion = string;
//# sourceMappingURL=AzureRegion.d.ts.map

@@ -0,0 +0,0 @@ import { AzureRegion } from "./AzureRegion";

@@ -0,0 +0,0 @@ export type CloudDiscoveryMetadata = {

@@ -0,0 +0,0 @@ import { CloudDiscoveryMetadata } from "./CloudDiscoveryMetadata";

@@ -0,0 +0,0 @@ export type ImdsOptions = {

@@ -0,0 +0,0 @@ import { ServerResponseType } from "../utils/Constants";

@@ -0,0 +0,0 @@ import { INetworkModule } from "../network/INetworkModule";

@@ -0,0 +0,0 @@ import { RegionDiscoveryOutcomes, RegionDiscoverySources } from "../utils/Constants";

@@ -0,0 +0,0 @@ /// <reference types="node" />

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

@@ -0,0 +0,0 @@ import { CredentialEntity } from "./CredentialEntity";

@@ -0,0 +0,0 @@ import { Authority } from "../../authority/Authority";

@@ -0,0 +0,0 @@ import { CloudDiscoveryMetadata } from "../../authority/CloudDiscoveryMetadata";

@@ -0,0 +0,0 @@ import { IdTokenEntity } from "./IdTokenEntity";

@@ -0,0 +0,0 @@ import { CredentialType, AuthenticationScheme } from "../../utils/Constants";

@@ -0,0 +0,0 @@ import { CredentialEntity } from "./CredentialEntity";

4

dist/cache/entities/RefreshTokenEntity.d.ts

@@ -5,3 +5,5 @@ import { CredentialEntity } from "./CredentialEntity";

*/
export type RefreshTokenEntity = CredentialEntity;
export type RefreshTokenEntity = CredentialEntity & {
expiresOn?: string;
};
//# sourceMappingURL=RefreshTokenEntity.d.ts.map

@@ -0,0 +0,0 @@ export type ServerTelemetryEntity = {

@@ -0,0 +0,0 @@ export declare class ThrottlingEntity {

@@ -0,0 +0,0 @@ import { AccountFilter } from "../utils/CacheTypes";

@@ -0,0 +0,0 @@ import { TokenCacheContext } from "../persistence/TokenCacheContext";

@@ -0,0 +0,0 @@ export interface ISerializableTokenCache {

@@ -0,0 +0,0 @@ import { ISerializableTokenCache } from "../interface/ISerializableTokenCache";

@@ -42,3 +42,3 @@ import { AuthenticationScheme } from "../../utils/Constants";

*/
export declare function createRefreshTokenEntity(homeAccountId: string, environment: string, refreshToken: string, clientId: string, familyId?: string, userAssertionHash?: string): RefreshTokenEntity;
export declare function createRefreshTokenEntity(homeAccountId: string, environment: string, refreshToken: string, clientId: string, familyId?: string, userAssertionHash?: string, expiresOn?: string): RefreshTokenEntity;
export declare function isCredentialEntity(entity: object): boolean;

@@ -45,0 +45,0 @@ /**

@@ -0,0 +0,0 @@ import { AccountEntity } from "../entities/AccountEntity";

@@ -0,0 +0,0 @@ import { BaseClient } from "./BaseClient";

@@ -0,0 +0,0 @@ import { ClientConfiguration, CommonClientConfiguration } from "../config/ClientConfiguration";

@@ -0,0 +0,0 @@ import { ClientConfiguration } from "../config/ClientConfiguration";

@@ -0,0 +0,0 @@ import { BaseClient } from "./BaseClient";

@@ -0,0 +0,0 @@ import { INetworkModule } from "../network/INetworkModule";

@@ -0,0 +0,0 @@ import { BaseAuthRequest } from "../request/BaseAuthRequest";

@@ -0,0 +0,0 @@ export interface IGuidGenerator {

@@ -0,0 +0,0 @@ import { JsonWebTokenTypes } from "../utils/Constants";

@@ -0,0 +0,0 @@ import { ICrypto, SignedHttpRequestParameters } from "./ICrypto";

@@ -0,0 +0,0 @@ import { JoseHeaderOptions } from "./JoseHeader";

@@ -0,0 +0,0 @@ import * as AuthErrorCodes from "./AuthErrorCodes";

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

@@ -0,0 +0,0 @@ import { AuthError } from "./AuthError";

@@ -0,0 +0,0 @@ export declare const clientInfoDecodingError = "client_info_decoding_error";

@@ -0,0 +0,0 @@ import { AuthError } from "./AuthError";

@@ -0,0 +0,0 @@ export declare const redirectUriEmpty = "redirect_uri_empty";

@@ -0,0 +0,0 @@ import { AuthError } from "./AuthError";

export declare const noTokensFound = "no_tokens_found";
export declare const nativeAccountUnavailable = "native_account_unavailable";
export declare const refreshTokenExpired = "refresh_token_expired";
export declare const interactionRequired = "interaction_required";

@@ -4,0 +5,0 @@ export declare const consentRequired = "consent_required";

@@ -0,0 +0,0 @@ import { AuthError } from "./AuthError";

export declare const missingKidError = "missing_kid_error";
export declare const missingAlgError = "missing_alg_error";
//# sourceMappingURL=JoseHeaderErrorCodes.d.ts.map

@@ -0,0 +0,0 @@ import { AuthError } from "./AuthError";

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

@@ -0,0 +0,0 @@ import { LoggerOptions } from "../config/ClientConfiguration";

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

@@ -0,0 +0,0 @@ import { INetworkModule, NetworkRequestOptions } from "./INetworkModule";

@@ -0,0 +0,0 @@ import { ShrOptions } from "../crypto/SignedHttpRequest";

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

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

@@ -0,0 +0,0 @@ import { AuthenticationScheme } from "../utils/Constants";

@@ -0,0 +0,0 @@ import { BaseAuthRequest } from "./BaseAuthRequest";

@@ -0,0 +0,0 @@ import { ResponseMode } from "../utils/Constants";

@@ -0,0 +0,0 @@ import { BaseAuthRequest } from "./BaseAuthRequest";

@@ -0,0 +0,0 @@ import { DeviceCodeResponse } from "../response/DeviceCodeResponse";

@@ -0,0 +0,0 @@ import { AccountInfo } from "../account/AccountInfo";

@@ -0,0 +0,0 @@ import { BaseAuthRequest } from "./BaseAuthRequest";

@@ -18,2 +18,3 @@ import { BaseAuthRequest } from "./BaseAuthRequest";

refreshToken: string;
expiresOn?: string;
ccsCredential?: CcsCredential;

@@ -20,0 +21,0 @@ forceCache?: boolean;

@@ -20,3 +20,4 @@ import { AccountInfo } from "../account/AccountInfo";

tokenBodyParameters?: StringDict;
enableRTExpiryCheck?: boolean;
};
//# sourceMappingURL=CommonSilentFlowRequest.d.ts.map

@@ -0,0 +0,0 @@ import { BaseAuthRequest } from "./BaseAuthRequest";

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

@@ -0,0 +0,0 @@ export type NativeSignOutRequest = {

@@ -0,0 +0,0 @@ import { ResponseMode } from "../utils/Constants";

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

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

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

@@ -0,0 +0,0 @@ import { AccountInfo } from "../account/AccountInfo";

@@ -0,0 +0,0 @@ import { ServerAuthorizationTokenResponse } from "./ServerAuthorizationTokenResponse";

@@ -0,0 +0,0 @@ export type IMDSBadResponse = {

@@ -48,3 +48,3 @@ import { ServerAuthorizationTokenResponse } from "./ServerAuthorizationTokenResponse";

*/
handleServerTokenResponse(serverTokenResponse: ServerAuthorizationTokenResponse, authority: Authority, reqTimestamp: number, request: BaseAuthRequest, authCodePayload?: AuthorizationCodePayload, userAssertionHash?: string, handlingRefreshTokenResponse?: boolean, forceCacheRefreshTokenResponse?: boolean, serverRequestId?: string): Promise<AuthenticationResult>;
handleServerTokenResponse(serverTokenResponse: ServerAuthorizationTokenResponse, authority: Authority, reqTimestamp: number, request: BaseAuthRequest, authCodePayload?: AuthorizationCodePayload, userAssertionHash?: string, handlingRefreshTokenResponse?: boolean, forceCacheRefreshTokenResponse?: boolean, serverRequestId?: string, rtExpiresOn?: string): Promise<AuthenticationResult>;
/**

@@ -51,0 +51,0 @@ * Generates CacheRecord

@@ -0,0 +0,0 @@ import { AuthenticationScheme } from "../utils/Constants";

@@ -0,0 +0,0 @@ import { PerformanceEvent } from "./PerformanceEvent";

@@ -0,0 +0,0 @@ export interface IPerformanceMeasurement {

@@ -0,0 +0,0 @@ import { ApplicationTelemetry } from "../../config/ClientConfiguration";

@@ -0,0 +0,0 @@ import { IPerformanceClient, InProgressPerformanceEvent } from "./IPerformanceClient";

@@ -0,0 +0,0 @@ import { CacheOutcome } from "../../utils/Constants";

@@ -0,0 +0,0 @@ export type ServerTelemetryRequest = {

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

@@ -0,0 +0,0 @@ import { IUri } from "./IUri";

@@ -0,0 +0,0 @@ export declare const Constants: {

@@ -0,0 +0,0 @@ import { Logger } from "../logger/Logger";

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

@@ -0,0 +0,0 @@ import { ICrypto } from "../crypto/ICrypto";

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

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

@@ -0,0 +0,0 @@ import { ServerAuthorizationCodeResponse } from "../response/ServerAuthorizationCodeResponse";

{
"name": "@azure/msal-common",
"author": {
"name": "Microsoft",
"email": "nugetaad@microsoft.com",
"url": "https://www.microsoft.com"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/AzureAD/microsoft-authentication-library-for-js.git"
},
"version": "14.4.0",
"description": "Microsoft Authentication Library for js",
"keywords": [
"implicit",
"authorization code",
"PKCE",
"js",
"AAD",
"msal",
"oauth"
],
"sideEffects": false,
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"module": "./dist/index.mjs",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs",
"default": "./dist/index.mjs"
"name": "@azure/msal-common",
"author": {
"name": "Microsoft",
"email": "nugetaad@microsoft.com",
"url": "https://www.microsoft.com"
},
"./package.json": "./package.json"
},
"engines": {
"node": ">=0.8.0"
},
"directories": {
"test": "test"
},
"files": [
"dist",
"src"
],
"scripts": {
"clean": "shx rm -rf dist lib",
"clean:coverage": "rimraf ../../.nyc_output/*",
"lint": "eslint src --ext .ts",
"lint:fix": "npm run lint -- --fix",
"test": "jest",
"test:coverage": "jest --coverage",
"test:coverage:only": "npm run clean:coverage && npm run test:coverage",
"build:modules": "rollup -c --strictDeprecations --bundleConfigAsCjs",
"build:modules:watch": "rollup -cw --bundleConfigAsCjs",
"build": "npm run clean && npm run build:modules",
"build:all": "npm run build",
"prepack": "npm run build",
"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"
},
"beachball": {
"disallowedChangeTypes": [
"major"
]
},
"devDependencies": {
"@babel/core": "^7.7.2",
"@babel/plugin-proposal-class-properties": "^7.7.0",
"@babel/plugin-proposal-object-rest-spread": "^7.6.2",
"@babel/preset-env": "^7.7.1",
"@babel/preset-typescript": "^7.7.2",
"@rollup/plugin-typescript": "^11.0.0",
"@types/debug": "^4.1.5",
"@types/jest": "^29.5.0",
"@types/lodash": "^4.14.182",
"@types/node": "^20.3.1",
"@types/sinon": "^7.5.0",
"eslint-config-msal": "^0.0.0",
"jest": "^29.5.0",
"lodash": "^4.17.21",
"prettier": "2.8.7",
"rimraf": "^3.0.2",
"rollup": "^3.14.0",
"shx": "^0.3.2",
"sinon": "^7.5.0",
"ts-jest": "^29.1.0",
"ts-node": "^10.9.1",
"tslib": "^1.10.0",
"typescript": "^4.9.5",
"yargs": "^17.5.1"
}
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/AzureAD/microsoft-authentication-library-for-js.git"
},
"version": "14.4.1-beta.0",
"description": "Microsoft Authentication Library for js",
"keywords": [
"implicit",
"authorization code",
"PKCE",
"js",
"AAD",
"msal",
"oauth"
],
"sideEffects": false,
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"module": "./dist/index.mjs",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs",
"default": "./dist/index.mjs"
},
"./package.json": "./package.json"
},
"engines": {
"node": ">=0.8.0"
},
"directories": {
"test": "test"
},
"files": [
"dist",
"src"
],
"scripts": {
"clean": "shx rm -rf dist lib",
"clean:coverage": "rimraf ../../.nyc_output/*",
"lint": "eslint src --ext .ts",
"lint:fix": "npm run lint -- --fix",
"test": "jest",
"test:coverage": "jest --coverage",
"test:coverage:only": "npm run clean:coverage && npm run test:coverage",
"build:modules": "rollup -c --strictDeprecations --bundleConfigAsCjs",
"build:modules:watch": "rollup -cw --bundleConfigAsCjs",
"build": "npm run clean && npm run build:modules",
"build:all": "npm run build",
"prepack": "npm run build",
"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"
},
"beachball": {
"disallowedChangeTypes": [
"major"
]
},
"devDependencies": {
"@babel/core": "^7.7.2",
"@babel/plugin-proposal-class-properties": "^7.7.0",
"@babel/plugin-proposal-object-rest-spread": "^7.6.2",
"@babel/preset-env": "^7.7.1",
"@babel/preset-typescript": "^7.7.2",
"@rollup/plugin-typescript": "^11.0.0",
"@types/debug": "^4.1.5",
"@types/jest": "^29.5.0",
"@types/lodash": "^4.14.182",
"@types/node": "^20.3.1",
"@types/sinon": "^7.5.0",
"eslint-config-msal": "^0.0.0",
"jest": "^29.5.0",
"lodash": "^4.17.21",
"prettier": "2.8.7",
"rimraf": "^3.0.2",
"rollup": "^3.14.0",
"shx": "^0.3.2",
"sinon": "^7.5.0",
"ts-jest": "^29.1.0",
"ts-node": "^10.9.1",
"tslib": "^1.10.0",
"typescript": "^4.9.5",
"yargs": "^17.5.1"
}
}

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

*/
export type RefreshTokenEntity = CredentialEntity;
export type RefreshTokenEntity = CredentialEntity & {
expiresOn?: string;
};

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

familyId?: string,
userAssertionHash?: string
userAssertionHash?: string,
expiresOn?: string
): RefreshTokenEntity {

@@ -190,2 +191,6 @@ const rtEntity: RefreshTokenEntity = {

if (expiresOn) {
rtEntity.expiresOn = expiresOn;
}
return rtEntity;

@@ -192,0 +197,0 @@ }

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

undefined,
requestId
requestId,
(TimeUtils.nowSeconds() + 24 * 60 * 60).toString()
);

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

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

request.forceCache,
requestId
requestId,
request.expiresOn
);

@@ -219,2 +220,12 @@ }

}
if (
request.enableRTExpiryCheck &&
refreshToken.expiresOn &&
Number(refreshToken.expiresOn) < TimeUtils.nowSeconds() + 5 * 60
) {
throw createInteractionRequiredAuthError(
InteractionRequiredAuthErrorCodes.refreshTokenExpired
);
}
// attach cached RT size to the current measurement

@@ -231,2 +242,3 @@

},
expiresOn: refreshToken.expiresOn,
};

@@ -233,0 +245,0 @@

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

"No refresh token found in the cache. Please sign-in.",
[InteractionRequiredAuthErrorCodes.refreshTokenExpired]:
"Refresh token has expired.",
[InteractionRequiredAuthErrorCodes.nativeAccountUnavailable]:

@@ -33,0 +35,0 @@ "The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API.",

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

export const nativeAccountUnavailable = "native_account_unavailable";
export const refreshTokenExpired = "refresh_token_expired";

@@ -11,0 +12,0 @@ // Codes potentially returned by server

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

refreshToken: string;
expiresOn?: string;
ccsCredential?: CcsCredential;

@@ -26,0 +27,0 @@ forceCache?: boolean;

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

tokenBodyParameters?: StringDict;
enableRTExpiryCheck?: boolean;
};

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

forceCacheRefreshTokenResponse?: boolean,
serverRequestId?: string
serverRequestId?: string,
rtExpiresOn?: string
): Promise<AuthenticationResult> {

@@ -315,3 +316,4 @@ this.performanceClient?.addQueueMeasurement(

userAssertionHash,
authCodePayload
authCodePayload,
rtExpiresOn
);

@@ -402,3 +404,4 @@ let cacheContext;

userAssertionHash?: string,
authCodePayload?: AuthorizationCodePayload
authCodePayload?: AuthorizationCodePayload,
rtExpiresOn?: string
): CacheRecord {

@@ -497,3 +500,4 @@ const env = authority.getPreferredCache();

serverTokenResponse.foci,
userAssertionHash
userAssertionHash,
rtExpiresOn
);

@@ -500,0 +504,0 @@ }

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

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