Socket
Socket
Sign inDemoInstall

@azure/msal-browser

Package Overview
Dependencies
Maintainers
3
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@azure/msal-browser - npm Package Compare versions

Comparing version 3.18.0 to 3.19.0

dist/request/InitializeApplicationRequest.d.ts

3

dist/app/IPublicClientApplication.d.ts

@@ -16,4 +16,5 @@ import { AccountFilter, AccountInfo, Logger, PerformanceCallbackFunction } from "@azure/msal-common";

import { ClearCacheRequest } from "../request/ClearCacheRequest";
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest";
export interface IPublicClientApplication {
initialize(): Promise<void>;
initialize(request?: InitializeApplicationRequest): Promise<void>;
acquireTokenPopup(request: PopupRequest): Promise<AuthenticationResult>;

@@ -20,0 +21,0 @@ acquireTokenRedirect(request: RedirectRequest): Promise<void>;

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

import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest";
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest";
/**

@@ -25,2 +26,7 @@ * The PublicClientApplication class is the object exposed by the library to perform authentication and authorization functions in Single Page Applications

protected controller: IController;
/**
* Creates StandardController and passes it to the PublicClientApplication
*
* @param configuration {Configuration}
*/
static createPublicClientApplication(configuration: Configuration): Promise<IPublicClientApplication>;

@@ -52,4 +58,5 @@ /**

* Initializer function to perform async startup tasks such as connecting to WAM extension
* @param request {?InitializeApplicationRequest}
*/
initialize(): Promise<void>;
initialize(request?: InitializeApplicationRequest): Promise<void>;
/**

@@ -56,0 +63,0 @@ * Use when you want to obtain an access_token for your API via opening a popup window in the user's browser

@@ -268,5 +268,6 @@ import { CommonAuthorizationCodeRequest, ICrypto, AccountEntity, IdTokenEntity, AccessTokenEntity, RefreshTokenEntity, AppMetadataEntity, CacheManager, ServerTelemetryEntity, ThrottlingEntity, Logger, AuthorityMetadataEntity, AccountInfo, ValidCredentialType, TokenKeys, CredentialType, CacheRecord, IPerformanceClient, StaticAuthorityOptions, StoreInCache } from "@azure/msal-common";

* @param performanceClient {IPerformanceClient}
* @param correlationId {string} correlation id
* @returns
*/
clearTokensAndKeysWithClaims(performanceClient: IPerformanceClient): Promise<void>;
clearTokensAndKeysWithClaims(performanceClient: IPerformanceClient, correlationId: string): Promise<void>;
/**

@@ -273,0 +274,0 @@ * Add value to cookies

import { IController } from "./IController";
import { Configuration } from "../config/Configuration";
export declare function createV3Controller(config: Configuration): Promise<IController>;
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest";
export declare function createV3Controller(config: Configuration, request?: InitializeApplicationRequest): Promise<IController>;
export declare function createController(config: Configuration): Promise<IController | null>;
//# sourceMappingURL=ControllerFactory.d.ts.map

@@ -17,4 +17,5 @@ import { AccountInfo, Logger, PerformanceCallbackFunction, IPerformanceClient, AccountFilter } from "@azure/msal-common";

import { ClearCacheRequest } from "../request/ClearCacheRequest";
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest";
export interface IController {
initialize(): Promise<void>;
initialize(request?: InitializeApplicationRequest): Promise<void>;
acquireTokenPopup(request: PopupRequest): Promise<AuthenticationResult>;

@@ -21,0 +22,0 @@ acquireTokenRedirect(request: RedirectRequest): Promise<void>;

@@ -28,2 +28,3 @@ import { AccountInfo, INetworkModule, Logger, CommonSilentFlowRequest, ICrypto, PerformanceCallbackFunction, IPerformanceClient, BaseAuthRequest, AccountFilter } from "@azure/msal-common";

import { ClearCacheRequest } from "../request/ClearCacheRequest";
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest";
export declare class StandardController implements IController {

@@ -72,8 +73,9 @@ protected readonly operatingContext: StandardOperatingContext;

constructor(operatingContext: StandardOperatingContext);
static createController(operatingContext: BaseOperatingContext): Promise<IController>;
static createController(operatingContext: BaseOperatingContext, request?: InitializeApplicationRequest): Promise<IController>;
private trackPageVisibility;
/**
* Initializer function to perform async startup tasks such as connecting to WAM extension
* @param request {?InitializeApplicationRequest} correlation id
*/
initialize(): Promise<void>;
initialize(request?: InitializeApplicationRequest): Promise<void>;
/**

@@ -80,0 +82,0 @@ * Event handler function which allows users to fire events after the PublicClientApplication object

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

export { ClearCacheRequest } from "./request/ClearCacheRequest";
export { InitializeApplicationRequest } from "./request/InitializeApplicationRequest";
export { LoadTokenOptions } from "./cache/TokenCache";

@@ -30,0 +31,0 @@ export { ITokenCache } from "./cache/ITokenCache";

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

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

},
"version": "3.18.0",
"version": "3.19.0",
"description": "Microsoft Authentication Library for js",

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

@@ -30,5 +30,7 @@ /*

import { ClearCacheRequest } from "../request/ClearCacheRequest";
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest";
export interface IPublicClientApplication {
initialize(): Promise<void>;
// TODO: Make request mandatory in the next major version?
initialize(request?: InitializeApplicationRequest): Promise<void>;
acquireTokenPopup(request: PopupRequest): Promise<AuthenticationResult>;

@@ -35,0 +37,0 @@ acquireTokenRedirect(request: RedirectRequest): Promise<void>;

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

import { NestedAppOperatingContext } from "../operatingcontext/NestedAppOperatingContext";
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest";

@@ -42,3 +43,7 @@ /**

// creates StandardController and passes it to the PublicClientApplication
/**
* Creates StandardController and passes it to the PublicClientApplication
*
* @param configuration {Configuration}
*/
public static async createPublicClientApplication(

@@ -85,5 +90,6 @@ configuration: Configuration

* Initializer function to perform async startup tasks such as connecting to WAM extension
* @param request {?InitializeApplicationRequest}
*/
async initialize(): Promise<void> {
return this.controller.initialize();
async initialize(request?: InitializeApplicationRequest): Promise<void> {
return this.controller.initialize(request);
}

@@ -90,0 +96,0 @@

@@ -12,5 +12,7 @@ /*

import { NestedAppAuthController } from "./NestedAppAuthController";
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest";
export async function createV3Controller(
config: Configuration
config: Configuration,
request?: InitializeApplicationRequest
): Promise<IController> {

@@ -20,3 +22,3 @@ const standard = new StandardOperatingContext(config);

await standard.initialize();
return StandardController.createController(standard);
return StandardController.createController(standard, request);
}

@@ -23,0 +25,0 @@

@@ -28,5 +28,7 @@ /*

import { ClearCacheRequest } from "../request/ClearCacheRequest";
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest";
export interface IController {
initialize(): Promise<void>;
// TODO: Make request mandatory in the next major version?
initialize(request?: InitializeApplicationRequest): Promise<void>;

@@ -33,0 +35,0 @@ acquireTokenPopup(request: PopupRequest): Promise<AuthenticationResult>;

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

export { ClearCacheRequest } from "./request/ClearCacheRequest";
export { InitializeApplicationRequest } from "./request/InitializeApplicationRequest";

@@ -71,0 +72,0 @@ // Cache

@@ -291,9 +291,13 @@ /*

);
const nativeRequest = await this.initializeNativeRequest(request);
const { ...nativeTokenRequest } = nativeRequest;
const { ...remainingParameters } = request;
delete remainingParameters.onRedirectNavigate;
const nativeRequest = await this.initializeNativeRequest(
remainingParameters
);
const messageBody: NativeExtensionRequestBody = {
method: NativeExtensionMethod.GetToken,
request: nativeTokenRequest,
request: nativeRequest,
};

@@ -300,0 +304,0 @@

/* eslint-disable header/header */
export const name = "@azure/msal-browser";
export const version = "3.18.0";
export const version = "3.19.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

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 too big to display

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc