@azure/msal-browser 2.28.2 → 2.28.3
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.js +1 -1
- package/dist/app/IPublicClientApplication.js +1 -1
- package/dist/app/PublicClientApplication.d.ts.map +1 -1
- package/dist/app/PublicClientApplication.js +3 -1
- package/dist/app/PublicClientApplication.js.map +1 -1
- package/dist/broker/nativeBroker/NativeMessageHandler.js +1 -1
- package/dist/cache/AsyncMemoryStorage.d.ts +7 -2
- package/dist/cache/AsyncMemoryStorage.d.ts.map +1 -1
- package/dist/cache/AsyncMemoryStorage.js +19 -15
- package/dist/cache/AsyncMemoryStorage.js.map +1 -1
- package/dist/cache/BrowserCacheManager.js +1 -1
- package/dist/cache/BrowserStorage.js +1 -1
- package/dist/cache/CryptoKeyStore.d.ts +18 -0
- package/dist/cache/CryptoKeyStore.d.ts.map +1 -0
- package/dist/cache/CryptoKeyStore.js +58 -0
- package/dist/cache/CryptoKeyStore.js.map +1 -0
- package/dist/cache/DatabaseStorage.d.ts.map +1 -1
- package/dist/cache/DatabaseStorage.js +10 -22
- package/dist/cache/DatabaseStorage.js.map +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.d.ts +0 -12
- package/dist/crypto/CryptoOps.d.ts.map +1 -1
- package/dist/crypto/CryptoOps.js +6 -36
- package/dist/crypto/CryptoOps.js.map +1 -1
- package/dist/crypto/GuidGenerator.js +1 -1
- package/dist/crypto/PkceGenerator.js +1 -1
- package/dist/crypto/SignedHttpRequest.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 +139 -124
- 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 +139 -124
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +29 -29
- package/package.json +2 -2
package/lib/msal-browser.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v2.28.
|
|
1
|
+
/*! @azure/msal-browser v2.28.3 2022-09-12 */
|
|
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 v7.4.
|
|
122
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
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 v7.4.
|
|
209
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
210
210
|
|
|
211
211
|
/*
|
|
212
212
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -583,7 +583,7 @@
|
|
|
583
583
|
JsonTypes["Jwk"] = "JWK";
|
|
584
584
|
})(JsonTypes || (JsonTypes = {}));
|
|
585
585
|
|
|
586
|
-
/*! @azure/msal-common v7.4.
|
|
586
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
587
587
|
|
|
588
588
|
/*
|
|
589
589
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -639,7 +639,7 @@
|
|
|
639
639
|
return AuthError;
|
|
640
640
|
}(Error));
|
|
641
641
|
|
|
642
|
-
/*! @azure/msal-common v7.4.
|
|
642
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
643
643
|
|
|
644
644
|
/*
|
|
645
645
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -714,7 +714,7 @@
|
|
|
714
714
|
}
|
|
715
715
|
};
|
|
716
716
|
|
|
717
|
-
/*! @azure/msal-common v7.4.
|
|
717
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
718
718
|
|
|
719
719
|
/*
|
|
720
720
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1186,7 +1186,7 @@
|
|
|
1186
1186
|
return ClientAuthError;
|
|
1187
1187
|
}(AuthError));
|
|
1188
1188
|
|
|
1189
|
-
/*! @azure/msal-common v7.4.
|
|
1189
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
1190
1190
|
|
|
1191
1191
|
/*
|
|
1192
1192
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1311,7 +1311,7 @@
|
|
|
1311
1311
|
return StringUtils;
|
|
1312
1312
|
}());
|
|
1313
1313
|
|
|
1314
|
-
/*! @azure/msal-common v7.4.
|
|
1314
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
1315
1315
|
|
|
1316
1316
|
/*
|
|
1317
1317
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1491,12 +1491,12 @@
|
|
|
1491
1491
|
return Logger;
|
|
1492
1492
|
}());
|
|
1493
1493
|
|
|
1494
|
-
/*! @azure/msal-common v7.4.
|
|
1494
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
1495
1495
|
/* eslint-disable header/header */
|
|
1496
1496
|
var name$1 = "@azure/msal-common";
|
|
1497
|
-
var version$1 = "7.4.
|
|
1497
|
+
var version$1 = "7.4.1";
|
|
1498
1498
|
|
|
1499
|
-
/*! @azure/msal-common v7.4.
|
|
1499
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
1500
1500
|
/*
|
|
1501
1501
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1502
1502
|
* Licensed under the MIT License.
|
|
@@ -1517,7 +1517,7 @@
|
|
|
1517
1517
|
AzureCloudInstance["AzureUsGovernment"] = "https://login.microsoftonline.us";
|
|
1518
1518
|
})(exports.AzureCloudInstance || (exports.AzureCloudInstance = {}));
|
|
1519
1519
|
|
|
1520
|
-
/*! @azure/msal-common v7.4.
|
|
1520
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
1521
1521
|
|
|
1522
1522
|
/*
|
|
1523
1523
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1676,7 +1676,7 @@
|
|
|
1676
1676
|
return CredentialEntity;
|
|
1677
1677
|
}());
|
|
1678
1678
|
|
|
1679
|
-
/*! @azure/msal-common v7.4.
|
|
1679
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
1680
1680
|
|
|
1681
1681
|
/*
|
|
1682
1682
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1931,7 +1931,7 @@
|
|
|
1931
1931
|
return ClientConfigurationError;
|
|
1932
1932
|
}(ClientAuthError));
|
|
1933
1933
|
|
|
1934
|
-
/*! @azure/msal-common v7.4.
|
|
1934
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
1935
1935
|
|
|
1936
1936
|
/*
|
|
1937
1937
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2115,7 +2115,7 @@
|
|
|
2115
2115
|
return ScopeSet;
|
|
2116
2116
|
}());
|
|
2117
2117
|
|
|
2118
|
-
/*! @azure/msal-common v7.4.
|
|
2118
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
2119
2119
|
|
|
2120
2120
|
/*
|
|
2121
2121
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2153,7 +2153,7 @@
|
|
|
2153
2153
|
};
|
|
2154
2154
|
}
|
|
2155
2155
|
|
|
2156
|
-
/*! @azure/msal-common v7.4.
|
|
2156
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
2157
2157
|
/*
|
|
2158
2158
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2159
2159
|
* Licensed under the MIT License.
|
|
@@ -2167,7 +2167,7 @@
|
|
|
2167
2167
|
AuthorityType[AuthorityType["Adfs"] = 1] = "Adfs";
|
|
2168
2168
|
})(AuthorityType || (AuthorityType = {}));
|
|
2169
2169
|
|
|
2170
|
-
/*! @azure/msal-common v7.4.
|
|
2170
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
2171
2171
|
|
|
2172
2172
|
/*
|
|
2173
2173
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2402,7 +2402,7 @@
|
|
|
2402
2402
|
return AccountEntity;
|
|
2403
2403
|
}());
|
|
2404
2404
|
|
|
2405
|
-
/*! @azure/msal-common v7.4.
|
|
2405
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
2406
2406
|
|
|
2407
2407
|
/*
|
|
2408
2408
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2440,7 +2440,7 @@
|
|
|
2440
2440
|
return AuthToken;
|
|
2441
2441
|
}());
|
|
2442
2442
|
|
|
2443
|
-
/*! @azure/msal-common v7.4.
|
|
2443
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
2444
2444
|
|
|
2445
2445
|
/*
|
|
2446
2446
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3315,7 +3315,7 @@
|
|
|
3315
3315
|
return DefaultStorageClass;
|
|
3316
3316
|
}(CacheManager));
|
|
3317
3317
|
|
|
3318
|
-
/*! @azure/msal-common v7.4.
|
|
3318
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
3319
3319
|
|
|
3320
3320
|
/*
|
|
3321
3321
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3409,7 +3409,7 @@
|
|
|
3409
3409
|
return __assign({ clientCapabilities: [], azureCloudOptions: DEFAULT_AZURE_CLOUD_OPTIONS, skipAuthorityMetadataCache: false }, authOptions);
|
|
3410
3410
|
}
|
|
3411
3411
|
|
|
3412
|
-
/*! @azure/msal-common v7.4.
|
|
3412
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
3413
3413
|
|
|
3414
3414
|
/*
|
|
3415
3415
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3429,7 +3429,7 @@
|
|
|
3429
3429
|
return ServerError;
|
|
3430
3430
|
}(AuthError));
|
|
3431
3431
|
|
|
3432
|
-
/*! @azure/msal-common v7.4.
|
|
3432
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
3433
3433
|
|
|
3434
3434
|
/*
|
|
3435
3435
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3525,7 +3525,7 @@
|
|
|
3525
3525
|
return ThrottlingUtils;
|
|
3526
3526
|
}());
|
|
3527
3527
|
|
|
3528
|
-
/*! @azure/msal-common v7.4.
|
|
3528
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
3529
3529
|
|
|
3530
3530
|
/*
|
|
3531
3531
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3574,7 +3574,7 @@
|
|
|
3574
3574
|
return NetworkManager;
|
|
3575
3575
|
}());
|
|
3576
3576
|
|
|
3577
|
-
/*! @azure/msal-common v7.4.
|
|
3577
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
3578
3578
|
/*
|
|
3579
3579
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3580
3580
|
* Licensed under the MIT License.
|
|
@@ -3585,7 +3585,7 @@
|
|
|
3585
3585
|
CcsCredentialType["UPN"] = "UPN";
|
|
3586
3586
|
})(CcsCredentialType || (CcsCredentialType = {}));
|
|
3587
3587
|
|
|
3588
|
-
/*! @azure/msal-common v7.4.
|
|
3588
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
3589
3589
|
|
|
3590
3590
|
/*
|
|
3591
3591
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3676,7 +3676,7 @@
|
|
|
3676
3676
|
return BaseClient;
|
|
3677
3677
|
}());
|
|
3678
3678
|
|
|
3679
|
-
/*! @azure/msal-common v7.4.
|
|
3679
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
3680
3680
|
|
|
3681
3681
|
/*
|
|
3682
3682
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3762,7 +3762,7 @@
|
|
|
3762
3762
|
return RequestValidator;
|
|
3763
3763
|
}());
|
|
3764
3764
|
|
|
3765
|
-
/*! @azure/msal-common v7.4.
|
|
3765
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
3766
3766
|
|
|
3767
3767
|
/*
|
|
3768
3768
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4140,7 +4140,7 @@
|
|
|
4140
4140
|
return RequestParameterBuilder;
|
|
4141
4141
|
}());
|
|
4142
4142
|
|
|
4143
|
-
/*! @azure/msal-common v7.4.
|
|
4143
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
4144
4144
|
|
|
4145
4145
|
/*
|
|
4146
4146
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4204,7 +4204,7 @@
|
|
|
4204
4204
|
return IdTokenEntity;
|
|
4205
4205
|
}(CredentialEntity));
|
|
4206
4206
|
|
|
4207
|
-
/*! @azure/msal-common v7.4.
|
|
4207
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
4208
4208
|
/*
|
|
4209
4209
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4210
4210
|
* Licensed under the MIT License.
|
|
@@ -4254,7 +4254,7 @@
|
|
|
4254
4254
|
return TimeUtils;
|
|
4255
4255
|
}());
|
|
4256
4256
|
|
|
4257
|
-
/*! @azure/msal-common v7.4.
|
|
4257
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
4258
4258
|
|
|
4259
4259
|
/*
|
|
4260
4260
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4368,7 +4368,7 @@
|
|
|
4368
4368
|
return AccessTokenEntity;
|
|
4369
4369
|
}(CredentialEntity));
|
|
4370
4370
|
|
|
4371
|
-
/*! @azure/msal-common v7.4.
|
|
4371
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
4372
4372
|
|
|
4373
4373
|
/*
|
|
4374
4374
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4435,7 +4435,7 @@
|
|
|
4435
4435
|
return RefreshTokenEntity;
|
|
4436
4436
|
}(CredentialEntity));
|
|
4437
4437
|
|
|
4438
|
-
/*! @azure/msal-common v7.4.
|
|
4438
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
4439
4439
|
|
|
4440
4440
|
/*
|
|
4441
4441
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4510,7 +4510,7 @@
|
|
|
4510
4510
|
return InteractionRequiredAuthError;
|
|
4511
4511
|
}(AuthError));
|
|
4512
4512
|
|
|
4513
|
-
/*! @azure/msal-common v7.4.
|
|
4513
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
4514
4514
|
/*
|
|
4515
4515
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4516
4516
|
* Licensed under the MIT License.
|
|
@@ -4526,7 +4526,7 @@
|
|
|
4526
4526
|
return CacheRecord;
|
|
4527
4527
|
}());
|
|
4528
4528
|
|
|
4529
|
-
/*! @azure/msal-common v7.4.
|
|
4529
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
4530
4530
|
|
|
4531
4531
|
/*
|
|
4532
4532
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4597,7 +4597,7 @@
|
|
|
4597
4597
|
return ProtocolUtils;
|
|
4598
4598
|
}());
|
|
4599
4599
|
|
|
4600
|
-
/*! @azure/msal-common v7.4.
|
|
4600
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
4601
4601
|
|
|
4602
4602
|
/*
|
|
4603
4603
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4831,7 +4831,7 @@
|
|
|
4831
4831
|
return UrlString;
|
|
4832
4832
|
}());
|
|
4833
4833
|
|
|
4834
|
-
/*! @azure/msal-common v7.4.
|
|
4834
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
4835
4835
|
|
|
4836
4836
|
/*
|
|
4837
4837
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4932,7 +4932,7 @@
|
|
|
4932
4932
|
return PopTokenGenerator;
|
|
4933
4933
|
}());
|
|
4934
4934
|
|
|
4935
|
-
/*! @azure/msal-common v7.4.
|
|
4935
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
4936
4936
|
|
|
4937
4937
|
/*
|
|
4938
4938
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5002,7 +5002,7 @@
|
|
|
5002
5002
|
return AppMetadataEntity;
|
|
5003
5003
|
}());
|
|
5004
5004
|
|
|
5005
|
-
/*! @azure/msal-common v7.4.
|
|
5005
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
5006
5006
|
/*
|
|
5007
5007
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5008
5008
|
* Licensed under the MIT License.
|
|
@@ -5038,7 +5038,7 @@
|
|
|
5038
5038
|
return TokenCacheContext;
|
|
5039
5039
|
}());
|
|
5040
5040
|
|
|
5041
|
-
/*! @azure/msal-common v7.4.
|
|
5041
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
5042
5042
|
|
|
5043
5043
|
/*
|
|
5044
5044
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5309,7 +5309,7 @@
|
|
|
5309
5309
|
return ResponseHandler;
|
|
5310
5310
|
}());
|
|
5311
5311
|
|
|
5312
|
-
/*! @azure/msal-common v7.4.
|
|
5312
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
5313
5313
|
|
|
5314
5314
|
/*
|
|
5315
5315
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5760,7 +5760,7 @@
|
|
|
5760
5760
|
return AuthorizationCodeClient;
|
|
5761
5761
|
}(BaseClient));
|
|
5762
5762
|
|
|
5763
|
-
/*! @azure/msal-common v7.4.
|
|
5763
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
5764
5764
|
/*
|
|
5765
5765
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5766
5766
|
* Licensed under the MIT License.
|
|
@@ -5878,7 +5878,7 @@
|
|
|
5878
5878
|
PerformanceEventStatus[PerformanceEventStatus["Completed"] = 2] = "Completed";
|
|
5879
5879
|
})(PerformanceEventStatus || (PerformanceEventStatus = {}));
|
|
5880
5880
|
|
|
5881
|
-
/*! @azure/msal-common v7.4.
|
|
5881
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
5882
5882
|
|
|
5883
5883
|
/*
|
|
5884
5884
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6114,7 +6114,7 @@
|
|
|
6114
6114
|
return RefreshTokenClient;
|
|
6115
6115
|
}(BaseClient));
|
|
6116
6116
|
|
|
6117
|
-
/*! @azure/msal-common v7.4.
|
|
6117
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
6118
6118
|
|
|
6119
6119
|
/*
|
|
6120
6120
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6230,7 +6230,7 @@
|
|
|
6230
6230
|
return SilentFlowClient;
|
|
6231
6231
|
}(BaseClient));
|
|
6232
6232
|
|
|
6233
|
-
/*! @azure/msal-common v7.4.
|
|
6233
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
6234
6234
|
/*
|
|
6235
6235
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6236
6236
|
* Licensed under the MIT License.
|
|
@@ -6242,7 +6242,7 @@
|
|
|
6242
6242
|
response.hasOwnProperty("jwks_uri"));
|
|
6243
6243
|
}
|
|
6244
6244
|
|
|
6245
|
-
/*! @azure/msal-common v7.4.
|
|
6245
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
6246
6246
|
/*
|
|
6247
6247
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6248
6248
|
* Licensed under the MIT License.
|
|
@@ -6251,7 +6251,7 @@
|
|
|
6251
6251
|
var EndpointMetadata = rawMetdataJSON.endpointMetadata;
|
|
6252
6252
|
var InstanceDiscoveryMetadata = rawMetdataJSON.instanceDiscoveryMetadata;
|
|
6253
6253
|
|
|
6254
|
-
/*! @azure/msal-common v7.4.
|
|
6254
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
6255
6255
|
/*
|
|
6256
6256
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6257
6257
|
* Licensed under the MIT License.
|
|
@@ -6265,7 +6265,7 @@
|
|
|
6265
6265
|
ProtocolMode["OIDC"] = "OIDC";
|
|
6266
6266
|
})(exports.ProtocolMode || (exports.ProtocolMode = {}));
|
|
6267
6267
|
|
|
6268
|
-
/*! @azure/msal-common v7.4.
|
|
6268
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
6269
6269
|
|
|
6270
6270
|
/*
|
|
6271
6271
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6342,7 +6342,7 @@
|
|
|
6342
6342
|
return AuthorityMetadataEntity;
|
|
6343
6343
|
}());
|
|
6344
6344
|
|
|
6345
|
-
/*! @azure/msal-common v7.4.
|
|
6345
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
6346
6346
|
/*
|
|
6347
6347
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6348
6348
|
* Licensed under the MIT License.
|
|
@@ -6352,7 +6352,7 @@
|
|
|
6352
6352
|
response.hasOwnProperty("metadata"));
|
|
6353
6353
|
}
|
|
6354
6354
|
|
|
6355
|
-
/*! @azure/msal-common v7.4.
|
|
6355
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
6356
6356
|
|
|
6357
6357
|
/*
|
|
6358
6358
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6474,7 +6474,7 @@
|
|
|
6474
6474
|
return RegionDiscovery;
|
|
6475
6475
|
}());
|
|
6476
6476
|
|
|
6477
|
-
/*! @azure/msal-common v7.4.
|
|
6477
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
6478
6478
|
|
|
6479
6479
|
/*
|
|
6480
6480
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7136,7 +7136,7 @@
|
|
|
7136
7136
|
return Authority;
|
|
7137
7137
|
}());
|
|
7138
7138
|
|
|
7139
|
-
/*! @azure/msal-common v7.4.
|
|
7139
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
7140
7140
|
|
|
7141
7141
|
/*
|
|
7142
7142
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7197,7 +7197,7 @@
|
|
|
7197
7197
|
return AuthorityFactory;
|
|
7198
7198
|
}());
|
|
7199
7199
|
|
|
7200
|
-
/*! @azure/msal-common v7.4.
|
|
7200
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
7201
7201
|
|
|
7202
7202
|
/*
|
|
7203
7203
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7228,7 +7228,7 @@
|
|
|
7228
7228
|
return ServerTelemetryEntity;
|
|
7229
7229
|
}());
|
|
7230
7230
|
|
|
7231
|
-
/*! @azure/msal-common v7.4.
|
|
7231
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
7232
7232
|
|
|
7233
7233
|
/*
|
|
7234
7234
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7256,7 +7256,7 @@
|
|
|
7256
7256
|
return ThrottlingEntity;
|
|
7257
7257
|
}());
|
|
7258
7258
|
|
|
7259
|
-
/*! @azure/msal-common v7.4.
|
|
7259
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
7260
7260
|
|
|
7261
7261
|
/*
|
|
7262
7262
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7273,7 +7273,7 @@
|
|
|
7273
7273
|
}
|
|
7274
7274
|
};
|
|
7275
7275
|
|
|
7276
|
-
/*! @azure/msal-common v7.4.
|
|
7276
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
7277
7277
|
|
|
7278
7278
|
/*
|
|
7279
7279
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7318,7 +7318,7 @@
|
|
|
7318
7318
|
return JoseHeaderError;
|
|
7319
7319
|
}(AuthError));
|
|
7320
7320
|
|
|
7321
|
-
/*! @azure/msal-common v7.4.
|
|
7321
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
7322
7322
|
|
|
7323
7323
|
/*
|
|
7324
7324
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7358,7 +7358,7 @@
|
|
|
7358
7358
|
return JoseHeader;
|
|
7359
7359
|
}());
|
|
7360
7360
|
|
|
7361
|
-
/*! @azure/msal-common v7.4.
|
|
7361
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
7362
7362
|
|
|
7363
7363
|
/*
|
|
7364
7364
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7417,7 +7417,7 @@
|
|
|
7417
7417
|
return AuthenticationHeaderParser;
|
|
7418
7418
|
}());
|
|
7419
7419
|
|
|
7420
|
-
/*! @azure/msal-common v7.4.
|
|
7420
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
7421
7421
|
|
|
7422
7422
|
/*
|
|
7423
7423
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7579,7 +7579,7 @@
|
|
|
7579
7579
|
return ServerTelemetryManager;
|
|
7580
7580
|
}());
|
|
7581
7581
|
|
|
7582
|
-
/*! @azure/msal-common v7.4.
|
|
7582
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
7583
7583
|
|
|
7584
7584
|
/*
|
|
7585
7585
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7855,7 +7855,7 @@
|
|
|
7855
7855
|
return PerformanceClient;
|
|
7856
7856
|
}());
|
|
7857
7857
|
|
|
7858
|
-
/*! @azure/msal-common v7.4.
|
|
7858
|
+
/*! @azure/msal-common v7.4.1 2022-09-12 */
|
|
7859
7859
|
|
|
7860
7860
|
/*
|
|
7861
7861
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -9683,7 +9683,7 @@
|
|
|
9683
9683
|
|
|
9684
9684
|
/* eslint-disable header/header */
|
|
9685
9685
|
var name = "@azure/msal-browser";
|
|
9686
|
-
var version = "2.28.
|
|
9686
|
+
var version = "2.28.3";
|
|
9687
9687
|
|
|
9688
9688
|
/*
|
|
9689
9689
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -14109,29 +14109,17 @@
|
|
|
14109
14109
|
*/
|
|
14110
14110
|
DatabaseStorage.prototype.deleteDatabase = function () {
|
|
14111
14111
|
return __awaiter$1(this, void 0, void 0, function () {
|
|
14112
|
-
var existingDatabases, database;
|
|
14113
14112
|
return __generator$1(this, function (_a) {
|
|
14114
|
-
|
|
14115
|
-
|
|
14116
|
-
|
|
14117
|
-
if (this.db && this.dbOpen) {
|
|
14118
|
-
this.closeConnection();
|
|
14119
|
-
}
|
|
14120
|
-
return [4 /*yield*/, window.indexedDB.databases()];
|
|
14121
|
-
case 1:
|
|
14122
|
-
existingDatabases = _a.sent();
|
|
14123
|
-
database = existingDatabases.find(function (database) { return database.name === DB_NAME; });
|
|
14124
|
-
// If database exists, delete it
|
|
14125
|
-
if (database) {
|
|
14126
|
-
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
14127
|
-
var deleteDbRequest = window.indexedDB.deleteDatabase(DB_NAME);
|
|
14128
|
-
deleteDbRequest.addEventListener("success", function () { return resolve(true); });
|
|
14129
|
-
deleteDbRequest.addEventListener("error", function () { return reject(false); });
|
|
14130
|
-
})];
|
|
14131
|
-
}
|
|
14132
|
-
// Database doesn't exist, return true
|
|
14133
|
-
return [2 /*return*/, true];
|
|
14113
|
+
// Check if database being deleted exists
|
|
14114
|
+
if (this.db && this.dbOpen) {
|
|
14115
|
+
this.closeConnection();
|
|
14134
14116
|
}
|
|
14117
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
14118
|
+
var deleteDbRequest = window.indexedDB.deleteDatabase(DB_NAME);
|
|
14119
|
+
deleteDbRequest.addEventListener("success", function () { return resolve(true); });
|
|
14120
|
+
deleteDbRequest.addEventListener("blocked", function () { return resolve(true); });
|
|
14121
|
+
deleteDbRequest.addEventListener("error", function () { return reject(false); });
|
|
14122
|
+
})];
|
|
14135
14123
|
});
|
|
14136
14124
|
});
|
|
14137
14125
|
};
|
|
@@ -14300,34 +14288,38 @@
|
|
|
14300
14288
|
});
|
|
14301
14289
|
};
|
|
14302
14290
|
/**
|
|
14303
|
-
* Clears in-memory Map
|
|
14291
|
+
* Clears in-memory Map
|
|
14292
|
+
*/
|
|
14293
|
+
AsyncMemoryStorage.prototype.clearInMemory = function () {
|
|
14294
|
+
// InMemory cache is a Map instance, clear is straightforward
|
|
14295
|
+
this.logger.verbose("Deleting in-memory keystore " + this.storeName);
|
|
14296
|
+
this.inMemoryCache.clear();
|
|
14297
|
+
this.logger.verbose("In-memory keystore " + this.storeName + " deleted");
|
|
14298
|
+
};
|
|
14299
|
+
/**
|
|
14300
|
+
* Tries to delete the IndexedDB database
|
|
14301
|
+
* @returns
|
|
14304
14302
|
*/
|
|
14305
|
-
AsyncMemoryStorage.prototype.
|
|
14303
|
+
AsyncMemoryStorage.prototype.clearPersistent = function () {
|
|
14306
14304
|
return __awaiter$1(this, void 0, void 0, function () {
|
|
14307
14305
|
var dbDeleted, e_6;
|
|
14308
14306
|
return __generator$1(this, function (_a) {
|
|
14309
14307
|
switch (_a.label) {
|
|
14310
14308
|
case 0:
|
|
14311
|
-
|
|
14312
|
-
this.logger.verbose("Deleting
|
|
14313
|
-
this.inMemoryCache.clear();
|
|
14314
|
-
this.logger.verbose("In-memory keystore " + this.storeName + " deleted");
|
|
14315
|
-
this.logger.verbose("Deleting persistent keystore " + this.storeName);
|
|
14316
|
-
_a.label = 1;
|
|
14317
|
-
case 1:
|
|
14318
|
-
_a.trys.push([1, 3, , 4]);
|
|
14309
|
+
_a.trys.push([0, 2, , 3]);
|
|
14310
|
+
this.logger.verbose("Deleting persistent keystore");
|
|
14319
14311
|
return [4 /*yield*/, this.indexedDBCache.deleteDatabase()];
|
|
14320
|
-
case
|
|
14312
|
+
case 1:
|
|
14321
14313
|
dbDeleted = _a.sent();
|
|
14322
14314
|
if (dbDeleted) {
|
|
14323
|
-
this.logger.verbose("Persistent keystore
|
|
14315
|
+
this.logger.verbose("Persistent keystore deleted");
|
|
14324
14316
|
}
|
|
14325
14317
|
return [2 /*return*/, dbDeleted];
|
|
14326
|
-
case
|
|
14318
|
+
case 2:
|
|
14327
14319
|
e_6 = _a.sent();
|
|
14328
14320
|
this.handleDatabaseAccessError(e_6);
|
|
14329
14321
|
return [2 /*return*/, false];
|
|
14330
|
-
case
|
|
14322
|
+
case 3: return [2 /*return*/];
|
|
14331
14323
|
}
|
|
14332
14324
|
});
|
|
14333
14325
|
});
|
|
@@ -14344,6 +14336,52 @@
|
|
|
14344
14336
|
CryptoKeyStoreNames["asymmetricKeys"] = "asymmetricKeys";
|
|
14345
14337
|
CryptoKeyStoreNames["symmetricKeys"] = "symmetricKeys";
|
|
14346
14338
|
})(CryptoKeyStoreNames || (CryptoKeyStoreNames = {}));
|
|
14339
|
+
/**
|
|
14340
|
+
* MSAL CryptoKeyStore DB Version 2
|
|
14341
|
+
*/
|
|
14342
|
+
var CryptoKeyStore = /** @class */ (function () {
|
|
14343
|
+
function CryptoKeyStore(logger) {
|
|
14344
|
+
this.logger = logger;
|
|
14345
|
+
this.asymmetricKeys = new AsyncMemoryStorage(this.logger, CryptoKeyStoreNames.asymmetricKeys);
|
|
14346
|
+
this.symmetricKeys = new AsyncMemoryStorage(this.logger, CryptoKeyStoreNames.symmetricKeys);
|
|
14347
|
+
}
|
|
14348
|
+
CryptoKeyStore.prototype.clear = function () {
|
|
14349
|
+
return __awaiter$1(this, void 0, void 0, function () {
|
|
14350
|
+
var e_1;
|
|
14351
|
+
return __generator$1(this, function (_a) {
|
|
14352
|
+
switch (_a.label) {
|
|
14353
|
+
case 0:
|
|
14354
|
+
// Delete in-memory keystores
|
|
14355
|
+
this.asymmetricKeys.clearInMemory();
|
|
14356
|
+
this.symmetricKeys.clearInMemory();
|
|
14357
|
+
_a.label = 1;
|
|
14358
|
+
case 1:
|
|
14359
|
+
_a.trys.push([1, 3, , 4]);
|
|
14360
|
+
return [4 /*yield*/, this.asymmetricKeys.clearPersistent()];
|
|
14361
|
+
case 2:
|
|
14362
|
+
_a.sent();
|
|
14363
|
+
return [2 /*return*/, true];
|
|
14364
|
+
case 3:
|
|
14365
|
+
e_1 = _a.sent();
|
|
14366
|
+
if (e_1 instanceof Error) {
|
|
14367
|
+
this.logger.error("Clearing keystore failed with error: " + e_1.message);
|
|
14368
|
+
}
|
|
14369
|
+
else {
|
|
14370
|
+
this.logger.error("Clearing keystore failed with unknown error");
|
|
14371
|
+
}
|
|
14372
|
+
return [2 /*return*/, false];
|
|
14373
|
+
case 4: return [2 /*return*/];
|
|
14374
|
+
}
|
|
14375
|
+
});
|
|
14376
|
+
});
|
|
14377
|
+
};
|
|
14378
|
+
return CryptoKeyStore;
|
|
14379
|
+
}());
|
|
14380
|
+
|
|
14381
|
+
/*
|
|
14382
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
14383
|
+
* Licensed under the MIT License.
|
|
14384
|
+
*/
|
|
14347
14385
|
/**
|
|
14348
14386
|
* This class implements MSAL's crypto interface, which allows it to perform base64 encoding and decoding, generating cryptographically random GUIDs and
|
|
14349
14387
|
* implementing Proof Key for Code Exchange specs for the OAuth Authorization Code Flow using PKCE (rfc here: https://tools.ietf.org/html/rfc7636).
|
|
@@ -14357,10 +14395,7 @@
|
|
|
14357
14395
|
this.b64Decode = new Base64Decode();
|
|
14358
14396
|
this.guidGenerator = new GuidGenerator(this.browserCrypto);
|
|
14359
14397
|
this.pkceGenerator = new PkceGenerator(this.browserCrypto);
|
|
14360
|
-
this.cache =
|
|
14361
|
-
asymmetricKeys: new AsyncMemoryStorage(this.logger, CryptoKeyStoreNames.asymmetricKeys),
|
|
14362
|
-
symmetricKeys: new AsyncMemoryStorage(this.logger, CryptoKeyStoreNames.symmetricKeys)
|
|
14363
|
-
};
|
|
14398
|
+
this.cache = new CryptoKeyStore(this.logger);
|
|
14364
14399
|
this.performanceClient = performanceClient;
|
|
14365
14400
|
}
|
|
14366
14401
|
/**
|
|
@@ -14472,32 +14507,10 @@
|
|
|
14472
14507
|
*/
|
|
14473
14508
|
CryptoOps.prototype.clearKeystore = function () {
|
|
14474
14509
|
return __awaiter$1(this, void 0, void 0, function () {
|
|
14475
|
-
var e_1;
|
|
14476
14510
|
return __generator$1(this, function (_a) {
|
|
14477
14511
|
switch (_a.label) {
|
|
14478
|
-
case 0:
|
|
14479
|
-
|
|
14480
|
-
this.logger.verbose("Deleting in-memory and persistent asymmetric key stores");
|
|
14481
|
-
return [4 /*yield*/, this.cache.asymmetricKeys.clear()];
|
|
14482
|
-
case 1:
|
|
14483
|
-
_a.sent();
|
|
14484
|
-
this.logger.verbose("Successfully deleted asymmetric key stores");
|
|
14485
|
-
this.logger.verbose("Deleting in-memory and persistent symmetric key stores");
|
|
14486
|
-
return [4 /*yield*/, this.cache.symmetricKeys.clear()];
|
|
14487
|
-
case 2:
|
|
14488
|
-
_a.sent();
|
|
14489
|
-
this.logger.verbose("Successfully deleted symmetric key stores");
|
|
14490
|
-
return [2 /*return*/, true];
|
|
14491
|
-
case 3:
|
|
14492
|
-
e_1 = _a.sent();
|
|
14493
|
-
if (e_1 instanceof Error) {
|
|
14494
|
-
this.logger.error("Clearing keystore failed with error: " + e_1.message);
|
|
14495
|
-
}
|
|
14496
|
-
else {
|
|
14497
|
-
this.logger.error("Clearing keystore failed with unknown error");
|
|
14498
|
-
}
|
|
14499
|
-
return [2 /*return*/, false];
|
|
14500
|
-
case 4: return [2 /*return*/];
|
|
14512
|
+
case 0: return [4 /*yield*/, this.cache.clear()];
|
|
14513
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
14501
14514
|
}
|
|
14502
14515
|
});
|
|
14503
14516
|
});
|
|
@@ -15953,6 +15966,8 @@
|
|
|
15953
15966
|
.catch(function (error) {
|
|
15954
15967
|
_this.activeSilentTokenRequests.delete(silentRequestKey);
|
|
15955
15968
|
atsMeasurement.endMeasurement({
|
|
15969
|
+
errorCode: error.errorCode,
|
|
15970
|
+
subErrorCode: error.subError,
|
|
15956
15971
|
success: false
|
|
15957
15972
|
});
|
|
15958
15973
|
atsMeasurement.flushMeasurement();
|