@azure/msal-browser 2.30.0 → 2.31.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/README.md +0 -1
- package/dist/_virtual/_tslib.js +1 -1
- package/dist/app/ClientApplication.d.ts.map +1 -1
- package/dist/app/ClientApplication.js +13 -9
- package/dist/app/ClientApplication.js.map +1 -1
- package/dist/app/IPublicClientApplication.js +1 -1
- package/dist/app/PublicClientApplication.d.ts.map +1 -1
- package/dist/app/PublicClientApplication.js +8 -6
- package/dist/app/PublicClientApplication.js.map +1 -1
- package/dist/broker/nativeBroker/NativeMessageHandler.d.ts +11 -0
- package/dist/broker/nativeBroker/NativeMessageHandler.d.ts.map +1 -1
- package/dist/broker/nativeBroker/NativeMessageHandler.js +16 -1
- package/dist/broker/nativeBroker/NativeMessageHandler.js.map +1 -1
- package/dist/cache/AsyncMemoryStorage.js +1 -1
- package/dist/cache/BrowserCacheManager.js +1 -1
- package/dist/cache/BrowserStorage.js +1 -1
- package/dist/cache/CryptoKeyStore.js +1 -1
- package/dist/cache/DatabaseStorage.js +1 -1
- package/dist/cache/MemoryStorage.js +1 -1
- package/dist/cache/TokenCache.js +1 -1
- package/dist/config/Configuration.js +1 -1
- package/dist/crypto/BrowserCrypto.js +1 -1
- package/dist/crypto/CryptoOps.js +1 -1
- package/dist/crypto/GuidGenerator.js +1 -1
- package/dist/crypto/ModernBrowserCrypto.js +1 -1
- package/dist/crypto/MsBrowserCrypto.js +1 -1
- package/dist/crypto/MsrBrowserCrypto.js +1 -1
- package/dist/crypto/PkceGenerator.js +1 -1
- package/dist/crypto/SignedHttpRequest.js +1 -1
- package/dist/encode/Base64Decode.js +1 -1
- package/dist/encode/Base64Encode.js +1 -1
- package/dist/error/BrowserAuthError.js +1 -1
- package/dist/error/BrowserConfigurationAuthError.js +1 -1
- package/dist/error/NativeAuthError.js +1 -1
- package/dist/event/EventHandler.js +1 -1
- package/dist/event/EventMessage.js +1 -1
- package/dist/event/EventType.js +1 -1
- package/dist/index.cjs.js +160 -102
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/interaction_client/BaseInteractionClient.js +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.js +1 -1
- package/dist/interaction_client/NativeInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/NativeInteractionClient.js +28 -7
- package/dist/interaction_client/NativeInteractionClient.js.map +1 -1
- package/dist/interaction_client/PopupClient.js +1 -1
- package/dist/interaction_client/RedirectClient.js +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.js +1 -1
- package/dist/interaction_client/SilentCacheClient.js +1 -1
- package/dist/interaction_client/SilentIframeClient.js +1 -1
- package/dist/interaction_client/SilentRefreshClient.js +1 -1
- package/dist/interaction_client/StandardInteractionClient.js +1 -1
- package/dist/interaction_handler/InteractionHandler.js +1 -1
- package/dist/interaction_handler/RedirectHandler.js +1 -1
- package/dist/interaction_handler/SilentHandler.js +1 -1
- package/dist/internals.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/telemetry/BrowserPerformanceClient.js +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.js +1 -1
- package/dist/utils/BrowserConstants.js +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/lib/msal-browser.js +160 -102
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +44 -44
- package/package.json +2 -2
package/lib/msal-browser.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v2.
|
|
1
|
+
/*! @azure/msal-browser v2.31.0 2022-11-07 */
|
|
2
2
|
'use strict';
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
return ar;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
/*! @azure/msal-common
|
|
122
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
123
123
|
/*! *****************************************************************************
|
|
124
124
|
Copyright (c) Microsoft Corporation.
|
|
125
125
|
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
return r;
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
/*! @azure/msal-common
|
|
209
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
210
210
|
|
|
211
211
|
/*
|
|
212
212
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -587,7 +587,7 @@
|
|
|
587
587
|
JsonTypes["Jwk"] = "JWK";
|
|
588
588
|
})(JsonTypes || (JsonTypes = {}));
|
|
589
589
|
|
|
590
|
-
/*! @azure/msal-common
|
|
590
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
591
591
|
|
|
592
592
|
/*
|
|
593
593
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -643,7 +643,7 @@
|
|
|
643
643
|
return AuthError;
|
|
644
644
|
}(Error));
|
|
645
645
|
|
|
646
|
-
/*! @azure/msal-common
|
|
646
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
647
647
|
|
|
648
648
|
/*
|
|
649
649
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -718,7 +718,7 @@
|
|
|
718
718
|
}
|
|
719
719
|
};
|
|
720
720
|
|
|
721
|
-
/*! @azure/msal-common
|
|
721
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
722
722
|
|
|
723
723
|
/*
|
|
724
724
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1213,7 +1213,7 @@
|
|
|
1213
1213
|
return ClientAuthError;
|
|
1214
1214
|
}(AuthError));
|
|
1215
1215
|
|
|
1216
|
-
/*! @azure/msal-common
|
|
1216
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
1217
1217
|
|
|
1218
1218
|
/*
|
|
1219
1219
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1338,7 +1338,7 @@
|
|
|
1338
1338
|
return StringUtils;
|
|
1339
1339
|
}());
|
|
1340
1340
|
|
|
1341
|
-
/*! @azure/msal-common
|
|
1341
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
1342
1342
|
|
|
1343
1343
|
/*
|
|
1344
1344
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1518,12 +1518,12 @@
|
|
|
1518
1518
|
return Logger;
|
|
1519
1519
|
}());
|
|
1520
1520
|
|
|
1521
|
-
/*! @azure/msal-common
|
|
1521
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
1522
1522
|
/* eslint-disable header/header */
|
|
1523
1523
|
var name$1 = "@azure/msal-common";
|
|
1524
|
-
var version$1 = "
|
|
1524
|
+
var version$1 = "8.0.0";
|
|
1525
1525
|
|
|
1526
|
-
/*! @azure/msal-common
|
|
1526
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
1527
1527
|
/*
|
|
1528
1528
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1529
1529
|
* Licensed under the MIT License.
|
|
@@ -1544,7 +1544,7 @@
|
|
|
1544
1544
|
AzureCloudInstance["AzureUsGovernment"] = "https://login.microsoftonline.us";
|
|
1545
1545
|
})(exports.AzureCloudInstance || (exports.AzureCloudInstance = {}));
|
|
1546
1546
|
|
|
1547
|
-
/*! @azure/msal-common
|
|
1547
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
1548
1548
|
|
|
1549
1549
|
/*
|
|
1550
1550
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1703,7 +1703,7 @@
|
|
|
1703
1703
|
return CredentialEntity;
|
|
1704
1704
|
}());
|
|
1705
1705
|
|
|
1706
|
-
/*! @azure/msal-common
|
|
1706
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
1707
1707
|
|
|
1708
1708
|
/*
|
|
1709
1709
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1958,7 +1958,7 @@
|
|
|
1958
1958
|
return ClientConfigurationError;
|
|
1959
1959
|
}(ClientAuthError));
|
|
1960
1960
|
|
|
1961
|
-
/*! @azure/msal-common
|
|
1961
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
1962
1962
|
|
|
1963
1963
|
/*
|
|
1964
1964
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2142,7 +2142,7 @@
|
|
|
2142
2142
|
return ScopeSet;
|
|
2143
2143
|
}());
|
|
2144
2144
|
|
|
2145
|
-
/*! @azure/msal-common
|
|
2145
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
2146
2146
|
|
|
2147
2147
|
/*
|
|
2148
2148
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2180,7 +2180,7 @@
|
|
|
2180
2180
|
};
|
|
2181
2181
|
}
|
|
2182
2182
|
|
|
2183
|
-
/*! @azure/msal-common
|
|
2183
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
2184
2184
|
/*
|
|
2185
2185
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2186
2186
|
* Licensed under the MIT License.
|
|
@@ -2195,7 +2195,7 @@
|
|
|
2195
2195
|
AuthorityType[AuthorityType["Dsts"] = 2] = "Dsts";
|
|
2196
2196
|
})(AuthorityType || (AuthorityType = {}));
|
|
2197
2197
|
|
|
2198
|
-
/*! @azure/msal-common
|
|
2198
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
2199
2199
|
|
|
2200
2200
|
/*
|
|
2201
2201
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2434,7 +2434,7 @@
|
|
|
2434
2434
|
return AccountEntity;
|
|
2435
2435
|
}());
|
|
2436
2436
|
|
|
2437
|
-
/*! @azure/msal-common
|
|
2437
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
2438
2438
|
|
|
2439
2439
|
/*
|
|
2440
2440
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2486,7 +2486,7 @@
|
|
|
2486
2486
|
return AuthToken;
|
|
2487
2487
|
}());
|
|
2488
2488
|
|
|
2489
|
-
/*! @azure/msal-common
|
|
2489
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
2490
2490
|
|
|
2491
2491
|
/*
|
|
2492
2492
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3365,7 +3365,7 @@
|
|
|
3365
3365
|
return DefaultStorageClass;
|
|
3366
3366
|
}(CacheManager));
|
|
3367
3367
|
|
|
3368
|
-
/*! @azure/msal-common
|
|
3368
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
3369
3369
|
|
|
3370
3370
|
/*
|
|
3371
3371
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3459,7 +3459,7 @@
|
|
|
3459
3459
|
return __assign({ clientCapabilities: [], azureCloudOptions: DEFAULT_AZURE_CLOUD_OPTIONS, skipAuthorityMetadataCache: false }, authOptions);
|
|
3460
3460
|
}
|
|
3461
3461
|
|
|
3462
|
-
/*! @azure/msal-common
|
|
3462
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
3463
3463
|
|
|
3464
3464
|
/*
|
|
3465
3465
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3479,7 +3479,7 @@
|
|
|
3479
3479
|
return ServerError;
|
|
3480
3480
|
}(AuthError));
|
|
3481
3481
|
|
|
3482
|
-
/*! @azure/msal-common
|
|
3482
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
3483
3483
|
|
|
3484
3484
|
/*
|
|
3485
3485
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3575,7 +3575,7 @@
|
|
|
3575
3575
|
return ThrottlingUtils;
|
|
3576
3576
|
}());
|
|
3577
3577
|
|
|
3578
|
-
/*! @azure/msal-common
|
|
3578
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
3579
3579
|
|
|
3580
3580
|
/*
|
|
3581
3581
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3624,7 +3624,7 @@
|
|
|
3624
3624
|
return NetworkManager;
|
|
3625
3625
|
}());
|
|
3626
3626
|
|
|
3627
|
-
/*! @azure/msal-common
|
|
3627
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
3628
3628
|
/*
|
|
3629
3629
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3630
3630
|
* Licensed under the MIT License.
|
|
@@ -3635,7 +3635,7 @@
|
|
|
3635
3635
|
CcsCredentialType["UPN"] = "UPN";
|
|
3636
3636
|
})(CcsCredentialType || (CcsCredentialType = {}));
|
|
3637
3637
|
|
|
3638
|
-
/*! @azure/msal-common
|
|
3638
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
3639
3639
|
|
|
3640
3640
|
/*
|
|
3641
3641
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3726,7 +3726,7 @@
|
|
|
3726
3726
|
return BaseClient;
|
|
3727
3727
|
}());
|
|
3728
3728
|
|
|
3729
|
-
/*! @azure/msal-common
|
|
3729
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
3730
3730
|
|
|
3731
3731
|
/*
|
|
3732
3732
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3812,7 +3812,7 @@
|
|
|
3812
3812
|
return RequestValidator;
|
|
3813
3813
|
}());
|
|
3814
3814
|
|
|
3815
|
-
/*! @azure/msal-common
|
|
3815
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
3816
3816
|
|
|
3817
3817
|
/*
|
|
3818
3818
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4190,7 +4190,7 @@
|
|
|
4190
4190
|
return RequestParameterBuilder;
|
|
4191
4191
|
}());
|
|
4192
4192
|
|
|
4193
|
-
/*! @azure/msal-common
|
|
4193
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
4194
4194
|
|
|
4195
4195
|
/*
|
|
4196
4196
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4254,7 +4254,7 @@
|
|
|
4254
4254
|
return IdTokenEntity;
|
|
4255
4255
|
}(CredentialEntity));
|
|
4256
4256
|
|
|
4257
|
-
/*! @azure/msal-common
|
|
4257
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
4258
4258
|
/*
|
|
4259
4259
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4260
4260
|
* Licensed under the MIT License.
|
|
@@ -4304,7 +4304,7 @@
|
|
|
4304
4304
|
return TimeUtils;
|
|
4305
4305
|
}());
|
|
4306
4306
|
|
|
4307
|
-
/*! @azure/msal-common
|
|
4307
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
4308
4308
|
|
|
4309
4309
|
/*
|
|
4310
4310
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4418,7 +4418,7 @@
|
|
|
4418
4418
|
return AccessTokenEntity;
|
|
4419
4419
|
}(CredentialEntity));
|
|
4420
4420
|
|
|
4421
|
-
/*! @azure/msal-common
|
|
4421
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
4422
4422
|
|
|
4423
4423
|
/*
|
|
4424
4424
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4485,7 +4485,7 @@
|
|
|
4485
4485
|
return RefreshTokenEntity;
|
|
4486
4486
|
}(CredentialEntity));
|
|
4487
4487
|
|
|
4488
|
-
/*! @azure/msal-common
|
|
4488
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
4489
4489
|
|
|
4490
4490
|
/*
|
|
4491
4491
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4560,7 +4560,7 @@
|
|
|
4560
4560
|
return InteractionRequiredAuthError;
|
|
4561
4561
|
}(AuthError));
|
|
4562
4562
|
|
|
4563
|
-
/*! @azure/msal-common
|
|
4563
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
4564
4564
|
/*
|
|
4565
4565
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4566
4566
|
* Licensed under the MIT License.
|
|
@@ -4576,7 +4576,7 @@
|
|
|
4576
4576
|
return CacheRecord;
|
|
4577
4577
|
}());
|
|
4578
4578
|
|
|
4579
|
-
/*! @azure/msal-common
|
|
4579
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
4580
4580
|
|
|
4581
4581
|
/*
|
|
4582
4582
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4647,7 +4647,7 @@
|
|
|
4647
4647
|
return ProtocolUtils;
|
|
4648
4648
|
}());
|
|
4649
4649
|
|
|
4650
|
-
/*! @azure/msal-common
|
|
4650
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
4651
4651
|
|
|
4652
4652
|
/*
|
|
4653
4653
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4881,7 +4881,7 @@
|
|
|
4881
4881
|
return UrlString;
|
|
4882
4882
|
}());
|
|
4883
4883
|
|
|
4884
|
-
/*! @azure/msal-common
|
|
4884
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
4885
4885
|
|
|
4886
4886
|
/*
|
|
4887
4887
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4982,7 +4982,7 @@
|
|
|
4982
4982
|
return PopTokenGenerator;
|
|
4983
4983
|
}());
|
|
4984
4984
|
|
|
4985
|
-
/*! @azure/msal-common
|
|
4985
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
4986
4986
|
|
|
4987
4987
|
/*
|
|
4988
4988
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5052,7 +5052,7 @@
|
|
|
5052
5052
|
return AppMetadataEntity;
|
|
5053
5053
|
}());
|
|
5054
5054
|
|
|
5055
|
-
/*! @azure/msal-common
|
|
5055
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
5056
5056
|
/*
|
|
5057
5057
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5058
5058
|
* Licensed under the MIT License.
|
|
@@ -5088,7 +5088,7 @@
|
|
|
5088
5088
|
return TokenCacheContext;
|
|
5089
5089
|
}());
|
|
5090
5090
|
|
|
5091
|
-
/*! @azure/msal-common
|
|
5091
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
5092
5092
|
|
|
5093
5093
|
/*
|
|
5094
5094
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5368,7 +5368,7 @@
|
|
|
5368
5368
|
return ResponseHandler;
|
|
5369
5369
|
}());
|
|
5370
5370
|
|
|
5371
|
-
/*! @azure/msal-common
|
|
5371
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
5372
5372
|
|
|
5373
5373
|
/*
|
|
5374
5374
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5821,7 +5821,7 @@
|
|
|
5821
5821
|
return AuthorizationCodeClient;
|
|
5822
5822
|
}(BaseClient));
|
|
5823
5823
|
|
|
5824
|
-
/*! @azure/msal-common
|
|
5824
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
5825
5825
|
/*
|
|
5826
5826
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5827
5827
|
* Licensed under the MIT License.
|
|
@@ -5946,7 +5946,7 @@
|
|
|
5946
5946
|
PerformanceEventStatus[PerformanceEventStatus["Completed"] = 2] = "Completed";
|
|
5947
5947
|
})(PerformanceEventStatus || (PerformanceEventStatus = {}));
|
|
5948
5948
|
|
|
5949
|
-
/*! @azure/msal-common
|
|
5949
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
5950
5950
|
|
|
5951
5951
|
/*
|
|
5952
5952
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5961,27 +5961,28 @@
|
|
|
5961
5961
|
return _super.call(this, configuration, performanceClient) || this;
|
|
5962
5962
|
}
|
|
5963
5963
|
RefreshTokenClient.prototype.acquireToken = function (request) {
|
|
5964
|
-
var _a, _b;
|
|
5964
|
+
var _a, _b, _c;
|
|
5965
5965
|
return __awaiter(this, void 0, void 0, function () {
|
|
5966
5966
|
var atsMeasurement, reqTimestamp, response, requestId, responseHandler;
|
|
5967
5967
|
var _this = this;
|
|
5968
|
-
return __generator(this, function (
|
|
5969
|
-
switch (
|
|
5968
|
+
return __generator(this, function (_d) {
|
|
5969
|
+
switch (_d.label) {
|
|
5970
5970
|
case 0:
|
|
5971
5971
|
atsMeasurement = (_a = this.performanceClient) === null || _a === void 0 ? void 0 : _a.startMeasurement(exports.PerformanceEvents.RefreshTokenClientAcquireToken, request.correlationId);
|
|
5972
5972
|
this.logger.verbose("RefreshTokenClientAcquireToken called", request.correlationId);
|
|
5973
5973
|
reqTimestamp = TimeUtils.nowSeconds();
|
|
5974
5974
|
return [4 /*yield*/, this.executeTokenRequest(request, this.authority)];
|
|
5975
5975
|
case 1:
|
|
5976
|
-
response =
|
|
5977
|
-
|
|
5976
|
+
response = _d.sent();
|
|
5977
|
+
atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.addStaticFields({
|
|
5978
|
+
refreshTokenSize: ((_b = response.body.refresh_token) === null || _b === void 0 ? void 0 : _b.length) || 0
|
|
5979
|
+
});
|
|
5980
|
+
requestId = (_c = response.headers) === null || _c === void 0 ? void 0 : _c[HeaderNames.X_MS_REQUEST_ID];
|
|
5978
5981
|
responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin);
|
|
5979
5982
|
responseHandler.validateTokenResponse(response.body);
|
|
5980
5983
|
return [2 /*return*/, responseHandler.handleServerTokenResponse(response.body, this.authority, reqTimestamp, request, undefined, undefined, true, request.forceCache, requestId).then(function (result) {
|
|
5981
|
-
var _a;
|
|
5982
5984
|
atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.endMeasurement({
|
|
5983
|
-
success: true
|
|
5984
|
-
refreshTokenSize: ((_a = response.body.refresh_token) === null || _a === void 0 ? void 0 : _a.length) || 0
|
|
5985
|
+
success: true
|
|
5985
5986
|
});
|
|
5986
5987
|
return result;
|
|
5987
5988
|
})
|
|
@@ -5990,8 +5991,7 @@
|
|
|
5990
5991
|
atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.endMeasurement({
|
|
5991
5992
|
errorCode: error.errorCode,
|
|
5992
5993
|
subErrorCode: error.subError,
|
|
5993
|
-
success: false
|
|
5994
|
-
refreshTokenSize: undefined
|
|
5994
|
+
success: false
|
|
5995
5995
|
});
|
|
5996
5996
|
throw error;
|
|
5997
5997
|
})];
|
|
@@ -6211,7 +6211,7 @@
|
|
|
6211
6211
|
return RefreshTokenClient;
|
|
6212
6212
|
}(BaseClient));
|
|
6213
6213
|
|
|
6214
|
-
/*! @azure/msal-common
|
|
6214
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
6215
6215
|
|
|
6216
6216
|
/*
|
|
6217
6217
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6335,7 +6335,7 @@
|
|
|
6335
6335
|
return SilentFlowClient;
|
|
6336
6336
|
}(BaseClient));
|
|
6337
6337
|
|
|
6338
|
-
/*! @azure/msal-common
|
|
6338
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
6339
6339
|
/*
|
|
6340
6340
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6341
6341
|
* Licensed under the MIT License.
|
|
@@ -6347,7 +6347,7 @@
|
|
|
6347
6347
|
response.hasOwnProperty("jwks_uri"));
|
|
6348
6348
|
}
|
|
6349
6349
|
|
|
6350
|
-
/*! @azure/msal-common
|
|
6350
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
6351
6351
|
/*
|
|
6352
6352
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6353
6353
|
* Licensed under the MIT License.
|
|
@@ -6356,7 +6356,7 @@
|
|
|
6356
6356
|
var EndpointMetadata = rawMetdataJSON.endpointMetadata;
|
|
6357
6357
|
var InstanceDiscoveryMetadata = rawMetdataJSON.instanceDiscoveryMetadata;
|
|
6358
6358
|
|
|
6359
|
-
/*! @azure/msal-common
|
|
6359
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
6360
6360
|
/*
|
|
6361
6361
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6362
6362
|
* Licensed under the MIT License.
|
|
@@ -6370,7 +6370,7 @@
|
|
|
6370
6370
|
ProtocolMode["OIDC"] = "OIDC";
|
|
6371
6371
|
})(exports.ProtocolMode || (exports.ProtocolMode = {}));
|
|
6372
6372
|
|
|
6373
|
-
/*! @azure/msal-common
|
|
6373
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
6374
6374
|
|
|
6375
6375
|
/*
|
|
6376
6376
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6447,7 +6447,7 @@
|
|
|
6447
6447
|
return AuthorityMetadataEntity;
|
|
6448
6448
|
}());
|
|
6449
6449
|
|
|
6450
|
-
/*! @azure/msal-common
|
|
6450
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
6451
6451
|
/*
|
|
6452
6452
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6453
6453
|
* Licensed under the MIT License.
|
|
@@ -6457,7 +6457,7 @@
|
|
|
6457
6457
|
response.hasOwnProperty("metadata"));
|
|
6458
6458
|
}
|
|
6459
6459
|
|
|
6460
|
-
/*! @azure/msal-common
|
|
6460
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
6461
6461
|
|
|
6462
6462
|
/*
|
|
6463
6463
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6579,7 +6579,7 @@
|
|
|
6579
6579
|
return RegionDiscovery;
|
|
6580
6580
|
}());
|
|
6581
6581
|
|
|
6582
|
-
/*! @azure/msal-common
|
|
6582
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
6583
6583
|
|
|
6584
6584
|
/*
|
|
6585
6585
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7251,7 +7251,7 @@
|
|
|
7251
7251
|
return Authority;
|
|
7252
7252
|
}());
|
|
7253
7253
|
|
|
7254
|
-
/*! @azure/msal-common
|
|
7254
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
7255
7255
|
|
|
7256
7256
|
/*
|
|
7257
7257
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7312,7 +7312,7 @@
|
|
|
7312
7312
|
return AuthorityFactory;
|
|
7313
7313
|
}());
|
|
7314
7314
|
|
|
7315
|
-
/*! @azure/msal-common
|
|
7315
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
7316
7316
|
|
|
7317
7317
|
/*
|
|
7318
7318
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7343,7 +7343,7 @@
|
|
|
7343
7343
|
return ServerTelemetryEntity;
|
|
7344
7344
|
}());
|
|
7345
7345
|
|
|
7346
|
-
/*! @azure/msal-common
|
|
7346
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
7347
7347
|
|
|
7348
7348
|
/*
|
|
7349
7349
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7371,7 +7371,7 @@
|
|
|
7371
7371
|
return ThrottlingEntity;
|
|
7372
7372
|
}());
|
|
7373
7373
|
|
|
7374
|
-
/*! @azure/msal-common
|
|
7374
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
7375
7375
|
|
|
7376
7376
|
/*
|
|
7377
7377
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7388,7 +7388,7 @@
|
|
|
7388
7388
|
}
|
|
7389
7389
|
};
|
|
7390
7390
|
|
|
7391
|
-
/*! @azure/msal-common
|
|
7391
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
7392
7392
|
|
|
7393
7393
|
/*
|
|
7394
7394
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7433,7 +7433,7 @@
|
|
|
7433
7433
|
return JoseHeaderError;
|
|
7434
7434
|
}(AuthError));
|
|
7435
7435
|
|
|
7436
|
-
/*! @azure/msal-common
|
|
7436
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
7437
7437
|
|
|
7438
7438
|
/*
|
|
7439
7439
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7473,7 +7473,7 @@
|
|
|
7473
7473
|
return JoseHeader;
|
|
7474
7474
|
}());
|
|
7475
7475
|
|
|
7476
|
-
/*! @azure/msal-common
|
|
7476
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
7477
7477
|
|
|
7478
7478
|
/*
|
|
7479
7479
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7532,7 +7532,7 @@
|
|
|
7532
7532
|
return AuthenticationHeaderParser;
|
|
7533
7533
|
}());
|
|
7534
7534
|
|
|
7535
|
-
/*! @azure/msal-common
|
|
7535
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
7536
7536
|
|
|
7537
7537
|
/*
|
|
7538
7538
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7694,7 +7694,7 @@
|
|
|
7694
7694
|
return ServerTelemetryManager;
|
|
7695
7695
|
}());
|
|
7696
7696
|
|
|
7697
|
-
/*! @azure/msal-common
|
|
7697
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
7698
7698
|
|
|
7699
7699
|
/*
|
|
7700
7700
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7721,6 +7721,7 @@
|
|
|
7721
7721
|
this.logger = logger;
|
|
7722
7722
|
this.callbacks = new Map();
|
|
7723
7723
|
this.eventsByCorrelationId = new Map();
|
|
7724
|
+
this.staticFieldsByCorrelationId = new Map();
|
|
7724
7725
|
this.measurementsById = new Map();
|
|
7725
7726
|
}
|
|
7726
7727
|
/**
|
|
@@ -7747,8 +7748,6 @@
|
|
|
7747
7748
|
authority: this.authority,
|
|
7748
7749
|
libraryName: this.libraryName,
|
|
7749
7750
|
libraryVersion: this.libraryVersion,
|
|
7750
|
-
appName: (_a = this.applicationTelemetry) === null || _a === void 0 ? void 0 : _a.appName,
|
|
7751
|
-
appVersion: (_b = this.applicationTelemetry) === null || _b === void 0 ? void 0 : _b.appVersion,
|
|
7752
7751
|
clientId: this.clientId,
|
|
7753
7752
|
name: measureName,
|
|
7754
7753
|
startTimeMs: Date.now(),
|
|
@@ -7756,6 +7755,11 @@
|
|
|
7756
7755
|
};
|
|
7757
7756
|
// Store in progress events so they can be discarded if not ended properly
|
|
7758
7757
|
this.cacheEventByCorrelationId(inProgressEvent);
|
|
7758
|
+
var staticFields = {
|
|
7759
|
+
appName: (_a = this.applicationTelemetry) === null || _a === void 0 ? void 0 : _a.appName,
|
|
7760
|
+
appVersion: (_b = this.applicationTelemetry) === null || _b === void 0 ? void 0 : _b.appVersion,
|
|
7761
|
+
};
|
|
7762
|
+
this.addStaticFields(staticFields, eventCorrelationId);
|
|
7759
7763
|
this.cacheMeasurement(inProgressEvent, performanceMeasurement);
|
|
7760
7764
|
// Return the event and functions the caller can use to properly end/flush the measurement
|
|
7761
7765
|
return {
|
|
@@ -7773,6 +7777,9 @@
|
|
|
7773
7777
|
discardMeasurement: function () {
|
|
7774
7778
|
return _this.discardMeasurements(inProgressEvent.correlationId);
|
|
7775
7779
|
},
|
|
7780
|
+
addStaticFields: function (fields) {
|
|
7781
|
+
return _this.addStaticFields(fields, inProgressEvent.correlationId);
|
|
7782
|
+
},
|
|
7776
7783
|
measurement: performanceMeasurement,
|
|
7777
7784
|
event: inProgressEvent
|
|
7778
7785
|
};
|
|
@@ -7808,6 +7815,22 @@
|
|
|
7808
7815
|
}
|
|
7809
7816
|
return null;
|
|
7810
7817
|
};
|
|
7818
|
+
/**
|
|
7819
|
+
* Saves extra information to be emitted when the measurements are flushed
|
|
7820
|
+
* @param fields
|
|
7821
|
+
* @param correlationId
|
|
7822
|
+
*/
|
|
7823
|
+
PerformanceClient.prototype.addStaticFields = function (fields, correlationId) {
|
|
7824
|
+
var existingStaticFields = this.staticFieldsByCorrelationId.get(correlationId);
|
|
7825
|
+
if (existingStaticFields) {
|
|
7826
|
+
this.logger.trace("PerformanceClient: Updating static fields");
|
|
7827
|
+
this.staticFieldsByCorrelationId.set(correlationId, __assign(__assign({}, existingStaticFields), fields));
|
|
7828
|
+
}
|
|
7829
|
+
else {
|
|
7830
|
+
this.logger.trace("PerformanceClient: Adding static fields");
|
|
7831
|
+
this.staticFieldsByCorrelationId.set(correlationId, fields);
|
|
7832
|
+
}
|
|
7833
|
+
};
|
|
7811
7834
|
/**
|
|
7812
7835
|
* Upserts event into event cache.
|
|
7813
7836
|
* First key is the correlation id, second key is the event id.
|
|
@@ -7897,19 +7920,12 @@
|
|
|
7897
7920
|
else {
|
|
7898
7921
|
_this.logger.verbose("PerformanceClient: Submeasurement for " + measureName + " already exists for " + current.name + ", ignoring", correlationId);
|
|
7899
7922
|
}
|
|
7900
|
-
if (current.accessTokenSize) {
|
|
7901
|
-
previous.accessTokenSize = current.accessTokenSize;
|
|
7902
|
-
}
|
|
7903
|
-
if (current.idTokenSize) {
|
|
7904
|
-
previous.idTokenSize = current.idTokenSize;
|
|
7905
|
-
}
|
|
7906
|
-
if (current.refreshTokenSize) {
|
|
7907
|
-
previous.refreshTokenSize = current.refreshTokenSize;
|
|
7908
|
-
}
|
|
7909
7923
|
}
|
|
7910
7924
|
return previous;
|
|
7911
7925
|
}, topLevelEvent);
|
|
7912
|
-
this.
|
|
7926
|
+
var staticFields = this.staticFieldsByCorrelationId.get(correlationId);
|
|
7927
|
+
var finalEvent = __assign(__assign({}, eventToEmit), staticFields);
|
|
7928
|
+
this.emitEvents([finalEvent], eventToEmit.correlationId);
|
|
7913
7929
|
}
|
|
7914
7930
|
else {
|
|
7915
7931
|
this.logger.verbose("PerformanceClient: No completed top-level measurements found for " + measureName, correlationId);
|
|
@@ -7973,7 +7989,7 @@
|
|
|
7973
7989
|
return PerformanceClient;
|
|
7974
7990
|
}());
|
|
7975
7991
|
|
|
7976
|
-
/*! @azure/msal-common
|
|
7992
|
+
/*! @azure/msal-common v8.0.0 2022-11-07 */
|
|
7977
7993
|
|
|
7978
7994
|
/*
|
|
7979
7995
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -9848,7 +9864,7 @@
|
|
|
9848
9864
|
|
|
9849
9865
|
/* eslint-disable header/header */
|
|
9850
9866
|
var name = "@azure/msal-browser";
|
|
9851
|
-
var version = "2.
|
|
9867
|
+
var version = "2.31.0";
|
|
9852
9868
|
|
|
9853
9869
|
/*
|
|
9854
9870
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -11229,7 +11245,7 @@
|
|
|
11229
11245
|
result = _a.sent();
|
|
11230
11246
|
nativeATMeasurement.endMeasurement({
|
|
11231
11247
|
success: true,
|
|
11232
|
-
isNativeBroker:
|
|
11248
|
+
isNativeBroker: false,
|
|
11233
11249
|
fromCache: true
|
|
11234
11250
|
});
|
|
11235
11251
|
return [2 /*return*/, result];
|
|
@@ -11371,7 +11387,7 @@
|
|
|
11371
11387
|
*/
|
|
11372
11388
|
NativeInteractionClient.prototype.handleRedirectPromise = function () {
|
|
11373
11389
|
return __awaiter$1(this, void 0, void 0, function () {
|
|
11374
|
-
var cachedRequest, messageBody, reqTimestamp, response, result, e_4;
|
|
11390
|
+
var cachedRequest, prompt, request, messageBody, reqTimestamp, response, result, e_4;
|
|
11375
11391
|
return __generator$1(this, function (_a) {
|
|
11376
11392
|
switch (_a.label) {
|
|
11377
11393
|
case 0:
|
|
@@ -11385,10 +11401,14 @@
|
|
|
11385
11401
|
this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null.");
|
|
11386
11402
|
return [2 /*return*/, null];
|
|
11387
11403
|
}
|
|
11404
|
+
prompt = cachedRequest.prompt, request = __rest(cachedRequest, ["prompt"]);
|
|
11405
|
+
if (prompt) {
|
|
11406
|
+
this.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window.");
|
|
11407
|
+
}
|
|
11388
11408
|
this.browserStorage.removeItem(this.browserStorage.generateCacheKey(TemporaryCacheKeys.NATIVE_REQUEST));
|
|
11389
11409
|
messageBody = {
|
|
11390
11410
|
method: NativeExtensionMethod.GetToken,
|
|
11391
|
-
request:
|
|
11411
|
+
request: request
|
|
11392
11412
|
};
|
|
11393
11413
|
reqTimestamp = TimeUtils.nowSeconds();
|
|
11394
11414
|
_a.label = 1;
|
|
@@ -11399,7 +11419,7 @@
|
|
|
11399
11419
|
case 2:
|
|
11400
11420
|
response = _a.sent();
|
|
11401
11421
|
this.validateNativeResponse(response);
|
|
11402
|
-
result = this.handleNativeResponse(response,
|
|
11422
|
+
result = this.handleNativeResponse(response, request, reqTimestamp);
|
|
11403
11423
|
this.browserStorage.setInteractionInProgress(false);
|
|
11404
11424
|
return [2 /*return*/, result];
|
|
11405
11425
|
case 3:
|
|
@@ -11427,12 +11447,30 @@
|
|
|
11427
11447
|
*/
|
|
11428
11448
|
NativeInteractionClient.prototype.handleNativeResponse = function (response, request, reqTimestamp) {
|
|
11429
11449
|
return __awaiter$1(this, void 0, void 0, function () {
|
|
11430
|
-
var idTokenObj, authority, authorityPreferredCache, homeAccountIdentifier, accountEntity, responseScopes, accountProperties, uid, tid, responseAccessToken, responseTokenType, _a, popTokenGenerator, shrParameters,
|
|
11450
|
+
var mats, idTokenObj, authority, authorityPreferredCache, homeAccountIdentifier, accountEntity, responseScopes, accountProperties, uid, tid, responseAccessToken, responseTokenType, _a, popTokenGenerator, shrParameters, result, idTokenEntity, expiresIn, tokenExpirationSeconds, accessTokenEntity;
|
|
11431
11451
|
var _this = this;
|
|
11432
11452
|
return __generator$1(this, function (_b) {
|
|
11433
11453
|
switch (_b.label) {
|
|
11434
11454
|
case 0:
|
|
11435
11455
|
this.logger.trace("NativeInteractionClient - handleNativeResponse called.");
|
|
11456
|
+
mats = this.getMATSFromResponse(response);
|
|
11457
|
+
this.performanceClient.addStaticFields({
|
|
11458
|
+
extensionId: this.nativeMessageHandler.getExtensionId(),
|
|
11459
|
+
extensionVersion: this.nativeMessageHandler.getExtensionVersion(),
|
|
11460
|
+
matsBrokerVersion: mats ? mats.broker_version : undefined,
|
|
11461
|
+
matsAccountJoinOnStart: mats ? mats.account_join_on_start : undefined,
|
|
11462
|
+
matsAccountJoinOnEnd: mats ? mats.account_join_on_end : undefined,
|
|
11463
|
+
matsDeviceJoin: mats ? mats.device_join : undefined,
|
|
11464
|
+
matsPromptBehavior: mats ? mats.prompt_behavior : undefined,
|
|
11465
|
+
matsApiErrorCode: mats ? mats.api_error_code : undefined,
|
|
11466
|
+
matsUiVisible: mats ? mats.ui_visible : undefined,
|
|
11467
|
+
matsSilentCode: mats ? mats.silent_code : undefined,
|
|
11468
|
+
matsSilentBiSubCode: mats ? mats.silent_bi_sub_code : undefined,
|
|
11469
|
+
matsSilentMessage: mats ? mats.silent_message : undefined,
|
|
11470
|
+
matsSilentStatus: mats ? mats.silent_status : undefined,
|
|
11471
|
+
matsHttpStatus: mats ? mats.http_status : undefined,
|
|
11472
|
+
matsHttpEventCount: mats ? mats.http_event_count : undefined
|
|
11473
|
+
}, this.correlationId);
|
|
11436
11474
|
if (response.account.id !== request.accountId) {
|
|
11437
11475
|
// User switch in native broker prompt is not supported. All users must first sign in through web flow to ensure server state is in sync
|
|
11438
11476
|
throw NativeAuthError.createUserSwitchError();
|
|
@@ -11488,7 +11526,6 @@
|
|
|
11488
11526
|
}
|
|
11489
11527
|
_b.label = 5;
|
|
11490
11528
|
case 5:
|
|
11491
|
-
mats = this.getMATSFromResponse(response);
|
|
11492
11529
|
result = {
|
|
11493
11530
|
authority: authority.canonicalAuthority,
|
|
11494
11531
|
uniqueId: uid,
|
|
@@ -11820,6 +11857,7 @@
|
|
|
11820
11857
|
clearTimeout(this.timeoutId); // Clear setTimeout
|
|
11821
11858
|
window.removeEventListener("message", this.windowListener, false); // Remove 'No extension' listener
|
|
11822
11859
|
this.extensionId = request.extensionId;
|
|
11860
|
+
this.extensionVersion = request.body.version;
|
|
11823
11861
|
this.logger.verbose("NativeMessageHandler - Received HandshakeResponse from extension: " + this.extensionId);
|
|
11824
11862
|
handshakeResolver.resolve();
|
|
11825
11863
|
this.handshakeResolvers.delete(request.responseId);
|
|
@@ -11838,6 +11876,20 @@
|
|
|
11838
11876
|
}
|
|
11839
11877
|
}
|
|
11840
11878
|
};
|
|
11879
|
+
/**
|
|
11880
|
+
* Returns the Id for the browser extension this handler is communicating with
|
|
11881
|
+
* @returns
|
|
11882
|
+
*/
|
|
11883
|
+
NativeMessageHandler.prototype.getExtensionId = function () {
|
|
11884
|
+
return this.extensionId;
|
|
11885
|
+
};
|
|
11886
|
+
/**
|
|
11887
|
+
* Returns the version for the browser extension this handler is communicating with
|
|
11888
|
+
* @returns
|
|
11889
|
+
*/
|
|
11890
|
+
NativeMessageHandler.prototype.getExtensionVersion = function () {
|
|
11891
|
+
return this.extensionVersion;
|
|
11892
|
+
};
|
|
11841
11893
|
/**
|
|
11842
11894
|
* Returns boolean indicating whether or not the request should attempt to use native broker
|
|
11843
11895
|
* @param logger
|
|
@@ -15531,8 +15583,6 @@
|
|
|
15531
15583
|
atPopupMeasurement.endMeasurement({
|
|
15532
15584
|
success: true,
|
|
15533
15585
|
isNativeBroker: true,
|
|
15534
|
-
accessTokenSize: response.accessToken.length,
|
|
15535
|
-
idTokenSize: response.idToken.length,
|
|
15536
15586
|
requestId: response.requestId
|
|
15537
15587
|
});
|
|
15538
15588
|
atPopupMeasurement.flushMeasurement();
|
|
@@ -15567,10 +15617,12 @@
|
|
|
15567
15617
|
else {
|
|
15568
15618
|
_this.eventHandler.emitEvent(exports.EventType.ACQUIRE_TOKEN_SUCCESS, exports.InteractionType.Popup, result);
|
|
15569
15619
|
}
|
|
15620
|
+
atPopupMeasurement.addStaticFields({
|
|
15621
|
+
accessTokenSize: result.accessToken.length,
|
|
15622
|
+
idTokenSize: result.idToken.length
|
|
15623
|
+
});
|
|
15570
15624
|
atPopupMeasurement.endMeasurement({
|
|
15571
15625
|
success: true,
|
|
15572
|
-
accessTokenSize: result.accessToken.length,
|
|
15573
|
-
idTokenSize: result.idToken.length,
|
|
15574
15626
|
requestId: result.requestId
|
|
15575
15627
|
});
|
|
15576
15628
|
atPopupMeasurement.flushMeasurement();
|
|
@@ -15639,11 +15691,13 @@
|
|
|
15639
15691
|
}
|
|
15640
15692
|
return [2 /*return*/, result.then(function (response) {
|
|
15641
15693
|
_this.eventHandler.emitEvent(exports.EventType.SSO_SILENT_SUCCESS, exports.InteractionType.Silent, response);
|
|
15694
|
+
ssoSilentMeasurement.addStaticFields({
|
|
15695
|
+
accessTokenSize: response.accessToken.length,
|
|
15696
|
+
idTokenSize: response.idToken.length
|
|
15697
|
+
});
|
|
15642
15698
|
ssoSilentMeasurement.endMeasurement({
|
|
15643
15699
|
success: true,
|
|
15644
15700
|
isNativeBroker: response.fromNativeBroker,
|
|
15645
|
-
accessTokenSize: response.accessToken.length,
|
|
15646
|
-
idTokenSize: response.idToken.length,
|
|
15647
15701
|
requestId: response.requestId
|
|
15648
15702
|
});
|
|
15649
15703
|
ssoSilentMeasurement.flushMeasurement();
|
|
@@ -15691,10 +15745,12 @@
|
|
|
15691
15745
|
.then(function (result) {
|
|
15692
15746
|
_this.eventHandler.emitEvent(exports.EventType.ACQUIRE_TOKEN_BY_CODE_SUCCESS, exports.InteractionType.Silent, result);
|
|
15693
15747
|
_this.hybridAuthCodeResponses.delete(hybridAuthCode_1);
|
|
15748
|
+
atbcMeasurement.addStaticFields({
|
|
15749
|
+
accessTokenSize: result.accessToken.length,
|
|
15750
|
+
idTokenSize: result.idToken.length
|
|
15751
|
+
});
|
|
15694
15752
|
atbcMeasurement.endMeasurement({
|
|
15695
15753
|
success: true,
|
|
15696
|
-
accessTokenSize: result.accessToken.length,
|
|
15697
|
-
idTokenSize: result.idToken.length,
|
|
15698
15754
|
isNativeBroker: result.fromNativeBroker,
|
|
15699
15755
|
requestId: result.requestId
|
|
15700
15756
|
});
|
|
@@ -16295,6 +16351,9 @@
|
|
|
16295
16351
|
return __generator$1(this, function (_a) {
|
|
16296
16352
|
correlationId = this.getRequestCorrelationId(request);
|
|
16297
16353
|
atsMeasurement = this.performanceClient.startMeasurement(exports.PerformanceEvents.AcquireTokenSilent, correlationId);
|
|
16354
|
+
atsMeasurement.addStaticFields({
|
|
16355
|
+
cacheLookupPolicy: request.cacheLookupPolicy
|
|
16356
|
+
});
|
|
16298
16357
|
this.preflightBrowserEnvironmentCheck(exports.InteractionType.Silent);
|
|
16299
16358
|
this.logger.verbose("acquireTokenSilent called", correlationId);
|
|
16300
16359
|
account = request.account || this.getActiveAccount();
|
|
@@ -16320,13 +16379,14 @@
|
|
|
16320
16379
|
response = this.acquireTokenSilentAsync(__assign$1(__assign$1({}, request), { correlationId: correlationId }), account)
|
|
16321
16380
|
.then(function (result) {
|
|
16322
16381
|
_this.activeSilentTokenRequests.delete(silentRequestKey);
|
|
16382
|
+
atsMeasurement.addStaticFields({
|
|
16383
|
+
accessTokenSize: result.accessToken.length,
|
|
16384
|
+
idTokenSize: result.idToken.length
|
|
16385
|
+
});
|
|
16323
16386
|
atsMeasurement.endMeasurement({
|
|
16324
16387
|
success: true,
|
|
16325
16388
|
fromCache: result.fromCache,
|
|
16326
|
-
accessTokenSize: result.accessToken.length,
|
|
16327
|
-
idTokenSize: result.idToken.length,
|
|
16328
16389
|
isNativeBroker: result.fromNativeBroker,
|
|
16329
|
-
cacheLookupPolicy: request.cacheLookupPolicy,
|
|
16330
16390
|
requestId: result.requestId
|
|
16331
16391
|
});
|
|
16332
16392
|
atsMeasurement.flushMeasurement();
|
|
@@ -16427,8 +16487,6 @@
|
|
|
16427
16487
|
astsAsyncMeasurement.endMeasurement({
|
|
16428
16488
|
success: true,
|
|
16429
16489
|
fromCache: response.fromCache,
|
|
16430
|
-
accessTokenSize: response.accessToken.length,
|
|
16431
|
-
idTokenSize: response.idToken.length,
|
|
16432
16490
|
isNativeBroker: response.fromNativeBroker,
|
|
16433
16491
|
requestId: response.requestId
|
|
16434
16492
|
});
|