@azure/msal-browser 2.38.1 → 2.38.2
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 +1 -1
- package/dist/_virtual/_tslib.js +1 -1
- package/dist/app/ClientApplication.d.ts.map +1 -1
- package/dist/app/ClientApplication.js +11 -2
- package/dist/app/ClientApplication.js.map +1 -1
- package/dist/app/IPublicClientApplication.js +1 -1
- package/dist/app/PublicClientApplication.js +1 -1
- package/dist/broker/nativeBroker/NativeMessageHandler.js +1 -1
- package/dist/cache/AsyncMemoryStorage.js +1 -1
- package/dist/cache/BrowserCacheManager.d.ts +6 -0
- package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
- package/dist/cache/BrowserCacheManager.js +35 -1
- package/dist/cache/BrowserCacheManager.js.map +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 +110 -63
- 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.js +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 +110 -63
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +29 -29
- package/package.json +95 -95
package/lib/msal-browser.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v2.38.
|
|
1
|
+
/*! @azure/msal-browser v2.38.2 2023-08-24 */
|
|
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 v13.
|
|
122
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
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 v13.
|
|
209
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
210
210
|
|
|
211
211
|
/*
|
|
212
212
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -579,7 +579,7 @@
|
|
|
579
579
|
JsonTypes["Pop"] = "pop";
|
|
580
580
|
})(JsonTypes || (JsonTypes = {}));
|
|
581
581
|
|
|
582
|
-
/*! @azure/msal-common v13.
|
|
582
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
583
583
|
|
|
584
584
|
/*
|
|
585
585
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -635,7 +635,7 @@
|
|
|
635
635
|
return AuthError;
|
|
636
636
|
}(Error));
|
|
637
637
|
|
|
638
|
-
/*! @azure/msal-common v13.
|
|
638
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
639
639
|
|
|
640
640
|
/*
|
|
641
641
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -710,7 +710,7 @@
|
|
|
710
710
|
}
|
|
711
711
|
};
|
|
712
712
|
|
|
713
|
-
/*! @azure/msal-common v13.
|
|
713
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
714
714
|
|
|
715
715
|
/*
|
|
716
716
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1225,7 +1225,7 @@
|
|
|
1225
1225
|
return ClientAuthError;
|
|
1226
1226
|
}(AuthError));
|
|
1227
1227
|
|
|
1228
|
-
/*! @azure/msal-common v13.
|
|
1228
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
1229
1229
|
|
|
1230
1230
|
/*
|
|
1231
1231
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1350,7 +1350,7 @@
|
|
|
1350
1350
|
return StringUtils;
|
|
1351
1351
|
}());
|
|
1352
1352
|
|
|
1353
|
-
/*! @azure/msal-common v13.
|
|
1353
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
1354
1354
|
|
|
1355
1355
|
/*
|
|
1356
1356
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1540,12 +1540,12 @@
|
|
|
1540
1540
|
return Logger;
|
|
1541
1541
|
}());
|
|
1542
1542
|
|
|
1543
|
-
/*! @azure/msal-common v13.
|
|
1543
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
1544
1544
|
/* eslint-disable header/header */
|
|
1545
1545
|
var name$1 = "@azure/msal-common";
|
|
1546
|
-
var version$1 = "13.
|
|
1546
|
+
var version$1 = "13.3.0";
|
|
1547
1547
|
|
|
1548
|
-
/*! @azure/msal-common v13.
|
|
1548
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
1549
1549
|
/*
|
|
1550
1550
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1551
1551
|
* Licensed under the MIT License.
|
|
@@ -1566,7 +1566,7 @@
|
|
|
1566
1566
|
AzureCloudInstance["AzureUsGovernment"] = "https://login.microsoftonline.us";
|
|
1567
1567
|
})(exports.AzureCloudInstance || (exports.AzureCloudInstance = {}));
|
|
1568
1568
|
|
|
1569
|
-
/*! @azure/msal-common v13.
|
|
1569
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
1570
1570
|
|
|
1571
1571
|
/*
|
|
1572
1572
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1831,7 +1831,7 @@
|
|
|
1831
1831
|
return ClientConfigurationError;
|
|
1832
1832
|
}(ClientAuthError));
|
|
1833
1833
|
|
|
1834
|
-
/*! @azure/msal-common v13.
|
|
1834
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
1835
1835
|
|
|
1836
1836
|
/*
|
|
1837
1837
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2030,7 +2030,7 @@
|
|
|
2030
2030
|
return ScopeSet;
|
|
2031
2031
|
}());
|
|
2032
2032
|
|
|
2033
|
-
/*! @azure/msal-common v13.
|
|
2033
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
2034
2034
|
|
|
2035
2035
|
/*
|
|
2036
2036
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2068,7 +2068,7 @@
|
|
|
2068
2068
|
};
|
|
2069
2069
|
}
|
|
2070
2070
|
|
|
2071
|
-
/*! @azure/msal-common v13.
|
|
2071
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
2072
2072
|
/*
|
|
2073
2073
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2074
2074
|
* Licensed under the MIT License.
|
|
@@ -2084,7 +2084,7 @@
|
|
|
2084
2084
|
AuthorityType[AuthorityType["Ciam"] = 3] = "Ciam";
|
|
2085
2085
|
})(AuthorityType || (AuthorityType = {}));
|
|
2086
2086
|
|
|
2087
|
-
/*! @azure/msal-common v13.
|
|
2087
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
2088
2088
|
|
|
2089
2089
|
/*
|
|
2090
2090
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2323,7 +2323,7 @@
|
|
|
2323
2323
|
return AccountEntity;
|
|
2324
2324
|
}());
|
|
2325
2325
|
|
|
2326
|
-
/*! @azure/msal-common v13.
|
|
2326
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
2327
2327
|
|
|
2328
2328
|
/*
|
|
2329
2329
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2375,7 +2375,7 @@
|
|
|
2375
2375
|
return AuthToken;
|
|
2376
2376
|
}());
|
|
2377
2377
|
|
|
2378
|
-
/*! @azure/msal-common v13.
|
|
2378
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
2379
2379
|
|
|
2380
2380
|
/*
|
|
2381
2381
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3423,7 +3423,7 @@
|
|
|
3423
3423
|
return DefaultStorageClass;
|
|
3424
3424
|
}(CacheManager));
|
|
3425
3425
|
|
|
3426
|
-
/*! @azure/msal-common v13.
|
|
3426
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
3427
3427
|
|
|
3428
3428
|
/*
|
|
3429
3429
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3520,7 +3520,7 @@
|
|
|
3520
3520
|
return __assign({ clientCapabilities: [], azureCloudOptions: DEFAULT_AZURE_CLOUD_OPTIONS, skipAuthorityMetadataCache: false }, authOptions);
|
|
3521
3521
|
}
|
|
3522
3522
|
|
|
3523
|
-
/*! @azure/msal-common v13.
|
|
3523
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
3524
3524
|
|
|
3525
3525
|
/*
|
|
3526
3526
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3540,7 +3540,7 @@
|
|
|
3540
3540
|
return ServerError;
|
|
3541
3541
|
}(AuthError));
|
|
3542
3542
|
|
|
3543
|
-
/*! @azure/msal-common v13.
|
|
3543
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
3544
3544
|
|
|
3545
3545
|
/*
|
|
3546
3546
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3636,7 +3636,7 @@
|
|
|
3636
3636
|
return ThrottlingUtils;
|
|
3637
3637
|
}());
|
|
3638
3638
|
|
|
3639
|
-
/*! @azure/msal-common v13.
|
|
3639
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
3640
3640
|
|
|
3641
3641
|
/*
|
|
3642
3642
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3685,7 +3685,7 @@
|
|
|
3685
3685
|
return NetworkManager;
|
|
3686
3686
|
}());
|
|
3687
3687
|
|
|
3688
|
-
/*! @azure/msal-common v13.
|
|
3688
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
3689
3689
|
/*
|
|
3690
3690
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3691
3691
|
* Licensed under the MIT License.
|
|
@@ -3696,7 +3696,7 @@
|
|
|
3696
3696
|
CcsCredentialType["UPN"] = "UPN";
|
|
3697
3697
|
})(CcsCredentialType || (CcsCredentialType = {}));
|
|
3698
3698
|
|
|
3699
|
-
/*! @azure/msal-common v13.
|
|
3699
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
3700
3700
|
|
|
3701
3701
|
/*
|
|
3702
3702
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3787,7 +3787,7 @@
|
|
|
3787
3787
|
return RequestValidator;
|
|
3788
3788
|
}());
|
|
3789
3789
|
|
|
3790
|
-
/*! @azure/msal-common v13.
|
|
3790
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
3791
3791
|
|
|
3792
3792
|
/*
|
|
3793
3793
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4165,7 +4165,7 @@
|
|
|
4165
4165
|
return RequestParameterBuilder;
|
|
4166
4166
|
}());
|
|
4167
4167
|
|
|
4168
|
-
/*! @azure/msal-common v13.
|
|
4168
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
4169
4169
|
|
|
4170
4170
|
/*
|
|
4171
4171
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4267,7 +4267,7 @@
|
|
|
4267
4267
|
return BaseClient;
|
|
4268
4268
|
}());
|
|
4269
4269
|
|
|
4270
|
-
/*! @azure/msal-common v13.
|
|
4270
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
4271
4271
|
|
|
4272
4272
|
/*
|
|
4273
4273
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4405,7 +4405,7 @@
|
|
|
4405
4405
|
return CredentialEntity;
|
|
4406
4406
|
}());
|
|
4407
4407
|
|
|
4408
|
-
/*! @azure/msal-common v13.
|
|
4408
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
4409
4409
|
|
|
4410
4410
|
/*
|
|
4411
4411
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4469,7 +4469,7 @@
|
|
|
4469
4469
|
return IdTokenEntity;
|
|
4470
4470
|
}(CredentialEntity));
|
|
4471
4471
|
|
|
4472
|
-
/*! @azure/msal-common v13.
|
|
4472
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
4473
4473
|
/*
|
|
4474
4474
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4475
4475
|
* Licensed under the MIT License.
|
|
@@ -4519,7 +4519,7 @@
|
|
|
4519
4519
|
return TimeUtils;
|
|
4520
4520
|
}());
|
|
4521
4521
|
|
|
4522
|
-
/*! @azure/msal-common v13.
|
|
4522
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
4523
4523
|
|
|
4524
4524
|
/*
|
|
4525
4525
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4633,7 +4633,7 @@
|
|
|
4633
4633
|
return AccessTokenEntity;
|
|
4634
4634
|
}(CredentialEntity));
|
|
4635
4635
|
|
|
4636
|
-
/*! @azure/msal-common v13.
|
|
4636
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
4637
4637
|
|
|
4638
4638
|
/*
|
|
4639
4639
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4700,7 +4700,7 @@
|
|
|
4700
4700
|
return RefreshTokenEntity;
|
|
4701
4701
|
}(CredentialEntity));
|
|
4702
4702
|
|
|
4703
|
-
/*! @azure/msal-common v13.
|
|
4703
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
4704
4704
|
|
|
4705
4705
|
/*
|
|
4706
4706
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4779,7 +4779,7 @@
|
|
|
4779
4779
|
return InteractionRequiredAuthError;
|
|
4780
4780
|
}(AuthError));
|
|
4781
4781
|
|
|
4782
|
-
/*! @azure/msal-common v13.
|
|
4782
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
4783
4783
|
/*
|
|
4784
4784
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4785
4785
|
* Licensed under the MIT License.
|
|
@@ -4795,7 +4795,7 @@
|
|
|
4795
4795
|
return CacheRecord;
|
|
4796
4796
|
}());
|
|
4797
4797
|
|
|
4798
|
-
/*! @azure/msal-common v13.
|
|
4798
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
4799
4799
|
|
|
4800
4800
|
/*
|
|
4801
4801
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4866,7 +4866,7 @@
|
|
|
4866
4866
|
return ProtocolUtils;
|
|
4867
4867
|
}());
|
|
4868
4868
|
|
|
4869
|
-
/*! @azure/msal-common v13.
|
|
4869
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
4870
4870
|
|
|
4871
4871
|
/*
|
|
4872
4872
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5100,7 +5100,7 @@
|
|
|
5100
5100
|
return UrlString;
|
|
5101
5101
|
}());
|
|
5102
5102
|
|
|
5103
|
-
/*! @azure/msal-common v13.
|
|
5103
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
5104
5104
|
/*
|
|
5105
5105
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5106
5106
|
* Licensed under the MIT License.
|
|
@@ -5304,6 +5304,10 @@
|
|
|
5304
5304
|
PerformanceEvents["UpdateCloudDiscoveryMetadataMeasurement"] = "updateCloudDiscoveryMetadataMeasurement";
|
|
5305
5305
|
PerformanceEvents["UsernamePasswordClientAcquireToken"] = "usernamePasswordClientAcquireToken";
|
|
5306
5306
|
PerformanceEvents["NativeMessageHandlerHandshake"] = "nativeMessageHandlerHandshake";
|
|
5307
|
+
/**
|
|
5308
|
+
* Cache operations
|
|
5309
|
+
*/
|
|
5310
|
+
PerformanceEvents["ClearTokensAndKeysWithClaims"] = "clearTokensAndKeysWithClaims";
|
|
5307
5311
|
})(exports.PerformanceEvents || (exports.PerformanceEvents = {}));
|
|
5308
5312
|
/**
|
|
5309
5313
|
* State of the performance event.
|
|
@@ -5329,7 +5333,7 @@
|
|
|
5329
5333
|
"status",
|
|
5330
5334
|
]);
|
|
5331
5335
|
|
|
5332
|
-
/*! @azure/msal-common v13.
|
|
5336
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
5333
5337
|
|
|
5334
5338
|
/*
|
|
5335
5339
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5438,7 +5442,7 @@
|
|
|
5438
5442
|
return PopTokenGenerator;
|
|
5439
5443
|
}());
|
|
5440
5444
|
|
|
5441
|
-
/*! @azure/msal-common v13.
|
|
5445
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
5442
5446
|
|
|
5443
5447
|
/*
|
|
5444
5448
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5508,7 +5512,7 @@
|
|
|
5508
5512
|
return AppMetadataEntity;
|
|
5509
5513
|
}());
|
|
5510
5514
|
|
|
5511
|
-
/*! @azure/msal-common v13.
|
|
5515
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
5512
5516
|
/*
|
|
5513
5517
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5514
5518
|
* Licensed under the MIT License.
|
|
@@ -5544,7 +5548,7 @@
|
|
|
5544
5548
|
return TokenCacheContext;
|
|
5545
5549
|
}());
|
|
5546
5550
|
|
|
5547
|
-
/*! @azure/msal-common v13.
|
|
5551
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
5548
5552
|
|
|
5549
5553
|
/*
|
|
5550
5554
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5831,7 +5835,7 @@
|
|
|
5831
5835
|
return ResponseHandler;
|
|
5832
5836
|
}());
|
|
5833
5837
|
|
|
5834
|
-
/*! @azure/msal-common v13.
|
|
5838
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
5835
5839
|
|
|
5836
5840
|
/*
|
|
5837
5841
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6309,7 +6313,7 @@
|
|
|
6309
6313
|
return AuthorizationCodeClient;
|
|
6310
6314
|
}(BaseClient));
|
|
6311
6315
|
|
|
6312
|
-
/*! @azure/msal-common v13.
|
|
6316
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
6313
6317
|
|
|
6314
6318
|
/*
|
|
6315
6319
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6583,7 +6587,7 @@
|
|
|
6583
6587
|
return RefreshTokenClient;
|
|
6584
6588
|
}(BaseClient));
|
|
6585
6589
|
|
|
6586
|
-
/*! @azure/msal-common v13.
|
|
6590
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
6587
6591
|
|
|
6588
6592
|
/*
|
|
6589
6593
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6713,7 +6717,7 @@
|
|
|
6713
6717
|
return SilentFlowClient;
|
|
6714
6718
|
}(BaseClient));
|
|
6715
6719
|
|
|
6716
|
-
/*! @azure/msal-common v13.
|
|
6720
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
6717
6721
|
/*
|
|
6718
6722
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6719
6723
|
* Licensed under the MIT License.
|
|
@@ -6725,7 +6729,7 @@
|
|
|
6725
6729
|
response.hasOwnProperty("jwks_uri"));
|
|
6726
6730
|
}
|
|
6727
6731
|
|
|
6728
|
-
/*! @azure/msal-common v13.
|
|
6732
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
6729
6733
|
/*
|
|
6730
6734
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6731
6735
|
* Licensed under the MIT License.
|
|
@@ -6734,7 +6738,7 @@
|
|
|
6734
6738
|
var EndpointMetadata = rawMetdataJSON.endpointMetadata;
|
|
6735
6739
|
var InstanceDiscoveryMetadata = rawMetdataJSON.instanceDiscoveryMetadata;
|
|
6736
6740
|
|
|
6737
|
-
/*! @azure/msal-common v13.
|
|
6741
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
6738
6742
|
/*
|
|
6739
6743
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6740
6744
|
* Licensed under the MIT License.
|
|
@@ -6748,7 +6752,7 @@
|
|
|
6748
6752
|
ProtocolMode["OIDC"] = "OIDC";
|
|
6749
6753
|
})(exports.ProtocolMode || (exports.ProtocolMode = {}));
|
|
6750
6754
|
|
|
6751
|
-
/*! @azure/msal-common v13.
|
|
6755
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
6752
6756
|
|
|
6753
6757
|
/*
|
|
6754
6758
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6825,7 +6829,7 @@
|
|
|
6825
6829
|
return AuthorityMetadataEntity;
|
|
6826
6830
|
}());
|
|
6827
6831
|
|
|
6828
|
-
/*! @azure/msal-common v13.
|
|
6832
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
6829
6833
|
/*
|
|
6830
6834
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6831
6835
|
* Licensed under the MIT License.
|
|
@@ -6835,7 +6839,7 @@
|
|
|
6835
6839
|
response.hasOwnProperty("metadata"));
|
|
6836
6840
|
}
|
|
6837
6841
|
|
|
6838
|
-
/*! @azure/msal-common v13.
|
|
6842
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
6839
6843
|
/*
|
|
6840
6844
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6841
6845
|
* Licensed under the MIT License.
|
|
@@ -6845,7 +6849,7 @@
|
|
|
6845
6849
|
response.hasOwnProperty("error_description"));
|
|
6846
6850
|
}
|
|
6847
6851
|
|
|
6848
|
-
/*! @azure/msal-common v13.
|
|
6852
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
6849
6853
|
|
|
6850
6854
|
/*
|
|
6851
6855
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6977,7 +6981,7 @@
|
|
|
6977
6981
|
return RegionDiscovery;
|
|
6978
6982
|
}());
|
|
6979
6983
|
|
|
6980
|
-
/*! @azure/msal-common v13.
|
|
6984
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
6981
6985
|
|
|
6982
6986
|
/*
|
|
6983
6987
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7770,7 +7774,7 @@
|
|
|
7770
7774
|
return Authority;
|
|
7771
7775
|
}());
|
|
7772
7776
|
|
|
7773
|
-
/*! @azure/msal-common v13.
|
|
7777
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
7774
7778
|
|
|
7775
7779
|
/*
|
|
7776
7780
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7834,7 +7838,7 @@
|
|
|
7834
7838
|
return AuthorityFactory;
|
|
7835
7839
|
}());
|
|
7836
7840
|
|
|
7837
|
-
/*! @azure/msal-common v13.
|
|
7841
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
7838
7842
|
|
|
7839
7843
|
/*
|
|
7840
7844
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7865,7 +7869,7 @@
|
|
|
7865
7869
|
return ServerTelemetryEntity;
|
|
7866
7870
|
}());
|
|
7867
7871
|
|
|
7868
|
-
/*! @azure/msal-common v13.
|
|
7872
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
7869
7873
|
|
|
7870
7874
|
/*
|
|
7871
7875
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7893,7 +7897,7 @@
|
|
|
7893
7897
|
return ThrottlingEntity;
|
|
7894
7898
|
}());
|
|
7895
7899
|
|
|
7896
|
-
/*! @azure/msal-common v13.
|
|
7900
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
7897
7901
|
|
|
7898
7902
|
/*
|
|
7899
7903
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7910,7 +7914,7 @@
|
|
|
7910
7914
|
}
|
|
7911
7915
|
};
|
|
7912
7916
|
|
|
7913
|
-
/*! @azure/msal-common v13.
|
|
7917
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
7914
7918
|
|
|
7915
7919
|
/*
|
|
7916
7920
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7955,7 +7959,7 @@
|
|
|
7955
7959
|
return JoseHeaderError;
|
|
7956
7960
|
}(AuthError));
|
|
7957
7961
|
|
|
7958
|
-
/*! @azure/msal-common v13.
|
|
7962
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
7959
7963
|
|
|
7960
7964
|
/*
|
|
7961
7965
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7995,7 +7999,7 @@
|
|
|
7995
7999
|
return JoseHeader;
|
|
7996
8000
|
}());
|
|
7997
8001
|
|
|
7998
|
-
/*! @azure/msal-common v13.
|
|
8002
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
7999
8003
|
|
|
8000
8004
|
/*
|
|
8001
8005
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8054,7 +8058,7 @@
|
|
|
8054
8058
|
return AuthenticationHeaderParser;
|
|
8055
8059
|
}());
|
|
8056
8060
|
|
|
8057
|
-
/*! @azure/msal-common v13.
|
|
8061
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
8058
8062
|
|
|
8059
8063
|
/*
|
|
8060
8064
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8216,7 +8220,7 @@
|
|
|
8216
8220
|
return ServerTelemetryManager;
|
|
8217
8221
|
}());
|
|
8218
8222
|
|
|
8219
|
-
/*! @azure/msal-common v13.
|
|
8223
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
8220
8224
|
|
|
8221
8225
|
/*
|
|
8222
8226
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8619,7 +8623,7 @@
|
|
|
8619
8623
|
return PerformanceClient;
|
|
8620
8624
|
}());
|
|
8621
8625
|
|
|
8622
|
-
/*! @azure/msal-common v13.
|
|
8626
|
+
/*! @azure/msal-common v13.3.0 2023-08-24 */
|
|
8623
8627
|
|
|
8624
8628
|
/*
|
|
8625
8629
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -10450,6 +10454,40 @@
|
|
|
10450
10454
|
});
|
|
10451
10455
|
});
|
|
10452
10456
|
};
|
|
10457
|
+
/**
|
|
10458
|
+
* Clears all access tokes that have claims prior to saving the current one
|
|
10459
|
+
* @param credential
|
|
10460
|
+
* @returns
|
|
10461
|
+
*/
|
|
10462
|
+
BrowserCacheManager.prototype.clearTokensAndKeysWithClaims = function () {
|
|
10463
|
+
return __awaiter$1(this, void 0, void 0, function () {
|
|
10464
|
+
var tokenKeys, removedAccessTokens;
|
|
10465
|
+
var _this = this;
|
|
10466
|
+
return __generator$1(this, function (_a) {
|
|
10467
|
+
switch (_a.label) {
|
|
10468
|
+
case 0:
|
|
10469
|
+
this.logger.trace("BrowserCacheManager.clearTokensAndKeysWithClaims called");
|
|
10470
|
+
tokenKeys = this.getTokenKeys();
|
|
10471
|
+
removedAccessTokens = [];
|
|
10472
|
+
tokenKeys.accessToken.forEach(function (key) {
|
|
10473
|
+
// if the access token has claims in its key, remove the token key and the token
|
|
10474
|
+
var credential = _this.getAccessTokenCredential(key);
|
|
10475
|
+
if ((credential === null || credential === void 0 ? void 0 : credential.requestedClaimsHash) && key.includes(credential.requestedClaimsHash.toLowerCase())) {
|
|
10476
|
+
removedAccessTokens.push(_this.removeAccessToken(key));
|
|
10477
|
+
}
|
|
10478
|
+
});
|
|
10479
|
+
return [4 /*yield*/, Promise.all(removedAccessTokens)];
|
|
10480
|
+
case 1:
|
|
10481
|
+
_a.sent();
|
|
10482
|
+
// warn if any access tokens are removed
|
|
10483
|
+
if (removedAccessTokens.length > 0) {
|
|
10484
|
+
this.logger.warning(removedAccessTokens.length + " access tokens with claims in the cache keys have been removed from the cache.");
|
|
10485
|
+
}
|
|
10486
|
+
return [2 /*return*/];
|
|
10487
|
+
}
|
|
10488
|
+
});
|
|
10489
|
+
});
|
|
10490
|
+
};
|
|
10453
10491
|
/**
|
|
10454
10492
|
* Add value to cookies
|
|
10455
10493
|
* @param cookieName
|
|
@@ -10845,7 +10883,7 @@
|
|
|
10845
10883
|
|
|
10846
10884
|
/* eslint-disable header/header */
|
|
10847
10885
|
var name = "@azure/msal-browser";
|
|
10848
|
-
var version = "2.38.
|
|
10886
|
+
var version = "2.38.2";
|
|
10849
10887
|
|
|
10850
10888
|
/*
|
|
10851
10889
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -16711,7 +16749,7 @@
|
|
|
16711
16749
|
*/
|
|
16712
16750
|
ClientApplication.prototype.initialize = function () {
|
|
16713
16751
|
return __awaiter$1(this, void 0, void 0, function () {
|
|
16714
|
-
var allowNativeBroker, initMeasurement, _a, e_1;
|
|
16752
|
+
var allowNativeBroker, initMeasurement, _a, e_1, claimsTokensRemovalMeasurement;
|
|
16715
16753
|
return __generator$1(this, function (_b) {
|
|
16716
16754
|
switch (_b.label) {
|
|
16717
16755
|
case 0:
|
|
@@ -16737,6 +16775,15 @@
|
|
|
16737
16775
|
this.logger.verbose(e_1);
|
|
16738
16776
|
return [3 /*break*/, 4];
|
|
16739
16777
|
case 4:
|
|
16778
|
+
if (!!this.config.cache.claimsBasedCachingEnabled) return [3 /*break*/, 6];
|
|
16779
|
+
this.logger.verbose("Claims-based caching is disabled. Clearing the previous cache with claims");
|
|
16780
|
+
claimsTokensRemovalMeasurement = this.performanceClient.startMeasurement(exports.PerformanceEvents.ClearTokensAndKeysWithClaims);
|
|
16781
|
+
return [4 /*yield*/, this.browserStorage.clearTokensAndKeysWithClaims()];
|
|
16782
|
+
case 5:
|
|
16783
|
+
_b.sent();
|
|
16784
|
+
claimsTokensRemovalMeasurement.endMeasurement({ success: true });
|
|
16785
|
+
_b.label = 6;
|
|
16786
|
+
case 6:
|
|
16740
16787
|
this.initialized = true;
|
|
16741
16788
|
this.eventHandler.emitEvent(exports.EventType.INITIALIZE_END);
|
|
16742
16789
|
initMeasurement.endMeasurement({ allowNativeBroker: allowNativeBroker, success: true });
|