@azure/msal-browser 3.7.2-alpha.3 → 3.9.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.mjs +1 -1
- package/dist/app/PublicClientNext.mjs +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.mjs +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.mjs +1 -1
- package/dist/config/Configuration.mjs +1 -1
- package/dist/controllers/ControllerFactory.mjs +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +1 -1
- package/dist/controllers/StandardController.d.ts.map +1 -1
- package/dist/controllers/StandardController.mjs +32 -14
- 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.mjs +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.mjs +1 -1
- package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/dist/interaction_client/NativeInteractionClient.d.ts +3 -1
- package/dist/interaction_client/NativeInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/NativeInteractionClient.mjs +7 -2
- package/dist/interaction_client/NativeInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/PopupClient.mjs +1 -1
- package/dist/interaction_client/RedirectClient.d.ts +4 -2
- package/dist/interaction_client/RedirectClient.d.ts.map +1 -1
- package/dist/interaction_client/RedirectClient.mjs +8 -3
- package/dist/interaction_client/RedirectClient.mjs.map +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
- package/dist/interaction_client/SilentCacheClient.mjs +1 -1
- package/dist/interaction_client/SilentIframeClient.mjs +1 -1
- package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
- package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
- package/dist/interaction_handler/InteractionHandler.mjs +1 -1
- package/dist/interaction_handler/RedirectHandler.mjs +1 -1
- package/dist/interaction_handler/SilentHandler.mjs +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.d.ts.map +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/response/ResponseHandler.mjs +1 -1
- 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.mjs +1 -1
- package/dist/utils/BrowserUtils.mjs +1 -1
- package/lib/msal-browser.cjs +113 -79
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +113 -79
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +62 -62
- package/package.json +2 -2
- package/src/controllers/StandardController.ts +61 -22
- package/src/interaction_client/NativeInteractionClient.ts +12 -1
- package/src/interaction_client/RedirectClient.ts +12 -2
- package/src/packageMetadata.ts +1 -1
package/lib/msal-browser.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @azure/msal-browser v3.
|
|
1
|
+
/*! @azure/msal-browser v3.9.0 2024-02-07 */
|
|
2
2
|
'use strict';
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
|
-
/*! @azure/msal-common v14.
|
|
5
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
6
6
|
/*
|
|
7
7
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8
8
|
* Licensed under the MIT License.
|
|
@@ -297,7 +297,7 @@ const JsonWebTokenTypes = {
|
|
|
297
297
|
Pop: "pop",
|
|
298
298
|
};
|
|
299
299
|
|
|
300
|
-
/*! @azure/msal-common v14.
|
|
300
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
301
301
|
/*
|
|
302
302
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
303
303
|
* Licensed under the MIT License.
|
|
@@ -314,7 +314,7 @@ var AuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
314
314
|
unexpectedError: unexpectedError
|
|
315
315
|
});
|
|
316
316
|
|
|
317
|
-
/*! @azure/msal-common v14.
|
|
317
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
318
318
|
|
|
319
319
|
/*
|
|
320
320
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -363,7 +363,7 @@ function createAuthError(code, additionalMessage) {
|
|
|
363
363
|
: AuthErrorMessages[code]);
|
|
364
364
|
}
|
|
365
365
|
|
|
366
|
-
/*! @azure/msal-common v14.
|
|
366
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
367
367
|
/*
|
|
368
368
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
369
369
|
* Licensed under the MIT License.
|
|
@@ -461,7 +461,7 @@ var ClientAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
461
461
|
userTimeoutReached: userTimeoutReached
|
|
462
462
|
});
|
|
463
463
|
|
|
464
|
-
/*! @azure/msal-common v14.
|
|
464
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
465
465
|
|
|
466
466
|
/*
|
|
467
467
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -713,7 +713,7 @@ function createClientAuthError(errorCode, additionalMessage) {
|
|
|
713
713
|
return new ClientAuthError(errorCode, additionalMessage);
|
|
714
714
|
}
|
|
715
715
|
|
|
716
|
-
/*! @azure/msal-common v14.
|
|
716
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
717
717
|
|
|
718
718
|
/*
|
|
719
719
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -746,7 +746,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
|
|
|
746
746
|
},
|
|
747
747
|
};
|
|
748
748
|
|
|
749
|
-
/*! @azure/msal-common v14.
|
|
749
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
750
750
|
|
|
751
751
|
/*
|
|
752
752
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -937,12 +937,12 @@ class Logger {
|
|
|
937
937
|
}
|
|
938
938
|
}
|
|
939
939
|
|
|
940
|
-
/*! @azure/msal-common v14.
|
|
940
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
941
941
|
/* eslint-disable header/header */
|
|
942
942
|
const name$1 = "@azure/msal-common";
|
|
943
|
-
const version$1 = "14.
|
|
943
|
+
const version$1 = "14.7.0";
|
|
944
944
|
|
|
945
|
-
/*! @azure/msal-common v14.
|
|
945
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
946
946
|
/*
|
|
947
947
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
948
948
|
* Licensed under the MIT License.
|
|
@@ -962,7 +962,7 @@ const AzureCloudInstance = {
|
|
|
962
962
|
AzureUsGovernment: "https://login.microsoftonline.us",
|
|
963
963
|
};
|
|
964
964
|
|
|
965
|
-
/*! @azure/msal-common v14.
|
|
965
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
966
966
|
|
|
967
967
|
/*
|
|
968
968
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1023,7 +1023,7 @@ function checkMaxAge(authTime, maxAge) {
|
|
|
1023
1023
|
}
|
|
1024
1024
|
}
|
|
1025
1025
|
|
|
1026
|
-
/*! @azure/msal-common v14.
|
|
1026
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
1027
1027
|
/*
|
|
1028
1028
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1029
1029
|
* Licensed under the MIT License.
|
|
@@ -1060,7 +1060,7 @@ function wasClockTurnedBack(cachedAt) {
|
|
|
1060
1060
|
return cachedAtSec > nowSeconds();
|
|
1061
1061
|
}
|
|
1062
1062
|
|
|
1063
|
-
/*! @azure/msal-common v14.
|
|
1063
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
1064
1064
|
|
|
1065
1065
|
/*
|
|
1066
1066
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1387,7 +1387,7 @@ function isAuthorityMetadataExpired(metadata) {
|
|
|
1387
1387
|
return metadata.expiresAt <= nowSeconds();
|
|
1388
1388
|
}
|
|
1389
1389
|
|
|
1390
|
-
/*! @azure/msal-common v14.
|
|
1390
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
1391
1391
|
/*
|
|
1392
1392
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1393
1393
|
* Licensed under the MIT License.
|
|
@@ -1441,7 +1441,7 @@ var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
1441
1441
|
urlParseError: urlParseError
|
|
1442
1442
|
});
|
|
1443
1443
|
|
|
1444
|
-
/*! @azure/msal-common v14.
|
|
1444
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
1445
1445
|
|
|
1446
1446
|
/*
|
|
1447
1447
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1579,7 +1579,7 @@ function createClientConfigurationError(errorCode) {
|
|
|
1579
1579
|
return new ClientConfigurationError(errorCode);
|
|
1580
1580
|
}
|
|
1581
1581
|
|
|
1582
|
-
/*! @azure/msal-common v14.
|
|
1582
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
1583
1583
|
/*
|
|
1584
1584
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1585
1585
|
* Licensed under the MIT License.
|
|
@@ -1676,7 +1676,7 @@ class StringUtils {
|
|
|
1676
1676
|
}
|
|
1677
1677
|
}
|
|
1678
1678
|
|
|
1679
|
-
/*! @azure/msal-common v14.
|
|
1679
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
1680
1680
|
|
|
1681
1681
|
/*
|
|
1682
1682
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1876,7 +1876,7 @@ class ScopeSet {
|
|
|
1876
1876
|
}
|
|
1877
1877
|
}
|
|
1878
1878
|
|
|
1879
|
-
/*! @azure/msal-common v14.
|
|
1879
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
1880
1880
|
|
|
1881
1881
|
/*
|
|
1882
1882
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1916,7 +1916,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
|
|
|
1916
1916
|
};
|
|
1917
1917
|
}
|
|
1918
1918
|
|
|
1919
|
-
/*! @azure/msal-common v14.
|
|
1919
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
1920
1920
|
/*
|
|
1921
1921
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1922
1922
|
* Licensed under the MIT License.
|
|
@@ -1977,7 +1977,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
|
|
|
1977
1977
|
return updatedAccountInfo;
|
|
1978
1978
|
}
|
|
1979
1979
|
|
|
1980
|
-
/*! @azure/msal-common v14.
|
|
1980
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
1981
1981
|
/*
|
|
1982
1982
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1983
1983
|
* Licensed under the MIT License.
|
|
@@ -1992,7 +1992,7 @@ const AuthorityType = {
|
|
|
1992
1992
|
Ciam: 3,
|
|
1993
1993
|
};
|
|
1994
1994
|
|
|
1995
|
-
/*! @azure/msal-common v14.
|
|
1995
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
1996
1996
|
/*
|
|
1997
1997
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1998
1998
|
* Licensed under the MIT License.
|
|
@@ -2014,7 +2014,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
|
|
|
2014
2014
|
return null;
|
|
2015
2015
|
}
|
|
2016
2016
|
|
|
2017
|
-
/*! @azure/msal-common v14.
|
|
2017
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
2018
2018
|
/*
|
|
2019
2019
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2020
2020
|
* Licensed under the MIT License.
|
|
@@ -2027,7 +2027,7 @@ const ProtocolMode = {
|
|
|
2027
2027
|
OIDC: "OIDC",
|
|
2028
2028
|
};
|
|
2029
2029
|
|
|
2030
|
-
/*! @azure/msal-common v14.
|
|
2030
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
2031
2031
|
|
|
2032
2032
|
/*
|
|
2033
2033
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2274,7 +2274,7 @@ class AccountEntity {
|
|
|
2274
2274
|
}
|
|
2275
2275
|
}
|
|
2276
2276
|
|
|
2277
|
-
/*! @azure/msal-common v14.
|
|
2277
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
2278
2278
|
|
|
2279
2279
|
/*
|
|
2280
2280
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2321,7 +2321,7 @@ function getDeserializedResponse(responseString) {
|
|
|
2321
2321
|
return null;
|
|
2322
2322
|
}
|
|
2323
2323
|
|
|
2324
|
-
/*! @azure/msal-common v14.
|
|
2324
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
2325
2325
|
|
|
2326
2326
|
/*
|
|
2327
2327
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2485,7 +2485,7 @@ class UrlString {
|
|
|
2485
2485
|
}
|
|
2486
2486
|
}
|
|
2487
2487
|
|
|
2488
|
-
/*! @azure/msal-common v14.
|
|
2488
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
2489
2489
|
|
|
2490
2490
|
/*
|
|
2491
2491
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2625,7 +2625,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
2625
2625
|
return null;
|
|
2626
2626
|
}
|
|
2627
2627
|
|
|
2628
|
-
/*! @azure/msal-common v14.
|
|
2628
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
2629
2629
|
|
|
2630
2630
|
/*
|
|
2631
2631
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3865,7 +3865,7 @@ class DefaultStorageClass extends CacheManager {
|
|
|
3865
3865
|
}
|
|
3866
3866
|
}
|
|
3867
3867
|
|
|
3868
|
-
/*! @azure/msal-common v14.
|
|
3868
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
3869
3869
|
|
|
3870
3870
|
/*
|
|
3871
3871
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3965,7 +3965,7 @@ function isOidcProtocolMode(config) {
|
|
|
3965
3965
|
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
3966
3966
|
}
|
|
3967
3967
|
|
|
3968
|
-
/*! @azure/msal-common v14.
|
|
3968
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
3969
3969
|
|
|
3970
3970
|
/*
|
|
3971
3971
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3982,7 +3982,7 @@ class ServerError extends AuthError {
|
|
|
3982
3982
|
}
|
|
3983
3983
|
}
|
|
3984
3984
|
|
|
3985
|
-
/*! @azure/msal-common v14.
|
|
3985
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
3986
3986
|
|
|
3987
3987
|
/*
|
|
3988
3988
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4080,7 +4080,7 @@ class ThrottlingUtils {
|
|
|
4080
4080
|
}
|
|
4081
4081
|
}
|
|
4082
4082
|
|
|
4083
|
-
/*! @azure/msal-common v14.
|
|
4083
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
4084
4084
|
|
|
4085
4085
|
/*
|
|
4086
4086
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4117,7 +4117,7 @@ class NetworkManager {
|
|
|
4117
4117
|
}
|
|
4118
4118
|
}
|
|
4119
4119
|
|
|
4120
|
-
/*! @azure/msal-common v14.
|
|
4120
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
4121
4121
|
/*
|
|
4122
4122
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4123
4123
|
* Licensed under the MIT License.
|
|
@@ -4127,7 +4127,7 @@ const CcsCredentialType = {
|
|
|
4127
4127
|
UPN: "UPN",
|
|
4128
4128
|
};
|
|
4129
4129
|
|
|
4130
|
-
/*! @azure/msal-common v14.
|
|
4130
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
4131
4131
|
/*
|
|
4132
4132
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4133
4133
|
* Licensed under the MIT License.
|
|
@@ -4174,7 +4174,7 @@ const SID = "sid";
|
|
|
4174
4174
|
const LOGIN_HINT = "login_hint";
|
|
4175
4175
|
const DOMAIN_HINT = "domain_hint";
|
|
4176
4176
|
|
|
4177
|
-
/*! @azure/msal-common v14.
|
|
4177
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
4178
4178
|
|
|
4179
4179
|
/*
|
|
4180
4180
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4258,7 +4258,7 @@ class RequestValidator {
|
|
|
4258
4258
|
}
|
|
4259
4259
|
}
|
|
4260
4260
|
|
|
4261
|
-
/*! @azure/msal-common v14.
|
|
4261
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
4262
4262
|
|
|
4263
4263
|
/*
|
|
4264
4264
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4642,7 +4642,7 @@ class RequestParameterBuilder {
|
|
|
4642
4642
|
}
|
|
4643
4643
|
}
|
|
4644
4644
|
|
|
4645
|
-
/*! @azure/msal-common v14.
|
|
4645
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
4646
4646
|
/*
|
|
4647
4647
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4648
4648
|
* Licensed under the MIT License.
|
|
@@ -4654,7 +4654,7 @@ function isOpenIdConfigResponse(response) {
|
|
|
4654
4654
|
response.hasOwnProperty("jwks_uri"));
|
|
4655
4655
|
}
|
|
4656
4656
|
|
|
4657
|
-
/*! @azure/msal-common v14.
|
|
4657
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
4658
4658
|
/*
|
|
4659
4659
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4660
4660
|
* Licensed under the MIT License.
|
|
@@ -4664,7 +4664,7 @@ function isCloudInstanceDiscoveryResponse(response) {
|
|
|
4664
4664
|
response.hasOwnProperty("metadata"));
|
|
4665
4665
|
}
|
|
4666
4666
|
|
|
4667
|
-
/*! @azure/msal-common v14.
|
|
4667
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
4668
4668
|
/*
|
|
4669
4669
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4670
4670
|
* Licensed under the MIT License.
|
|
@@ -4674,7 +4674,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
|
4674
4674
|
response.hasOwnProperty("error_description"));
|
|
4675
4675
|
}
|
|
4676
4676
|
|
|
4677
|
-
/*! @azure/msal-common v14.
|
|
4677
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
4678
4678
|
/*
|
|
4679
4679
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4680
4680
|
* Licensed under the MIT License.
|
|
@@ -4711,6 +4711,11 @@ const PerformanceEvents = {
|
|
|
4711
4711
|
* Used to acquire a new access token interactively through pop ups
|
|
4712
4712
|
*/
|
|
4713
4713
|
AcquireTokenPopup: "acquireTokenPopup",
|
|
4714
|
+
/**
|
|
4715
|
+
* acquireTokenRedirect (msal-browser).
|
|
4716
|
+
* Used to acquire a new access token interactively through redirects
|
|
4717
|
+
*/
|
|
4718
|
+
AcquireTokenRedirect: "acquireTokenRedirect",
|
|
4714
4719
|
/**
|
|
4715
4720
|
* getPublicKeyThumbprint API in CryptoOpts class (msal-browser).
|
|
4716
4721
|
* Used to generate a public/private keypair and generate a public key thumbprint for pop requests.
|
|
@@ -4883,7 +4888,8 @@ const PerformanceEvents = {
|
|
|
4883
4888
|
AcquireTokenByCodeAsync: "acquireTokenByCodeAsync",
|
|
4884
4889
|
GetEndpointMetadataFromNetwork: "getEndpointMetadataFromNetwork",
|
|
4885
4890
|
GetCloudDiscoveryMetadataFromNetworkMeasurement: "getCloudDiscoveryMetadataFromNetworkMeasurement",
|
|
4886
|
-
HandleRedirectPromiseMeasurement: "
|
|
4891
|
+
HandleRedirectPromiseMeasurement: "handleRedirectPromise",
|
|
4892
|
+
HandleNativeRedirectPromiseMeasurement: "handleNativeRedirectPromise",
|
|
4887
4893
|
UpdateCloudDiscoveryMetadataMeasurement: "updateCloudDiscoveryMetadataMeasurement",
|
|
4888
4894
|
UsernamePasswordClientAcquireToken: "usernamePasswordClientAcquireToken",
|
|
4889
4895
|
NativeMessageHandlerHandshake: "nativeMessageHandlerHandshake",
|
|
@@ -4929,7 +4935,7 @@ const IntFields = new Set([
|
|
|
4929
4935
|
"multiMatchedRT",
|
|
4930
4936
|
]);
|
|
4931
4937
|
|
|
4932
|
-
/*! @azure/msal-common v14.
|
|
4938
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
4933
4939
|
/*
|
|
4934
4940
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4935
4941
|
* Licensed under the MIT License.
|
|
@@ -5025,7 +5031,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
|
|
|
5025
5031
|
};
|
|
5026
5032
|
};
|
|
5027
5033
|
|
|
5028
|
-
/*! @azure/msal-common v14.
|
|
5034
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
5029
5035
|
|
|
5030
5036
|
/*
|
|
5031
5037
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5134,7 +5140,7 @@ RegionDiscovery.IMDS_OPTIONS = {
|
|
|
5134
5140
|
},
|
|
5135
5141
|
};
|
|
5136
5142
|
|
|
5137
|
-
/*! @azure/msal-common v14.
|
|
5143
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
5138
5144
|
|
|
5139
5145
|
/*
|
|
5140
5146
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5967,7 +5973,7 @@ function buildStaticAuthorityOptions(authOptions) {
|
|
|
5967
5973
|
};
|
|
5968
5974
|
}
|
|
5969
5975
|
|
|
5970
|
-
/*! @azure/msal-common v14.
|
|
5976
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
5971
5977
|
|
|
5972
5978
|
/*
|
|
5973
5979
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5998,7 +6004,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
|
|
|
5998
6004
|
}
|
|
5999
6005
|
}
|
|
6000
6006
|
|
|
6001
|
-
/*! @azure/msal-common v14.
|
|
6007
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
6002
6008
|
|
|
6003
6009
|
/*
|
|
6004
6010
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6101,7 +6107,7 @@ class BaseClient {
|
|
|
6101
6107
|
}
|
|
6102
6108
|
}
|
|
6103
6109
|
|
|
6104
|
-
/*! @azure/msal-common v14.
|
|
6110
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
6105
6111
|
/*
|
|
6106
6112
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6107
6113
|
* Licensed under the MIT License.
|
|
@@ -6127,7 +6133,7 @@ var InteractionRequiredAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
6127
6133
|
refreshTokenExpired: refreshTokenExpired
|
|
6128
6134
|
});
|
|
6129
6135
|
|
|
6130
|
-
/*! @azure/msal-common v14.
|
|
6136
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
6131
6137
|
|
|
6132
6138
|
/*
|
|
6133
6139
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6214,7 +6220,7 @@ function createInteractionRequiredAuthError(errorCode) {
|
|
|
6214
6220
|
return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
|
|
6215
6221
|
}
|
|
6216
6222
|
|
|
6217
|
-
/*! @azure/msal-common v14.
|
|
6223
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
6218
6224
|
/*
|
|
6219
6225
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6220
6226
|
* Licensed under the MIT License.
|
|
@@ -6230,7 +6236,7 @@ class CacheRecord {
|
|
|
6230
6236
|
}
|
|
6231
6237
|
}
|
|
6232
6238
|
|
|
6233
|
-
/*! @azure/msal-common v14.
|
|
6239
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
6234
6240
|
|
|
6235
6241
|
/*
|
|
6236
6242
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6302,7 +6308,7 @@ class ProtocolUtils {
|
|
|
6302
6308
|
}
|
|
6303
6309
|
}
|
|
6304
6310
|
|
|
6305
|
-
/*! @azure/msal-common v14.
|
|
6311
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
6306
6312
|
|
|
6307
6313
|
/*
|
|
6308
6314
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6387,7 +6393,7 @@ class PopTokenGenerator {
|
|
|
6387
6393
|
}
|
|
6388
6394
|
}
|
|
6389
6395
|
|
|
6390
|
-
/*! @azure/msal-common v14.
|
|
6396
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
6391
6397
|
/*
|
|
6392
6398
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6393
6399
|
* Licensed under the MIT License.
|
|
@@ -6414,7 +6420,7 @@ class PopTokenGenerator {
|
|
|
6414
6420
|
}
|
|
6415
6421
|
}
|
|
6416
6422
|
|
|
6417
|
-
/*! @azure/msal-common v14.
|
|
6423
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
6418
6424
|
|
|
6419
6425
|
/*
|
|
6420
6426
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6767,7 +6773,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, idTokenClai
|
|
|
6767
6773
|
return baseAccount;
|
|
6768
6774
|
}
|
|
6769
6775
|
|
|
6770
|
-
/*! @azure/msal-common v14.
|
|
6776
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
6771
6777
|
|
|
6772
6778
|
/*
|
|
6773
6779
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7172,7 +7178,7 @@ class AuthorizationCodeClient extends BaseClient {
|
|
|
7172
7178
|
}
|
|
7173
7179
|
}
|
|
7174
7180
|
|
|
7175
|
-
/*! @azure/msal-common v14.
|
|
7181
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
7176
7182
|
|
|
7177
7183
|
/*
|
|
7178
7184
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7379,7 +7385,7 @@ class RefreshTokenClient extends BaseClient {
|
|
|
7379
7385
|
}
|
|
7380
7386
|
}
|
|
7381
7387
|
|
|
7382
|
-
/*! @azure/msal-common v14.
|
|
7388
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
7383
7389
|
|
|
7384
7390
|
/*
|
|
7385
7391
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7510,7 +7516,7 @@ class SilentFlowClient extends BaseClient {
|
|
|
7510
7516
|
}
|
|
7511
7517
|
}
|
|
7512
7518
|
|
|
7513
|
-
/*! @azure/msal-common v14.
|
|
7519
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
7514
7520
|
|
|
7515
7521
|
/*
|
|
7516
7522
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7525,7 +7531,7 @@ const StubbedNetworkModule = {
|
|
|
7525
7531
|
},
|
|
7526
7532
|
};
|
|
7527
7533
|
|
|
7528
|
-
/*! @azure/msal-common v14.
|
|
7534
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
7529
7535
|
/*
|
|
7530
7536
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7531
7537
|
* Licensed under the MIT License.
|
|
@@ -7533,7 +7539,7 @@ const StubbedNetworkModule = {
|
|
|
7533
7539
|
const missingKidError = "missing_kid_error";
|
|
7534
7540
|
const missingAlgError = "missing_alg_error";
|
|
7535
7541
|
|
|
7536
|
-
/*! @azure/msal-common v14.
|
|
7542
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
7537
7543
|
|
|
7538
7544
|
/*
|
|
7539
7545
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7558,7 +7564,7 @@ function createJoseHeaderError(code) {
|
|
|
7558
7564
|
return new JoseHeaderError(code, JoseHeaderErrorMessages[code]);
|
|
7559
7565
|
}
|
|
7560
7566
|
|
|
7561
|
-
/*! @azure/msal-common v14.
|
|
7567
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
7562
7568
|
|
|
7563
7569
|
/*
|
|
7564
7570
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7598,7 +7604,7 @@ class JoseHeader {
|
|
|
7598
7604
|
}
|
|
7599
7605
|
}
|
|
7600
7606
|
|
|
7601
|
-
/*! @azure/msal-common v14.
|
|
7607
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
7602
7608
|
|
|
7603
7609
|
/*
|
|
7604
7610
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7656,7 +7662,7 @@ class AuthenticationHeaderParser {
|
|
|
7656
7662
|
}
|
|
7657
7663
|
}
|
|
7658
7664
|
|
|
7659
|
-
/*! @azure/msal-common v14.
|
|
7665
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
7660
7666
|
|
|
7661
7667
|
/*
|
|
7662
7668
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7860,7 +7866,7 @@ class ServerTelemetryManager {
|
|
|
7860
7866
|
}
|
|
7861
7867
|
}
|
|
7862
7868
|
|
|
7863
|
-
/*! @azure/msal-common v14.
|
|
7869
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
7864
7870
|
|
|
7865
7871
|
/*
|
|
7866
7872
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7939,7 +7945,7 @@ class StubPerformanceClient {
|
|
|
7939
7945
|
}
|
|
7940
7946
|
}
|
|
7941
7947
|
|
|
7942
|
-
/*! @azure/msal-common v14.
|
|
7948
|
+
/*! @azure/msal-common v14.7.0 2024-02-07 */
|
|
7943
7949
|
|
|
7944
7950
|
/*
|
|
7945
7951
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -9339,7 +9345,7 @@ function buildConfiguration({ auth: userInputAuth, cache: userInputCache, system
|
|
|
9339
9345
|
|
|
9340
9346
|
/* eslint-disable header/header */
|
|
9341
9347
|
const name = "@azure/msal-browser";
|
|
9342
|
-
const version = "3.
|
|
9348
|
+
const version = "3.9.0";
|
|
9343
9349
|
|
|
9344
9350
|
/*
|
|
9345
9351
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -12784,8 +12790,10 @@ class NativeInteractionClient extends BaseInteractionClient {
|
|
|
12784
12790
|
}
|
|
12785
12791
|
/**
|
|
12786
12792
|
* If the previous page called native platform for a token using redirect APIs, send the same request again and return the response
|
|
12793
|
+
* @param performanceClient {IPerformanceClient?}
|
|
12794
|
+
* @param correlationId {string?} correlation identifier
|
|
12787
12795
|
*/
|
|
12788
|
-
async handleRedirectPromise() {
|
|
12796
|
+
async handleRedirectPromise(performanceClient, correlationId) {
|
|
12789
12797
|
this.logger.trace("NativeInteractionClient - handleRedirectPromise called.");
|
|
12790
12798
|
if (!this.browserStorage.isInteractionInProgress(true)) {
|
|
12791
12799
|
this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null.");
|
|
@@ -12795,6 +12803,9 @@ class NativeInteractionClient extends BaseInteractionClient {
|
|
|
12795
12803
|
const cachedRequest = this.browserStorage.getCachedNativeRequest();
|
|
12796
12804
|
if (!cachedRequest) {
|
|
12797
12805
|
this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null.");
|
|
12806
|
+
if (performanceClient && correlationId) {
|
|
12807
|
+
performanceClient?.addFields({ errorCode: "no_cached_request" }, correlationId);
|
|
12808
|
+
}
|
|
12798
12809
|
return null;
|
|
12799
12810
|
}
|
|
12800
12811
|
const { prompt, ...request } = cachedRequest;
|
|
@@ -14191,9 +14202,11 @@ class RedirectClient extends StandardInteractionClient {
|
|
|
14191
14202
|
* Checks if navigateToLoginRequestUrl is set, and:
|
|
14192
14203
|
* - if true, performs logic to cache and navigate
|
|
14193
14204
|
* - if false, handles hash string and parses response
|
|
14194
|
-
* @param hash
|
|
14205
|
+
* @param hash {string?} url hash
|
|
14206
|
+
* @param performanceClient {IPerformanceClient?}
|
|
14207
|
+
* @param correlationId {string?} correlation identifier
|
|
14195
14208
|
*/
|
|
14196
|
-
async handleRedirectPromise(hash) {
|
|
14209
|
+
async handleRedirectPromise(hash, performanceClient, correlationId) {
|
|
14197
14210
|
const serverTelemetryManager = this.initializeServerTelemetryManager(ApiId.handleRedirectPromise);
|
|
14198
14211
|
try {
|
|
14199
14212
|
if (!this.browserStorage.isInteractionInProgress(true)) {
|
|
@@ -14205,6 +14218,9 @@ class RedirectClient extends StandardInteractionClient {
|
|
|
14205
14218
|
// Not a recognized server response hash or hash not associated with a redirect request
|
|
14206
14219
|
this.logger.info("handleRedirectPromise did not detect a response as a result of a redirect. Cleaning temporary cache.");
|
|
14207
14220
|
this.browserStorage.cleanRequestByInteractionType(exports.InteractionType.Redirect);
|
|
14221
|
+
if (performanceClient && correlationId) {
|
|
14222
|
+
performanceClient?.addFields({ errorCode: "no_server_response" }, correlationId);
|
|
14223
|
+
}
|
|
14208
14224
|
return null;
|
|
14209
14225
|
}
|
|
14210
14226
|
// If navigateToLoginRequestUrl is true, get the url where the redirect request was initiated
|
|
@@ -15151,24 +15167,27 @@ class StandardController {
|
|
|
15151
15167
|
const redirectResponseKey = hash || "";
|
|
15152
15168
|
let response = this.redirectResponse.get(redirectResponseKey);
|
|
15153
15169
|
if (typeof response === "undefined") {
|
|
15154
|
-
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_START, exports.InteractionType.Redirect);
|
|
15155
|
-
this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise");
|
|
15156
15170
|
const request = this.browserStorage.getCachedNativeRequest();
|
|
15157
|
-
|
|
15158
|
-
if (request &&
|
|
15171
|
+
const useNative = request &&
|
|
15159
15172
|
NativeMessageHandler.isNativeAvailable(this.config, this.logger, this.nativeExtensionProvider) &&
|
|
15160
15173
|
this.nativeExtensionProvider &&
|
|
15161
|
-
!hash
|
|
15174
|
+
!hash;
|
|
15175
|
+
const correlationId = useNative
|
|
15176
|
+
? request?.correlationId
|
|
15177
|
+
: this.browserStorage.getTemporaryCache(TemporaryCacheKeys.CORRELATION_ID, true) || "";
|
|
15178
|
+
const rootMeasurement = this.performanceClient.startMeasurement("acquireTokenRedirect", correlationId);
|
|
15179
|
+
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_START, exports.InteractionType.Redirect);
|
|
15180
|
+
this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise");
|
|
15181
|
+
let redirectResponse;
|
|
15182
|
+
if (useNative && this.nativeExtensionProvider) {
|
|
15162
15183
|
this.logger.trace("handleRedirectPromise - acquiring token from native platform");
|
|
15163
15184
|
const nativeClient = new NativeInteractionClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, ApiId.handleRedirectPromise, this.performanceClient, this.nativeExtensionProvider, request.accountId, this.nativeInternalStorage, request.correlationId);
|
|
15164
|
-
redirectResponse = nativeClient.handleRedirectPromise();
|
|
15185
|
+
redirectResponse = invokeAsync(nativeClient.handleRedirectPromise.bind(nativeClient), PerformanceEvents.HandleNativeRedirectPromiseMeasurement, this.logger, this.performanceClient, rootMeasurement.event.correlationId)(this.performanceClient, rootMeasurement.event.correlationId);
|
|
15165
15186
|
}
|
|
15166
15187
|
else {
|
|
15167
15188
|
this.logger.trace("handleRedirectPromise - acquiring token from web flow");
|
|
15168
|
-
const correlationId = this.browserStorage.getTemporaryCache(TemporaryCacheKeys.CORRELATION_ID, true) || Constants.EMPTY_STRING;
|
|
15169
15189
|
const redirectClient = this.createRedirectClient(correlationId);
|
|
15170
|
-
redirectResponse =
|
|
15171
|
-
redirectClient.handleRedirectPromise(hash);
|
|
15190
|
+
redirectResponse = invokeAsync(redirectClient.handleRedirectPromise.bind(redirectClient), PerformanceEvents.HandleRedirectPromiseMeasurement, this.logger, this.performanceClient, rootMeasurement.event.correlationId)(hash, this.performanceClient, rootMeasurement.event.correlationId);
|
|
15172
15191
|
}
|
|
15173
15192
|
response = redirectResponse
|
|
15174
15193
|
.then((result) => {
|
|
@@ -15184,19 +15203,34 @@ class StandardController {
|
|
|
15184
15203
|
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Redirect, result);
|
|
15185
15204
|
this.logger.verbose("handleRedirectResponse returned result, acquire token success");
|
|
15186
15205
|
}
|
|
15206
|
+
rootMeasurement.end({ success: true });
|
|
15187
15207
|
}
|
|
15188
15208
|
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_END, exports.InteractionType.Redirect);
|
|
15209
|
+
rootMeasurement.end({ success: false });
|
|
15189
15210
|
return result;
|
|
15190
15211
|
})
|
|
15191
15212
|
.catch((e) => {
|
|
15213
|
+
const eventError = e;
|
|
15192
15214
|
// Emit login event if there is an account
|
|
15193
15215
|
if (loggedInAccounts.length > 0) {
|
|
15194
|
-
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Redirect, null,
|
|
15216
|
+
this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_FAILURE, exports.InteractionType.Redirect, null, eventError);
|
|
15195
15217
|
}
|
|
15196
15218
|
else {
|
|
15197
|
-
this.eventHandler.emitEvent(EventType.LOGIN_FAILURE, exports.InteractionType.Redirect, null,
|
|
15219
|
+
this.eventHandler.emitEvent(EventType.LOGIN_FAILURE, exports.InteractionType.Redirect, null, eventError);
|
|
15198
15220
|
}
|
|
15199
15221
|
this.eventHandler.emitEvent(EventType.HANDLE_REDIRECT_END, exports.InteractionType.Redirect);
|
|
15222
|
+
if (eventError instanceof AuthError) {
|
|
15223
|
+
rootMeasurement.end({
|
|
15224
|
+
success: false,
|
|
15225
|
+
errorCode: eventError.errorCode,
|
|
15226
|
+
subErrorCode: eventError.subError,
|
|
15227
|
+
});
|
|
15228
|
+
}
|
|
15229
|
+
else {
|
|
15230
|
+
rootMeasurement.end({
|
|
15231
|
+
success: false,
|
|
15232
|
+
});
|
|
15233
|
+
}
|
|
15200
15234
|
throw e;
|
|
15201
15235
|
});
|
|
15202
15236
|
this.redirectResponse.set(redirectResponseKey, response);
|