@azure/msal-browser 2.16.1 → 2.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +283 -0
- package/{changelog.md → CHANGELOG.md} +73 -1
- package/README.md +12 -4
- package/dist/_virtual/_tslib.js +1 -1
- package/dist/app/ClientApplication.d.ts +35 -137
- package/dist/app/ClientApplication.d.ts.map +1 -1
- package/dist/app/ClientApplication.js +178 -883
- package/dist/app/ClientApplication.js.map +1 -1
- package/dist/app/IPublicClientApplication.d.ts +8 -0
- package/dist/app/IPublicClientApplication.d.ts.map +1 -1
- package/dist/app/IPublicClientApplication.js +16 -1
- package/dist/app/IPublicClientApplication.js.map +1 -1
- package/dist/app/PublicClientApplication.d.ts.map +1 -1
- package/dist/app/PublicClientApplication.js +35 -41
- package/dist/app/PublicClientApplication.js.map +1 -1
- package/dist/cache/AsyncMemoryStorage.d.ts +46 -0
- package/dist/cache/AsyncMemoryStorage.d.ts.map +1 -0
- package/dist/cache/AsyncMemoryStorage.js +195 -0
- package/dist/cache/AsyncMemoryStorage.js.map +1 -0
- package/dist/cache/BrowserCacheManager.d.ts +19 -2
- package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
- package/dist/cache/BrowserCacheManager.js +104 -15
- package/dist/cache/BrowserCacheManager.js.map +1 -1
- package/dist/cache/BrowserStorage.d.ts +1 -1
- package/dist/cache/BrowserStorage.d.ts.map +1 -1
- package/dist/cache/BrowserStorage.js +1 -1
- package/dist/cache/BrowserStorage.js.map +1 -1
- package/dist/cache/DatabaseStorage.d.ts +29 -4
- package/dist/cache/DatabaseStorage.d.ts.map +1 -1
- package/dist/cache/DatabaseStorage.js +151 -45
- package/dist/cache/DatabaseStorage.js.map +1 -1
- package/dist/cache/IAsyncMemoryStorage.d.ts +28 -0
- package/dist/cache/IAsyncMemoryStorage.d.ts.map +1 -0
- package/dist/cache/ITokenCache.d.ts +8 -0
- package/dist/cache/ITokenCache.d.ts.map +1 -0
- package/dist/cache/IWindowStorage.d.ts +3 -3
- package/dist/cache/IWindowStorage.d.ts.map +1 -1
- package/dist/cache/MemoryStorage.d.ts +3 -3
- package/dist/cache/MemoryStorage.d.ts.map +1 -1
- package/dist/cache/MemoryStorage.js +1 -1
- package/dist/cache/MemoryStorage.js.map +1 -1
- package/dist/cache/TokenCache.d.ts +48 -0
- package/dist/cache/TokenCache.d.ts.map +1 -0
- package/dist/cache/TokenCache.js +124 -0
- package/dist/cache/TokenCache.js.map +1 -0
- package/dist/config/Configuration.js +1 -1
- package/dist/crypto/BrowserCrypto.d.ts +3 -1
- package/dist/crypto/BrowserCrypto.d.ts.map +1 -1
- package/dist/crypto/BrowserCrypto.js +3 -2
- package/dist/crypto/BrowserCrypto.js.map +1 -1
- package/dist/crypto/CryptoOps.d.ts +21 -6
- package/dist/crypto/CryptoOps.d.ts.map +1 -1
- package/dist/crypto/CryptoOps.js +67 -15
- package/dist/crypto/CryptoOps.js.map +1 -1
- package/dist/crypto/GuidGenerator.js +1 -1
- package/dist/crypto/PkceGenerator.js +1 -1
- package/dist/crypto/SignedHttpRequest.d.ts +31 -0
- package/dist/crypto/SignedHttpRequest.d.ts.map +1 -0
- package/dist/crypto/SignedHttpRequest.js +70 -0
- package/dist/crypto/SignedHttpRequest.js.map +1 -0
- package/dist/encode/Base64Decode.js +1 -1
- package/dist/encode/Base64Encode.js +1 -1
- package/dist/error/BrowserAuthError.d.ts +36 -4
- package/dist/error/BrowserAuthError.d.ts.map +1 -1
- package/dist/error/BrowserAuthError.js +51 -11
- package/dist/error/BrowserAuthError.js.map +1 -1
- package/dist/error/BrowserConfigurationAuthError.js +1 -1
- package/dist/event/EventHandler.d.ts +13 -0
- package/dist/event/EventHandler.d.ts.map +1 -1
- package/dist/event/EventHandler.js +66 -1
- package/dist/event/EventHandler.js.map +1 -1
- package/dist/event/EventMessage.d.ts +4 -3
- package/dist/event/EventMessage.d.ts.map +1 -1
- package/dist/event/EventMessage.js +24 -5
- package/dist/event/EventMessage.js.map +1 -1
- package/dist/event/EventType.d.ts +5 -0
- package/dist/event/EventType.d.ts.map +1 -1
- package/dist/event/EventType.js +6 -1
- package/dist/event/EventType.js.map +1 -1
- package/dist/index.cjs.js +4678 -2996
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +6 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/interaction_client/BaseInteractionClient.d.ts +42 -0
- package/dist/interaction_client/BaseInteractionClient.d.ts.map +1 -0
- package/dist/interaction_client/BaseInteractionClient.js +131 -0
- package/dist/interaction_client/BaseInteractionClient.js.map +1 -0
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.d.ts +5 -0
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.d.ts.map +1 -0
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.js +21 -0
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.js.map +1 -0
- package/dist/interaction_client/PopupClient.d.ts +37 -0
- package/dist/interaction_client/PopupClient.d.ts.map +1 -0
- package/dist/interaction_client/PopupClient.js +234 -0
- package/dist/interaction_client/PopupClient.js.map +1 -0
- package/dist/interaction_client/RedirectClient.d.ts +42 -0
- package/dist/interaction_client/RedirectClient.d.ts.map +1 -0
- package/dist/interaction_client/RedirectClient.js +301 -0
- package/dist/interaction_client/RedirectClient.js.map +1 -0
- package/dist/interaction_client/SilentAuthCodeClient.d.ts +22 -0
- package/dist/interaction_client/SilentAuthCodeClient.d.ts.map +1 -0
- package/dist/interaction_client/SilentAuthCodeClient.js +80 -0
- package/dist/interaction_client/SilentAuthCodeClient.js.map +1 -0
- package/dist/interaction_client/SilentCacheClient.d.ts +22 -0
- package/dist/interaction_client/SilentCacheClient.d.ts.map +1 -0
- package/dist/interaction_client/SilentCacheClient.js +85 -0
- package/dist/interaction_client/SilentCacheClient.js.map +1 -0
- package/dist/interaction_client/SilentIframeClient.d.ts +29 -0
- package/dist/interaction_client/SilentIframeClient.d.ts.map +1 -0
- package/dist/interaction_client/SilentIframeClient.js +107 -0
- package/dist/interaction_client/SilentIframeClient.js.map +1 -0
- package/dist/interaction_client/SilentRefreshClient.d.ts +20 -0
- package/dist/interaction_client/SilentRefreshClient.d.ts.map +1 -0
- package/dist/interaction_client/SilentRefreshClient.js +76 -0
- package/dist/interaction_client/SilentRefreshClient.js.map +1 -0
- package/dist/interaction_client/StandardInteractionClient.d.ts +66 -0
- package/dist/interaction_client/StandardInteractionClient.d.ts.map +1 -0
- package/dist/interaction_client/StandardInteractionClient.js +249 -0
- package/dist/interaction_client/StandardInteractionClient.js.map +1 -0
- package/dist/interaction_handler/InteractionHandler.d.ts +11 -2
- package/dist/interaction_handler/InteractionHandler.d.ts.map +1 -1
- package/dist/interaction_handler/InteractionHandler.js +36 -10
- package/dist/interaction_handler/InteractionHandler.js.map +1 -1
- package/dist/interaction_handler/PopupHandler.d.ts +2 -0
- package/dist/interaction_handler/PopupHandler.d.ts.map +1 -1
- package/dist/interaction_handler/PopupHandler.js +3 -4
- package/dist/interaction_handler/PopupHandler.js.map +1 -1
- package/dist/interaction_handler/RedirectHandler.d.ts +1 -1
- package/dist/interaction_handler/RedirectHandler.d.ts.map +1 -1
- package/dist/interaction_handler/RedirectHandler.js +7 -6
- package/dist/interaction_handler/RedirectHandler.js.map +1 -1
- package/dist/interaction_handler/SilentHandler.js +1 -1
- package/dist/navigation/NavigationClient.js +1 -1
- package/dist/network/FetchClient.js +1 -1
- package/dist/network/XhrClient.js +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.js +2 -2
- package/dist/packageMetadata.js.map +1 -1
- package/dist/request/AuthorizationCodeRequest.d.ts +8 -0
- package/dist/request/AuthorizationCodeRequest.d.ts.map +1 -0
- package/dist/request/EndSessionPopupRequest.d.ts +3 -0
- package/dist/request/EndSessionPopupRequest.d.ts.map +1 -1
- package/dist/request/PopupRequest.d.ts +3 -0
- package/dist/request/PopupRequest.d.ts.map +1 -1
- package/dist/request/RedirectRequest.d.ts.map +1 -1
- package/dist/utils/BrowserConstants.d.ts +13 -1
- package/dist/utils/BrowserConstants.d.ts.map +1 -1
- package/dist/utils/BrowserConstants.js +17 -3
- package/dist/utils/BrowserConstants.js.map +1 -1
- package/dist/utils/BrowserProtocolUtils.js +1 -1
- package/dist/utils/BrowserStringUtils.js +1 -1
- package/dist/utils/BrowserUtils.js +1 -1
- package/dist/utils/MathUtils.js +1 -1
- package/dist/utils/PopupUtils.d.ts +26 -2
- package/dist/utils/PopupUtils.d.ts.map +1 -1
- package/dist/utils/PopupUtils.js +42 -15
- package/dist/utils/PopupUtils.js.map +1 -1
- package/lib/msal-browser.js +4678 -2996
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +32 -32
- package/package.json +9 -2
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AccountInfo, INetworkModule, AuthenticationResult, Logger, CommonSilentFlowRequest, ICrypto } from "@azure/msal-common";
|
|
2
2
|
import { BrowserCacheManager } from "../cache/BrowserCacheManager";
|
|
3
3
|
import { BrowserConfiguration, Configuration } from "../config/Configuration";
|
|
4
4
|
import { InteractionType, WrapperSKU } from "../utils/BrowserConstants";
|
|
5
5
|
import { RedirectRequest } from "../request/RedirectRequest";
|
|
6
6
|
import { PopupRequest } from "../request/PopupRequest";
|
|
7
|
-
import { AuthorizationUrlRequest } from "../request/AuthorizationUrlRequest";
|
|
8
7
|
import { SsoSilentRequest } from "../request/SsoSilentRequest";
|
|
9
8
|
import { EventCallbackFunction } from "../event/EventMessage";
|
|
10
9
|
import { EndSessionRequest } from "../request/EndSessionRequest";
|
|
11
10
|
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest";
|
|
12
11
|
import { INavigationClient } from "../navigation/INavigationClient";
|
|
13
12
|
import { EventHandler } from "../event/EventHandler";
|
|
13
|
+
import { ITokenCache } from "../cache/ITokenCache";
|
|
14
|
+
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest";
|
|
14
15
|
export declare abstract class ClientApplication {
|
|
15
16
|
protected readonly browserCrypto: ICrypto;
|
|
16
17
|
protected readonly browserStorage: BrowserCacheManager;
|
|
17
18
|
protected readonly networkClient: INetworkModule;
|
|
18
19
|
protected navigationClient: INavigationClient;
|
|
19
20
|
protected config: BrowserConfiguration;
|
|
21
|
+
private tokenCache;
|
|
20
22
|
protected logger: Logger;
|
|
21
23
|
protected isBrowserEnvironment: boolean;
|
|
22
|
-
private wrapperSKU;
|
|
23
|
-
private wrapperVer;
|
|
24
24
|
protected eventHandler: EventHandler;
|
|
25
25
|
private redirectResponse;
|
|
26
|
+
private hybridAuthCodeResponses;
|
|
26
27
|
/**
|
|
27
28
|
* @constructor
|
|
28
29
|
* Constructor for the PublicClientApplication used to instantiate the PublicClientApplication object
|
|
@@ -53,30 +54,6 @@ export declare abstract class ClientApplication {
|
|
|
53
54
|
* @returns Token response or null. If the return value is null, then no auth redirect was detected.
|
|
54
55
|
*/
|
|
55
56
|
handleRedirectPromise(hash?: string): Promise<AuthenticationResult | null>;
|
|
56
|
-
/**
|
|
57
|
-
* Checks if navigateToLoginRequestUrl is set, and:
|
|
58
|
-
* - if true, performs logic to cache and navigate
|
|
59
|
-
* - if false, handles hash string and parses response
|
|
60
|
-
* @param hash
|
|
61
|
-
*/
|
|
62
|
-
private handleRedirectResponse;
|
|
63
|
-
/**
|
|
64
|
-
* Gets the response hash for a redirect request
|
|
65
|
-
* Returns null if interactionType in the state value is not "redirect" or the hash does not contain known properties
|
|
66
|
-
* @param hash
|
|
67
|
-
*/
|
|
68
|
-
private getRedirectResponseHash;
|
|
69
|
-
/**
|
|
70
|
-
* @param hash
|
|
71
|
-
* @param interactionType
|
|
72
|
-
*/
|
|
73
|
-
private validateAndExtractStateFromHash;
|
|
74
|
-
/**
|
|
75
|
-
* Checks if hash exists and handles in window.
|
|
76
|
-
* @param hash
|
|
77
|
-
* @param state
|
|
78
|
-
*/
|
|
79
|
-
private handleHash;
|
|
80
57
|
/**
|
|
81
58
|
* Use when you want to obtain an access_token for your API by redirecting the user's browser window to the authorization endpoint. This function redirects
|
|
82
59
|
* the page, so any code that follows this function will not execute.
|
|
@@ -95,15 +72,6 @@ export declare abstract class ClientApplication {
|
|
|
95
72
|
* @returns A promise that is fulfilled when this function has completed, or rejected if an error was raised.
|
|
96
73
|
*/
|
|
97
74
|
acquireTokenPopup(request: PopupRequest): Promise<AuthenticationResult>;
|
|
98
|
-
/**
|
|
99
|
-
* Helper which obtains an access_token for your API via opening a popup window in the user's browser
|
|
100
|
-
* @param validRequest
|
|
101
|
-
* @param popupName
|
|
102
|
-
* @param popup
|
|
103
|
-
*
|
|
104
|
-
* @returns A promise that is fulfilled when this function has completed, or rejected if an error was raised.
|
|
105
|
-
*/
|
|
106
|
-
private acquireTokenPopupAsync;
|
|
107
75
|
/**
|
|
108
76
|
* This function uses a hidden iframe to fetch an authorization code from the eSTS. There are cases where this may not work:
|
|
109
77
|
* - Any browser using a form of Intelligent Tracking Prevention
|
|
@@ -121,11 +89,22 @@ export declare abstract class ClientApplication {
|
|
|
121
89
|
*/
|
|
122
90
|
ssoSilent(request: SsoSilentRequest): Promise<AuthenticationResult>;
|
|
123
91
|
/**
|
|
124
|
-
* This function
|
|
92
|
+
* This function redeems an authorization code (passed as code) from the eSTS token endpoint.
|
|
93
|
+
* This authorization code should be acquired server-side using a confidential client to acquire a spa_code.
|
|
94
|
+
* This API is not indended for normal authorization code acquisition and redemption.
|
|
95
|
+
*
|
|
96
|
+
* Redemption of this authorization code will not require PKCE, as it was acquired by a confidential client.
|
|
97
|
+
*
|
|
98
|
+
* @param request {@link AuthorizationCodeRequest}
|
|
99
|
+
* @returns A promise that is fulfilled when this function has completed, or rejected if an error was raised.
|
|
100
|
+
*/
|
|
101
|
+
acquireTokenByCode(request: AuthorizationCodeRequest): Promise<AuthenticationResult>;
|
|
102
|
+
/**
|
|
103
|
+
* Creates a SilentAuthCodeClient to redeem an authorization code.
|
|
125
104
|
* @param request
|
|
126
|
-
* @
|
|
105
|
+
* @returns Result of the operation to redeem the authorization code
|
|
127
106
|
*/
|
|
128
|
-
private
|
|
107
|
+
private acquireTokenByCodeAsync;
|
|
129
108
|
/**
|
|
130
109
|
* Use this function to obtain a token before every call to the API / resource provider
|
|
131
110
|
*
|
|
@@ -138,13 +117,6 @@ export declare abstract class ClientApplication {
|
|
|
138
117
|
* @returns A promise that is fulfilled when this function has completed, or rejected if an error was raised.
|
|
139
118
|
*/
|
|
140
119
|
protected acquireTokenByRefreshToken(request: CommonSilentFlowRequest): Promise<AuthenticationResult>;
|
|
141
|
-
/**
|
|
142
|
-
* Helper which acquires an authorization code silently using a hidden iframe from given url
|
|
143
|
-
* using the scopes requested as part of the id, and exchanges the code for a set of OAuth tokens.
|
|
144
|
-
* @param navigateUrl
|
|
145
|
-
* @param userRequestScopes
|
|
146
|
-
*/
|
|
147
|
-
private silentTokenHelper;
|
|
148
120
|
/**
|
|
149
121
|
* Deprecated logout function. Use logoutRedirect or logoutPopup instead
|
|
150
122
|
* @param logoutRequest
|
|
@@ -162,14 +134,6 @@ export declare abstract class ClientApplication {
|
|
|
162
134
|
* @param logoutRequest
|
|
163
135
|
*/
|
|
164
136
|
logoutPopup(logoutRequest?: EndSessionPopupRequest): Promise<void>;
|
|
165
|
-
/**
|
|
166
|
-
*
|
|
167
|
-
* @param request
|
|
168
|
-
* @param popupName
|
|
169
|
-
* @param requestAuthority
|
|
170
|
-
* @param popup
|
|
171
|
-
*/
|
|
172
|
-
private logoutPopupAsync;
|
|
173
137
|
/**
|
|
174
138
|
* Returns all accounts that MSAL currently has data for.
|
|
175
139
|
* (the account object is created at the time of successful login)
|
|
@@ -211,93 +175,11 @@ export declare abstract class ClientApplication {
|
|
|
211
175
|
* Gets the currently active account
|
|
212
176
|
*/
|
|
213
177
|
getActiveAccount(): AccountInfo | null;
|
|
214
|
-
/**
|
|
215
|
-
*
|
|
216
|
-
* Use to get the redirect uri configured in MSAL or null.
|
|
217
|
-
* @param requestRedirectUri
|
|
218
|
-
* @returns Redirect URL
|
|
219
|
-
*
|
|
220
|
-
*/
|
|
221
|
-
protected getRedirectUri(requestRedirectUri?: string): string;
|
|
222
|
-
/**
|
|
223
|
-
* Use to get the redirectStartPage either from request or use current window
|
|
224
|
-
* @param requestStartPage
|
|
225
|
-
*/
|
|
226
|
-
protected getRedirectStartPage(requestStartPage?: string): string;
|
|
227
|
-
/**
|
|
228
|
-
* Used to get a discovered version of the default authority.
|
|
229
|
-
* @param requestAuthority
|
|
230
|
-
* @param requestCorrelationId
|
|
231
|
-
*/
|
|
232
|
-
getDiscoveredAuthority(requestAuthority?: string, requestCorrelationId?: string): Promise<Authority>;
|
|
233
|
-
/**
|
|
234
|
-
* Helper to check whether interaction is in progress.
|
|
235
|
-
*/
|
|
236
|
-
protected interactionInProgress(): boolean;
|
|
237
|
-
/**
|
|
238
|
-
* Creates an Authorization Code Client with the given authority, or the default authority.
|
|
239
|
-
* @param serverTelemetryManager
|
|
240
|
-
* @param authorityUrl
|
|
241
|
-
*/
|
|
242
|
-
protected createAuthCodeClient(serverTelemetryManager: ServerTelemetryManager, authorityUrl?: string, correlationId?: string): Promise<AuthorizationCodeClient>;
|
|
243
|
-
/**
|
|
244
|
-
* Creates an Silent Flow Client with the given authority, or the default authority.
|
|
245
|
-
* @param serverTelemetryManager
|
|
246
|
-
* @param authorityUrl
|
|
247
|
-
*/
|
|
248
|
-
protected createSilentFlowClient(serverTelemetryManager: ServerTelemetryManager, authorityUrl?: string, correlationId?: string): Promise<SilentFlowClient>;
|
|
249
|
-
/**
|
|
250
|
-
* Creates a Refresh Client with the given authority, or the default authority.
|
|
251
|
-
* @param serverTelemetryManager
|
|
252
|
-
* @param authorityUrl
|
|
253
|
-
*/
|
|
254
|
-
protected createRefreshTokenClient(serverTelemetryManager: ServerTelemetryManager, authorityUrl?: string, correlationId?: string): Promise<RefreshTokenClient>;
|
|
255
|
-
/**
|
|
256
|
-
* Creates a Client Configuration object with the given request authority, or the default authority.
|
|
257
|
-
* @param serverTelemetryManager
|
|
258
|
-
* @param requestAuthority
|
|
259
|
-
* @param requestCorrelationId
|
|
260
|
-
*/
|
|
261
|
-
protected getClientConfiguration(serverTelemetryManager: ServerTelemetryManager, requestAuthority?: string, requestCorrelationId?: string): Promise<ClientConfiguration>;
|
|
262
|
-
/**
|
|
263
|
-
* Helper to validate app environment before making a request.
|
|
264
|
-
* @param request
|
|
265
|
-
* @param interactionType
|
|
266
|
-
*/
|
|
267
|
-
protected preflightInteractiveRequest(request: RedirectRequest | PopupRequest, interactionType: InteractionType): AuthorizationUrlRequest;
|
|
268
178
|
/**
|
|
269
179
|
* Helper to validate app environment before making an auth request
|
|
270
180
|
* * @param interactionType
|
|
271
181
|
*/
|
|
272
182
|
protected preflightBrowserEnvironmentCheck(interactionType: InteractionType): void;
|
|
273
|
-
/**
|
|
274
|
-
* Initializer function for all request APIs
|
|
275
|
-
* @param request
|
|
276
|
-
*/
|
|
277
|
-
protected initializeBaseRequest(request: Partial<BaseAuthRequest>): BaseAuthRequest;
|
|
278
|
-
/**
|
|
279
|
-
*
|
|
280
|
-
* @param apiId
|
|
281
|
-
* @param correlationId
|
|
282
|
-
* @param forceRefresh
|
|
283
|
-
*/
|
|
284
|
-
protected initializeServerTelemetryManager(apiId: number, correlationId: string, forceRefresh?: boolean): ServerTelemetryManager;
|
|
285
|
-
/**
|
|
286
|
-
* Helper to initialize required request parameters for interactive APIs and ssoSilent()
|
|
287
|
-
* @param request
|
|
288
|
-
* @param interactionType
|
|
289
|
-
*/
|
|
290
|
-
protected initializeAuthorizationRequest(request: RedirectRequest | PopupRequest | SsoSilentRequest, interactionType: InteractionType): AuthorizationUrlRequest;
|
|
291
|
-
/**
|
|
292
|
-
* Generates an auth code request tied to the url request.
|
|
293
|
-
* @param request
|
|
294
|
-
*/
|
|
295
|
-
protected initializeAuthorizationCodeRequest(request: AuthorizationUrlRequest): Promise<CommonAuthorizationCodeRequest>;
|
|
296
|
-
/**
|
|
297
|
-
* Initializer for the logout request.
|
|
298
|
-
* @param logoutRequest
|
|
299
|
-
*/
|
|
300
|
-
protected initializeLogoutRequest(logoutRequest?: EndSessionRequest): CommonEndSessionRequest;
|
|
301
183
|
/**
|
|
302
184
|
* Adds event callbacks to array
|
|
303
185
|
* @param callback
|
|
@@ -308,6 +190,18 @@ export declare abstract class ClientApplication {
|
|
|
308
190
|
* @param callbackId
|
|
309
191
|
*/
|
|
310
192
|
removeEventCallback(callbackId: string): void;
|
|
193
|
+
/**
|
|
194
|
+
* Adds event listener that emits an event when a user account is added or removed from localstorage in a different browser tab or window
|
|
195
|
+
*/
|
|
196
|
+
enableAccountStorageEvents(): void;
|
|
197
|
+
/**
|
|
198
|
+
* Removes event listener that emits an event when a user account is added or removed from localstorage in a different browser tab or window
|
|
199
|
+
*/
|
|
200
|
+
disableAccountStorageEvents(): void;
|
|
201
|
+
/**
|
|
202
|
+
* Gets the token cache for the application.
|
|
203
|
+
*/
|
|
204
|
+
getTokenCache(): ITokenCache;
|
|
311
205
|
/**
|
|
312
206
|
* Returns the logger instance
|
|
313
207
|
*/
|
|
@@ -328,5 +222,9 @@ export declare abstract class ClientApplication {
|
|
|
328
222
|
* @param navigationClient
|
|
329
223
|
*/
|
|
330
224
|
setNavigationClient(navigationClient: INavigationClient): void;
|
|
225
|
+
/**
|
|
226
|
+
* Returns the configuration object
|
|
227
|
+
*/
|
|
228
|
+
getConfiguration(): BrowserConfiguration;
|
|
331
229
|
}
|
|
332
230
|
//# sourceMappingURL=ClientApplication.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientApplication.d.ts","sourceRoot":"","sources":["../../src/app/ClientApplication.ts"],"names":[],"mappings":"AAMA,OAAO,
|
|
1
|
+
{"version":3,"file":"ClientApplication.d.ts","sourceRoot":"","sources":["../../src/app/ClientApplication.ts"],"names":[],"mappings":"AAMA,OAAO,EAA0D,WAAW,EAAa,cAAc,EAAE,oBAAoB,EAAE,MAAM,EAA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