@azure/msal-browser 3.3.0 → 3.5.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/dist/app/IPublicClientApplication.mjs +1 -1
- package/dist/app/PublicClientApplication.d.ts.map +1 -1
- package/dist/app/PublicClientApplication.mjs +3 -4
- package/dist/app/PublicClientApplication.mjs.map +1 -1
- package/dist/app/PublicClientNext.d.ts.map +1 -1
- package/dist/app/PublicClientNext.mjs +4 -6
- package/dist/app/PublicClientNext.mjs.map +1 -1
- package/dist/broker/nativeBroker/NativeMessageHandler.mjs +1 -1
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
- package/dist/cache/AsyncMemoryStorage.mjs +1 -1
- package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
- package/dist/cache/BrowserCacheManager.mjs +26 -26
- package/dist/cache/BrowserCacheManager.mjs.map +1 -1
- package/dist/cache/BrowserStorage.mjs +1 -1
- package/dist/cache/CryptoKeyStore.mjs +1 -1
- package/dist/cache/DatabaseStorage.mjs +1 -1
- package/dist/cache/MemoryStorage.mjs +1 -1
- package/dist/cache/TokenCache.d.ts.map +1 -1
- package/dist/cache/TokenCache.mjs +5 -5
- package/dist/cache/TokenCache.mjs.map +1 -1
- package/dist/config/Configuration.mjs +1 -1
- package/dist/controllers/ControllerFactory.d.ts +2 -8
- package/dist/controllers/ControllerFactory.d.ts.map +1 -1
- package/dist/controllers/ControllerFactory.mjs +21 -38
- package/dist/controllers/ControllerFactory.mjs.map +1 -1
- package/dist/controllers/IController.d.ts +1 -2
- package/dist/controllers/IController.d.ts.map +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +1 -1
- package/dist/controllers/StandardController.d.ts +4 -4
- package/dist/controllers/StandardController.d.ts.map +1 -1
- package/dist/controllers/StandardController.mjs +50 -51
- package/dist/controllers/StandardController.mjs.map +1 -1
- package/dist/controllers/UnknownOperatingContextController.mjs +1 -1
- package/dist/crypto/BrowserCrypto.mjs +1 -1
- package/dist/crypto/CryptoOps.d.ts +2 -2
- package/dist/crypto/CryptoOps.d.ts.map +1 -1
- package/dist/crypto/CryptoOps.mjs +4 -3
- package/dist/crypto/CryptoOps.mjs.map +1 -1
- package/dist/crypto/PkceGenerator.mjs +1 -1
- package/dist/crypto/SignedHttpRequest.mjs +1 -1
- package/dist/encode/Base64Decode.mjs +1 -1
- package/dist/encode/Base64Encode.mjs +1 -1
- package/dist/error/BrowserAuthError.mjs +1 -1
- package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
- package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
- package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
- package/dist/error/NativeAuthError.mjs +1 -1
- package/dist/error/NativeAuthErrorCodes.mjs +1 -1
- package/dist/error/NestedAppAuthError.mjs +1 -1
- package/dist/event/EventHandler.mjs +1 -1
- package/dist/event/EventMessage.mjs +1 -1
- package/dist/event/EventType.mjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/interaction_client/BaseInteractionClient.d.ts +0 -1
- package/dist/interaction_client/BaseInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/BaseInteractionClient.mjs +2 -3
- package/dist/interaction_client/BaseInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/dist/interaction_client/NativeInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/NativeInteractionClient.mjs +4 -4
- package/dist/interaction_client/NativeInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/PopupClient.d.ts +1 -12
- package/dist/interaction_client/PopupClient.d.ts.map +1 -1
- package/dist/interaction_client/PopupClient.mjs +28 -111
- package/dist/interaction_client/PopupClient.mjs.map +1 -1
- package/dist/interaction_client/RedirectClient.d.ts +3 -3
- package/dist/interaction_client/RedirectClient.d.ts.map +1 -1
- package/dist/interaction_client/RedirectClient.mjs +59 -50
- package/dist/interaction_client/RedirectClient.mjs.map +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.d.ts.map +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.mjs +3 -5
- package/dist/interaction_client/SilentAuthCodeClient.mjs.map +1 -1
- package/dist/interaction_client/SilentCacheClient.mjs +1 -1
- package/dist/interaction_client/SilentIframeClient.d.ts.map +1 -1
- package/dist/interaction_client/SilentIframeClient.mjs +9 -23
- package/dist/interaction_client/SilentIframeClient.mjs.map +1 -1
- package/dist/interaction_client/SilentRefreshClient.d.ts.map +1 -1
- package/dist/interaction_client/SilentRefreshClient.mjs +2 -12
- package/dist/interaction_client/SilentRefreshClient.mjs.map +1 -1
- package/dist/interaction_client/StandardInteractionClient.d.ts +1 -6
- package/dist/interaction_client/StandardInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/StandardInteractionClient.mjs +2 -24
- package/dist/interaction_client/StandardInteractionClient.mjs.map +1 -1
- package/dist/interaction_handler/InteractionHandler.d.ts +6 -13
- package/dist/interaction_handler/InteractionHandler.d.ts.map +1 -1
- package/dist/interaction_handler/InteractionHandler.mjs +30 -61
- package/dist/interaction_handler/InteractionHandler.mjs.map +1 -1
- package/dist/interaction_handler/RedirectHandler.d.ts +14 -7
- package/dist/interaction_handler/RedirectHandler.d.ts.map +1 -1
- package/dist/interaction_handler/RedirectHandler.mjs +30 -15
- package/dist/interaction_handler/RedirectHandler.mjs.map +1 -1
- package/dist/interaction_handler/SilentHandler.d.ts +2 -2
- package/dist/interaction_handler/SilentHandler.d.ts.map +1 -1
- package/dist/interaction_handler/SilentHandler.mjs +13 -7
- package/dist/interaction_handler/SilentHandler.mjs.map +1 -1
- package/dist/naa/BridgeError.mjs +1 -1
- package/dist/naa/BridgeProxy.mjs +1 -1
- package/dist/naa/BridgeStatusCode.mjs +1 -1
- package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
- package/dist/navigation/NavigationClient.mjs +1 -1
- package/dist/network/FetchClient.mjs +1 -1
- package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
- package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/dist/operatingcontext/TeamsAppOperatingContext.mjs +1 -1
- package/dist/operatingcontext/UnknownOperatingContext.mjs +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/response/ResponseHandler.d.ts +8 -0
- package/dist/response/ResponseHandler.d.ts.map +1 -0
- package/dist/response/ResponseHandler.mjs +46 -0
- package/dist/response/ResponseHandler.mjs.map +1 -0
- package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
- package/dist/utils/BrowserConstants.mjs +1 -1
- package/dist/utils/BrowserProtocolUtils.d.ts +7 -14
- package/dist/utils/BrowserProtocolUtils.d.ts.map +1 -1
- package/dist/utils/BrowserProtocolUtils.mjs +17 -30
- package/dist/utils/BrowserProtocolUtils.mjs.map +1 -1
- package/dist/utils/BrowserUtils.mjs +1 -1
- package/lib/msal-browser.cjs +18434 -61
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +3037 -3733
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +68 -66
- package/package.json +2 -2
- package/src/app/PublicClientApplication.ts +4 -3
- package/src/app/PublicClientNext.ts +7 -5
- package/src/cache/BrowserCacheManager.ts +29 -50
- package/src/cache/TokenCache.ts +5 -4
- package/src/controllers/ControllerFactory.ts +30 -49
- package/src/controllers/IController.ts +0 -6
- package/src/controllers/StandardController.ts +70 -85
- package/src/crypto/CryptoOps.ts +5 -3
- package/src/index.ts +1 -0
- package/src/interaction_client/BaseInteractionClient.ts +1 -2
- package/src/interaction_client/NativeInteractionClient.ts +4 -3
- package/src/interaction_client/PopupClient.ts +72 -196
- package/src/interaction_client/RedirectClient.ts +111 -100
- package/src/interaction_client/SilentAuthCodeClient.ts +1 -12
- package/src/interaction_client/SilentIframeClient.ts +17 -44
- package/src/interaction_client/SilentRefreshClient.ts +5 -19
- package/src/interaction_client/StandardInteractionClient.ts +2 -48
- package/src/interaction_handler/InteractionHandler.ts +39 -112
- package/src/interaction_handler/RedirectHandler.ts +52 -30
- package/src/interaction_handler/SilentHandler.ts +12 -5
- package/src/packageMetadata.ts +1 -1
- package/src/response/ResponseHandler.ts +73 -0
- package/src/utils/BrowserProtocolUtils.ts +17 -36
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v3.
|
|
1
|
+
/*! @azure/msal-browser v3.5.0 2023-11-07 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import * as BrowserUtils from './utils/BrowserUtils.mjs';
|
|
4
4
|
export { BrowserUtils };
|
|
@@ -17,7 +17,7 @@ export { EventType } from './event/EventType.mjs';
|
|
|
17
17
|
export { SignedHttpRequest } from './crypto/SignedHttpRequest.mjs';
|
|
18
18
|
export { BrowserPerformanceClient } from './telemetry/BrowserPerformanceClient.mjs';
|
|
19
19
|
export { BrowserPerformanceMeasurement } from './telemetry/BrowserPerformanceMeasurement.mjs';
|
|
20
|
-
export { AccountEntity, AuthError, AuthErrorCodes, AuthErrorMessage, AuthenticationHeaderParser, AuthenticationScheme, AzureCloudInstance, ClientAuthError, ClientAuthErrorCodes, ClientAuthErrorMessage, ClientConfigurationError, ClientConfigurationErrorCodes, ClientConfigurationErrorMessage, InteractionRequiredAuthError, InteractionRequiredAuthErrorCodes, InteractionRequiredAuthErrorMessage, LogLevel, Logger, OIDC_DEFAULT_SCOPES, PerformanceEvents, PromptValue, ProtocolMode, ServerError, ServerResponseType, StringUtils, UrlString } from '@azure/msal-common';
|
|
20
|
+
export { AccountEntity, AuthError, AuthErrorCodes, AuthErrorMessage, AuthenticationHeaderParser, AuthenticationScheme, AzureCloudInstance, ClientAuthError, ClientAuthErrorCodes, ClientAuthErrorMessage, ClientConfigurationError, ClientConfigurationErrorCodes, ClientConfigurationErrorMessage, InteractionRequiredAuthError, InteractionRequiredAuthErrorCodes, InteractionRequiredAuthErrorMessage, JsonWebTokenTypes, LogLevel, Logger, OIDC_DEFAULT_SCOPES, PerformanceEvents, PromptValue, ProtocolMode, ServerError, ServerResponseType, StringUtils, UrlString } from '@azure/msal-common';
|
|
21
21
|
export { version } from './packageMetadata.mjs';
|
|
22
22
|
import * as BrowserAuthErrorCodes from './error/BrowserAuthErrorCodes.mjs';
|
|
23
23
|
export { BrowserAuthErrorCodes };
|
|
@@ -49,7 +49,6 @@ export declare abstract class BaseInteractionClient {
|
|
|
49
49
|
/**
|
|
50
50
|
* Used to get a discovered version of the default authority.
|
|
51
51
|
* @param requestAuthority
|
|
52
|
-
* @param requestCorrelationId
|
|
53
52
|
*/
|
|
54
53
|
protected getDiscoveredAuthority(requestAuthority?: string): Promise<Authority>;
|
|
55
54
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseInteractionClient.d.ts","sourceRoot":"","sources":["../../src/interaction_client/BaseInteractionClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,OAAO,EACP,cAAc,EACd,MAAM,EACN,WAAW,EAEX,eAAe,EAGf,sBAAsB,EAItB,SAAS,EAGT,kBAAkB,EAGrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAI/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAA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C,EACjC,OAAO,CAAC,EAAE,WAAW,GACtB,OAAO,CAAC,eAAe,CAAC;IA6D3B;;;;;;OAMG;IACH,cAAc,CAAC,kBAAkB,CAAC,EAAE,MAAM,GAAG,MAAM;IAgB7C,wBAAwB,CAC1B,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,WAAW,GACrB,OAAO,CAAC,IAAI,CAAC;IAYhB;;;;;OAKG;IACH,SAAS,CAAC,gCAAgC,CACtC,KAAK,EAAE,MAAM,EACb,YAAY,CAAC,EAAE,OAAO,GACvB,sBAAsB;IAiBzB
|
|
1
|
+
{"version":3,"file":"BaseInteractionClient.d.ts","sourceRoot":"","sources":["../../src/interaction_client/BaseInteractionClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,OAAO,EACP,cAAc,EACd,MAAM,EACN,WAAW,EAEX,eAAe,EAGf,sBAAsB,EAItB,SAAS,EAGT,kBAAkB,EAGrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAI/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AACnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAGjE,8BAAsB,qBAAqB;IACvC,SAAS,CAAC,MAAM,EAAE,oBAAoB,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AE,MAAM,EACjB,OAAO,EAAE,WAAW,GACrB,OAAO,CAAC,IAAI,CAAC;IAYhB;;;;;OAKG;IACH,SAAS,CAAC,gCAAgC,CACtC,KAAK,EAAE,MAAM,EACb,YAAY,CAAC,EAAE,OAAO,GACvB,sBAAsB;IAiBzB;;;OAGG;cACa,sBAAsB,CAClC,gBAAgB,CAAC,EAAE,MAAM,GAC1B,OAAO,CAAC,SAAS,CAAC;CAkCxB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v3.
|
|
1
|
+
/*! @azure/msal-browser v3.5.0 2023-11-07 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { AccountEntity, PerformanceEvents, AuthenticationScheme, createClientConfigurationError, ClientConfigurationErrorCodes, StringUtils, UrlString, ServerTelemetryManager, AuthorityFactory } from '@azure/msal-common';
|
|
4
4
|
import { version } from '../packageMetadata.mjs';
|
|
@@ -56,7 +56,7 @@ class BaseInteractionClient {
|
|
|
56
56
|
* @param request
|
|
57
57
|
*/
|
|
58
58
|
async initializeBaseRequest(request, account) {
|
|
59
|
-
this.performanceClient.addQueueMeasurement(PerformanceEvents.InitializeBaseRequest,
|
|
59
|
+
this.performanceClient.addQueueMeasurement(PerformanceEvents.InitializeBaseRequest, this.correlationId);
|
|
60
60
|
const authority = request.authority || this.config.auth.authority;
|
|
61
61
|
if (account) {
|
|
62
62
|
await this.validateRequestAuthority(authority, account);
|
|
@@ -140,7 +140,6 @@ class BaseInteractionClient {
|
|
|
140
140
|
/**
|
|
141
141
|
* Used to get a discovered version of the default authority.
|
|
142
142
|
* @param requestAuthority
|
|
143
|
-
* @param requestCorrelationId
|
|
144
143
|
*/
|
|
145
144
|
async getDiscoveredAuthority(requestAuthority) {
|
|
146
145
|
this.logger.verbose("getDiscoveredAuthority called");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseInteractionClient.mjs","sources":["../../src/interaction_client/BaseInteractionClient.ts"],"sourcesContent":[null],"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,cAAc,EACxB,OAAO,EAAE,kBAAkB,GAC5B,OAAO,CAAC,MAAM,CAAC;IA2ClB;;;;;;;;;OASG;cACa,4BAA4B,CACxC,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,kBAAkB,EAC3B,aAAa,EAAE,WAAW,EAC1B,aAAa,EAAE,aAAa,EAC5B,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,MAAM,GACrB,OAAO,CAAC,oBAAoB,CAAC;IA6DhC;;;OAGG;IACH,YAAY,CAAC,aAAa,EAAE,aAAa,GAAG,IAAI;IAYhD;;;;;;;;;OASG;IACH,iBAAiB,CACb,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,kBAAkB,EAC3B,qBAAqB,EAAE,MAAM,EAC7B,aAAa,EAAE,WAAW,EAC1B,mBAAmB,EAAE,MAAM,EAC3B,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,MAAM,GACrB,IAAI;IA6CP,SAAS,CAAC,8BAA8B,CACpC,QAAQ,EAAE,cAAc,GACzB,IAAI,GAAG,IAAI;IAgCd;;;OAGG;IACH,OAAO,CAAC,sBAAsB;IAkB9B;;;;OAIG;IACH,OAAO,CAAC,mBAAmB;IAc3B;;;;OAIG;IACH,SAAS,CAAC,mBAAmB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO;IAWlD;;;OAGG;cACa,uBAAuB,CACnC,OAAO,EAAE,YAAY,GAAG,gBAAgB,GACzC,OAAO,CAAC,kBAAkB,CAAC;IA6G9B;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;CA4BlC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! @azure/msal-browser v3.
|
|
1
|
+
/*! @azure/msal-browser v3.5.0 2023-11-07 */
|
|
2
2
|
'use strict';
|
|
3
|
-
import { PerformanceEvents, TimeUtils, ScopeSet, createClientAuthError, ClientAuthErrorCodes, AuthToken, AccountEntity, Constants, AuthorityType, AuthenticationScheme, PopTokenGenerator,
|
|
3
|
+
import { PerformanceEvents, TimeUtils, ScopeSet, createClientAuthError, ClientAuthErrorCodes, AuthToken, AccountEntity, Constants, AuthorityType, AuthenticationScheme, PopTokenGenerator, CacheHelpers, CacheRecord, createAuthError, AuthErrorCodes, UrlString, OIDC_DEFAULT_SCOPES, invokeAsync, AADServerParamKeys, PromptValue } from '@azure/msal-common';
|
|
4
4
|
import { BaseInteractionClient } from './BaseInteractionClient.mjs';
|
|
5
5
|
import { TemporaryCacheKeys, NativeConstants, NativeExtensionMethod, ApiId } from '../utils/BrowserConstants.mjs';
|
|
6
6
|
import { NativeAuthError, isFatalNativeAuthError, createNativeAuthError } from '../error/NativeAuthError.mjs';
|
|
@@ -374,7 +374,7 @@ class NativeInteractionClient extends BaseInteractionClient {
|
|
|
374
374
|
* @param reqTimestamp
|
|
375
375
|
*/
|
|
376
376
|
cacheNativeTokens(response, request, homeAccountIdentifier, idTokenClaims, responseAccessToken, tenantId, reqTimestamp) {
|
|
377
|
-
const cachedIdToken =
|
|
377
|
+
const cachedIdToken = CacheHelpers.createIdTokenEntity(homeAccountIdentifier, request.authority, response.id_token || "", request.clientId, idTokenClaims.tid || "");
|
|
378
378
|
// cache accessToken in inmemory storage
|
|
379
379
|
const expiresIn = request.tokenType === AuthenticationScheme.POP
|
|
380
380
|
? Constants.SHR_NONCE_VALIDITY
|
|
@@ -383,7 +383,7 @@ class NativeInteractionClient extends BaseInteractionClient {
|
|
|
383
383
|
: response.expires_in) || 0;
|
|
384
384
|
const tokenExpirationSeconds = reqTimestamp + expiresIn;
|
|
385
385
|
const responseScopes = this.generateScopes(response, request);
|
|
386
|
-
const cachedAccessToken =
|
|
386
|
+
const cachedAccessToken = CacheHelpers.createAccessTokenEntity(homeAccountIdentifier, request.authority, responseAccessToken, request.clientId, idTokenClaims.tid || tenantId, responseScopes.printScopes(), tokenExpirationSeconds, 0, base64Decode);
|
|
387
387
|
const nativeCacheRecord = new CacheRecord(undefined, cachedIdToken, cachedAccessToken);
|
|
388
388
|
void this.nativeStorageManager.saveCacheRecord(nativeCacheRecord, request.storeInCache);
|
|
389
389
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeInteractionClient.mjs","sources":["../../src/interaction_client/NativeInteractionClient.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAKA;
|
|
1
|
+
{"version":3,"file":"NativeInteractionClient.mjs","sources":["../../src/interaction_client/NativeInteractionClient.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAKA;AAgCA;AACA;AACA;AAgBA,MAAA,wBAA+B;AAO/B,IAAA,gBAAS,EAAA;AAET,IAAA,mBAAS,EAAA;AAKT,CAAA,CAAA;AACO,MAAE,uBAAsB;AAQ/B,IAAa,WAAA,CAAA,MAAA,EAAA,cAAA,EAAA,aAAgC,EAAqB,MAAA,EAAA,YAAA,EAAA,gBAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,SAAA,EAAA,iBAAA,EAAA,aAAA,EAAA;AAC9D,QAAA,KAAS,CAAC,MAAO,EAAA,cAAM,EAAA,aAAA,EAAA,MAAA,EAAA,YAAA,EAAA,gBAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,aAAA,CAAA,CAAA;AACvB,QAAA,IAAA,CAAS,KAAC,GAAA,KAAW,CAAA;AACrB,QAAA,IAAA,CAAS,SAAC,GAAA,SAAoB,CAAE;AAChC,QAAA,IAAA,CAAS,oBAAoB,GAAA,QAAA,CAAA;AAC7B,QAAA,IAAA,CAAS,oBAAC,GAAsB,iBAAA,CAAA;sDAI5B,CAAA,QAAmC,IAAA,CAAA,mCACpB,EAAO,MAChB,EAAA,YACN,EAAA,gBAA0B,EAAA,iBACV,EAAA,QAAmB,EAAA,aAAA,CACnC;AAmCJ,KAAA;;;AAGG;AACG;AA0EN,IAAA,MAAA,YAAA,CAAA,OAAA,EAAA;;;;;AAKG,QAAA,MAAA,YAAA,GAAA,SAAA,CAAA,UAAA,EAAA,CAAA;AACH;AAaA,QA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AA,CAAA,EAAA;;;;AAIG;AACH;AAWA;;;AAGG,QAAA,IAAA,CAAA,MAAA,CAAA,KAAA,CAAA,wDAAA,CAAA,CAAA;cACa,aAAuB,GAAA,MAAA,IAC5B,CAAA;AA8GX,QAAA,MAAA,WAAA,GAAA;;;;AAIG,QAAA,IAAA;AACH,YAAQ,MAAuB,QAAA,GAAA,MAAA,IAAA,CAAA,oBAAA,CAAA,WAAA,CAAA,WAAA,CAAA,CAAA;AA4BlC,YAAA,IAAA,CAAA,sBAAA,CAAA,QAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -7,10 +7,9 @@ import { INavigationClient } from "../navigation/INavigationClient";
|
|
|
7
7
|
import { EventHandler } from "../event/EventHandler";
|
|
8
8
|
import { BrowserCacheManager } from "../cache/BrowserCacheManager";
|
|
9
9
|
import { BrowserConfiguration } from "../config/Configuration";
|
|
10
|
-
import { InteractionParams } from "../interaction_handler/InteractionHandler";
|
|
11
10
|
import { PopupWindowAttributes } from "../request/PopupWindowAttributes";
|
|
12
11
|
import { AuthenticationResult } from "../response/AuthenticationResult";
|
|
13
|
-
export type PopupParams =
|
|
12
|
+
export type PopupParams = {
|
|
14
13
|
popup?: Window | null;
|
|
15
14
|
popupName: string;
|
|
16
15
|
popupWindowAttributes: PopupWindowAttributes;
|
|
@@ -60,12 +59,6 @@ export declare class PopupClient extends StandardInteractionClient {
|
|
|
60
59
|
* @param timeout - timeout for processing hash once popup is redirected back to application
|
|
61
60
|
*/
|
|
62
61
|
monitorPopupForHash(popupWindow: Window): Promise<string>;
|
|
63
|
-
/**
|
|
64
|
-
* Waits for user interaction in logout popup window
|
|
65
|
-
* @param popupWindow
|
|
66
|
-
* @returns
|
|
67
|
-
*/
|
|
68
|
-
waitForLogoutPopup(popupWindow: Window): Promise<void>;
|
|
69
62
|
/**
|
|
70
63
|
* @hidden
|
|
71
64
|
*
|
|
@@ -109,9 +102,5 @@ export declare class PopupClient extends StandardInteractionClient {
|
|
|
109
102
|
* @param request
|
|
110
103
|
*/
|
|
111
104
|
generateLogoutPopupName(request: CommonEndSessionRequest): string;
|
|
112
|
-
/**
|
|
113
|
-
* Extracts the server response from the popup window
|
|
114
|
-
*/
|
|
115
|
-
extractServerResponseStringFromPopup(popupWindow: Window, href: string): string;
|
|
116
105
|
}
|
|
117
106
|
//# sourceMappingURL=PopupClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopupClient.d.ts","sourceRoot":"","sources":["../../src/interaction_client/PopupClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAIH,uBAAuB,
|
|
1
|
+
{"version":3,"file":"PopupClient.d.ts","sourceRoot":"","sources":["../../src/interaction_client/PopupClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAIH,uBAAuB,EAMvB,kBAAkB,EAClB,MAAM,EACN,OAAO,EAKV,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAOxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAG3E,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,EAAE,oBAAoB,EAAE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ProtocolUtils, AuthError, ProtocolMode, UrlString, ServerResponseType } from '@azure/msal-common';
|
|
4
4
|
import { StandardInteractionClient } from './StandardInteractionClient.mjs';
|
|
5
5
|
import { EventType } from '../event/EventType.mjs';
|
|
6
6
|
import { ApiId, InteractionType, BrowserConstants } from '../utils/BrowserConstants.mjs';
|
|
@@ -9,7 +9,8 @@ import { NativeInteractionClient } from './NativeInteractionClient.mjs';
|
|
|
9
9
|
import { NativeMessageHandler } from '../broker/nativeBroker/NativeMessageHandler.mjs';
|
|
10
10
|
import { createBrowserAuthError } from '../error/BrowserAuthError.mjs';
|
|
11
11
|
import { InteractionHandler } from '../interaction_handler/InteractionHandler.mjs';
|
|
12
|
-
import {
|
|
12
|
+
import { deserializeResponse } from '../response/ResponseHandler.mjs';
|
|
13
|
+
import { nativeConnectionNotEstablished, emptyNavigateUri, userCancelled, emptyWindowError, popupWindowError } from '../error/BrowserAuthErrorCodes.mjs';
|
|
13
14
|
|
|
14
15
|
/*
|
|
15
16
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -89,18 +90,13 @@ class PopupClient extends StandardInteractionClient {
|
|
|
89
90
|
async acquireTokenPopupAsync(request, popupName, popupWindowAttributes, popup) {
|
|
90
91
|
this.logger.verbose("acquireTokenPopupAsync called");
|
|
91
92
|
const serverTelemetryManager = this.initializeServerTelemetryManager(ApiId.acquireTokenPopup);
|
|
92
|
-
this.
|
|
93
|
-
const validRequest = await this.initializeAuthorizationRequest(request, InteractionType.Popup);
|
|
93
|
+
const validRequest = await invokeAsync(this.initializeAuthorizationRequest.bind(this), PerformanceEvents.StandardInteractionClientInitializeAuthorizationRequest, this.logger, this.performanceClient, this.correlationId)(request, InteractionType.Popup);
|
|
94
94
|
preconnect(validRequest.authority);
|
|
95
|
-
this.browserStorage.updateCacheEntries(validRequest.state, validRequest.nonce, validRequest.authority, validRequest.loginHint || Constants.EMPTY_STRING, validRequest.account || null);
|
|
96
95
|
try {
|
|
97
96
|
// Create auth code request and generate PKCE params
|
|
98
|
-
this.
|
|
99
|
-
const authCodeRequest = await this.initializeAuthorizationCodeRequest(validRequest);
|
|
97
|
+
const authCodeRequest = await invokeAsync(this.initializeAuthorizationCodeRequest.bind(this), PerformanceEvents.StandardInteractionClientInitializeAuthorizationCodeRequest, this.logger, this.performanceClient, this.correlationId)(validRequest);
|
|
100
98
|
// Initialize the client
|
|
101
|
-
this.
|
|
102
|
-
const authClient = await this.createAuthCodeClient(serverTelemetryManager, validRequest.authority, validRequest.azureCloudOptions);
|
|
103
|
-
this.logger.verbose("Auth code client created");
|
|
99
|
+
const authClient = await invokeAsync(this.createAuthCodeClient.bind(this), PerformanceEvents.StandardInteractionClientCreateAuthCodeClient, this.logger, this.performanceClient, this.correlationId)(serverTelemetryManager, validRequest.authority, validRequest.azureCloudOptions);
|
|
104
100
|
const isNativeBroker = NativeMessageHandler.isNativeAvailable(this.config, this.logger, this.nativeMessageHandler, request.authenticationScheme);
|
|
105
101
|
// Start measurement for server calls with native brokering enabled
|
|
106
102
|
let fetchNativeAccountIdMeasurement;
|
|
@@ -124,10 +120,8 @@ class PopupClient extends StandardInteractionClient {
|
|
|
124
120
|
const popupWindow = this.initiateAuthRequest(navigateUrl, popupParameters);
|
|
125
121
|
this.eventHandler.emitEvent(EventType.POPUP_OPENED, InteractionType.Popup, { popupWindow }, null);
|
|
126
122
|
// Monitor the window for the hash. Return the string value and close the popup when the hash is received. Default timeout is 60 seconds.
|
|
127
|
-
const
|
|
128
|
-
|
|
129
|
-
const serverParams = UrlString.getDeserializedHash(hash);
|
|
130
|
-
const state = this.validateAndExtractStateFromHash(serverParams, InteractionType.Popup, validRequest.correlationId);
|
|
123
|
+
const responseString = await this.monitorPopupForHash(popupWindow);
|
|
124
|
+
const serverParams = invoke(deserializeResponse, PerformanceEvents.DeserializeResponse, this.logger, this.performanceClient, this.correlationId)(responseString, this.config.auth.OIDCOptions.serverResponseType, this.logger);
|
|
131
125
|
// Remove throttle if it exists
|
|
132
126
|
ThrottlingUtils.removeThrottle(this.browserStorage, this.config.auth.clientId, authCodeRequest);
|
|
133
127
|
if (serverParams.accountId) {
|
|
@@ -143,19 +137,15 @@ class PopupClient extends StandardInteractionClient {
|
|
|
143
137
|
throw createBrowserAuthError(nativeConnectionNotEstablished);
|
|
144
138
|
}
|
|
145
139
|
const nativeInteractionClient = new NativeInteractionClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, ApiId.acquireTokenPopup, this.performanceClient, this.nativeMessageHandler, serverParams.accountId, this.nativeStorage, validRequest.correlationId);
|
|
146
|
-
const { userRequestState } = ProtocolUtils.parseRequestState(this.browserCrypto, state);
|
|
147
|
-
return nativeInteractionClient
|
|
148
|
-
.acquireToken({
|
|
140
|
+
const { userRequestState } = ProtocolUtils.parseRequestState(this.browserCrypto, validRequest.state);
|
|
141
|
+
return nativeInteractionClient.acquireToken({
|
|
149
142
|
...validRequest,
|
|
150
143
|
state: userRequestState,
|
|
151
144
|
prompt: undefined, // Server should handle the prompt, ideally native broker can do this part silently
|
|
152
|
-
})
|
|
153
|
-
.finally(() => {
|
|
154
|
-
this.browserStorage.cleanRequestByState(state);
|
|
155
145
|
});
|
|
156
146
|
}
|
|
157
147
|
// Handle response from hash string.
|
|
158
|
-
const result = await interactionHandler.
|
|
148
|
+
const result = await interactionHandler.handleCodeResponse(serverParams, validRequest);
|
|
159
149
|
return result;
|
|
160
150
|
}
|
|
161
151
|
catch (e) {
|
|
@@ -167,7 +157,6 @@ class PopupClient extends StandardInteractionClient {
|
|
|
167
157
|
e.setCorrelationId(this.correlationId);
|
|
168
158
|
serverTelemetryManager.cacheFailedRequest(e);
|
|
169
159
|
}
|
|
170
|
-
this.browserStorage.cleanRequestByState(validRequest.state);
|
|
171
160
|
throw e;
|
|
172
161
|
}
|
|
173
162
|
}
|
|
@@ -188,9 +177,7 @@ class PopupClient extends StandardInteractionClient {
|
|
|
188
177
|
// Clear cache on logout
|
|
189
178
|
await this.clearCacheOnLogout(validRequest.account);
|
|
190
179
|
// Initialize the client
|
|
191
|
-
this.
|
|
192
|
-
const authClient = await this.createAuthCodeClient(serverTelemetryManager, requestAuthority);
|
|
193
|
-
this.logger.verbose("Auth code client created");
|
|
180
|
+
const authClient = await invokeAsync(this.createAuthCodeClient.bind(this), PerformanceEvents.StandardInteractionClientCreateAuthCodeClient, this.logger, this.performanceClient, this.correlationId)(serverTelemetryManager, requestAuthority);
|
|
194
181
|
try {
|
|
195
182
|
authClient.authority.endSessionEndpoint;
|
|
196
183
|
}
|
|
@@ -225,7 +212,9 @@ class PopupClient extends StandardInteractionClient {
|
|
|
225
212
|
popup,
|
|
226
213
|
});
|
|
227
214
|
this.eventHandler.emitEvent(EventType.POPUP_OPENED, InteractionType.Popup, { popupWindow }, null);
|
|
228
|
-
await this.
|
|
215
|
+
await this.monitorPopupForHash(popupWindow).catch(() => {
|
|
216
|
+
// Swallow any errors related to monitoring the window. Server logout is best effort
|
|
217
|
+
});
|
|
229
218
|
if (mainWindowRedirectUri) {
|
|
230
219
|
const navigationOptions = {
|
|
231
220
|
apiId: ApiId.logoutPopup,
|
|
@@ -281,25 +270,16 @@ class PopupClient extends StandardInteractionClient {
|
|
|
281
270
|
*/
|
|
282
271
|
monitorPopupForHash(popupWindow) {
|
|
283
272
|
return new Promise((resolve, reject) => {
|
|
284
|
-
/*
|
|
285
|
-
* Polling for popups needs to be tick-based,
|
|
286
|
-
* since a non-trivial amount of time can be spent on interaction (which should not count against the timeout).
|
|
287
|
-
*/
|
|
288
|
-
const maxTicks = this.config.system.windowHashTimeout /
|
|
289
|
-
this.config.system.pollIntervalMilliseconds;
|
|
290
|
-
let ticks = 0;
|
|
291
273
|
this.logger.verbose("PopupHandler.monitorPopupForHash - polling started");
|
|
292
274
|
const intervalId = setInterval(() => {
|
|
293
275
|
// Window is closed
|
|
294
276
|
if (popupWindow.closed) {
|
|
295
277
|
this.logger.error("PopupHandler.monitorPopupForHash - window closed");
|
|
296
|
-
this.cleanPopup();
|
|
297
278
|
clearInterval(intervalId);
|
|
298
279
|
reject(createBrowserAuthError(userCancelled));
|
|
299
280
|
return;
|
|
300
281
|
}
|
|
301
|
-
let href =
|
|
302
|
-
let serverResponseString = Constants.EMPTY_STRING;
|
|
282
|
+
let href = "";
|
|
303
283
|
try {
|
|
304
284
|
/*
|
|
305
285
|
* Will throw if cross origin,
|
|
@@ -307,77 +287,28 @@ class PopupClient extends StandardInteractionClient {
|
|
|
307
287
|
* since we need the interval to keep running while on STS UI.
|
|
308
288
|
*/
|
|
309
289
|
href = popupWindow.location.href;
|
|
310
|
-
serverResponseString =
|
|
311
|
-
this.extractServerResponseStringFromPopup(popupWindow, href);
|
|
312
290
|
}
|
|
313
291
|
catch (e) { }
|
|
314
292
|
// Don't process blank pages or cross domain
|
|
315
293
|
if (!href || href === "about:blank") {
|
|
316
294
|
return;
|
|
317
295
|
}
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
if (serverResponseString) {
|
|
325
|
-
this.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url");
|
|
326
|
-
clearInterval(intervalId);
|
|
327
|
-
this.cleanPopup(popupWindow);
|
|
328
|
-
if (UrlString.hashContainsKnownProperties(serverResponseString)) {
|
|
329
|
-
this.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning.");
|
|
330
|
-
resolve(serverResponseString);
|
|
296
|
+
clearInterval(intervalId);
|
|
297
|
+
let responseString = "";
|
|
298
|
+
const responseType = this.config.auth.OIDCOptions.serverResponseType;
|
|
299
|
+
if (popupWindow) {
|
|
300
|
+
if (responseType === ServerResponseType.QUERY) {
|
|
301
|
+
responseString = popupWindow.location.search;
|
|
331
302
|
}
|
|
332
303
|
else {
|
|
333
|
-
|
|
334
|
-
this.logger.errorPii(`PopupHandler.monitorPopupForHash - hash found: ${serverResponseString}`);
|
|
335
|
-
reject(createBrowserAuthError(hashDoesNotContainKnownProperties));
|
|
304
|
+
responseString = popupWindow.location.hash;
|
|
336
305
|
}
|
|
337
306
|
}
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
clearInterval(intervalId);
|
|
341
|
-
reject(createBrowserAuthError(monitorPopupTimeout));
|
|
342
|
-
}
|
|
343
|
-
}, this.config.system.pollIntervalMilliseconds);
|
|
344
|
-
});
|
|
345
|
-
}
|
|
346
|
-
/**
|
|
347
|
-
* Waits for user interaction in logout popup window
|
|
348
|
-
* @param popupWindow
|
|
349
|
-
* @returns
|
|
350
|
-
*/
|
|
351
|
-
waitForLogoutPopup(popupWindow) {
|
|
352
|
-
return new Promise((resolve) => {
|
|
353
|
-
this.logger.verbose("PopupHandler.waitForLogoutPopup - polling started");
|
|
354
|
-
const intervalId = setInterval(() => {
|
|
355
|
-
// Window is closed
|
|
356
|
-
if (popupWindow.closed) {
|
|
357
|
-
this.logger.error("PopupHandler.waitForLogoutPopup - window closed");
|
|
358
|
-
this.cleanPopup();
|
|
359
|
-
clearInterval(intervalId);
|
|
360
|
-
resolve();
|
|
361
|
-
}
|
|
362
|
-
let href = Constants.EMPTY_STRING;
|
|
363
|
-
try {
|
|
364
|
-
/*
|
|
365
|
-
* Will throw if cross origin,
|
|
366
|
-
* which should be caught and ignored
|
|
367
|
-
* since we need the interval to keep running while on STS UI.
|
|
368
|
-
*/
|
|
369
|
-
href = popupWindow.location.href;
|
|
370
|
-
}
|
|
371
|
-
catch (e) { }
|
|
372
|
-
// Don't process blank pages or cross domain
|
|
373
|
-
if (!href || href === "about:blank") {
|
|
374
|
-
return;
|
|
375
|
-
}
|
|
376
|
-
this.logger.verbose("PopupHandler.waitForLogoutPopup - popup window is on same origin as caller, closing.");
|
|
377
|
-
clearInterval(intervalId);
|
|
378
|
-
this.cleanPopup(popupWindow);
|
|
379
|
-
resolve();
|
|
307
|
+
this.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller");
|
|
308
|
+
resolve(responseString);
|
|
380
309
|
}, this.config.system.pollIntervalMilliseconds);
|
|
310
|
+
}).finally(() => {
|
|
311
|
+
this.cleanPopup(popupWindow);
|
|
381
312
|
});
|
|
382
313
|
}
|
|
383
314
|
/**
|
|
@@ -512,20 +443,6 @@ class PopupClient extends StandardInteractionClient {
|
|
|
512
443
|
const homeAccountId = request.account && request.account.homeAccountId;
|
|
513
444
|
return `${BrowserConstants.POPUP_NAME_PREFIX}.${this.config.auth.clientId}.${homeAccountId}.${this.correlationId}`;
|
|
514
445
|
}
|
|
515
|
-
/**
|
|
516
|
-
* Extracts the server response from the popup window
|
|
517
|
-
*/
|
|
518
|
-
extractServerResponseStringFromPopup(popupWindow, href) {
|
|
519
|
-
let serverResponseString;
|
|
520
|
-
if (this.config.auth.OIDCOptions?.serverResponseType ===
|
|
521
|
-
ServerResponseType.QUERY) {
|
|
522
|
-
serverResponseString = UrlString.parseQueryServerResponse(href);
|
|
523
|
-
}
|
|
524
|
-
else {
|
|
525
|
-
serverResponseString = popupWindow.location.hash;
|
|
526
|
-
}
|
|
527
|
-
return serverResponseString;
|
|
528
|
-
}
|
|
529
446
|
}
|
|
530
447
|
|
|
531
448
|
export { PopupClient };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopupClient.mjs","sources":["../../src/interaction_client/PopupClient.ts"],"sourcesContent":[null],"names":[
|
|
1
|
+
{"version":3,"file":"PopupClient.mjs","sources":["../../src/interaction_client/PopupClient.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;AAKA;AAkBA;AAOA;AAGA;AAoByB,MAAA,WAAA,kCAAwB,CAAA;IAC/C,WAAA,CAAA,MAAA,EAAA,WAAA,EAAA,aAAA,EAAA,MAAA,EAAA,YAAA,EAAA,gBAAA,EAAA,iBAAA,EAAA,iBAAA,EAAA,oBAAA,EAAA,aAAA,EAAA;AAEF,QAAa,KAAA,CAAA,MAAA,EAAA,0BAA6C,EAAA,MAAA,EAAA,YAAA,EAAA,gBAAA,EAAA,iBAAA,EAAA,oBAAA,EAAA,aAAA,CAAA,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AAA,sBAAA,GAAA,IAAA,CAAA,gCAAA,CAAA,KAAA,CAAA,iBAAA,CAAA,CAAA;;;AAGG,QAAA,IAAA;AACH;AAYA,YAAA,MAAA,eAAA,GAAA,MAAA,WAAA,CAAA,IAAA,CAAA,kCAAA,CAAA,IAAA,CAAA,IAAA,CAAA,EAAA,iBAAA,CAAA,2DAAA,EAAA,IAAA,CAAA,MAAA,EAAA,IAAA,CAAA,iBAAA,EAAA,IAAA,CAAA,aAAA,CAAA,CAAA,YAAA,CAAA,CAAA;;;;AAIG;AACH,YAAA,IAAA,+BAAkD,CAAA;AAMlD,YAAA,IAAA,cAAA,EAAA;;;;AAIG;AACH,YAAA,MAAA,WAAwB,GAAA,MAAS,UAAA,CAAA,cAA0B,CAAM;AAIpE,gBAAA,GAAA,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ServerTelemetryManager, ICrypto, Logger, IPerformanceClient } from "@azure/msal-common";
|
|
1
|
+
import { ServerTelemetryManager, ServerAuthorizationCodeResponse, ICrypto, Logger, IPerformanceClient } from "@azure/msal-common";
|
|
2
2
|
import { StandardInteractionClient } from "./StandardInteractionClient";
|
|
3
3
|
import { EndSessionRequest } from "../request/EndSessionRequest";
|
|
4
4
|
import { RedirectRequest } from "../request/RedirectRequest";
|
|
@@ -28,13 +28,13 @@ export declare class RedirectClient extends StandardInteractionClient {
|
|
|
28
28
|
* Returns null if interactionType in the state value is not "redirect" or the hash does not contain known properties
|
|
29
29
|
* @param hash
|
|
30
30
|
*/
|
|
31
|
-
protected
|
|
31
|
+
protected getRedirectResponse(userProvidedResponse: string): [ServerAuthorizationCodeResponse | null, string];
|
|
32
32
|
/**
|
|
33
33
|
* Checks if hash exists and handles in window.
|
|
34
34
|
* @param hash
|
|
35
35
|
* @param state
|
|
36
36
|
*/
|
|
37
|
-
protected
|
|
37
|
+
protected handleResponse(serverParams: ServerAuthorizationCodeResponse, serverTelemetryManager: ServerTelemetryManager): Promise<AuthenticationResult>;
|
|
38
38
|
/**
|
|
39
39
|
* Use to log out the current user, and redirect the user to the postLogoutRedirectUri.
|
|
40
40
|
* Default behaviour is to redirect the user to `window.location.href`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RedirectClient.d.ts","sourceRoot":"","sources":["../../src/interaction_client/RedirectClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAKH,sBAAsB,
|
|
1
|
+
{"version":3,"file":"RedirectClient.d.ts","sourceRoot":"","sources":["../../src/interaction_client/RedirectClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAKH,sBAAsB,EAGtB,+BAA+B,EAE/B,OAAO,EACP,MAAM,EACN,kBAAkB,EAMrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAQxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAOjE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAE7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AACnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD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