@azure/msal-browser 2.28.1 → 2.28.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.js +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.js +1 -1
- package/dist/cache/BrowserStorage.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/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 +97 -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 +97 -63
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +32 -32
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v2.28.
|
|
1
|
+
/*! @azure/msal-browser v2.28.2 2022-09-06 */
|
|
2
2
|
'use strict';
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -117,7 +117,7 @@ function __spread() {
|
|
|
117
117
|
return ar;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
/*! @azure/msal-common v7.
|
|
120
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
121
121
|
/*! *****************************************************************************
|
|
122
122
|
Copyright (c) Microsoft Corporation.
|
|
123
123
|
|
|
@@ -204,7 +204,7 @@ function __spreadArrays() {
|
|
|
204
204
|
return r;
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
/*! @azure/msal-common v7.
|
|
207
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
208
208
|
|
|
209
209
|
/*
|
|
210
210
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -255,7 +255,7 @@ var Constants = {
|
|
|
255
255
|
KNOWN_PUBLIC_CLOUDS: ["login.microsoftonline.com", "login.windows.net", "login.microsoft.com", "sts.windows.net"],
|
|
256
256
|
TOKEN_RESPONSE_TYPE: "token",
|
|
257
257
|
ID_TOKEN_RESPONSE_TYPE: "id_token",
|
|
258
|
-
SHR_NONCE_VALIDITY: 240
|
|
258
|
+
SHR_NONCE_VALIDITY: 240
|
|
259
259
|
};
|
|
260
260
|
var OIDC_DEFAULT_SCOPES = [
|
|
261
261
|
Constants.OPENID_SCOPE,
|
|
@@ -581,7 +581,7 @@ var JsonTypes;
|
|
|
581
581
|
JsonTypes["Jwk"] = "JWK";
|
|
582
582
|
})(JsonTypes || (JsonTypes = {}));
|
|
583
583
|
|
|
584
|
-
/*! @azure/msal-common v7.
|
|
584
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
585
585
|
|
|
586
586
|
/*
|
|
587
587
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -637,7 +637,7 @@ var AuthError = /** @class */ (function (_super) {
|
|
|
637
637
|
return AuthError;
|
|
638
638
|
}(Error));
|
|
639
639
|
|
|
640
|
-
/*! @azure/msal-common v7.
|
|
640
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
641
641
|
|
|
642
642
|
/*
|
|
643
643
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -712,7 +712,7 @@ var DEFAULT_CRYPTO_IMPLEMENTATION = {
|
|
|
712
712
|
}
|
|
713
713
|
};
|
|
714
714
|
|
|
715
|
-
/*! @azure/msal-common v7.
|
|
715
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
716
716
|
|
|
717
717
|
/*
|
|
718
718
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1184,7 +1184,7 @@ var ClientAuthError = /** @class */ (function (_super) {
|
|
|
1184
1184
|
return ClientAuthError;
|
|
1185
1185
|
}(AuthError));
|
|
1186
1186
|
|
|
1187
|
-
/*! @azure/msal-common v7.
|
|
1187
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
1188
1188
|
|
|
1189
1189
|
/*
|
|
1190
1190
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1309,7 +1309,7 @@ var StringUtils = /** @class */ (function () {
|
|
|
1309
1309
|
return StringUtils;
|
|
1310
1310
|
}());
|
|
1311
1311
|
|
|
1312
|
-
/*! @azure/msal-common v7.
|
|
1312
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
1313
1313
|
|
|
1314
1314
|
/*
|
|
1315
1315
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1489,12 +1489,12 @@ var Logger = /** @class */ (function () {
|
|
|
1489
1489
|
return Logger;
|
|
1490
1490
|
}());
|
|
1491
1491
|
|
|
1492
|
-
/*! @azure/msal-common v7.
|
|
1492
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
1493
1493
|
/* eslint-disable header/header */
|
|
1494
1494
|
var name$1 = "@azure/msal-common";
|
|
1495
|
-
var version$1 = "7.
|
|
1495
|
+
var version$1 = "7.4.0";
|
|
1496
1496
|
|
|
1497
|
-
/*! @azure/msal-common v7.
|
|
1497
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
1498
1498
|
/*
|
|
1499
1499
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1500
1500
|
* Licensed under the MIT License.
|
|
@@ -1515,7 +1515,7 @@ exports.AzureCloudInstance = void 0;
|
|
|
1515
1515
|
AzureCloudInstance["AzureUsGovernment"] = "https://login.microsoftonline.us";
|
|
1516
1516
|
})(exports.AzureCloudInstance || (exports.AzureCloudInstance = {}));
|
|
1517
1517
|
|
|
1518
|
-
/*! @azure/msal-common v7.
|
|
1518
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
1519
1519
|
|
|
1520
1520
|
/*
|
|
1521
1521
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1674,7 +1674,7 @@ var CredentialEntity = /** @class */ (function () {
|
|
|
1674
1674
|
return CredentialEntity;
|
|
1675
1675
|
}());
|
|
1676
1676
|
|
|
1677
|
-
/*! @azure/msal-common v7.
|
|
1677
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
1678
1678
|
|
|
1679
1679
|
/*
|
|
1680
1680
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1929,7 +1929,7 @@ var ClientConfigurationError = /** @class */ (function (_super) {
|
|
|
1929
1929
|
return ClientConfigurationError;
|
|
1930
1930
|
}(ClientAuthError));
|
|
1931
1931
|
|
|
1932
|
-
/*! @azure/msal-common v7.
|
|
1932
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
1933
1933
|
|
|
1934
1934
|
/*
|
|
1935
1935
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2113,7 +2113,7 @@ var ScopeSet = /** @class */ (function () {
|
|
|
2113
2113
|
return ScopeSet;
|
|
2114
2114
|
}());
|
|
2115
2115
|
|
|
2116
|
-
/*! @azure/msal-common v7.
|
|
2116
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
2117
2117
|
|
|
2118
2118
|
/*
|
|
2119
2119
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2133,7 +2133,7 @@ function buildClientInfo(rawClientInfo, crypto) {
|
|
|
2133
2133
|
return JSON.parse(decodedClientInfo);
|
|
2134
2134
|
}
|
|
2135
2135
|
catch (e) {
|
|
2136
|
-
throw ClientAuthError.createClientInfoDecodingError(e);
|
|
2136
|
+
throw ClientAuthError.createClientInfoDecodingError(e.message);
|
|
2137
2137
|
}
|
|
2138
2138
|
}
|
|
2139
2139
|
/**
|
|
@@ -2151,7 +2151,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
|
|
|
2151
2151
|
};
|
|
2152
2152
|
}
|
|
2153
2153
|
|
|
2154
|
-
/*! @azure/msal-common v7.
|
|
2154
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
2155
2155
|
/*
|
|
2156
2156
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2157
2157
|
* Licensed under the MIT License.
|
|
@@ -2165,7 +2165,7 @@ var AuthorityType;
|
|
|
2165
2165
|
AuthorityType[AuthorityType["Adfs"] = 1] = "Adfs";
|
|
2166
2166
|
})(AuthorityType || (AuthorityType = {}));
|
|
2167
2167
|
|
|
2168
|
-
/*! @azure/msal-common v7.
|
|
2168
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
2169
2169
|
|
|
2170
2170
|
/*
|
|
2171
2171
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2400,7 +2400,7 @@ var AccountEntity = /** @class */ (function () {
|
|
|
2400
2400
|
return AccountEntity;
|
|
2401
2401
|
}());
|
|
2402
2402
|
|
|
2403
|
-
/*! @azure/msal-common v7.
|
|
2403
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
2404
2404
|
|
|
2405
2405
|
/*
|
|
2406
2406
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2438,7 +2438,7 @@ var AuthToken = /** @class */ (function () {
|
|
|
2438
2438
|
return AuthToken;
|
|
2439
2439
|
}());
|
|
2440
2440
|
|
|
2441
|
-
/*! @azure/msal-common v7.
|
|
2441
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
2442
2442
|
|
|
2443
2443
|
/*
|
|
2444
2444
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2469,6 +2469,7 @@ var CacheManager = /** @class */ (function () {
|
|
|
2469
2469
|
var accountInfo = accountEntity.getAccountInfo();
|
|
2470
2470
|
var idToken = _this.readIdTokenFromCache(_this.clientId, accountInfo);
|
|
2471
2471
|
if (idToken && !accountInfo.idTokenClaims) {
|
|
2472
|
+
accountInfo.idToken = idToken.secret;
|
|
2472
2473
|
accountInfo.idTokenClaims = new AuthToken(idToken.secret, _this.cryptoImpl).claims;
|
|
2473
2474
|
}
|
|
2474
2475
|
return accountInfo;
|
|
@@ -3312,7 +3313,7 @@ var DefaultStorageClass = /** @class */ (function (_super) {
|
|
|
3312
3313
|
return DefaultStorageClass;
|
|
3313
3314
|
}(CacheManager));
|
|
3314
3315
|
|
|
3315
|
-
/*! @azure/msal-common v7.
|
|
3316
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
3316
3317
|
|
|
3317
3318
|
/*
|
|
3318
3319
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3406,7 +3407,7 @@ function buildAuthOptions(authOptions) {
|
|
|
3406
3407
|
return __assign({ clientCapabilities: [], azureCloudOptions: DEFAULT_AZURE_CLOUD_OPTIONS, skipAuthorityMetadataCache: false }, authOptions);
|
|
3407
3408
|
}
|
|
3408
3409
|
|
|
3409
|
-
/*! @azure/msal-common v7.
|
|
3410
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
3410
3411
|
|
|
3411
3412
|
/*
|
|
3412
3413
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3426,7 +3427,7 @@ var ServerError = /** @class */ (function (_super) {
|
|
|
3426
3427
|
return ServerError;
|
|
3427
3428
|
}(AuthError));
|
|
3428
3429
|
|
|
3429
|
-
/*! @azure/msal-common v7.
|
|
3430
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
3430
3431
|
|
|
3431
3432
|
/*
|
|
3432
3433
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3522,7 +3523,7 @@ var ThrottlingUtils = /** @class */ (function () {
|
|
|
3522
3523
|
return ThrottlingUtils;
|
|
3523
3524
|
}());
|
|
3524
3525
|
|
|
3525
|
-
/*! @azure/msal-common v7.
|
|
3526
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
3526
3527
|
|
|
3527
3528
|
/*
|
|
3528
3529
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3571,7 +3572,7 @@ var NetworkManager = /** @class */ (function () {
|
|
|
3571
3572
|
return NetworkManager;
|
|
3572
3573
|
}());
|
|
3573
3574
|
|
|
3574
|
-
/*! @azure/msal-common v7.
|
|
3575
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
3575
3576
|
/*
|
|
3576
3577
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3577
3578
|
* Licensed under the MIT License.
|
|
@@ -3582,7 +3583,7 @@ var CcsCredentialType;
|
|
|
3582
3583
|
CcsCredentialType["UPN"] = "UPN";
|
|
3583
3584
|
})(CcsCredentialType || (CcsCredentialType = {}));
|
|
3584
3585
|
|
|
3585
|
-
/*! @azure/msal-common v7.
|
|
3586
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
3586
3587
|
|
|
3587
3588
|
/*
|
|
3588
3589
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3673,7 +3674,7 @@ var BaseClient = /** @class */ (function () {
|
|
|
3673
3674
|
return BaseClient;
|
|
3674
3675
|
}());
|
|
3675
3676
|
|
|
3676
|
-
/*! @azure/msal-common v7.
|
|
3677
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
3677
3678
|
|
|
3678
3679
|
/*
|
|
3679
3680
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3759,7 +3760,7 @@ var RequestValidator = /** @class */ (function () {
|
|
|
3759
3760
|
return RequestValidator;
|
|
3760
3761
|
}());
|
|
3761
3762
|
|
|
3762
|
-
/*! @azure/msal-common v7.
|
|
3763
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
3763
3764
|
|
|
3764
3765
|
/*
|
|
3765
3766
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4137,7 +4138,7 @@ var RequestParameterBuilder = /** @class */ (function () {
|
|
|
4137
4138
|
return RequestParameterBuilder;
|
|
4138
4139
|
}());
|
|
4139
4140
|
|
|
4140
|
-
/*! @azure/msal-common v7.
|
|
4141
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
4141
4142
|
|
|
4142
4143
|
/*
|
|
4143
4144
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4201,7 +4202,7 @@ var IdTokenEntity = /** @class */ (function (_super) {
|
|
|
4201
4202
|
return IdTokenEntity;
|
|
4202
4203
|
}(CredentialEntity));
|
|
4203
4204
|
|
|
4204
|
-
/*! @azure/msal-common v7.
|
|
4205
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
4205
4206
|
/*
|
|
4206
4207
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4207
4208
|
* Licensed under the MIT License.
|
|
@@ -4251,7 +4252,7 @@ var TimeUtils = /** @class */ (function () {
|
|
|
4251
4252
|
return TimeUtils;
|
|
4252
4253
|
}());
|
|
4253
4254
|
|
|
4254
|
-
/*! @azure/msal-common v7.
|
|
4255
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
4255
4256
|
|
|
4256
4257
|
/*
|
|
4257
4258
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4365,7 +4366,7 @@ var AccessTokenEntity = /** @class */ (function (_super) {
|
|
|
4365
4366
|
return AccessTokenEntity;
|
|
4366
4367
|
}(CredentialEntity));
|
|
4367
4368
|
|
|
4368
|
-
/*! @azure/msal-common v7.
|
|
4369
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
4369
4370
|
|
|
4370
4371
|
/*
|
|
4371
4372
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4432,7 +4433,7 @@ var RefreshTokenEntity = /** @class */ (function (_super) {
|
|
|
4432
4433
|
return RefreshTokenEntity;
|
|
4433
4434
|
}(CredentialEntity));
|
|
4434
4435
|
|
|
4435
|
-
/*! @azure/msal-common v7.
|
|
4436
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
4436
4437
|
|
|
4437
4438
|
/*
|
|
4438
4439
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4507,7 +4508,7 @@ var InteractionRequiredAuthError = /** @class */ (function (_super) {
|
|
|
4507
4508
|
return InteractionRequiredAuthError;
|
|
4508
4509
|
}(AuthError));
|
|
4509
4510
|
|
|
4510
|
-
/*! @azure/msal-common v7.
|
|
4511
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
4511
4512
|
/*
|
|
4512
4513
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4513
4514
|
* Licensed under the MIT License.
|
|
@@ -4523,7 +4524,7 @@ var CacheRecord = /** @class */ (function () {
|
|
|
4523
4524
|
return CacheRecord;
|
|
4524
4525
|
}());
|
|
4525
4526
|
|
|
4526
|
-
/*! @azure/msal-common v7.
|
|
4527
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
4527
4528
|
|
|
4528
4529
|
/*
|
|
4529
4530
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4594,7 +4595,7 @@ var ProtocolUtils = /** @class */ (function () {
|
|
|
4594
4595
|
return ProtocolUtils;
|
|
4595
4596
|
}());
|
|
4596
4597
|
|
|
4597
|
-
/*! @azure/msal-common v7.
|
|
4598
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
4598
4599
|
|
|
4599
4600
|
/*
|
|
4600
4601
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4757,6 +4758,21 @@ var UrlString = /** @class */ (function () {
|
|
|
4757
4758
|
}
|
|
4758
4759
|
return Constants.EMPTY_STRING;
|
|
4759
4760
|
};
|
|
4761
|
+
/**
|
|
4762
|
+
* Parses query string from given string. Returns empty string if no query symbol is found.
|
|
4763
|
+
* @param queryString
|
|
4764
|
+
*/
|
|
4765
|
+
UrlString.parseQueryString = function (queryString) {
|
|
4766
|
+
var queryIndex1 = queryString.indexOf("?");
|
|
4767
|
+
var queryIndex2 = queryString.indexOf("/?");
|
|
4768
|
+
if (queryIndex2 > -1) {
|
|
4769
|
+
return queryString.substring(queryIndex2 + 2);
|
|
4770
|
+
}
|
|
4771
|
+
else if (queryIndex1 > -1) {
|
|
4772
|
+
return queryString.substring(queryIndex1 + 1);
|
|
4773
|
+
}
|
|
4774
|
+
return Constants.EMPTY_STRING;
|
|
4775
|
+
};
|
|
4760
4776
|
UrlString.constructAuthorityUriFromObject = function (urlObject) {
|
|
4761
4777
|
return new UrlString(urlObject.Protocol + "//" + urlObject.HostNameAndPort + "/" + urlObject.PathSegments.join("/"));
|
|
4762
4778
|
};
|
|
@@ -4778,6 +4794,24 @@ var UrlString = /** @class */ (function () {
|
|
|
4778
4794
|
}
|
|
4779
4795
|
return deserializedHash;
|
|
4780
4796
|
};
|
|
4797
|
+
/**
|
|
4798
|
+
* Returns URL query string as server auth code response object.
|
|
4799
|
+
*/
|
|
4800
|
+
UrlString.getDeserializedQueryString = function (query) {
|
|
4801
|
+
// Check if given query is empty
|
|
4802
|
+
if (StringUtils.isEmpty(query)) {
|
|
4803
|
+
return {};
|
|
4804
|
+
}
|
|
4805
|
+
// Strip the ? symbol if present
|
|
4806
|
+
var parsedQueryString = UrlString.parseQueryString(query);
|
|
4807
|
+
// If ? symbol was not present, above will return empty string, so give original query value
|
|
4808
|
+
var deserializedQueryString = StringUtils.queryStringToObject(StringUtils.isEmpty(parsedQueryString) ? query : parsedQueryString);
|
|
4809
|
+
// Check if deserialization didn't work
|
|
4810
|
+
if (!deserializedQueryString) {
|
|
4811
|
+
throw ClientAuthError.createHashNotDeserializedError(JSON.stringify(deserializedQueryString));
|
|
4812
|
+
}
|
|
4813
|
+
return deserializedQueryString;
|
|
4814
|
+
};
|
|
4781
4815
|
/**
|
|
4782
4816
|
* Check if the hash of the URL string contains known properties
|
|
4783
4817
|
*/
|
|
@@ -4795,7 +4829,7 @@ var UrlString = /** @class */ (function () {
|
|
|
4795
4829
|
return UrlString;
|
|
4796
4830
|
}());
|
|
4797
4831
|
|
|
4798
|
-
/*! @azure/msal-common v7.
|
|
4832
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
4799
4833
|
|
|
4800
4834
|
/*
|
|
4801
4835
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4896,7 +4930,7 @@ var PopTokenGenerator = /** @class */ (function () {
|
|
|
4896
4930
|
return PopTokenGenerator;
|
|
4897
4931
|
}());
|
|
4898
4932
|
|
|
4899
|
-
/*! @azure/msal-common v7.
|
|
4933
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
4900
4934
|
|
|
4901
4935
|
/*
|
|
4902
4936
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4966,7 +5000,7 @@ var AppMetadataEntity = /** @class */ (function () {
|
|
|
4966
5000
|
return AppMetadataEntity;
|
|
4967
5001
|
}());
|
|
4968
5002
|
|
|
4969
|
-
/*! @azure/msal-common v7.
|
|
5003
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
4970
5004
|
/*
|
|
4971
5005
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4972
5006
|
* Licensed under the MIT License.
|
|
@@ -5002,7 +5036,7 @@ var AppMetadataEntity = /** @class */ (function () {
|
|
|
5002
5036
|
return TokenCacheContext;
|
|
5003
5037
|
}());
|
|
5004
5038
|
|
|
5005
|
-
/*! @azure/msal-common v7.
|
|
5039
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
5006
5040
|
|
|
5007
5041
|
/*
|
|
5008
5042
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5273,7 +5307,7 @@ var ResponseHandler = /** @class */ (function () {
|
|
|
5273
5307
|
return ResponseHandler;
|
|
5274
5308
|
}());
|
|
5275
5309
|
|
|
5276
|
-
/*! @azure/msal-common v7.
|
|
5310
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
5277
5311
|
|
|
5278
5312
|
/*
|
|
5279
5313
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5724,7 +5758,7 @@ var AuthorizationCodeClient = /** @class */ (function (_super) {
|
|
|
5724
5758
|
return AuthorizationCodeClient;
|
|
5725
5759
|
}(BaseClient));
|
|
5726
5760
|
|
|
5727
|
-
/*! @azure/msal-common v7.
|
|
5761
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
5728
5762
|
/*
|
|
5729
5763
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5730
5764
|
* Licensed under the MIT License.
|
|
@@ -5842,7 +5876,7 @@ var PerformanceEventStatus;
|
|
|
5842
5876
|
PerformanceEventStatus[PerformanceEventStatus["Completed"] = 2] = "Completed";
|
|
5843
5877
|
})(PerformanceEventStatus || (PerformanceEventStatus = {}));
|
|
5844
5878
|
|
|
5845
|
-
/*! @azure/msal-common v7.
|
|
5879
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
5846
5880
|
|
|
5847
5881
|
/*
|
|
5848
5882
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6078,7 +6112,7 @@ var RefreshTokenClient = /** @class */ (function (_super) {
|
|
|
6078
6112
|
return RefreshTokenClient;
|
|
6079
6113
|
}(BaseClient));
|
|
6080
6114
|
|
|
6081
|
-
/*! @azure/msal-common v7.
|
|
6115
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
6082
6116
|
|
|
6083
6117
|
/*
|
|
6084
6118
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6194,7 +6228,7 @@ var SilentFlowClient = /** @class */ (function (_super) {
|
|
|
6194
6228
|
return SilentFlowClient;
|
|
6195
6229
|
}(BaseClient));
|
|
6196
6230
|
|
|
6197
|
-
/*! @azure/msal-common v7.
|
|
6231
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
6198
6232
|
/*
|
|
6199
6233
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6200
6234
|
* Licensed under the MIT License.
|
|
@@ -6206,7 +6240,7 @@ function isOpenIdConfigResponse(response) {
|
|
|
6206
6240
|
response.hasOwnProperty("jwks_uri"));
|
|
6207
6241
|
}
|
|
6208
6242
|
|
|
6209
|
-
/*! @azure/msal-common v7.
|
|
6243
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
6210
6244
|
/*
|
|
6211
6245
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6212
6246
|
* Licensed under the MIT License.
|
|
@@ -6215,7 +6249,7 @@ var rawMetdataJSON = { "endpointMetadata": { "https://login.microsoftonline.com/
|
|
|
6215
6249
|
var EndpointMetadata = rawMetdataJSON.endpointMetadata;
|
|
6216
6250
|
var InstanceDiscoveryMetadata = rawMetdataJSON.instanceDiscoveryMetadata;
|
|
6217
6251
|
|
|
6218
|
-
/*! @azure/msal-common v7.
|
|
6252
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
6219
6253
|
/*
|
|
6220
6254
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6221
6255
|
* Licensed under the MIT License.
|
|
@@ -6229,7 +6263,7 @@ exports.ProtocolMode = void 0;
|
|
|
6229
6263
|
ProtocolMode["OIDC"] = "OIDC";
|
|
6230
6264
|
})(exports.ProtocolMode || (exports.ProtocolMode = {}));
|
|
6231
6265
|
|
|
6232
|
-
/*! @azure/msal-common v7.
|
|
6266
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
6233
6267
|
|
|
6234
6268
|
/*
|
|
6235
6269
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6306,7 +6340,7 @@ var AuthorityMetadataEntity = /** @class */ (function () {
|
|
|
6306
6340
|
return AuthorityMetadataEntity;
|
|
6307
6341
|
}());
|
|
6308
6342
|
|
|
6309
|
-
/*! @azure/msal-common v7.
|
|
6343
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
6310
6344
|
/*
|
|
6311
6345
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6312
6346
|
* Licensed under the MIT License.
|
|
@@ -6316,7 +6350,7 @@ function isCloudInstanceDiscoveryResponse(response) {
|
|
|
6316
6350
|
response.hasOwnProperty("metadata"));
|
|
6317
6351
|
}
|
|
6318
6352
|
|
|
6319
|
-
/*! @azure/msal-common v7.
|
|
6353
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
6320
6354
|
|
|
6321
6355
|
/*
|
|
6322
6356
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6438,7 +6472,7 @@ var RegionDiscovery = /** @class */ (function () {
|
|
|
6438
6472
|
return RegionDiscovery;
|
|
6439
6473
|
}());
|
|
6440
6474
|
|
|
6441
|
-
/*! @azure/msal-common v7.
|
|
6475
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
6442
6476
|
|
|
6443
6477
|
/*
|
|
6444
6478
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7100,7 +7134,7 @@ var Authority = /** @class */ (function () {
|
|
|
7100
7134
|
return Authority;
|
|
7101
7135
|
}());
|
|
7102
7136
|
|
|
7103
|
-
/*! @azure/msal-common v7.
|
|
7137
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
7104
7138
|
|
|
7105
7139
|
/*
|
|
7106
7140
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7161,7 +7195,7 @@ var AuthorityFactory = /** @class */ (function () {
|
|
|
7161
7195
|
return AuthorityFactory;
|
|
7162
7196
|
}());
|
|
7163
7197
|
|
|
7164
|
-
/*! @azure/msal-common v7.
|
|
7198
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
7165
7199
|
|
|
7166
7200
|
/*
|
|
7167
7201
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7192,7 +7226,7 @@ var ServerTelemetryEntity = /** @class */ (function () {
|
|
|
7192
7226
|
return ServerTelemetryEntity;
|
|
7193
7227
|
}());
|
|
7194
7228
|
|
|
7195
|
-
/*! @azure/msal-common v7.
|
|
7229
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
7196
7230
|
|
|
7197
7231
|
/*
|
|
7198
7232
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7220,7 +7254,7 @@ var ThrottlingEntity = /** @class */ (function () {
|
|
|
7220
7254
|
return ThrottlingEntity;
|
|
7221
7255
|
}());
|
|
7222
7256
|
|
|
7223
|
-
/*! @azure/msal-common v7.
|
|
7257
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
7224
7258
|
|
|
7225
7259
|
/*
|
|
7226
7260
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7237,7 +7271,7 @@ var StubbedNetworkModule = {
|
|
|
7237
7271
|
}
|
|
7238
7272
|
};
|
|
7239
7273
|
|
|
7240
|
-
/*! @azure/msal-common v7.
|
|
7274
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
7241
7275
|
|
|
7242
7276
|
/*
|
|
7243
7277
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7282,7 +7316,7 @@ var JoseHeaderError = /** @class */ (function (_super) {
|
|
|
7282
7316
|
return JoseHeaderError;
|
|
7283
7317
|
}(AuthError));
|
|
7284
7318
|
|
|
7285
|
-
/*! @azure/msal-common v7.
|
|
7319
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
7286
7320
|
|
|
7287
7321
|
/*
|
|
7288
7322
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7322,7 +7356,7 @@ var JoseHeader = /** @class */ (function () {
|
|
|
7322
7356
|
return JoseHeader;
|
|
7323
7357
|
}());
|
|
7324
7358
|
|
|
7325
|
-
/*! @azure/msal-common v7.
|
|
7359
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
7326
7360
|
|
|
7327
7361
|
/*
|
|
7328
7362
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7381,7 +7415,7 @@ var AuthenticationHeaderParser = /** @class */ (function () {
|
|
|
7381
7415
|
return AuthenticationHeaderParser;
|
|
7382
7416
|
}());
|
|
7383
7417
|
|
|
7384
|
-
/*! @azure/msal-common v7.
|
|
7418
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
7385
7419
|
|
|
7386
7420
|
/*
|
|
7387
7421
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7543,7 +7577,7 @@ var ServerTelemetryManager = /** @class */ (function () {
|
|
|
7543
7577
|
return ServerTelemetryManager;
|
|
7544
7578
|
}());
|
|
7545
7579
|
|
|
7546
|
-
/*! @azure/msal-common v7.
|
|
7580
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
7547
7581
|
|
|
7548
7582
|
/*
|
|
7549
7583
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7819,7 +7853,7 @@ var PerformanceClient = /** @class */ (function () {
|
|
|
7819
7853
|
return PerformanceClient;
|
|
7820
7854
|
}());
|
|
7821
7855
|
|
|
7822
|
-
/*! @azure/msal-common v7.
|
|
7856
|
+
/*! @azure/msal-common v7.4.0 2022-09-06 */
|
|
7823
7857
|
|
|
7824
7858
|
/*
|
|
7825
7859
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -9647,7 +9681,7 @@ var DEFAULT_BROWSER_CACHE_MANAGER = function (clientId, logger) {
|
|
|
9647
9681
|
|
|
9648
9682
|
/* eslint-disable header/header */
|
|
9649
9683
|
var name = "@azure/msal-browser";
|
|
9650
|
-
var version = "2.28.
|
|
9684
|
+
var version = "2.28.2";
|
|
9651
9685
|
|
|
9652
9686
|
/*
|
|
9653
9687
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|