@azure/msal-browser 3.19.0 → 3.19.1
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/dist/app/IPublicClientApplication.mjs +1 -1
- package/dist/app/PublicClientApplication.mjs +1 -1
- package/dist/app/PublicClientNext.mjs +1 -1
- package/dist/broker/nativeBroker/NativeMessageHandler.mjs +1 -1
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
- package/dist/cache/AccountManager.mjs +1 -1
- package/dist/cache/AsyncMemoryStorage.mjs +1 -1
- package/dist/cache/BrowserCacheManager.mjs +1 -1
- package/dist/cache/BrowserStorage.mjs +1 -1
- package/dist/cache/DatabaseStorage.mjs +1 -1
- package/dist/cache/MemoryStorage.mjs +1 -1
- package/dist/cache/TokenCache.mjs +1 -1
- package/dist/config/Configuration.mjs +1 -1
- package/dist/controllers/ControllerFactory.mjs +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +1 -1
- package/dist/controllers/StandardController.mjs +1 -1
- package/dist/controllers/UnknownOperatingContextController.mjs +1 -1
- package/dist/crypto/BrowserCrypto.mjs +1 -1
- package/dist/crypto/CryptoOps.mjs +1 -1
- package/dist/crypto/PkceGenerator.mjs +1 -1
- package/dist/crypto/SignedHttpRequest.mjs +1 -1
- package/dist/encode/Base64Decode.mjs +1 -1
- package/dist/encode/Base64Encode.mjs +1 -1
- package/dist/error/BrowserAuthError.mjs +1 -1
- package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
- package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
- package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
- package/dist/error/NativeAuthError.mjs +1 -1
- package/dist/error/NativeAuthErrorCodes.mjs +1 -1
- package/dist/error/NestedAppAuthError.mjs +1 -1
- package/dist/event/EventHandler.mjs +1 -1
- package/dist/event/EventMessage.mjs +1 -1
- package/dist/event/EventType.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/dist/interaction_client/NativeInteractionClient.mjs +1 -1
- package/dist/interaction_client/PopupClient.mjs +1 -1
- package/dist/interaction_client/RedirectClient.mjs +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
- package/dist/interaction_client/SilentCacheClient.mjs +1 -1
- package/dist/interaction_client/SilentIframeClient.mjs +1 -1
- package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
- package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
- package/dist/interaction_handler/InteractionHandler.mjs +1 -1
- package/dist/interaction_handler/RedirectHandler.mjs +1 -1
- package/dist/interaction_handler/SilentHandler.mjs +1 -1
- package/dist/naa/BridgeError.mjs +1 -1
- package/dist/naa/BridgeProxy.mjs +1 -1
- package/dist/naa/BridgeStatusCode.mjs +1 -1
- package/dist/naa/mapping/NestedAppAuthAdapter.d.ts.map +1 -1
- package/dist/naa/mapping/NestedAppAuthAdapter.mjs +3 -3
- package/dist/naa/mapping/NestedAppAuthAdapter.mjs.map +1 -1
- package/dist/navigation/NavigationClient.mjs +1 -1
- package/dist/network/FetchClient.mjs +1 -1
- package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
- package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
- package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/dist/operatingcontext/UnknownOperatingContext.mjs +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/request/RequestHelpers.mjs +1 -1
- package/dist/response/ResponseHandler.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
- package/dist/utils/BrowserConstants.mjs +1 -1
- package/dist/utils/BrowserProtocolUtils.mjs +1 -1
- package/dist/utils/BrowserUtils.mjs +1 -1
- package/lib/msal-browser.cjs +107 -97
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +107 -97
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +60 -60
- package/package.json +2 -2
- package/src/naa/mapping/NestedAppAuthAdapter.ts +4 -2
- package/src/packageMetadata.ts +1 -1
package/lib/msal-browser.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @azure/msal-browser v3.19.
|
|
1
|
+
/*! @azure/msal-browser v3.19.1 2024-07-16 */
|
|
2
2
|
'use strict';
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
|
-
/*! @azure/msal-common v14.13.
|
|
5
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
6
6
|
/*
|
|
7
7
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8
8
|
* Licensed under the MIT License.
|
|
@@ -311,7 +311,7 @@ const JsonWebTokenTypes = {
|
|
|
311
311
|
// Token renewal offset default in seconds
|
|
312
312
|
const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
|
|
313
313
|
|
|
314
|
-
/*! @azure/msal-common v14.13.
|
|
314
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
315
315
|
/*
|
|
316
316
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
317
317
|
* Licensed under the MIT License.
|
|
@@ -328,7 +328,7 @@ var AuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
328
328
|
unexpectedError: unexpectedError
|
|
329
329
|
});
|
|
330
330
|
|
|
331
|
-
/*! @azure/msal-common v14.13.
|
|
331
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
332
332
|
|
|
333
333
|
/*
|
|
334
334
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -377,7 +377,7 @@ function createAuthError(code, additionalMessage) {
|
|
|
377
377
|
: AuthErrorMessages[code]);
|
|
378
378
|
}
|
|
379
379
|
|
|
380
|
-
/*! @azure/msal-common v14.13.
|
|
380
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
381
381
|
/*
|
|
382
382
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
383
383
|
* Licensed under the MIT License.
|
|
@@ -475,7 +475,7 @@ var ClientAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
475
475
|
userTimeoutReached: userTimeoutReached
|
|
476
476
|
});
|
|
477
477
|
|
|
478
|
-
/*! @azure/msal-common v14.13.
|
|
478
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
479
479
|
|
|
480
480
|
/*
|
|
481
481
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -727,7 +727,7 @@ function createClientAuthError(errorCode, additionalMessage) {
|
|
|
727
727
|
return new ClientAuthError(errorCode, additionalMessage);
|
|
728
728
|
}
|
|
729
729
|
|
|
730
|
-
/*! @azure/msal-common v14.13.
|
|
730
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
731
731
|
|
|
732
732
|
/*
|
|
733
733
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -788,7 +788,7 @@ function checkMaxAge(authTime, maxAge) {
|
|
|
788
788
|
}
|
|
789
789
|
}
|
|
790
790
|
|
|
791
|
-
/*! @azure/msal-common v14.13.
|
|
791
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
792
792
|
/*
|
|
793
793
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
794
794
|
* Licensed under the MIT License.
|
|
@@ -803,7 +803,7 @@ const AuthorityType = {
|
|
|
803
803
|
Ciam: 3,
|
|
804
804
|
};
|
|
805
805
|
|
|
806
|
-
/*! @azure/msal-common v14.13.
|
|
806
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
807
807
|
/*
|
|
808
808
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
809
809
|
* Licensed under the MIT License.
|
|
@@ -815,7 +815,7 @@ function isOpenIdConfigResponse(response) {
|
|
|
815
815
|
response.hasOwnProperty("jwks_uri"));
|
|
816
816
|
}
|
|
817
817
|
|
|
818
|
-
/*! @azure/msal-common v14.13.
|
|
818
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
819
819
|
/*
|
|
820
820
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
821
821
|
* Licensed under the MIT License.
|
|
@@ -869,7 +869,7 @@ var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
869
869
|
urlParseError: urlParseError
|
|
870
870
|
});
|
|
871
871
|
|
|
872
|
-
/*! @azure/msal-common v14.13.
|
|
872
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
873
873
|
|
|
874
874
|
/*
|
|
875
875
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1007,7 +1007,7 @@ function createClientConfigurationError(errorCode) {
|
|
|
1007
1007
|
return new ClientConfigurationError(errorCode);
|
|
1008
1008
|
}
|
|
1009
1009
|
|
|
1010
|
-
/*! @azure/msal-common v14.13.
|
|
1010
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
1011
1011
|
/*
|
|
1012
1012
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1013
1013
|
* Licensed under the MIT License.
|
|
@@ -1104,7 +1104,7 @@ class StringUtils {
|
|
|
1104
1104
|
}
|
|
1105
1105
|
}
|
|
1106
1106
|
|
|
1107
|
-
/*! @azure/msal-common v14.13.
|
|
1107
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
1108
1108
|
|
|
1109
1109
|
/*
|
|
1110
1110
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1151,7 +1151,7 @@ function getDeserializedResponse(responseString) {
|
|
|
1151
1151
|
return null;
|
|
1152
1152
|
}
|
|
1153
1153
|
|
|
1154
|
-
/*! @azure/msal-common v14.13.
|
|
1154
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
1155
1155
|
|
|
1156
1156
|
/*
|
|
1157
1157
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1315,7 +1315,7 @@ class UrlString {
|
|
|
1315
1315
|
}
|
|
1316
1316
|
}
|
|
1317
1317
|
|
|
1318
|
-
/*! @azure/msal-common v14.13.
|
|
1318
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
1319
1319
|
|
|
1320
1320
|
/*
|
|
1321
1321
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1455,7 +1455,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
1455
1455
|
return null;
|
|
1456
1456
|
}
|
|
1457
1457
|
|
|
1458
|
-
/*! @azure/msal-common v14.13.
|
|
1458
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
1459
1459
|
/*
|
|
1460
1460
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1461
1461
|
* Licensed under the MIT License.
|
|
@@ -1468,7 +1468,7 @@ const ProtocolMode = {
|
|
|
1468
1468
|
OIDC: "OIDC",
|
|
1469
1469
|
};
|
|
1470
1470
|
|
|
1471
|
-
/*! @azure/msal-common v14.13.
|
|
1471
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
1472
1472
|
/*
|
|
1473
1473
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1474
1474
|
* Licensed under the MIT License.
|
|
@@ -1488,7 +1488,7 @@ const AzureCloudInstance = {
|
|
|
1488
1488
|
AzureUsGovernment: "https://login.microsoftonline.us",
|
|
1489
1489
|
};
|
|
1490
1490
|
|
|
1491
|
-
/*! @azure/msal-common v14.13.
|
|
1491
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
1492
1492
|
/*
|
|
1493
1493
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1494
1494
|
* Licensed under the MIT License.
|
|
@@ -1498,7 +1498,7 @@ function isCloudInstanceDiscoveryResponse(response) {
|
|
|
1498
1498
|
response.hasOwnProperty("metadata"));
|
|
1499
1499
|
}
|
|
1500
1500
|
|
|
1501
|
-
/*! @azure/msal-common v14.13.
|
|
1501
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
1502
1502
|
/*
|
|
1503
1503
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1504
1504
|
* Licensed under the MIT License.
|
|
@@ -1508,7 +1508,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
|
1508
1508
|
response.hasOwnProperty("error_description"));
|
|
1509
1509
|
}
|
|
1510
1510
|
|
|
1511
|
-
/*! @azure/msal-common v14.13.
|
|
1511
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
1512
1512
|
/*
|
|
1513
1513
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1514
1514
|
* Licensed under the MIT License.
|
|
@@ -1990,7 +1990,7 @@ const IntFields = new Set([
|
|
|
1990
1990
|
"multiMatchedRT",
|
|
1991
1991
|
]);
|
|
1992
1992
|
|
|
1993
|
-
/*! @azure/msal-common v14.13.
|
|
1993
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
1994
1994
|
/*
|
|
1995
1995
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1996
1996
|
* Licensed under the MIT License.
|
|
@@ -2086,7 +2086,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
|
|
|
2086
2086
|
};
|
|
2087
2087
|
};
|
|
2088
2088
|
|
|
2089
|
-
/*! @azure/msal-common v14.13.
|
|
2089
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
2090
2090
|
|
|
2091
2091
|
/*
|
|
2092
2092
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2195,7 +2195,7 @@ RegionDiscovery.IMDS_OPTIONS = {
|
|
|
2195
2195
|
},
|
|
2196
2196
|
};
|
|
2197
2197
|
|
|
2198
|
-
/*! @azure/msal-common v14.13.
|
|
2198
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
2199
2199
|
/*
|
|
2200
2200
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2201
2201
|
* Licensed under the MIT License.
|
|
@@ -2232,7 +2232,7 @@ function wasClockTurnedBack(cachedAt) {
|
|
|
2232
2232
|
return cachedAtSec > nowSeconds();
|
|
2233
2233
|
}
|
|
2234
2234
|
|
|
2235
|
-
/*! @azure/msal-common v14.13.
|
|
2235
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
2236
2236
|
|
|
2237
2237
|
/*
|
|
2238
2238
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2559,7 +2559,7 @@ function isAuthorityMetadataExpired(metadata) {
|
|
|
2559
2559
|
return metadata.expiresAt <= nowSeconds();
|
|
2560
2560
|
}
|
|
2561
2561
|
|
|
2562
|
-
/*! @azure/msal-common v14.13.
|
|
2562
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
2563
2563
|
|
|
2564
2564
|
/*
|
|
2565
2565
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3398,7 +3398,7 @@ function buildStaticAuthorityOptions(authOptions) {
|
|
|
3398
3398
|
};
|
|
3399
3399
|
}
|
|
3400
3400
|
|
|
3401
|
-
/*! @azure/msal-common v14.13.
|
|
3401
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
3402
3402
|
|
|
3403
3403
|
/*
|
|
3404
3404
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3429,7 +3429,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
|
|
|
3429
3429
|
}
|
|
3430
3430
|
}
|
|
3431
3431
|
|
|
3432
|
-
/*! @azure/msal-common v14.13.
|
|
3432
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
3433
3433
|
/*
|
|
3434
3434
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3435
3435
|
* Licensed under the MIT License.
|
|
@@ -3447,7 +3447,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint) {
|
|
|
3447
3447
|
}
|
|
3448
3448
|
}
|
|
3449
3449
|
|
|
3450
|
-
/*! @azure/msal-common v14.13.
|
|
3450
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
3451
3451
|
/*
|
|
3452
3452
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3453
3453
|
* Licensed under the MIT License.
|
|
@@ -3494,7 +3494,7 @@ const SID = "sid";
|
|
|
3494
3494
|
const LOGIN_HINT = "login_hint";
|
|
3495
3495
|
const DOMAIN_HINT = "domain_hint";
|
|
3496
3496
|
|
|
3497
|
-
/*! @azure/msal-common v14.13.
|
|
3497
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
3498
3498
|
|
|
3499
3499
|
/*
|
|
3500
3500
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3533,7 +3533,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
|
|
|
3533
3533
|
},
|
|
3534
3534
|
};
|
|
3535
3535
|
|
|
3536
|
-
/*! @azure/msal-common v14.13.
|
|
3536
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
3537
3537
|
|
|
3538
3538
|
/*
|
|
3539
3539
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3724,12 +3724,12 @@ class Logger {
|
|
|
3724
3724
|
}
|
|
3725
3725
|
}
|
|
3726
3726
|
|
|
3727
|
-
/*! @azure/msal-common v14.13.
|
|
3727
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
3728
3728
|
/* eslint-disable header/header */
|
|
3729
3729
|
const name$1 = "@azure/msal-common";
|
|
3730
|
-
const version$1 = "14.13.
|
|
3730
|
+
const version$1 = "14.13.1";
|
|
3731
3731
|
|
|
3732
|
-
/*! @azure/msal-common v14.13.
|
|
3732
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
3733
3733
|
|
|
3734
3734
|
/*
|
|
3735
3735
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3929,7 +3929,7 @@ class ScopeSet {
|
|
|
3929
3929
|
}
|
|
3930
3930
|
}
|
|
3931
3931
|
|
|
3932
|
-
/*! @azure/msal-common v14.13.
|
|
3932
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
3933
3933
|
|
|
3934
3934
|
/*
|
|
3935
3935
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3969,7 +3969,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
|
|
|
3969
3969
|
};
|
|
3970
3970
|
}
|
|
3971
3971
|
|
|
3972
|
-
/*! @azure/msal-common v14.13.
|
|
3972
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
3973
3973
|
/*
|
|
3974
3974
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3975
3975
|
* Licensed under the MIT License.
|
|
@@ -3985,21 +3985,38 @@ function tenantIdMatchesHomeTenant(tenantId, homeAccountId) {
|
|
|
3985
3985
|
!!homeAccountId &&
|
|
3986
3986
|
tenantId === homeAccountId.split(".")[1]);
|
|
3987
3987
|
}
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
3988
|
+
/**
|
|
3989
|
+
* Build tenant profile
|
|
3990
|
+
* @param homeAccountId - Home account identifier for this account object
|
|
3991
|
+
* @param localAccountId - Local account identifer for this account object
|
|
3992
|
+
* @param tenantId - Full tenant or organizational id that this account belongs to
|
|
3993
|
+
* @param idTokenClaims - Claims from the ID token
|
|
3994
|
+
* @returns
|
|
3995
|
+
*/
|
|
3996
|
+
function buildTenantProfile(homeAccountId, localAccountId, tenantId, idTokenClaims) {
|
|
3997
|
+
if (idTokenClaims) {
|
|
3998
|
+
const { oid, sub, tid, name, tfp, acr } = idTokenClaims;
|
|
3999
|
+
/**
|
|
4000
|
+
* Since there is no way to determine if the authority is AAD or B2C, we exhaust all the possible claims that can serve as tenant ID with the following precedence:
|
|
4001
|
+
* tid - TenantID claim that identifies the tenant that issued the token in AAD. Expected in all AAD ID tokens, not present in B2C ID Tokens.
|
|
4002
|
+
* tfp - Trust Framework Policy claim that identifies the policy that was used to authenticate the user. Functions as tenant for B2C scenarios.
|
|
4003
|
+
* acr - Authentication Context Class Reference claim used only with older B2C policies. Fallback in case tfp is not present, but likely won't be present anyway.
|
|
4004
|
+
*/
|
|
4005
|
+
const tenantId = tid || tfp || acr || "";
|
|
4006
|
+
return {
|
|
4007
|
+
tenantId: tenantId,
|
|
4008
|
+
localAccountId: oid || sub || "",
|
|
4009
|
+
name: name,
|
|
4010
|
+
isHomeTenant: tenantIdMatchesHomeTenant(tenantId, homeAccountId),
|
|
4011
|
+
};
|
|
4012
|
+
}
|
|
4013
|
+
else {
|
|
4014
|
+
return {
|
|
4015
|
+
tenantId,
|
|
4016
|
+
localAccountId,
|
|
4017
|
+
isHomeTenant: tenantIdMatchesHomeTenant(tenantId, homeAccountId),
|
|
4018
|
+
};
|
|
4019
|
+
}
|
|
4003
4020
|
}
|
|
4004
4021
|
/**
|
|
4005
4022
|
* Replaces account info that varies by tenant profile sourced from the ID token claims passed in with the tenant-specific account info
|
|
@@ -4019,7 +4036,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
|
|
|
4019
4036
|
if (idTokenClaims) {
|
|
4020
4037
|
// Ignore isHomeTenant, loginHint, and sid which are part of tenant profile but not base account info
|
|
4021
4038
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4022
|
-
const { isHomeTenant, ...claimsSourcedTenantProfile } =
|
|
4039
|
+
const { isHomeTenant, ...claimsSourcedTenantProfile } = buildTenantProfile(baseAccountInfo.homeAccountId, baseAccountInfo.localAccountId, baseAccountInfo.tenantId, idTokenClaims);
|
|
4023
4040
|
updatedAccountInfo = {
|
|
4024
4041
|
...updatedAccountInfo,
|
|
4025
4042
|
...claimsSourcedTenantProfile,
|
|
@@ -4031,7 +4048,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
|
|
|
4031
4048
|
return updatedAccountInfo;
|
|
4032
4049
|
}
|
|
4033
4050
|
|
|
4034
|
-
/*! @azure/msal-common v14.13.
|
|
4051
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
4035
4052
|
/*
|
|
4036
4053
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4037
4054
|
* Licensed under the MIT License.
|
|
@@ -4053,7 +4070,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
|
|
|
4053
4070
|
return null;
|
|
4054
4071
|
}
|
|
4055
4072
|
|
|
4056
|
-
/*! @azure/msal-common v14.13.
|
|
4073
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
4057
4074
|
|
|
4058
4075
|
/*
|
|
4059
4076
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4197,12 +4214,8 @@ class AccountEntity {
|
|
|
4197
4214
|
account.tenantProfiles = accountDetails.tenantProfiles;
|
|
4198
4215
|
}
|
|
4199
4216
|
else {
|
|
4200
|
-
const
|
|
4201
|
-
|
|
4202
|
-
const tenantProfile = buildTenantProfileFromIdTokenClaims(accountDetails.homeAccountId, accountDetails.idTokenClaims);
|
|
4203
|
-
tenantProfiles.push(tenantProfile);
|
|
4204
|
-
}
|
|
4205
|
-
account.tenantProfiles = tenantProfiles;
|
|
4217
|
+
const tenantProfile = buildTenantProfile(accountDetails.homeAccountId, account.localAccountId, account.realm, accountDetails.idTokenClaims);
|
|
4218
|
+
account.tenantProfiles = [tenantProfile];
|
|
4206
4219
|
}
|
|
4207
4220
|
return account;
|
|
4208
4221
|
}
|
|
@@ -4300,7 +4313,7 @@ class AccountEntity {
|
|
|
4300
4313
|
}
|
|
4301
4314
|
}
|
|
4302
4315
|
|
|
4303
|
-
/*! @azure/msal-common v14.13.
|
|
4316
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
4304
4317
|
/*
|
|
4305
4318
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4306
4319
|
* Licensed under the MIT License.
|
|
@@ -4308,7 +4321,7 @@ class AccountEntity {
|
|
|
4308
4321
|
const cacheQuotaExceededErrorCode = "cache_quota_exceeded";
|
|
4309
4322
|
const cacheUnknownErrorCode = "cache_error_unknown";
|
|
4310
4323
|
|
|
4311
|
-
/*! @azure/msal-common v14.13.
|
|
4324
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
4312
4325
|
|
|
4313
4326
|
/*
|
|
4314
4327
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4335,7 +4348,7 @@ class CacheError extends Error {
|
|
|
4335
4348
|
}
|
|
4336
4349
|
}
|
|
4337
4350
|
|
|
4338
|
-
/*! @azure/msal-common v14.13.
|
|
4351
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
4339
4352
|
|
|
4340
4353
|
/*
|
|
4341
4354
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4403,12 +4416,9 @@ class CacheManager {
|
|
|
4403
4416
|
*/
|
|
4404
4417
|
buildTenantProfiles(cachedAccounts, accountFilter) {
|
|
4405
4418
|
return cachedAccounts.flatMap((accountEntity) => {
|
|
4406
|
-
return this.
|
|
4419
|
+
return this.getTenantProfilesFromAccountEntity(accountEntity, accountFilter?.tenantId, accountFilter);
|
|
4407
4420
|
});
|
|
4408
4421
|
}
|
|
4409
|
-
getAccountInfoForTenantProfiles(accountEntity, accountFilter) {
|
|
4410
|
-
return this.getTenantProfilesFromAccountEntity(accountEntity, accountFilter?.tenantId, accountFilter);
|
|
4411
|
-
}
|
|
4412
4422
|
getTenantedAccountInfoByFilter(accountInfo, tokenKeys, tenantProfile, tenantProfileFilter) {
|
|
4413
4423
|
let tenantedAccountInfo = null;
|
|
4414
4424
|
let idTokenClaims;
|
|
@@ -5590,7 +5600,7 @@ class DefaultStorageClass extends CacheManager {
|
|
|
5590
5600
|
}
|
|
5591
5601
|
}
|
|
5592
5602
|
|
|
5593
|
-
/*! @azure/msal-common v14.13.
|
|
5603
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
5594
5604
|
|
|
5595
5605
|
/*
|
|
5596
5606
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5688,7 +5698,7 @@ function isOidcProtocolMode(config) {
|
|
|
5688
5698
|
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
5689
5699
|
}
|
|
5690
5700
|
|
|
5691
|
-
/*! @azure/msal-common v14.13.
|
|
5701
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
5692
5702
|
|
|
5693
5703
|
/*
|
|
5694
5704
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5707,7 +5717,7 @@ class ServerError extends AuthError {
|
|
|
5707
5717
|
}
|
|
5708
5718
|
}
|
|
5709
5719
|
|
|
5710
|
-
/*! @azure/msal-common v14.13.
|
|
5720
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
5711
5721
|
|
|
5712
5722
|
/*
|
|
5713
5723
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5805,7 +5815,7 @@ class ThrottlingUtils {
|
|
|
5805
5815
|
}
|
|
5806
5816
|
}
|
|
5807
5817
|
|
|
5808
|
-
/*! @azure/msal-common v14.13.
|
|
5818
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
5809
5819
|
|
|
5810
5820
|
/*
|
|
5811
5821
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5842,7 +5852,7 @@ class NetworkManager {
|
|
|
5842
5852
|
}
|
|
5843
5853
|
}
|
|
5844
5854
|
|
|
5845
|
-
/*! @azure/msal-common v14.13.
|
|
5855
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
5846
5856
|
/*
|
|
5847
5857
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5848
5858
|
* Licensed under the MIT License.
|
|
@@ -5852,7 +5862,7 @@ const CcsCredentialType = {
|
|
|
5852
5862
|
UPN: "UPN",
|
|
5853
5863
|
};
|
|
5854
5864
|
|
|
5855
|
-
/*! @azure/msal-common v14.13.
|
|
5865
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
5856
5866
|
|
|
5857
5867
|
/*
|
|
5858
5868
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5919,7 +5929,7 @@ class RequestValidator {
|
|
|
5919
5929
|
}
|
|
5920
5930
|
}
|
|
5921
5931
|
|
|
5922
|
-
/*! @azure/msal-common v14.13.
|
|
5932
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
5923
5933
|
|
|
5924
5934
|
/*
|
|
5925
5935
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6304,7 +6314,7 @@ class RequestParameterBuilder {
|
|
|
6304
6314
|
}
|
|
6305
6315
|
}
|
|
6306
6316
|
|
|
6307
|
-
/*! @azure/msal-common v14.13.
|
|
6317
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
6308
6318
|
|
|
6309
6319
|
/*
|
|
6310
6320
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6407,7 +6417,7 @@ class BaseClient {
|
|
|
6407
6417
|
}
|
|
6408
6418
|
}
|
|
6409
6419
|
|
|
6410
|
-
/*! @azure/msal-common v14.13.
|
|
6420
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
6411
6421
|
/*
|
|
6412
6422
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6413
6423
|
* Licensed under the MIT License.
|
|
@@ -6433,7 +6443,7 @@ var InteractionRequiredAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
6433
6443
|
refreshTokenExpired: refreshTokenExpired
|
|
6434
6444
|
});
|
|
6435
6445
|
|
|
6436
|
-
/*! @azure/msal-common v14.13.
|
|
6446
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
6437
6447
|
|
|
6438
6448
|
/*
|
|
6439
6449
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6521,7 +6531,7 @@ function createInteractionRequiredAuthError(errorCode) {
|
|
|
6521
6531
|
return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
|
|
6522
6532
|
}
|
|
6523
6533
|
|
|
6524
|
-
/*! @azure/msal-common v14.13.
|
|
6534
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
6525
6535
|
|
|
6526
6536
|
/*
|
|
6527
6537
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6593,7 +6603,7 @@ class ProtocolUtils {
|
|
|
6593
6603
|
}
|
|
6594
6604
|
}
|
|
6595
6605
|
|
|
6596
|
-
/*! @azure/msal-common v14.13.
|
|
6606
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
6597
6607
|
|
|
6598
6608
|
/*
|
|
6599
6609
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6677,7 +6687,7 @@ class PopTokenGenerator {
|
|
|
6677
6687
|
}
|
|
6678
6688
|
}
|
|
6679
6689
|
|
|
6680
|
-
/*! @azure/msal-common v14.13.
|
|
6690
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
6681
6691
|
/*
|
|
6682
6692
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6683
6693
|
* Licensed under the MIT License.
|
|
@@ -6704,7 +6714,7 @@ class PopTokenGenerator {
|
|
|
6704
6714
|
}
|
|
6705
6715
|
}
|
|
6706
6716
|
|
|
6707
|
-
/*! @azure/msal-common v14.13.
|
|
6717
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
6708
6718
|
|
|
6709
6719
|
/*
|
|
6710
6720
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7069,19 +7079,19 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
|
|
|
7069
7079
|
nativeAccountId: nativeAccountId,
|
|
7070
7080
|
}, authority, base64Decode);
|
|
7071
7081
|
const tenantProfiles = baseAccount.tenantProfiles || [];
|
|
7072
|
-
|
|
7073
|
-
|
|
7082
|
+
const tenantId = claimsTenantId || baseAccount.realm;
|
|
7083
|
+
if (tenantId &&
|
|
7074
7084
|
!tenantProfiles.find((tenantProfile) => {
|
|
7075
|
-
return tenantProfile.tenantId ===
|
|
7085
|
+
return tenantProfile.tenantId === tenantId;
|
|
7076
7086
|
})) {
|
|
7077
|
-
const newTenantProfile =
|
|
7087
|
+
const newTenantProfile = buildTenantProfile(homeAccountId, baseAccount.localAccountId, tenantId, idTokenClaims);
|
|
7078
7088
|
tenantProfiles.push(newTenantProfile);
|
|
7079
7089
|
}
|
|
7080
7090
|
baseAccount.tenantProfiles = tenantProfiles;
|
|
7081
7091
|
return baseAccount;
|
|
7082
7092
|
}
|
|
7083
7093
|
|
|
7084
|
-
/*! @azure/msal-common v14.13.
|
|
7094
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
7085
7095
|
|
|
7086
7096
|
/*
|
|
7087
7097
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7504,7 +7514,7 @@ class AuthorizationCodeClient extends BaseClient {
|
|
|
7504
7514
|
}
|
|
7505
7515
|
}
|
|
7506
7516
|
|
|
7507
|
-
/*! @azure/msal-common v14.13.
|
|
7517
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
7508
7518
|
|
|
7509
7519
|
/*
|
|
7510
7520
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7718,7 +7728,7 @@ class RefreshTokenClient extends BaseClient {
|
|
|
7718
7728
|
}
|
|
7719
7729
|
}
|
|
7720
7730
|
|
|
7721
|
-
/*! @azure/msal-common v14.13.
|
|
7731
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
7722
7732
|
|
|
7723
7733
|
/*
|
|
7724
7734
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7854,7 +7864,7 @@ class SilentFlowClient extends BaseClient {
|
|
|
7854
7864
|
}
|
|
7855
7865
|
}
|
|
7856
7866
|
|
|
7857
|
-
/*! @azure/msal-common v14.13.
|
|
7867
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
7858
7868
|
|
|
7859
7869
|
/*
|
|
7860
7870
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7869,7 +7879,7 @@ const StubbedNetworkModule = {
|
|
|
7869
7879
|
},
|
|
7870
7880
|
};
|
|
7871
7881
|
|
|
7872
|
-
/*! @azure/msal-common v14.13.
|
|
7882
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
7873
7883
|
/*
|
|
7874
7884
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7875
7885
|
* Licensed under the MIT License.
|
|
@@ -7877,7 +7887,7 @@ const StubbedNetworkModule = {
|
|
|
7877
7887
|
const missingKidError = "missing_kid_error";
|
|
7878
7888
|
const missingAlgError = "missing_alg_error";
|
|
7879
7889
|
|
|
7880
|
-
/*! @azure/msal-common v14.13.
|
|
7890
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
7881
7891
|
|
|
7882
7892
|
/*
|
|
7883
7893
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7902,7 +7912,7 @@ function createJoseHeaderError(code) {
|
|
|
7902
7912
|
return new JoseHeaderError(code, JoseHeaderErrorMessages[code]);
|
|
7903
7913
|
}
|
|
7904
7914
|
|
|
7905
|
-
/*! @azure/msal-common v14.13.
|
|
7915
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
7906
7916
|
|
|
7907
7917
|
/*
|
|
7908
7918
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7942,7 +7952,7 @@ class JoseHeader {
|
|
|
7942
7952
|
}
|
|
7943
7953
|
}
|
|
7944
7954
|
|
|
7945
|
-
/*! @azure/msal-common v14.13.
|
|
7955
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
7946
7956
|
|
|
7947
7957
|
/*
|
|
7948
7958
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8000,7 +8010,7 @@ class AuthenticationHeaderParser {
|
|
|
8000
8010
|
}
|
|
8001
8011
|
}
|
|
8002
8012
|
|
|
8003
|
-
/*! @azure/msal-common v14.13.
|
|
8013
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
8004
8014
|
|
|
8005
8015
|
/*
|
|
8006
8016
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8204,7 +8214,7 @@ class ServerTelemetryManager {
|
|
|
8204
8214
|
}
|
|
8205
8215
|
}
|
|
8206
8216
|
|
|
8207
|
-
/*! @azure/msal-common v14.13.
|
|
8217
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
8208
8218
|
|
|
8209
8219
|
/*
|
|
8210
8220
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8283,7 +8293,7 @@ class StubPerformanceClient {
|
|
|
8283
8293
|
}
|
|
8284
8294
|
}
|
|
8285
8295
|
|
|
8286
|
-
/*! @azure/msal-common v14.13.
|
|
8296
|
+
/*! @azure/msal-common v14.13.1 2024-07-16 */
|
|
8287
8297
|
|
|
8288
8298
|
/*
|
|
8289
8299
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -10154,7 +10164,7 @@ function buildConfiguration({ auth: userInputAuth, cache: userInputCache, system
|
|
|
10154
10164
|
|
|
10155
10165
|
/* eslint-disable header/header */
|
|
10156
10166
|
const name = "@azure/msal-browser";
|
|
10157
|
-
const version = "3.19.
|
|
10167
|
+
const version = "3.19.1";
|
|
10158
10168
|
|
|
10159
10169
|
/*
|
|
10160
10170
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -17110,7 +17120,7 @@ class NestedAppAuthAdapter {
|
|
|
17110
17120
|
"";
|
|
17111
17121
|
const name = fromAccount.name || effectiveIdTokenClaims?.name;
|
|
17112
17122
|
const tenantProfiles = new Map();
|
|
17113
|
-
const tenantProfile =
|
|
17123
|
+
const tenantProfile = buildTenantProfile(homeAccountId, localAccountId, tenantId, effectiveIdTokenClaims);
|
|
17114
17124
|
tenantProfiles.set(tenantId, tenantProfile);
|
|
17115
17125
|
const account = {
|
|
17116
17126
|
homeAccountId,
|