@azure/msal-browser 2.19.1 → 2.19.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.js +1 -1
- package/dist/cache/AsyncMemoryStorage.js +1 -1
- package/dist/cache/BrowserCacheManager.d.ts +1 -5
- package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
- package/dist/cache/BrowserCacheManager.js +1 -20
- package/dist/cache/BrowserCacheManager.js.map +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/event/EventHandler.js +1 -1
- package/dist/event/EventMessage.js +1 -1
- package/dist/event/EventType.js +1 -1
- package/dist/index.cjs.js +78 -114
- 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/PopupClient.js +1 -1
- package/dist/interaction_client/RedirectClient.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/PopupHandler.js +1 -1
- package/dist/interaction_handler/RedirectHandler.js +1 -1
- package/dist/interaction_handler/SilentHandler.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/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/dist/utils/PopupUtils.js +1 -1
- package/lib/msal-browser.js +78 -114
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +23 -23
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v2.19.
|
|
1
|
+
/*! @azure/msal-browser v2.19.3 2023-08-24 */
|
|
2
2
|
'use strict';
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -105,7 +105,7 @@ function __spread() {
|
|
|
105
105
|
return ar;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
/*! @azure/msal-common v5.1.
|
|
108
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
109
109
|
/*! *****************************************************************************
|
|
110
110
|
Copyright (c) Microsoft Corporation.
|
|
111
111
|
|
|
@@ -192,7 +192,7 @@ function __spreadArrays() {
|
|
|
192
192
|
return r;
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
-
/*! @azure/msal-common v5.1.
|
|
195
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
196
196
|
|
|
197
197
|
/*
|
|
198
198
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -553,7 +553,7 @@ var CacheOutcome;
|
|
|
553
553
|
CacheOutcome["REFRESH_CACHED_ACCESS_TOKEN"] = "4";
|
|
554
554
|
})(CacheOutcome || (CacheOutcome = {}));
|
|
555
555
|
|
|
556
|
-
/*! @azure/msal-common v5.1.
|
|
556
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
557
557
|
|
|
558
558
|
/*
|
|
559
559
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -597,7 +597,7 @@ var AuthError = /** @class */ (function (_super) {
|
|
|
597
597
|
return AuthError;
|
|
598
598
|
}(Error));
|
|
599
599
|
|
|
600
|
-
/*! @azure/msal-common v5.1.
|
|
600
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
601
601
|
|
|
602
602
|
/*
|
|
603
603
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -663,7 +663,7 @@ var DEFAULT_CRYPTO_IMPLEMENTATION = {
|
|
|
663
663
|
}
|
|
664
664
|
};
|
|
665
665
|
|
|
666
|
-
/*! @azure/msal-common v5.1.
|
|
666
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
667
667
|
|
|
668
668
|
/*
|
|
669
669
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1125,7 +1125,7 @@ var ClientAuthError = /** @class */ (function (_super) {
|
|
|
1125
1125
|
return ClientAuthError;
|
|
1126
1126
|
}(AuthError));
|
|
1127
1127
|
|
|
1128
|
-
/*! @azure/msal-common v5.1.
|
|
1128
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
1129
1129
|
|
|
1130
1130
|
/*
|
|
1131
1131
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1250,7 +1250,7 @@ var StringUtils = /** @class */ (function () {
|
|
|
1250
1250
|
return StringUtils;
|
|
1251
1251
|
}());
|
|
1252
1252
|
|
|
1253
|
-
/*! @azure/msal-common v5.1.
|
|
1253
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
1254
1254
|
|
|
1255
1255
|
/*
|
|
1256
1256
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1430,12 +1430,12 @@ var Logger = /** @class */ (function () {
|
|
|
1430
1430
|
return Logger;
|
|
1431
1431
|
}());
|
|
1432
1432
|
|
|
1433
|
-
/*! @azure/msal-common v5.1.
|
|
1433
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
1434
1434
|
/* eslint-disable header/header */
|
|
1435
1435
|
var name$1 = "@azure/msal-common";
|
|
1436
|
-
var version$1 = "5.1.
|
|
1436
|
+
var version$1 = "5.1.3";
|
|
1437
1437
|
|
|
1438
|
-
/*! @azure/msal-common v5.1.
|
|
1438
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
1439
1439
|
|
|
1440
1440
|
/*
|
|
1441
1441
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1579,7 +1579,7 @@ var CredentialEntity = /** @class */ (function () {
|
|
|
1579
1579
|
return CredentialEntity;
|
|
1580
1580
|
}());
|
|
1581
1581
|
|
|
1582
|
-
/*! @azure/msal-common v5.1.
|
|
1582
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
1583
1583
|
|
|
1584
1584
|
/*
|
|
1585
1585
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1824,7 +1824,7 @@ var ClientConfigurationError = /** @class */ (function (_super) {
|
|
|
1824
1824
|
return ClientConfigurationError;
|
|
1825
1825
|
}(ClientAuthError));
|
|
1826
1826
|
|
|
1827
|
-
/*! @azure/msal-common v5.1.
|
|
1827
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
1828
1828
|
|
|
1829
1829
|
/*
|
|
1830
1830
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2008,7 +2008,7 @@ var ScopeSet = /** @class */ (function () {
|
|
|
2008
2008
|
return ScopeSet;
|
|
2009
2009
|
}());
|
|
2010
2010
|
|
|
2011
|
-
/*! @azure/msal-common v5.1.
|
|
2011
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
2012
2012
|
|
|
2013
2013
|
/*
|
|
2014
2014
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2046,7 +2046,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
|
|
|
2046
2046
|
};
|
|
2047
2047
|
}
|
|
2048
2048
|
|
|
2049
|
-
/*! @azure/msal-common v5.1.
|
|
2049
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
2050
2050
|
/*
|
|
2051
2051
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2052
2052
|
* Licensed under the MIT License.
|
|
@@ -2060,7 +2060,7 @@ var AuthorityType;
|
|
|
2060
2060
|
AuthorityType[AuthorityType["Adfs"] = 1] = "Adfs";
|
|
2061
2061
|
})(AuthorityType || (AuthorityType = {}));
|
|
2062
2062
|
|
|
2063
|
-
/*! @azure/msal-common v5.1.
|
|
2063
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
2064
2064
|
|
|
2065
2065
|
/*
|
|
2066
2066
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2294,7 +2294,7 @@ var AccountEntity = /** @class */ (function () {
|
|
|
2294
2294
|
return AccountEntity;
|
|
2295
2295
|
}());
|
|
2296
2296
|
|
|
2297
|
-
/*! @azure/msal-common v5.1.
|
|
2297
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
2298
2298
|
|
|
2299
2299
|
/*
|
|
2300
2300
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2332,7 +2332,7 @@ var AuthToken = /** @class */ (function () {
|
|
|
2332
2332
|
return AuthToken;
|
|
2333
2333
|
}());
|
|
2334
2334
|
|
|
2335
|
-
/*! @azure/msal-common v5.1.
|
|
2335
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
2336
2336
|
|
|
2337
2337
|
/*
|
|
2338
2338
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2576,21 +2576,16 @@ var CacheManager = /** @class */ (function () {
|
|
|
2576
2576
|
break;
|
|
2577
2577
|
}
|
|
2578
2578
|
}
|
|
2579
|
-
/*
|
|
2580
|
-
* At this point, the entity matches the request, update cache key if key schema has changed
|
|
2581
|
-
* Migration code for forwards compatibility with new versions of the library in case of rollback.
|
|
2582
|
-
*/
|
|
2583
|
-
var updatedCacheKey = _this.updateCredentialCacheKey(cacheKey, entity);
|
|
2584
2579
|
switch (credType) {
|
|
2585
2580
|
case CredentialType.ID_TOKEN:
|
|
2586
|
-
matchingCredentials.idTokens[
|
|
2581
|
+
matchingCredentials.idTokens[cacheKey] = entity;
|
|
2587
2582
|
break;
|
|
2588
2583
|
case CredentialType.ACCESS_TOKEN:
|
|
2589
2584
|
case CredentialType.ACCESS_TOKEN_WITH_AUTH_SCHEME:
|
|
2590
|
-
matchingCredentials.accessTokens[
|
|
2585
|
+
matchingCredentials.accessTokens[cacheKey] = entity;
|
|
2591
2586
|
break;
|
|
2592
2587
|
case CredentialType.REFRESH_TOKEN:
|
|
2593
|
-
matchingCredentials.refreshTokens[
|
|
2588
|
+
matchingCredentials.refreshTokens[cacheKey] = entity;
|
|
2594
2589
|
break;
|
|
2595
2590
|
}
|
|
2596
2591
|
});
|
|
@@ -2821,6 +2816,7 @@ var CacheManager = /** @class */ (function () {
|
|
|
2821
2816
|
* @param inputRealm
|
|
2822
2817
|
*/
|
|
2823
2818
|
CacheManager.prototype.readIdTokenFromCache = function (clientId, account) {
|
|
2819
|
+
var _this = this;
|
|
2824
2820
|
var idTokenFilter = {
|
|
2825
2821
|
homeAccountId: account.homeAccountId,
|
|
2826
2822
|
environment: account.environment,
|
|
@@ -2835,7 +2831,10 @@ var CacheManager = /** @class */ (function () {
|
|
|
2835
2831
|
return null;
|
|
2836
2832
|
}
|
|
2837
2833
|
else if (numIdTokens > 1) {
|
|
2838
|
-
|
|
2834
|
+
idTokens.forEach(function (idToken) {
|
|
2835
|
+
_this.removeItem(idToken.generateCredentialKey());
|
|
2836
|
+
});
|
|
2837
|
+
return null;
|
|
2839
2838
|
}
|
|
2840
2839
|
return idTokens[0];
|
|
2841
2840
|
};
|
|
@@ -2847,6 +2846,7 @@ var CacheManager = /** @class */ (function () {
|
|
|
2847
2846
|
* @param authScheme
|
|
2848
2847
|
*/
|
|
2849
2848
|
CacheManager.prototype.readAccessTokenFromCache = function (clientId, account, scopes, authScheme, keyId) {
|
|
2849
|
+
var _this = this;
|
|
2850
2850
|
// Distinguish between Bearer and PoP/SSH token cache types
|
|
2851
2851
|
var credentialType = (authScheme && authScheme !== exports.AuthenticationScheme.BEARER) ? CredentialType.ACCESS_TOKEN_WITH_AUTH_SCHEME : CredentialType.ACCESS_TOKEN;
|
|
2852
2852
|
var accessTokenFilter = {
|
|
@@ -2866,7 +2866,10 @@ var CacheManager = /** @class */ (function () {
|
|
|
2866
2866
|
return null;
|
|
2867
2867
|
}
|
|
2868
2868
|
else if (numAccessTokens > 1) {
|
|
2869
|
-
|
|
2869
|
+
accessTokens.forEach(function (accessToken) {
|
|
2870
|
+
_this.removeItem(accessToken.generateCredentialKey());
|
|
2871
|
+
});
|
|
2872
|
+
return null;
|
|
2870
2873
|
}
|
|
2871
2874
|
return accessTokens[0];
|
|
2872
2875
|
};
|
|
@@ -3166,14 +3169,10 @@ var DefaultStorageClass = /** @class */ (function (_super) {
|
|
|
3166
3169
|
});
|
|
3167
3170
|
});
|
|
3168
3171
|
};
|
|
3169
|
-
DefaultStorageClass.prototype.updateCredentialCacheKey = function () {
|
|
3170
|
-
var notImplErr = "Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.";
|
|
3171
|
-
throw AuthError.createUnexpectedError(notImplErr);
|
|
3172
|
-
};
|
|
3173
3172
|
return DefaultStorageClass;
|
|
3174
3173
|
}(CacheManager));
|
|
3175
3174
|
|
|
3176
|
-
/*! @azure/msal-common v5.1.
|
|
3175
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
3177
3176
|
|
|
3178
3177
|
/*
|
|
3179
3178
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3255,7 +3254,7 @@ function buildAuthOptions(authOptions) {
|
|
|
3255
3254
|
return __assign({ clientCapabilities: [] }, authOptions);
|
|
3256
3255
|
}
|
|
3257
3256
|
|
|
3258
|
-
/*! @azure/msal-common v5.1.
|
|
3257
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
3259
3258
|
|
|
3260
3259
|
/*
|
|
3261
3260
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3275,7 +3274,7 @@ var ServerError = /** @class */ (function (_super) {
|
|
|
3275
3274
|
return ServerError;
|
|
3276
3275
|
}(AuthError));
|
|
3277
3276
|
|
|
3278
|
-
/*! @azure/msal-common v5.1.
|
|
3277
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
3279
3278
|
|
|
3280
3279
|
/*
|
|
3281
3280
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3371,7 +3370,7 @@ var ThrottlingUtils = /** @class */ (function () {
|
|
|
3371
3370
|
return ThrottlingUtils;
|
|
3372
3371
|
}());
|
|
3373
3372
|
|
|
3374
|
-
/*! @azure/msal-common v5.1.
|
|
3373
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
3375
3374
|
|
|
3376
3375
|
/*
|
|
3377
3376
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3420,7 +3419,7 @@ var NetworkManager = /** @class */ (function () {
|
|
|
3420
3419
|
return NetworkManager;
|
|
3421
3420
|
}());
|
|
3422
3421
|
|
|
3423
|
-
/*! @azure/msal-common v5.1.
|
|
3422
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
3424
3423
|
/*
|
|
3425
3424
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3426
3425
|
* Licensed under the MIT License.
|
|
@@ -3431,7 +3430,7 @@ var CcsCredentialType;
|
|
|
3431
3430
|
CcsCredentialType["UPN"] = "UPN";
|
|
3432
3431
|
})(CcsCredentialType || (CcsCredentialType = {}));
|
|
3433
3432
|
|
|
3434
|
-
/*! @azure/msal-common v5.1.
|
|
3433
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
3435
3434
|
|
|
3436
3435
|
/*
|
|
3437
3436
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3520,7 +3519,7 @@ var BaseClient = /** @class */ (function () {
|
|
|
3520
3519
|
return BaseClient;
|
|
3521
3520
|
}());
|
|
3522
3521
|
|
|
3523
|
-
/*! @azure/msal-common v5.1.
|
|
3522
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
3524
3523
|
|
|
3525
3524
|
/*
|
|
3526
3525
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3606,7 +3605,7 @@ var RequestValidator = /** @class */ (function () {
|
|
|
3606
3605
|
return RequestValidator;
|
|
3607
3606
|
}());
|
|
3608
3607
|
|
|
3609
|
-
/*! @azure/msal-common v5.1.
|
|
3608
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
3610
3609
|
|
|
3611
3610
|
/*
|
|
3612
3611
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3946,7 +3945,7 @@ var RequestParameterBuilder = /** @class */ (function () {
|
|
|
3946
3945
|
return RequestParameterBuilder;
|
|
3947
3946
|
}());
|
|
3948
3947
|
|
|
3949
|
-
/*! @azure/msal-common v5.1.
|
|
3948
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
3950
3949
|
|
|
3951
3950
|
/*
|
|
3952
3951
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4011,7 +4010,7 @@ var IdTokenEntity = /** @class */ (function (_super) {
|
|
|
4011
4010
|
return IdTokenEntity;
|
|
4012
4011
|
}(CredentialEntity));
|
|
4013
4012
|
|
|
4014
|
-
/*! @azure/msal-common v5.1.
|
|
4013
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
4015
4014
|
/*
|
|
4016
4015
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4017
4016
|
* Licensed under the MIT License.
|
|
@@ -4061,7 +4060,7 @@ var TimeUtils = /** @class */ (function () {
|
|
|
4061
4060
|
return TimeUtils;
|
|
4062
4061
|
}());
|
|
4063
4062
|
|
|
4064
|
-
/*! @azure/msal-common v5.1.
|
|
4063
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
4065
4064
|
|
|
4066
4065
|
/*
|
|
4067
4066
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4168,7 +4167,7 @@ var AccessTokenEntity = /** @class */ (function (_super) {
|
|
|
4168
4167
|
return AccessTokenEntity;
|
|
4169
4168
|
}(CredentialEntity));
|
|
4170
4169
|
|
|
4171
|
-
/*! @azure/msal-common v5.1.
|
|
4170
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
4172
4171
|
|
|
4173
4172
|
/*
|
|
4174
4173
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4235,7 +4234,7 @@ var RefreshTokenEntity = /** @class */ (function (_super) {
|
|
|
4235
4234
|
return RefreshTokenEntity;
|
|
4236
4235
|
}(CredentialEntity));
|
|
4237
4236
|
|
|
4238
|
-
/*! @azure/msal-common v5.1.
|
|
4237
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
4239
4238
|
|
|
4240
4239
|
/*
|
|
4241
4240
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4299,7 +4298,7 @@ var InteractionRequiredAuthError = /** @class */ (function (_super) {
|
|
|
4299
4298
|
return InteractionRequiredAuthError;
|
|
4300
4299
|
}(AuthError));
|
|
4301
4300
|
|
|
4302
|
-
/*! @azure/msal-common v5.1.
|
|
4301
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
4303
4302
|
/*
|
|
4304
4303
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4305
4304
|
* Licensed under the MIT License.
|
|
@@ -4315,7 +4314,7 @@ var CacheRecord = /** @class */ (function () {
|
|
|
4315
4314
|
return CacheRecord;
|
|
4316
4315
|
}());
|
|
4317
4316
|
|
|
4318
|
-
/*! @azure/msal-common v5.1.
|
|
4317
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
4319
4318
|
|
|
4320
4319
|
/*
|
|
4321
4320
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4386,7 +4385,7 @@ var ProtocolUtils = /** @class */ (function () {
|
|
|
4386
4385
|
return ProtocolUtils;
|
|
4387
4386
|
}());
|
|
4388
4387
|
|
|
4389
|
-
/*! @azure/msal-common v5.1.
|
|
4388
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
4390
4389
|
|
|
4391
4390
|
/*
|
|
4392
4391
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4587,7 +4586,7 @@ var UrlString = /** @class */ (function () {
|
|
|
4587
4586
|
return UrlString;
|
|
4588
4587
|
}());
|
|
4589
4588
|
|
|
4590
|
-
/*! @azure/msal-common v5.1.
|
|
4589
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
4591
4590
|
|
|
4592
4591
|
/*
|
|
4593
4592
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4662,7 +4661,7 @@ var PopTokenGenerator = /** @class */ (function () {
|
|
|
4662
4661
|
return PopTokenGenerator;
|
|
4663
4662
|
}());
|
|
4664
4663
|
|
|
4665
|
-
/*! @azure/msal-common v5.1.
|
|
4664
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
4666
4665
|
|
|
4667
4666
|
/*
|
|
4668
4667
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4732,7 +4731,7 @@ var AppMetadataEntity = /** @class */ (function () {
|
|
|
4732
4731
|
return AppMetadataEntity;
|
|
4733
4732
|
}());
|
|
4734
4733
|
|
|
4735
|
-
/*! @azure/msal-common v5.1.
|
|
4734
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
4736
4735
|
/*
|
|
4737
4736
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4738
4737
|
* Licensed under the MIT License.
|
|
@@ -4768,7 +4767,7 @@ var AppMetadataEntity = /** @class */ (function () {
|
|
|
4768
4767
|
return TokenCacheContext;
|
|
4769
4768
|
}());
|
|
4770
4769
|
|
|
4771
|
-
/*! @azure/msal-common v5.1.
|
|
4770
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
4772
4771
|
|
|
4773
4772
|
/*
|
|
4774
4773
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5032,7 +5031,7 @@ var ResponseHandler = /** @class */ (function () {
|
|
|
5032
5031
|
return ResponseHandler;
|
|
5033
5032
|
}());
|
|
5034
5033
|
|
|
5035
|
-
/*! @azure/msal-common v5.1.
|
|
5034
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
5036
5035
|
|
|
5037
5036
|
/*
|
|
5038
5037
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5316,7 +5315,7 @@ var AuthorizationCodeClient = /** @class */ (function (_super) {
|
|
|
5316
5315
|
if (request.domainHint) {
|
|
5317
5316
|
parameterBuilder.addDomainHint(request.domainHint);
|
|
5318
5317
|
}
|
|
5319
|
-
// Add sid or loginHint with preference for
|
|
5318
|
+
// Add sid or loginHint with preference for sid -> loginHint -> username of AccountInfo object
|
|
5320
5319
|
if (request.prompt !== PromptValue.SELECT_ACCOUNT) {
|
|
5321
5320
|
// AAD will throw if prompt=select_account is passed with an account hint
|
|
5322
5321
|
if (request.sid && request.prompt === PromptValue.NONE) {
|
|
@@ -5326,24 +5325,9 @@ var AuthorizationCodeClient = /** @class */ (function (_super) {
|
|
|
5326
5325
|
}
|
|
5327
5326
|
else if (request.account) {
|
|
5328
5327
|
var accountSid = this.extractAccountSid(request.account);
|
|
5329
|
-
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account");
|
|
5333
|
-
parameterBuilder.addLoginHint(accountLoginHintClaim);
|
|
5334
|
-
try {
|
|
5335
|
-
var clientInfo = buildClientInfoFromHomeAccountId(request.account.homeAccountId);
|
|
5336
|
-
parameterBuilder.addCcsOid(clientInfo);
|
|
5337
|
-
}
|
|
5338
|
-
catch (e) {
|
|
5339
|
-
this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header");
|
|
5340
|
-
}
|
|
5341
|
-
}
|
|
5342
|
-
else if (accountSid && request.prompt === PromptValue.NONE) {
|
|
5343
|
-
/*
|
|
5344
|
-
* If account and loginHint are provided, we will check account first for sid before adding loginHint
|
|
5345
|
-
* SessionId is only used in silent calls
|
|
5346
|
-
*/
|
|
5328
|
+
// If account and loginHint are provided, we will check account first for sid before adding loginHint
|
|
5329
|
+
if (accountSid && request.prompt === PromptValue.NONE) {
|
|
5330
|
+
// SessionId is only used in silent calls
|
|
5347
5331
|
this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account");
|
|
5348
5332
|
parameterBuilder.addSid(accountSid);
|
|
5349
5333
|
try {
|
|
@@ -5351,7 +5335,7 @@ var AuthorizationCodeClient = /** @class */ (function (_super) {
|
|
|
5351
5335
|
parameterBuilder.addCcsOid(clientInfo);
|
|
5352
5336
|
}
|
|
5353
5337
|
catch (e) {
|
|
5354
|
-
this.logger.verbose("
|
|
5338
|
+
this.logger.verbose("Could not parse home account ID for CCS Header: " + e);
|
|
5355
5339
|
}
|
|
5356
5340
|
}
|
|
5357
5341
|
else if (request.loginHint) {
|
|
@@ -5368,7 +5352,7 @@ var AuthorizationCodeClient = /** @class */ (function (_super) {
|
|
|
5368
5352
|
parameterBuilder.addCcsOid(clientInfo);
|
|
5369
5353
|
}
|
|
5370
5354
|
catch (e) {
|
|
5371
|
-
this.logger.verbose("
|
|
5355
|
+
this.logger.verbose("Could not parse home account ID for CCS Header: " + e);
|
|
5372
5356
|
}
|
|
5373
5357
|
}
|
|
5374
5358
|
}
|
|
@@ -5423,17 +5407,16 @@ var AuthorizationCodeClient = /** @class */ (function (_super) {
|
|
|
5423
5407
|
* @param account
|
|
5424
5408
|
*/
|
|
5425
5409
|
AuthorizationCodeClient.prototype.extractAccountSid = function (account) {
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
return ((_a = account.idTokenClaims) === null || _a === void 0 ? void 0 : _a["login_hint"]) || null;
|
|
5410
|
+
if (account.idTokenClaims) {
|
|
5411
|
+
var tokenClaims = account.idTokenClaims;
|
|
5412
|
+
return tokenClaims.sid || null;
|
|
5413
|
+
}
|
|
5414
|
+
return null;
|
|
5432
5415
|
};
|
|
5433
5416
|
return AuthorizationCodeClient;
|
|
5434
5417
|
}(BaseClient));
|
|
5435
5418
|
|
|
5436
|
-
/*! @azure/msal-common v5.1.
|
|
5419
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
5437
5420
|
|
|
5438
5421
|
/*
|
|
5439
5422
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5644,7 +5627,7 @@ var RefreshTokenClient = /** @class */ (function (_super) {
|
|
|
5644
5627
|
return RefreshTokenClient;
|
|
5645
5628
|
}(BaseClient));
|
|
5646
5629
|
|
|
5647
|
-
/*! @azure/msal-common v5.1.
|
|
5630
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
5648
5631
|
|
|
5649
5632
|
/*
|
|
5650
5633
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5767,7 +5750,7 @@ var SilentFlowClient = /** @class */ (function (_super) {
|
|
|
5767
5750
|
return SilentFlowClient;
|
|
5768
5751
|
}(BaseClient));
|
|
5769
5752
|
|
|
5770
|
-
/*! @azure/msal-common v5.1.
|
|
5753
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
5771
5754
|
/*
|
|
5772
5755
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5773
5756
|
* Licensed under the MIT License.
|
|
@@ -5778,7 +5761,7 @@ function isOpenIdConfigResponse(response) {
|
|
|
5778
5761
|
response.hasOwnProperty("issuer"));
|
|
5779
5762
|
}
|
|
5780
5763
|
|
|
5781
|
-
/*! @azure/msal-common v5.1.
|
|
5764
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
5782
5765
|
/*
|
|
5783
5766
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5784
5767
|
* Licensed under the MIT License.
|
|
@@ -5792,7 +5775,7 @@ exports.ProtocolMode = void 0;
|
|
|
5792
5775
|
ProtocolMode["OIDC"] = "OIDC";
|
|
5793
5776
|
})(exports.ProtocolMode || (exports.ProtocolMode = {}));
|
|
5794
5777
|
|
|
5795
|
-
/*! @azure/msal-common v5.1.
|
|
5778
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
5796
5779
|
|
|
5797
5780
|
/*
|
|
5798
5781
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5867,7 +5850,7 @@ var AuthorityMetadataEntity = /** @class */ (function () {
|
|
|
5867
5850
|
return AuthorityMetadataEntity;
|
|
5868
5851
|
}());
|
|
5869
5852
|
|
|
5870
|
-
/*! @azure/msal-common v5.1.
|
|
5853
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
5871
5854
|
/*
|
|
5872
5855
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5873
5856
|
* Licensed under the MIT License.
|
|
@@ -5877,7 +5860,7 @@ function isCloudInstanceDiscoveryResponse(response) {
|
|
|
5877
5860
|
response.hasOwnProperty("metadata"));
|
|
5878
5861
|
}
|
|
5879
5862
|
|
|
5880
|
-
/*! @azure/msal-common v5.1.
|
|
5863
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
5881
5864
|
|
|
5882
5865
|
/*
|
|
5883
5866
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5991,7 +5974,7 @@ var RegionDiscovery = /** @class */ (function () {
|
|
|
5991
5974
|
return RegionDiscovery;
|
|
5992
5975
|
}());
|
|
5993
5976
|
|
|
5994
|
-
/*! @azure/msal-common v5.1.
|
|
5977
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
5995
5978
|
|
|
5996
5979
|
/*
|
|
5997
5980
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6557,7 +6540,7 @@ var Authority = /** @class */ (function () {
|
|
|
6557
6540
|
return Authority;
|
|
6558
6541
|
}());
|
|
6559
6542
|
|
|
6560
|
-
/*! @azure/msal-common v5.1.
|
|
6543
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
6561
6544
|
|
|
6562
6545
|
/*
|
|
6563
6546
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6618,7 +6601,7 @@ var AuthorityFactory = /** @class */ (function () {
|
|
|
6618
6601
|
return AuthorityFactory;
|
|
6619
6602
|
}());
|
|
6620
6603
|
|
|
6621
|
-
/*! @azure/msal-common v5.1.
|
|
6604
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
6622
6605
|
|
|
6623
6606
|
/*
|
|
6624
6607
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6649,7 +6632,7 @@ var ServerTelemetryEntity = /** @class */ (function () {
|
|
|
6649
6632
|
return ServerTelemetryEntity;
|
|
6650
6633
|
}());
|
|
6651
6634
|
|
|
6652
|
-
/*! @azure/msal-common v5.1.
|
|
6635
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
6653
6636
|
|
|
6654
6637
|
/*
|
|
6655
6638
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6677,7 +6660,7 @@ var ThrottlingEntity = /** @class */ (function () {
|
|
|
6677
6660
|
return ThrottlingEntity;
|
|
6678
6661
|
}());
|
|
6679
6662
|
|
|
6680
|
-
/*! @azure/msal-common v5.1.
|
|
6663
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
6681
6664
|
|
|
6682
6665
|
/*
|
|
6683
6666
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6694,7 +6677,7 @@ var StubbedNetworkModule = {
|
|
|
6694
6677
|
}
|
|
6695
6678
|
};
|
|
6696
6679
|
|
|
6697
|
-
/*! @azure/msal-common v5.1.
|
|
6680
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
6698
6681
|
|
|
6699
6682
|
/*
|
|
6700
6683
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6753,7 +6736,7 @@ var AuthenticationHeaderParser = /** @class */ (function () {
|
|
|
6753
6736
|
return AuthenticationHeaderParser;
|
|
6754
6737
|
}());
|
|
6755
6738
|
|
|
6756
|
-
/*! @azure/msal-common v5.1.
|
|
6739
|
+
/*! @azure/msal-common v5.1.3 2023-08-24 */
|
|
6757
6740
|
|
|
6758
6741
|
/*
|
|
6759
6742
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8890,7 +8873,7 @@ var EventMessageUtils = /** @class */ (function () {
|
|
|
8890
8873
|
|
|
8891
8874
|
/* eslint-disable header/header */
|
|
8892
8875
|
var name = "@azure/msal-browser";
|
|
8893
|
-
var version = "2.19.
|
|
8876
|
+
var version = "2.19.3";
|
|
8894
8877
|
|
|
8895
8878
|
/*
|
|
8896
8879
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -10491,25 +10474,6 @@ var BrowserCacheManager = /** @class */ (function (_super) {
|
|
|
10491
10474
|
}
|
|
10492
10475
|
return null;
|
|
10493
10476
|
};
|
|
10494
|
-
/**
|
|
10495
|
-
* Updates a credential's cache key if the current cache key is outdated
|
|
10496
|
-
*/
|
|
10497
|
-
BrowserCacheManager.prototype.updateCredentialCacheKey = function (currentCacheKey, credential) {
|
|
10498
|
-
var updatedCacheKey = credential.generateCredentialKey();
|
|
10499
|
-
if (currentCacheKey !== updatedCacheKey) {
|
|
10500
|
-
var cacheItem = this.getItem(currentCacheKey);
|
|
10501
|
-
if (cacheItem) {
|
|
10502
|
-
this.removeItem(currentCacheKey);
|
|
10503
|
-
this.setItem(updatedCacheKey, cacheItem);
|
|
10504
|
-
this.logger.verbose("Updated an outdated " + credential.credentialType + " cache key");
|
|
10505
|
-
return updatedCacheKey;
|
|
10506
|
-
}
|
|
10507
|
-
else {
|
|
10508
|
-
this.logger.error("Attempted to update an outdated " + credential.credentialType + " cache key but no item matching the outdated key was found in storage");
|
|
10509
|
-
}
|
|
10510
|
-
}
|
|
10511
|
-
return currentCacheKey;
|
|
10512
|
-
};
|
|
10513
10477
|
return BrowserCacheManager;
|
|
10514
10478
|
}(CacheManager));
|
|
10515
10479
|
var DEFAULT_BROWSER_CACHE_MANAGER = function (clientId, logger) {
|