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.0.2 to 2.1.0

41

CHANGELOG.json

@@ -5,2 +5,43 @@ {

{
"date": "Tue, 25 Aug 2020 00:40:45 GMT",
"tag": "@azure/msal-browser_v2.1.0",
"version": "2.1.0",
"comments": {
"patch": [
{
"comment": "update APP_META_DATA to APP_METADATA",
"author": "sameera.gajjarapu@microsoft.com",
"commit": "282035aecb07956dca323d65275fdaa703c4a325",
"package": "@azure/msal-browser"
},
{
"comment": "Add getAccountByHomeId API (#2114)",
"author": "thomas.norling@microsoft.com",
"commit": "40b1716fec63893f57762f37b55944f6c8c86e21",
"package": "@azure/msal-browser"
},
{
"comment": "Change msal-browser loginPopup and openPopup, add ability to configure popup delay (#2132)",
"author": "joarroyo@microsoft.com",
"commit": "61a1173a2cb96170b8898973c7ea3ede435cffa2",
"package": "@azure/msal-browser"
},
{
"comment": "Update POST header to type Record (#2128)",
"author": "thomas.norling@microsoft.com",
"commit": "c9b65c59797cd3240aad2b4f1e0e866a90373c4a",
"package": "@azure/msal-browser"
}
],
"minor": [
{
"comment": "Client Capabilities Support (#2169)",
"author": "thomas.norling@microsoft.com",
"commit": "0cdad1b8a3855b2414be9740862df29524897a22",
"package": "@azure/msal-browser"
}
]
}
},
{
"date": "Thu, 13 Aug 2020 02:20:48 GMT",

@@ -7,0 +48,0 @@ "tag": "@azure/msal-browser_v2.0.2",

17

changelog.md
# Change Log - @azure/msal-browser
This log was last generated on Thu, 13 Aug 2020 02:20:48 GMT and should not be manually modified.
This log was last generated on Tue, 25 Aug 2020 00:40:45 GMT and should not be manually modified.
<!-- Start content -->
## 2.1.0
Tue, 25 Aug 2020 00:40:45 GMT
### Minor changes
- Client Capabilities Support (#2169) (thomas.norling@microsoft.com)
### Patches
- update APP_META_DATA to APP_METADATA (sameera.gajjarapu@microsoft.com)
- Add getAccountByHomeId API (#2114) (thomas.norling@microsoft.com)
- Change msal-browser loginPopup and openPopup, add ability to configure popup delay (#2132) (joarroyo@microsoft.com)
- Update POST header to type Record (#2128) (thomas.norling@microsoft.com)
## 2.0.2

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

@@ -10,2 +10,3 @@ import { AuthenticationResult, AuthorizationUrlRequest, AccountInfo, EndSessionRequest } from "@azure/msal-common";

getAccountByUsername(userName: string): AccountInfo | null;
getAccountByHomeId(homeAccountId: string): AccountInfo | null;
getAllAccounts(): AccountInfo[];

@@ -12,0 +13,0 @@ handleRedirectPromise(): Promise<AuthenticationResult | null>;

@@ -102,2 +102,9 @@ import { AuthorizationUrlRequest, AuthenticationResult, AccountInfo, EndSessionRequest } from "@azure/msal-common";

/**
* Helper which obtains an access_token for your API via opening a popup window in the user's browser
* @param {@link (PopupRequest:type)}
*
* @returns {Promise.<AuthenticationResult>} - a promise that is fulfilled when this function has completed, or rejected if an error was raised. Returns the {@link AuthResponse} object
*/
private acquireTokenPopupAsync;
/**
* This function uses a hidden iframe to fetch an authorization code from the eSTS. There are cases where this may not work:

@@ -147,3 +154,3 @@ * - Any browser using a form of Intelligent Tracking Prevention

* (the account object is created at the time of successful login)
* or null when no state is found
* or empty array when no accounts are found
* @returns {@link AccountInfo[]} - Array of account objects in cache

@@ -155,3 +162,4 @@ */

* (the account object is created at the time of successful login)
* or null when no state is found
* or null when no matching account is found.
* This API is provided for convenience but getAccountById should be used for best reliability
* @returns {@link AccountInfo} - the account object stored in MSAL

@@ -161,2 +169,9 @@ */

/**
* Returns the signed in account matching homeAccountId.
* (the account object is created at the time of successful login)
* or null when no matching account is found
* @returns {@link AccountInfo} - the account object stored in MSAL
*/
getAccountByHomeId(homeAccountId: string): AccountInfo | null;
/**
*

@@ -163,0 +178,0 @@ * Use to get the redirect uri configured in MSAL or null.

10

dist/src/config/Configuration.d.ts

@@ -12,2 +12,3 @@ import { SystemOptions, LoggerOptions, INetworkModule } from "@azure/msal-common";

* - navigateToLoginRequestUrl - Boolean indicating whether to navigate to the original request URL after the auth server navigates to the redirect URL.
* - clientCapabilities - Array of capabilities which will be added to the claims.access_token.xms_cc request property on every network request.
*/

@@ -22,2 +23,3 @@ export declare type BrowserAuthOptions = {

navigateToLoginRequestUrl?: boolean;
clientCapabilities?: Array<string>;
};

@@ -40,5 +42,6 @@ /**

* - networkClient - Network interface implementation
* - windowHashTimeout - sets the timeout for waiting for a response hash in a popup
* - iframeHashTimeout - sets the timeout for waiting for a response hash in an iframe
* - loadFrameTimeout - maximum time the library should wait for a frame to load
* - windowHashTimeout - Sets the timeout for waiting for a response hash in a popup
* - iframeHashTimeout - Sets the timeout for waiting for a response hash in an iframe
* - loadFrameTimeout - Maximum time the library should wait for a frame to load
* - asyncPopups - Sets whether popups are opened asynchronously. By default, this flag is set to false. When set to false, blank popups are opened before anything else happens. When set to true, popups are opened when making the network request.
*/

@@ -51,2 +54,3 @@ export declare type BrowserSystemOptions = SystemOptions & {

loadFrameTimeout?: number;
asyncPopups?: boolean;
};

@@ -53,0 +57,0 @@ /**

@@ -15,3 +15,3 @@ import { AuthorizationCodeRequest, AuthorizationCodeClient } from "@azure/msal-common";

*/
initiateAuthRequest(requestUrl: string, authCodeRequest: AuthorizationCodeRequest): Window;
initiateAuthRequest(requestUrl: string, authCodeRequest: AuthorizationCodeRequest, popup?: Window | null): Window;
/**

@@ -37,2 +37,3 @@ * Monitors a window until it loads a url with a known hash, or hits a specified timeout.

private openPopup;
static openSizedPopup(urlNavigate?: string): Window | null;
/**

@@ -39,0 +40,0 @@ * Event callback to unload main window.

@@ -25,3 +25,3 @@ import { INetworkModule, NetworkRequestOptions, NetworkResponse } from "@azure/msal-common";

private getFetchHeaders;
private getHeaderMap;
private getHeaderDict;
}

@@ -39,3 +39,3 @@ import { INetworkModule, NetworkRequestOptions, NetworkResponse } from "@azure/msal-common";

*/
private getHeaderMap;
private getHeaderDict;
}

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

},
"version": "2.0.2",
"version": "2.1.0",
"description": "Microsoft Authentication Library for js",

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

"dependencies": {
"@azure/msal-common": "^1.1.1"
"@azure/msal-common": "^1.2.0"
}
}

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

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