Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@azure/msal-browser

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-browser - npm Package Compare versions

Comparing version 2.11.2 to 2.12.0

dist/navigation/INavigationClient.d.ts

55

CHANGELOG.json

@@ -5,2 +5,57 @@ {

{
"date": "Wed, 03 Mar 2021 21:47:05 GMT",
"tag": "@azure/msal-browser_v2.12.0",
"version": "2.12.0",
"comments": {
"none": [
{
"comment": "Update browser error doc (#3093)",
"author": "joarroyo@microsoft.com",
"commit": "c26265e6f337cead73979c8da396d09929d963e8",
"package": "@azure/msal-browser"
},
{
"comment": "docs: fix",
"author": "johnjosephmendez2016@gmail.com",
"commit": "0d2ad7b0170f9c7bd658dd7fa70a66d62578d76a",
"package": "@azure/msal-browser"
}
],
"patch": [
{
"comment": "Separate telemetry for ssoSilent and ATS iframe renewal (#3064)",
"author": "thomas.norling@microsoft.com",
"commit": "8fb91651b0f3e0fbfdfceaf92ca6048148a28643",
"package": "@azure/msal-browser"
},
{
"comment": "Add instrumentation to msal-browser (#3004)",
"author": "joarroyo@microsoft.com",
"commit": "e512a95d65964ccf304a9adb37aa758d25e59f58",
"package": "@azure/msal-browser"
},
{
"comment": "Memoize multiple calls to handleRedirectPromise (#3072)",
"author": "thomas.norling@microsoft.com",
"commit": "6f1537582e6f254463ee091e13747c352cb3b540",
"package": "@azure/msal-browser"
}
],
"minor": [
{
"comment": "Add option to make MSAL browser cookies secure (#3001)",
"author": "hemoral@microsoft.com",
"commit": "04db417301936b0f2ad9d36f535d9c3e6b8dc75c",
"package": "@azure/msal-browser"
},
{
"comment": "Add setNavigationClient API and expose INavigationClient interface (#2985)",
"author": "thomas.norling@microsoft.com",
"commit": "0ef9a0af4aba8a63ae84690ee62ac2ab0baaa85b",
"package": "@azure/msal-browser"
}
]
}
},
{
"date": "Thu, 18 Feb 2021 00:34:32 GMT",

@@ -7,0 +62,0 @@ "tag": "@azure/msal-browser_v2.11.2",

17

changelog.md
# Change Log - @azure/msal-browser
This log was last generated on Thu, 18 Feb 2021 00:34:32 GMT and should not be manually modified.
This log was last generated on Wed, 03 Mar 2021 21:47:05 GMT and should not be manually modified.
<!-- Start content -->
## 2.12.0
Wed, 03 Mar 2021 21:47:05 GMT
### Minor changes
- Add option to make MSAL browser cookies secure (#3001) (hemoral@microsoft.com)
- Add setNavigationClient API and expose INavigationClient interface (#2985) (thomas.norling@microsoft.com)
### Patches
- Separate telemetry for ssoSilent and ATS iframe renewal (#3064) (thomas.norling@microsoft.com)
- Add instrumentation to msal-browser (#3004) (joarroyo@microsoft.com)
- Memoize multiple calls to handleRedirectPromise (#3072) (thomas.norling@microsoft.com)
## 2.11.2

@@ -8,0 +23,0 @@

@@ -12,2 +12,3 @@ import { Authority, CommonAuthorizationCodeRequest, AuthorizationCodeClient, AccountInfo, ServerTelemetryManager, SilentFlowClient, ClientConfiguration, BaseAuthRequest, INetworkModule, AuthenticationResult, Logger, RefreshTokenClient, CommonSilentFlowRequest, CommonEndSessionRequest, ICrypto } from "@azure/msal-common";

import { EndSessionRequest } from "../request/EndSessionRequest";
import { INavigationClient } from "../navigation/INavigationClient";
export declare abstract class ClientApplication {

@@ -17,2 +18,3 @@ protected readonly browserCrypto: ICrypto;

protected readonly networkClient: INetworkModule;
protected navigationClient: INavigationClient;
protected config: BrowserConfiguration;

@@ -25,2 +27,3 @@ protected logger: Logger;

private eventCallbacks;
private redirectResponse;
/**

@@ -125,3 +128,4 @@ * @constructor

* This function uses a hidden iframe to fetch an authorization code from the eSTS. To be used for silent refresh token acquisition and renewal.
* @param request {@link SsoSilentRequest}
* @param request
* @param apiId - ApiId of the calling function. Used for telemetry.
*/

@@ -313,3 +317,8 @@ private acquireTokenByIframe;

initializeWrapperLibrary(sku: WrapperSKU, version: string): void;
/**
* Sets navigation client
* @param navigationClient
*/
setNavigationClient(navigationClient: INavigationClient): void;
}
//# sourceMappingURL=ClientApplication.d.ts.map

@@ -8,2 +8,3 @@ import { AuthenticationResult, AccountInfo, Logger } from "@azure/msal-common";

import { WrapperSKU } from "../utils/BrowserConstants";
import { INavigationClient } from "../navigation/INavigationClient";
export interface IPublicClientApplication {

@@ -29,4 +30,5 @@ acquireTokenPopup(request: PopupRequest): Promise<AuthenticationResult>;

initializeWrapperLibrary(sku: WrapperSKU, version: string): void;
setNavigationClient(navigationClient: INavigationClient): void;
}
export declare const stubbedPublicClientApplication: IPublicClientApplication;
//# sourceMappingURL=IPublicClientApplication.d.ts.map
import { SystemOptions, LoggerOptions, INetworkModule, ProtocolMode } from "@azure/msal-common";
import { BrowserCacheLocation } from "../utils/BrowserConstants";
import { INavigationClient } from "../navigation/INavigationClient";
export declare const DEFAULT_POPUP_TIMEOUT_MS = 60000;

@@ -35,3 +36,4 @@ export declare const DEFAULT_IFRAME_TIMEOUT_MS = 6000;

* - cacheLocation - Used to specify the cacheLocation user wants to set. Valid values are "localStorage" and "sessionStorage"
* - storeAuthStateInCookie - If set, MSAL store's the auth request state required for validation of the auth flows in the browser cookies. By default this flag is set to false.
* - storeAuthStateInCookie - If set, MSAL stores the auth request state required for validation of the auth flows in the browser cookies. By default this flag is set to false.
* - secureCookies - If set, MSAL sets the "Secure" flag on cookies so they can only be sent over HTTPS. By default this flag is set to false.
*/

@@ -41,2 +43,3 @@ export declare type CacheOptions = {

storeAuthStateInCookie?: boolean;
secureCookies?: boolean;
};

@@ -60,2 +63,3 @@ /**

networkClient?: INetworkModule;
navigationClient?: INavigationClient;
windowHashTimeout?: number;

@@ -62,0 +66,0 @@ iframeHashTimeout?: number;

5

dist/index.d.ts

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

export { Configuration, BrowserAuthOptions, CacheOptions, BrowserSystemOptions } from "./config/Configuration";
export { InteractionType, InteractionStatus, BrowserCacheLocation, WrapperSKU } from "./utils/BrowserConstants";
export { InteractionType, InteractionStatus, BrowserCacheLocation, WrapperSKU, ApiId } from "./utils/BrowserConstants";
export { BrowserUtils } from "./utils/BrowserUtils";

@@ -13,2 +13,5 @@ export { BrowserAuthError, BrowserAuthErrorMessage } from "./error/BrowserAuthError";

export { IPublicClientApplication, stubbedPublicClientApplication } from "./app/IPublicClientApplication";
export { INavigationClient } from "./navigation/INavigationClient";
export { NavigationClient } from "./navigation/NavigationClient";
export { NavigationOptions } from "./navigation/NavigationOptions";
export { PopupRequest } from "./request/PopupRequest";

@@ -15,0 +18,0 @@ export { RedirectRequest } from "./request/RedirectRequest";

import { AuthorizationCodeClient, CommonAuthorizationCodeRequest, ICrypto, AuthenticationResult, Authority, INetworkModule } from "@azure/msal-common";
import { BrowserCacheManager } from "../cache/BrowserCacheManager";
import { InteractionHandler, InteractionParams } from "./InteractionHandler";
import { INavigationClient } from "../navigation/INavigationClient";
export declare type RedirectParams = InteractionParams & {
navigationClient: INavigationClient;
redirectTimeout: number;

@@ -6,0 +8,0 @@ redirectStartPage: string;

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

@@ -1,2 +0,2 @@

import { INetworkModule, Logger } from "@azure/msal-common";
import { INetworkModule } from "@azure/msal-common";
import { InteractionType } from "./BrowserConstants";

@@ -8,8 +8,2 @@ /**

/**
* Used to redirect the browser to the STS authorization endpoint
* @param {string} urlNavigate - URL of the authorization endpoint
* @param {boolean} noHistory - boolean flag, uses .replace() instead of .assign() if true
*/
static navigateWindow(urlNavigate: string, navigationTimeout: number, logger: Logger, noHistory?: boolean): Promise<void>;
/**
* Clears hash from window url.

@@ -16,0 +10,0 @@ */

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

},
"version": "2.11.2",
"version": "2.12.0",
"description": "Microsoft Authentication Library for js",

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

"dependencies": {
"@azure/msal-common": "^4.0.1"
"@azure/msal-common": "^4.0.2"
}
}

@@ -60,3 +60,3 @@ # Microsoft Authentication Library for JavaScript (MSAL.js) 2.0 for Browser-Based Single-Page Applications

```html
<script type="text/javascript" src="https://alcdn.msauth.net/browser/2.11.2/js/msal-browser.min.js"></script>
<script type="text/javascript" src="https://alcdn.msauth.net/browser/2.12.0/js/msal-browser.min.js"></script>
```

@@ -63,0 +63,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 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 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

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