@azure/msal-browser
Advanced tools
Comparing version 2.12.1 to 2.13.0
@@ -5,2 +5,63 @@ { | ||
{ | ||
"date": "Wed, 24 Mar 2021 22:55:46 GMT", | ||
"tag": "@azure/msal-browser_v2.13.0", | ||
"version": "2.13.0", | ||
"comments": { | ||
"none": [ | ||
{ | ||
"comment": "Add Typedocs links to event doc #2964", | ||
"author": "thomas.norling@microsoft.com", | ||
"commit": "6e6b1e9cc11140d0f8da21a19fc0fef100b550c6", | ||
"package": "@azure/msal-browser" | ||
}, | ||
{ | ||
"comment": "Doc Updates #3287", | ||
"author": "thomas.norling@microsoft.com", | ||
"commit": "e4f3b3a09aa3f48c7b8d1d0b58f978f3eb8dca29", | ||
"package": "@azure/msal-browser" | ||
}, | ||
{ | ||
"comment": "Fix code example", | ||
"author": "stef.heyenrath@gmail.com", | ||
"commit": "f2542071844d89989a5db16d36552cdd5826309b", | ||
"package": "@azure/msal-browser" | ||
}, | ||
{ | ||
"comment": "Add custom SHR Client Claims documentation (#3089)", | ||
"author": "hemoral@microsoft.com", | ||
"commit": "44bc5edc3104400bef0e876c68ea529ce543e398", | ||
"package": "@azure/msal-browser" | ||
} | ||
], | ||
"patch": [ | ||
{ | ||
"comment": "Fix errors thrown on cache lookups when reading non-msal cache values #3245", | ||
"author": "thomas.norling@microsoft.com", | ||
"commit": "8626ba19ec3fb33bc16b9c62fda914920e3a21e0", | ||
"package": "@azure/msal-browser" | ||
}, | ||
{ | ||
"comment": "Update blockReloadInIframe error message with link to error doc #3294", | ||
"author": "thomas.norling@microsoft.com", | ||
"commit": "e4601c8d5581e0cedd4b7b0cc4301e4e56b49049", | ||
"package": "@azure/msal-browser" | ||
}, | ||
{ | ||
"comment": "Block nested popups #3249", | ||
"author": "thomas.norling@microsoft.com", | ||
"commit": "4241838226c4f0e54c2f7dee79d5e999e0f34f71", | ||
"package": "@azure/msal-browser" | ||
} | ||
], | ||
"minor": [ | ||
{ | ||
"comment": "Add logoutPopup API #3044", | ||
"author": "thomas.norling@microsoft.com", | ||
"commit": "9c913e05cc75728510e6a88fc50c7d759ec82fef", | ||
"package": "@azure/msal-browser" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Mon, 15 Mar 2021 23:45:17 GMT", | ||
@@ -7,0 +68,0 @@ "tag": "@azure/msal-browser_v2.12.1", |
# Change Log - @azure/msal-browser | ||
This log was last generated on Mon, 15 Mar 2021 23:45:17 GMT and should not be manually modified. | ||
This log was last generated on Wed, 24 Mar 2021 22:55:46 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## 2.13.0 | ||
Wed, 24 Mar 2021 22:55:46 GMT | ||
### Minor changes | ||
- Add logoutPopup API #3044 (thomas.norling@microsoft.com) | ||
### Patches | ||
- Fix errors thrown on cache lookups when reading non-msal cache values #3245 (thomas.norling@microsoft.com) | ||
- Update blockReloadInIframe error message with link to error doc #3294 (thomas.norling@microsoft.com) | ||
- Block nested popups #3249 (thomas.norling@microsoft.com) | ||
## 2.12.1 | ||
@@ -8,0 +22,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 { EndSessionPopupRequest } from "../request/EndSessionPopupRequest"; | ||
import { INavigationClient } from "../navigation/INavigationClient"; | ||
@@ -150,2 +151,8 @@ export declare abstract class ClientApplication { | ||
/** | ||
* Deprecated logout function. Use logoutRedirect or logoutPopup instead | ||
* @param logoutRequest | ||
* @deprecated | ||
*/ | ||
logout(logoutRequest?: EndSessionRequest): Promise<void>; | ||
/** | ||
* Use to log out the current user, and redirect the user to the postLogoutRedirectUri. | ||
@@ -155,4 +162,17 @@ * Default behaviour is to redirect the user to `window.location.href`. | ||
*/ | ||
logout(logoutRequest?: EndSessionRequest): Promise<void>; | ||
logoutRedirect(logoutRequest?: EndSessionRequest): Promise<void>; | ||
/** | ||
* Clears local cache for the current user then opens a popup window prompting the user to sign-out of the server | ||
* @param logoutRequest | ||
*/ | ||
logoutPopup(logoutRequest?: EndSessionPopupRequest): Promise<void>; | ||
/** | ||
* | ||
* @param request | ||
* @param popupName | ||
* @param requestAuthority | ||
* @param popup | ||
*/ | ||
private logoutPopupAsync; | ||
/** | ||
* Returns all accounts that MSAL currently has data for. | ||
@@ -159,0 +179,0 @@ * (the account object is created at the time of successful login) |
@@ -23,2 +23,4 @@ import { AuthenticationResult, AccountInfo, Logger } from "@azure/msal-common"; | ||
logout(logoutRequest?: EndSessionRequest): Promise<void>; | ||
logoutRedirect(logoutRequest?: EndSessionRequest): Promise<void>; | ||
logoutPopup(logoutRequest?: EndSessionRequest): Promise<void>; | ||
ssoSilent(request: SsoSilentRequest): Promise<AuthenticationResult>; | ||
@@ -25,0 +27,0 @@ getLogger(): Logger; |
@@ -30,2 +30,6 @@ import { AuthError } from "@azure/msal-common"; | ||
}; | ||
hashDoesNotContainKnownPropertiesError: { | ||
code: string; | ||
desc: string; | ||
}; | ||
unableToParseStateError: { | ||
@@ -71,2 +75,6 @@ code: string; | ||
}; | ||
blockAcquireTokenInPopupsError: { | ||
code: string; | ||
desc: string; | ||
}; | ||
iframeClosedPrematurelyError: { | ||
@@ -167,2 +175,6 @@ code: string; | ||
/** | ||
* Creates an error thrown when the hash string value does not contain known properties | ||
*/ | ||
static createHashDoesNotContainKnownPropertiesError(): BrowserAuthError; | ||
/** | ||
* Creates an error thrown when the hash string value is unexpectedly empty. | ||
@@ -211,2 +223,7 @@ */ | ||
/** | ||
* Creates an error thrown when a popup attempts to call an acquireToken API | ||
* @returns | ||
*/ | ||
static createBlockAcquireTokenInPopupsError(): BrowserAuthError; | ||
/** | ||
* Creates an error thrown when an iframe is found to be closed before the timeout is reached. | ||
@@ -213,0 +230,0 @@ */ |
@@ -12,3 +12,6 @@ import { AuthenticationResult, AuthError } from "@azure/msal-common"; | ||
}; | ||
export declare type EventPayload = PopupRequest | RedirectRequest | SilentRequest | SsoSilentRequest | EndSessionRequest | AuthenticationResult | null; | ||
export declare type PopupEvent = { | ||
popupWindow: Window; | ||
}; | ||
export declare type EventPayload = PopupRequest | RedirectRequest | SilentRequest | SsoSilentRequest | EndSessionRequest | AuthenticationResult | PopupEvent | null; | ||
export declare type EventError = AuthError | Error | null; | ||
@@ -15,0 +18,0 @@ export declare type EventCallbackFunction = (message: EventMessage) => void; |
@@ -14,6 +14,8 @@ export declare enum EventType { | ||
HANDLE_REDIRECT_END = "msal:handleRedirectEnd", | ||
POPUP_OPENED = "msal:popupOpened", | ||
LOGOUT_START = "msal:logoutStart", | ||
LOGOUT_SUCCESS = "msal:logoutSuccess", | ||
LOGOUT_FAILURE = "msal:logoutFailure" | ||
LOGOUT_FAILURE = "msal:logoutFailure", | ||
LOGOUT_END = "msal:logoutEnd" | ||
} | ||
//# sourceMappingURL=EventType.d.ts.map |
@@ -20,2 +20,3 @@ /** | ||
export { EndSessionRequest } from "./request/EndSessionRequest"; | ||
export { EndSessionPopupRequest } from "./request/EndSessionPopupRequest"; | ||
export { AuthorizationUrlRequest } from "./request/AuthorizationUrlRequest"; | ||
@@ -22,0 +23,0 @@ export { EventMessage, EventPayload, EventError, EventCallbackFunction, EventMessageUtils } from "./event/EventMessage"; |
import { CommonAuthorizationCodeRequest, AuthorizationCodeClient } from "@azure/msal-common"; | ||
import { InteractionHandler, InteractionParams } from "./InteractionHandler"; | ||
import { BrowserCacheManager } from "../cache/BrowserCacheManager"; | ||
import { AuthorizationUrlRequest } from "../request/AuthorizationUrlRequest"; | ||
export declare type PopupParams = InteractionParams & { | ||
@@ -14,3 +13,3 @@ popup?: Window | null; | ||
export declare class PopupHandler extends InteractionHandler { | ||
private currentWindow; | ||
private popupUtils; | ||
constructor(authCodeModule: AuthorizationCodeClient, storageImpl: BrowserCacheManager, authCodeRequest: CommonAuthorizationCodeRequest); | ||
@@ -26,35 +25,5 @@ /** | ||
* @param timeout - milliseconds until timeout | ||
* @param urlNavigate - url that was navigated to | ||
*/ | ||
monitorPopupForHash(popupWindow: Window, timeout: number): Promise<string>; | ||
/** | ||
* @hidden | ||
* | ||
* Configures popup window for login. | ||
* | ||
* @param urlNavigate | ||
* @param title | ||
* @param popUpWidth | ||
* @param popUpHeight | ||
* @ignore | ||
* @hidden | ||
*/ | ||
private openPopup; | ||
static openSizedPopup(urlNavigate: string, popupName: string): Window | null; | ||
/** | ||
* Event callback to unload main window. | ||
*/ | ||
unloadWindow(e: Event): void; | ||
/** | ||
* Closes popup, removes any state vars created during popup calls. | ||
* @param popupWindow | ||
*/ | ||
private cleanPopup; | ||
/** | ||
* Generates the name for the popup based on the client id and request | ||
* @param clientId | ||
* @param request | ||
*/ | ||
static generatePopupName(clientId: string, request: AuthorizationUrlRequest): string; | ||
monitorPopupForHash(popupWindow: Window): Promise<string>; | ||
} | ||
//# sourceMappingURL=PopupHandler.d.ts.map |
export declare const name = "@azure/msal-browser"; | ||
export declare const version = "2.12.1"; | ||
export declare const version = "2.13.0"; | ||
//# sourceMappingURL=packageMetadata.d.ts.map |
@@ -24,2 +24,6 @@ import { PopupRequest } from "../request/PopupRequest"; | ||
/** | ||
* Name of the popup window starts with | ||
*/ | ||
POPUP_NAME_PREFIX: string; | ||
/** | ||
* Default popup monitor poll interval in milliseconds | ||
@@ -74,3 +78,4 @@ */ | ||
acquireTokenSilent_silentFlow = 61, | ||
logout = 961 | ||
logout = 961, | ||
logoutPopup = 962 | ||
} | ||
@@ -77,0 +82,0 @@ export declare enum InteractionType { |
@@ -43,2 +43,6 @@ import { INetworkModule } from "@azure/msal-common"; | ||
/** | ||
* Block redirectUri loaded in popup from calling AcquireToken APIs | ||
*/ | ||
static blockAcquireTokenInPopups(): void; | ||
/** | ||
* Throws error if token requests are made in non-browser environment | ||
@@ -45,0 +49,0 @@ * @param isBrowserEnvironment Flag indicating if environment is a browser. |
@@ -13,3 +13,3 @@ { | ||
}, | ||
"version": "2.12.1", | ||
"version": "2.13.0", | ||
"description": "Microsoft Authentication Library for js", | ||
@@ -97,4 +97,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@azure/msal-common": "^4.0.3" | ||
"@azure/msal-common": "^4.1.0" | ||
} | ||
} |
@@ -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.12.1/js/msal-browser.min.js"></script> | ||
<script type="text/javascript" src="https://alcdn.msauth.net/browser/2.13.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 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 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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6322986
98
37995
Updated@azure/msal-common@^4.1.0