@azure/msal-browser 4.11.1 → 4.12.0
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.d.ts +1 -0
- package/dist/app/PublicClientApplication.d.ts.map +1 -1
- package/dist/app/PublicClientApplication.mjs +3 -2
- package/dist/app/PublicClientApplication.mjs.map +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.d.ts.map +1 -1
- package/dist/cache/BrowserCacheManager.mjs +13 -2
- package/dist/cache/BrowserCacheManager.mjs.map +1 -1
- package/dist/cache/CacheHelpers.mjs +1 -1
- package/dist/cache/CookieStorage.mjs +1 -1
- package/dist/cache/DatabaseStorage.mjs +1 -1
- package/dist/cache/LocalStorage.mjs +1 -1
- package/dist/cache/MemoryStorage.mjs +1 -1
- package/dist/cache/SessionStorage.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/IController.d.ts +1 -1
- package/dist/controllers/IController.d.ts.map +1 -1
- package/dist/controllers/NestedAppAuthController.d.ts +1 -1
- package/dist/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +4 -2
- package/dist/controllers/NestedAppAuthController.mjs.map +1 -1
- package/dist/controllers/StandardController.d.ts +2 -1
- package/dist/controllers/StandardController.d.ts.map +1 -1
- package/dist/controllers/StandardController.mjs +27 -2
- package/dist/controllers/StandardController.mjs.map +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/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.mjs +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/protocol/Authorize.mjs +1 -1
- 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/dist/utils/MsalFrameStatsUtils.d.ts +3 -0
- package/dist/utils/MsalFrameStatsUtils.d.ts.map +1 -0
- package/dist/utils/MsalFrameStatsUtils.mjs +23 -0
- package/dist/utils/MsalFrameStatsUtils.mjs.map +1 -0
- package/lib/msal-browser.cjs +128 -72
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +128 -72
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +61 -61
- package/lib/types/app/PublicClientApplication.d.ts +1 -0
- package/lib/types/app/PublicClientApplication.d.ts.map +1 -1
- package/lib/types/cache/BrowserCacheManager.d.ts.map +1 -1
- package/lib/types/controllers/IController.d.ts +1 -1
- package/lib/types/controllers/IController.d.ts.map +1 -1
- package/lib/types/controllers/NestedAppAuthController.d.ts +1 -1
- package/lib/types/controllers/NestedAppAuthController.d.ts.map +1 -1
- package/lib/types/controllers/StandardController.d.ts +2 -1
- package/lib/types/controllers/StandardController.d.ts.map +1 -1
- package/lib/types/packageMetadata.d.ts +1 -1
- package/lib/types/utils/MsalFrameStatsUtils.d.ts +3 -0
- package/lib/types/utils/MsalFrameStatsUtils.d.ts.map +1 -0
- package/package.json +3 -2
- package/src/app/PublicClientApplication.ts +2 -1
- package/src/cache/BrowserCacheManager.ts +13 -1
- package/src/controllers/IController.ts +4 -1
- package/src/controllers/NestedAppAuthController.ts +5 -1
- package/src/controllers/StandardController.ts +36 -1
- package/src/packageMetadata.ts +1 -1
- package/src/utils/MsalFrameStatsUtils.ts +32 -0
package/lib/msal-browser.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-browser v4.
|
|
1
|
+
/*! @azure/msal-browser v4.12.0 2025-05-06 */
|
|
2
2
|
'use strict';
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.msal = {}));
|
|
7
7
|
})(this, (function (exports) { 'use strict';
|
|
8
8
|
|
|
9
|
-
/*! @azure/msal-common v15.
|
|
9
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
10
10
|
/*
|
|
11
11
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
12
12
|
* Licensed under the MIT License.
|
|
@@ -309,7 +309,7 @@
|
|
|
309
309
|
// Token renewal offset default in seconds
|
|
310
310
|
const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
|
|
311
311
|
|
|
312
|
-
/*! @azure/msal-common v15.
|
|
312
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
313
313
|
/*
|
|
314
314
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
315
315
|
* Licensed under the MIT License.
|
|
@@ -326,7 +326,7 @@
|
|
|
326
326
|
unexpectedError: unexpectedError
|
|
327
327
|
});
|
|
328
328
|
|
|
329
|
-
/*! @azure/msal-common v15.
|
|
329
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
330
330
|
|
|
331
331
|
/*
|
|
332
332
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -375,7 +375,7 @@
|
|
|
375
375
|
: AuthErrorMessages[code]);
|
|
376
376
|
}
|
|
377
377
|
|
|
378
|
-
/*! @azure/msal-common v15.
|
|
378
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
379
379
|
/*
|
|
380
380
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
381
381
|
* Licensed under the MIT License.
|
|
@@ -473,7 +473,7 @@
|
|
|
473
473
|
userTimeoutReached: userTimeoutReached
|
|
474
474
|
});
|
|
475
475
|
|
|
476
|
-
/*! @azure/msal-common v15.
|
|
476
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
477
477
|
|
|
478
478
|
/*
|
|
479
479
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -725,7 +725,7 @@
|
|
|
725
725
|
return new ClientAuthError(errorCode, additionalMessage);
|
|
726
726
|
}
|
|
727
727
|
|
|
728
|
-
/*! @azure/msal-common v15.
|
|
728
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
729
729
|
|
|
730
730
|
/*
|
|
731
731
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -764,7 +764,7 @@
|
|
|
764
764
|
},
|
|
765
765
|
};
|
|
766
766
|
|
|
767
|
-
/*! @azure/msal-common v15.
|
|
767
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
768
768
|
|
|
769
769
|
/*
|
|
770
770
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -955,12 +955,12 @@
|
|
|
955
955
|
}
|
|
956
956
|
}
|
|
957
957
|
|
|
958
|
-
/*! @azure/msal-common v15.
|
|
958
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
959
959
|
/* eslint-disable header/header */
|
|
960
960
|
const name$1 = "@azure/msal-common";
|
|
961
|
-
const version$1 = "15.
|
|
961
|
+
const version$1 = "15.6.0";
|
|
962
962
|
|
|
963
|
-
/*! @azure/msal-common v15.
|
|
963
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
964
964
|
/*
|
|
965
965
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
966
966
|
* Licensed under the MIT License.
|
|
@@ -980,7 +980,7 @@
|
|
|
980
980
|
AzureUsGovernment: "https://login.microsoftonline.us",
|
|
981
981
|
};
|
|
982
982
|
|
|
983
|
-
/*! @azure/msal-common v15.
|
|
983
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
984
984
|
|
|
985
985
|
/*
|
|
986
986
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1041,7 +1041,7 @@
|
|
|
1041
1041
|
}
|
|
1042
1042
|
}
|
|
1043
1043
|
|
|
1044
|
-
/*! @azure/msal-common v15.
|
|
1044
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
1045
1045
|
/*
|
|
1046
1046
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1047
1047
|
* Licensed under the MIT License.
|
|
@@ -1096,7 +1096,7 @@
|
|
|
1096
1096
|
return cachedAtSec > nowSeconds();
|
|
1097
1097
|
}
|
|
1098
1098
|
|
|
1099
|
-
/*! @azure/msal-common v15.
|
|
1099
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
1100
1100
|
|
|
1101
1101
|
/*
|
|
1102
1102
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1423,7 +1423,7 @@
|
|
|
1423
1423
|
return metadata.expiresAt <= nowSeconds();
|
|
1424
1424
|
}
|
|
1425
1425
|
|
|
1426
|
-
/*! @azure/msal-common v15.
|
|
1426
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
1427
1427
|
/*
|
|
1428
1428
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1429
1429
|
* Licensed under the MIT License.
|
|
@@ -1477,7 +1477,7 @@
|
|
|
1477
1477
|
urlParseError: urlParseError
|
|
1478
1478
|
});
|
|
1479
1479
|
|
|
1480
|
-
/*! @azure/msal-common v15.
|
|
1480
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
1481
1481
|
|
|
1482
1482
|
/*
|
|
1483
1483
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1615,7 +1615,7 @@
|
|
|
1615
1615
|
return new ClientConfigurationError(errorCode);
|
|
1616
1616
|
}
|
|
1617
1617
|
|
|
1618
|
-
/*! @azure/msal-common v15.
|
|
1618
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
1619
1619
|
/*
|
|
1620
1620
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1621
1621
|
* Licensed under the MIT License.
|
|
@@ -1712,7 +1712,7 @@
|
|
|
1712
1712
|
}
|
|
1713
1713
|
}
|
|
1714
1714
|
|
|
1715
|
-
/*! @azure/msal-common v15.
|
|
1715
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
1716
1716
|
|
|
1717
1717
|
/*
|
|
1718
1718
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1903,7 +1903,7 @@
|
|
|
1903
1903
|
}
|
|
1904
1904
|
}
|
|
1905
1905
|
|
|
1906
|
-
/*! @azure/msal-common v15.
|
|
1906
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
1907
1907
|
|
|
1908
1908
|
/*
|
|
1909
1909
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1943,7 +1943,7 @@
|
|
|
1943
1943
|
};
|
|
1944
1944
|
}
|
|
1945
1945
|
|
|
1946
|
-
/*! @azure/msal-common v15.
|
|
1946
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
1947
1947
|
/*
|
|
1948
1948
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1949
1949
|
* Licensed under the MIT License.
|
|
@@ -2022,7 +2022,7 @@
|
|
|
2022
2022
|
return updatedAccountInfo;
|
|
2023
2023
|
}
|
|
2024
2024
|
|
|
2025
|
-
/*! @azure/msal-common v15.
|
|
2025
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
2026
2026
|
/*
|
|
2027
2027
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2028
2028
|
* Licensed under the MIT License.
|
|
@@ -2037,7 +2037,7 @@
|
|
|
2037
2037
|
Ciam: 3,
|
|
2038
2038
|
};
|
|
2039
2039
|
|
|
2040
|
-
/*! @azure/msal-common v15.
|
|
2040
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
2041
2041
|
/*
|
|
2042
2042
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2043
2043
|
* Licensed under the MIT License.
|
|
@@ -2059,7 +2059,7 @@
|
|
|
2059
2059
|
return null;
|
|
2060
2060
|
}
|
|
2061
2061
|
|
|
2062
|
-
/*! @azure/msal-common v15.
|
|
2062
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
2063
2063
|
/*
|
|
2064
2064
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2065
2065
|
* Licensed under the MIT License.
|
|
@@ -2083,7 +2083,7 @@
|
|
|
2083
2083
|
EAR: "EAR",
|
|
2084
2084
|
};
|
|
2085
2085
|
|
|
2086
|
-
/*! @azure/msal-common v15.
|
|
2086
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
2087
2087
|
|
|
2088
2088
|
/*
|
|
2089
2089
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2326,7 +2326,7 @@
|
|
|
2326
2326
|
}
|
|
2327
2327
|
}
|
|
2328
2328
|
|
|
2329
|
-
/*! @azure/msal-common v15.
|
|
2329
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
2330
2330
|
|
|
2331
2331
|
/*
|
|
2332
2332
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2391,7 +2391,7 @@
|
|
|
2391
2391
|
return queryParameterArray.join("&");
|
|
2392
2392
|
}
|
|
2393
2393
|
|
|
2394
|
-
/*! @azure/msal-common v15.
|
|
2394
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
2395
2395
|
|
|
2396
2396
|
/*
|
|
2397
2397
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2555,7 +2555,7 @@
|
|
|
2555
2555
|
}
|
|
2556
2556
|
}
|
|
2557
2557
|
|
|
2558
|
-
/*! @azure/msal-common v15.
|
|
2558
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
2559
2559
|
|
|
2560
2560
|
/*
|
|
2561
2561
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2695,7 +2695,7 @@
|
|
|
2695
2695
|
return null;
|
|
2696
2696
|
}
|
|
2697
2697
|
|
|
2698
|
-
/*! @azure/msal-common v15.
|
|
2698
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
2699
2699
|
/*
|
|
2700
2700
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2701
2701
|
* Licensed under the MIT License.
|
|
@@ -2703,7 +2703,7 @@
|
|
|
2703
2703
|
const cacheQuotaExceededErrorCode = "cache_quota_exceeded";
|
|
2704
2704
|
const cacheUnknownErrorCode = "cache_error_unknown";
|
|
2705
2705
|
|
|
2706
|
-
/*! @azure/msal-common v15.
|
|
2706
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
2707
2707
|
|
|
2708
2708
|
/*
|
|
2709
2709
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2730,7 +2730,7 @@
|
|
|
2730
2730
|
}
|
|
2731
2731
|
}
|
|
2732
2732
|
|
|
2733
|
-
/*! @azure/msal-common v15.
|
|
2733
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
2734
2734
|
|
|
2735
2735
|
/*
|
|
2736
2736
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3915,7 +3915,7 @@
|
|
|
3915
3915
|
}
|
|
3916
3916
|
}
|
|
3917
3917
|
|
|
3918
|
-
/*! @azure/msal-common v15.
|
|
3918
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
3919
3919
|
|
|
3920
3920
|
/*
|
|
3921
3921
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4015,7 +4015,7 @@
|
|
|
4015
4015
|
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
4016
4016
|
}
|
|
4017
4017
|
|
|
4018
|
-
/*! @azure/msal-common v15.
|
|
4018
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
4019
4019
|
/*
|
|
4020
4020
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4021
4021
|
* Licensed under the MIT License.
|
|
@@ -4025,7 +4025,7 @@
|
|
|
4025
4025
|
UPN: "UPN",
|
|
4026
4026
|
};
|
|
4027
4027
|
|
|
4028
|
-
/*! @azure/msal-common v15.
|
|
4028
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
4029
4029
|
/*
|
|
4030
4030
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4031
4031
|
* Licensed under the MIT License.
|
|
@@ -4075,7 +4075,7 @@
|
|
|
4075
4075
|
const EAR_JWK = "ear_jwk";
|
|
4076
4076
|
const EAR_JWE_CRYPTO = "ear_jwe_crypto";
|
|
4077
4077
|
|
|
4078
|
-
/*! @azure/msal-common v15.
|
|
4078
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
4079
4079
|
|
|
4080
4080
|
/*
|
|
4081
4081
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4443,7 +4443,7 @@
|
|
|
4443
4443
|
parameters.set(EAR_JWE_CRYPTO, jweCryptoB64Encoded);
|
|
4444
4444
|
}
|
|
4445
4445
|
|
|
4446
|
-
/*! @azure/msal-common v15.
|
|
4446
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
4447
4447
|
/*
|
|
4448
4448
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4449
4449
|
* Licensed under the MIT License.
|
|
@@ -4455,7 +4455,7 @@
|
|
|
4455
4455
|
response.hasOwnProperty("jwks_uri"));
|
|
4456
4456
|
}
|
|
4457
4457
|
|
|
4458
|
-
/*! @azure/msal-common v15.
|
|
4458
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
4459
4459
|
/*
|
|
4460
4460
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4461
4461
|
* Licensed under the MIT License.
|
|
@@ -4465,7 +4465,7 @@
|
|
|
4465
4465
|
response.hasOwnProperty("metadata"));
|
|
4466
4466
|
}
|
|
4467
4467
|
|
|
4468
|
-
/*! @azure/msal-common v15.
|
|
4468
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
4469
4469
|
/*
|
|
4470
4470
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4471
4471
|
* Licensed under the MIT License.
|
|
@@ -4475,7 +4475,7 @@
|
|
|
4475
4475
|
response.hasOwnProperty("error_description"));
|
|
4476
4476
|
}
|
|
4477
4477
|
|
|
4478
|
-
/*! @azure/msal-common v15.
|
|
4478
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
4479
4479
|
/*
|
|
4480
4480
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4481
4481
|
* Licensed under the MIT License.
|
|
@@ -4988,7 +4988,7 @@
|
|
|
4988
4988
|
"encryptedCacheExpiredCount",
|
|
4989
4989
|
]);
|
|
4990
4990
|
|
|
4991
|
-
/*! @azure/msal-common v15.
|
|
4991
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
4992
4992
|
/*
|
|
4993
4993
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4994
4994
|
* Licensed under the MIT License.
|
|
@@ -5084,7 +5084,7 @@
|
|
|
5084
5084
|
};
|
|
5085
5085
|
};
|
|
5086
5086
|
|
|
5087
|
-
/*! @azure/msal-common v15.
|
|
5087
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
5088
5088
|
|
|
5089
5089
|
/*
|
|
5090
5090
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5193,7 +5193,7 @@
|
|
|
5193
5193
|
},
|
|
5194
5194
|
};
|
|
5195
5195
|
|
|
5196
|
-
/*! @azure/msal-common v15.
|
|
5196
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
5197
5197
|
|
|
5198
5198
|
/*
|
|
5199
5199
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6032,7 +6032,7 @@
|
|
|
6032
6032
|
};
|
|
6033
6033
|
}
|
|
6034
6034
|
|
|
6035
|
-
/*! @azure/msal-common v15.
|
|
6035
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
6036
6036
|
|
|
6037
6037
|
/*
|
|
6038
6038
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6063,7 +6063,7 @@
|
|
|
6063
6063
|
}
|
|
6064
6064
|
}
|
|
6065
6065
|
|
|
6066
|
-
/*! @azure/msal-common v15.
|
|
6066
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
6067
6067
|
|
|
6068
6068
|
/*
|
|
6069
6069
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6082,7 +6082,7 @@
|
|
|
6082
6082
|
}
|
|
6083
6083
|
}
|
|
6084
6084
|
|
|
6085
|
-
/*! @azure/msal-common v15.
|
|
6085
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
6086
6086
|
/*
|
|
6087
6087
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6088
6088
|
* Licensed under the MIT License.
|
|
@@ -6103,7 +6103,7 @@
|
|
|
6103
6103
|
};
|
|
6104
6104
|
}
|
|
6105
6105
|
|
|
6106
|
-
/*! @azure/msal-common v15.
|
|
6106
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
6107
6107
|
|
|
6108
6108
|
/*
|
|
6109
6109
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6190,7 +6190,7 @@
|
|
|
6190
6190
|
}
|
|
6191
6191
|
}
|
|
6192
6192
|
|
|
6193
|
-
/*! @azure/msal-common v15.
|
|
6193
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
6194
6194
|
|
|
6195
6195
|
/*
|
|
6196
6196
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6221,7 +6221,7 @@
|
|
|
6221
6221
|
return new NetworkError(error, httpStatus, responseHeaders);
|
|
6222
6222
|
}
|
|
6223
6223
|
|
|
6224
|
-
/*! @azure/msal-common v15.
|
|
6224
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
6225
6225
|
|
|
6226
6226
|
/*
|
|
6227
6227
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6369,7 +6369,7 @@
|
|
|
6369
6369
|
}
|
|
6370
6370
|
}
|
|
6371
6371
|
|
|
6372
|
-
/*! @azure/msal-common v15.
|
|
6372
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
6373
6373
|
/*
|
|
6374
6374
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6375
6375
|
* Licensed under the MIT License.
|
|
@@ -6395,7 +6395,7 @@
|
|
|
6395
6395
|
refreshTokenExpired: refreshTokenExpired
|
|
6396
6396
|
});
|
|
6397
6397
|
|
|
6398
|
-
/*! @azure/msal-common v15.
|
|
6398
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
6399
6399
|
|
|
6400
6400
|
/*
|
|
6401
6401
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6483,7 +6483,7 @@
|
|
|
6483
6483
|
return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
|
|
6484
6484
|
}
|
|
6485
6485
|
|
|
6486
|
-
/*! @azure/msal-common v15.
|
|
6486
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
6487
6487
|
|
|
6488
6488
|
/*
|
|
6489
6489
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6555,7 +6555,7 @@
|
|
|
6555
6555
|
}
|
|
6556
6556
|
}
|
|
6557
6557
|
|
|
6558
|
-
/*! @azure/msal-common v15.
|
|
6558
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
6559
6559
|
|
|
6560
6560
|
/*
|
|
6561
6561
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6639,7 +6639,7 @@
|
|
|
6639
6639
|
}
|
|
6640
6640
|
}
|
|
6641
6641
|
|
|
6642
|
-
/*! @azure/msal-common v15.
|
|
6642
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
6643
6643
|
/*
|
|
6644
6644
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6645
6645
|
* Licensed under the MIT License.
|
|
@@ -6666,7 +6666,7 @@
|
|
|
6666
6666
|
}
|
|
6667
6667
|
}
|
|
6668
6668
|
|
|
6669
|
-
/*! @azure/msal-common v15.
|
|
6669
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
6670
6670
|
|
|
6671
6671
|
/*
|
|
6672
6672
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6997,7 +6997,7 @@
|
|
|
6997
6997
|
return baseAccount;
|
|
6998
6998
|
}
|
|
6999
6999
|
|
|
7000
|
-
/*! @azure/msal-common v15.
|
|
7000
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
7001
7001
|
|
|
7002
7002
|
/*
|
|
7003
7003
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7064,7 +7064,7 @@
|
|
|
7064
7064
|
}
|
|
7065
7065
|
}
|
|
7066
7066
|
|
|
7067
|
-
/*! @azure/msal-common v15.
|
|
7067
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
7068
7068
|
/*
|
|
7069
7069
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7070
7070
|
* Licensed under the MIT License.
|
|
@@ -7082,7 +7082,7 @@
|
|
|
7082
7082
|
}
|
|
7083
7083
|
}
|
|
7084
7084
|
|
|
7085
|
-
/*! @azure/msal-common v15.
|
|
7085
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
7086
7086
|
|
|
7087
7087
|
/*
|
|
7088
7088
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7315,7 +7315,7 @@
|
|
|
7315
7315
|
}
|
|
7316
7316
|
}
|
|
7317
7317
|
|
|
7318
|
-
/*! @azure/msal-common v15.
|
|
7318
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
7319
7319
|
|
|
7320
7320
|
/*
|
|
7321
7321
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7524,7 +7524,7 @@
|
|
|
7524
7524
|
}
|
|
7525
7525
|
}
|
|
7526
7526
|
|
|
7527
|
-
/*! @azure/msal-common v15.
|
|
7527
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
7528
7528
|
|
|
7529
7529
|
/*
|
|
7530
7530
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7622,7 +7622,7 @@
|
|
|
7622
7622
|
}
|
|
7623
7623
|
}
|
|
7624
7624
|
|
|
7625
|
-
/*! @azure/msal-common v15.
|
|
7625
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
7626
7626
|
|
|
7627
7627
|
/*
|
|
7628
7628
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7637,7 +7637,7 @@
|
|
|
7637
7637
|
},
|
|
7638
7638
|
};
|
|
7639
7639
|
|
|
7640
|
-
/*! @azure/msal-common v15.
|
|
7640
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
7641
7641
|
|
|
7642
7642
|
/*
|
|
7643
7643
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7861,7 +7861,7 @@
|
|
|
7861
7861
|
return account.idTokenClaims?.login_hint || null;
|
|
7862
7862
|
}
|
|
7863
7863
|
|
|
7864
|
-
/*! @azure/msal-common v15.
|
|
7864
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
7865
7865
|
|
|
7866
7866
|
/*
|
|
7867
7867
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7919,7 +7919,7 @@
|
|
|
7919
7919
|
}
|
|
7920
7920
|
}
|
|
7921
7921
|
|
|
7922
|
-
/*! @azure/msal-common v15.
|
|
7922
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
7923
7923
|
|
|
7924
7924
|
/*
|
|
7925
7925
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8182,7 +8182,7 @@
|
|
|
8182
8182
|
}
|
|
8183
8183
|
}
|
|
8184
8184
|
|
|
8185
|
-
/*! @azure/msal-common v15.
|
|
8185
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
8186
8186
|
/*
|
|
8187
8187
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8188
8188
|
* Licensed under the MIT License.
|
|
@@ -8190,7 +8190,7 @@
|
|
|
8190
8190
|
const missingKidError = "missing_kid_error";
|
|
8191
8191
|
const missingAlgError = "missing_alg_error";
|
|
8192
8192
|
|
|
8193
|
-
/*! @azure/msal-common v15.
|
|
8193
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
8194
8194
|
|
|
8195
8195
|
/*
|
|
8196
8196
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8215,7 +8215,7 @@
|
|
|
8215
8215
|
return new JoseHeaderError(code, JoseHeaderErrorMessages[code]);
|
|
8216
8216
|
}
|
|
8217
8217
|
|
|
8218
|
-
/*! @azure/msal-common v15.
|
|
8218
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
8219
8219
|
|
|
8220
8220
|
/*
|
|
8221
8221
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8255,7 +8255,7 @@
|
|
|
8255
8255
|
}
|
|
8256
8256
|
}
|
|
8257
8257
|
|
|
8258
|
-
/*! @azure/msal-common v15.
|
|
8258
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
8259
8259
|
|
|
8260
8260
|
/*
|
|
8261
8261
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8334,7 +8334,7 @@
|
|
|
8334
8334
|
}
|
|
8335
8335
|
}
|
|
8336
8336
|
|
|
8337
|
-
/*! @azure/msal-common v15.
|
|
8337
|
+
/*! @azure/msal-common v15.6.0 2025-05-06 */
|
|
8338
8338
|
|
|
8339
8339
|
/*
|
|
8340
8340
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -10432,7 +10432,7 @@
|
|
|
10432
10432
|
|
|
10433
10433
|
/* eslint-disable header/header */
|
|
10434
10434
|
const name = "@azure/msal-browser";
|
|
10435
|
-
const version = "4.
|
|
10435
|
+
const version = "4.12.0";
|
|
10436
10436
|
|
|
10437
10437
|
/*
|
|
10438
10438
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -12529,7 +12529,17 @@
|
|
|
12529
12529
|
getInteractionInProgress() {
|
|
12530
12530
|
const key = `${Constants.CACHE_PREFIX}.${TemporaryCacheKeys.INTERACTION_STATUS_KEY}`;
|
|
12531
12531
|
const value = this.getTemporaryCache(key, false);
|
|
12532
|
-
|
|
12532
|
+
try {
|
|
12533
|
+
return value ? JSON.parse(value) : null;
|
|
12534
|
+
}
|
|
12535
|
+
catch (e) {
|
|
12536
|
+
// Remove interaction and other temp keys if interaction status can't be parsed
|
|
12537
|
+
this.logger.error(`Cannot parse interaction status. Removing temporary cache items and clearing url hash. Retrying interaction should fix the error`);
|
|
12538
|
+
this.removeTemporaryItem(key);
|
|
12539
|
+
this.resetRequestCache();
|
|
12540
|
+
clearHash(window);
|
|
12541
|
+
return null;
|
|
12542
|
+
}
|
|
12533
12543
|
}
|
|
12534
12544
|
setInteractionInProgress(inProgress, type = INTERACTION_TYPE.SIGNIN) {
|
|
12535
12545
|
// Ensure we don't overwrite interaction in progress for a different clientId
|
|
@@ -16159,6 +16169,25 @@
|
|
|
16159
16169
|
}
|
|
16160
16170
|
}
|
|
16161
16171
|
|
|
16172
|
+
/*
|
|
16173
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
16174
|
+
* Licensed under the MIT License.
|
|
16175
|
+
*/
|
|
16176
|
+
function collectInstanceStats(currentClientId, performanceEvent, logger) {
|
|
16177
|
+
const frameInstances =
|
|
16178
|
+
// @ts-ignore
|
|
16179
|
+
window.msal?.clientIds || [];
|
|
16180
|
+
const msalInstanceCount = frameInstances.length;
|
|
16181
|
+
const sameClientIdInstanceCount = frameInstances.filter((i) => i === currentClientId).length;
|
|
16182
|
+
if (sameClientIdInstanceCount > 1) {
|
|
16183
|
+
logger.warning("There is already an instance of MSAL.js in the window with the same client id.");
|
|
16184
|
+
}
|
|
16185
|
+
performanceEvent.add({
|
|
16186
|
+
msalInstanceCount: msalInstanceCount,
|
|
16187
|
+
sameClientIdInstanceCount: sameClientIdInstanceCount,
|
|
16188
|
+
});
|
|
16189
|
+
}
|
|
16190
|
+
|
|
16162
16191
|
/*
|
|
16163
16192
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
16164
16193
|
* Licensed under the MIT License.
|
|
@@ -16270,7 +16299,7 @@
|
|
|
16270
16299
|
* Initializer function to perform async startup tasks such as connecting to WAM extension
|
|
16271
16300
|
* @param request {?InitializeApplicationRequest} correlation id
|
|
16272
16301
|
*/
|
|
16273
|
-
async initialize(request) {
|
|
16302
|
+
async initialize(request, isBroker) {
|
|
16274
16303
|
this.logger.trace("initialize called");
|
|
16275
16304
|
if (this.initialized) {
|
|
16276
16305
|
this.logger.info("initialize has already been called, exiting early.");
|
|
@@ -16286,6 +16315,13 @@
|
|
|
16286
16315
|
const allowPlatformBroker = this.config.system.allowPlatformBroker;
|
|
16287
16316
|
const initMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.InitializeClientApplication, initCorrelationId);
|
|
16288
16317
|
this.eventHandler.emitEvent(EventType.INITIALIZE_START);
|
|
16318
|
+
// Broker applications are initialized twice, so we avoid double-counting it
|
|
16319
|
+
if (!isBroker) {
|
|
16320
|
+
try {
|
|
16321
|
+
this.logMultipleInstances(initMeasurement);
|
|
16322
|
+
}
|
|
16323
|
+
catch { }
|
|
16324
|
+
}
|
|
16289
16325
|
await invokeAsync(this.browserStorage.initialize.bind(this.browserStorage), PerformanceEvents.InitializeCache, this.logger, this.performanceClient, initCorrelationId)(initCorrelationId);
|
|
16290
16326
|
if (allowPlatformBroker) {
|
|
16291
16327
|
try {
|
|
@@ -17539,6 +17575,23 @@
|
|
|
17539
17575
|
this.performanceClient.addFields({ usePreGeneratedPkce: !!res }, correlationId);
|
|
17540
17576
|
return res;
|
|
17541
17577
|
}
|
|
17578
|
+
logMultipleInstances(performanceEvent) {
|
|
17579
|
+
const clientId = this.config.auth.clientId;
|
|
17580
|
+
if (!window)
|
|
17581
|
+
return;
|
|
17582
|
+
// @ts-ignore
|
|
17583
|
+
window.msal = window.msal || {};
|
|
17584
|
+
// @ts-ignore
|
|
17585
|
+
window.msal.clientIds = window.msal.clientIds || [];
|
|
17586
|
+
// @ts-ignore
|
|
17587
|
+
const clientIds = window.msal.clientIds;
|
|
17588
|
+
if (clientIds.length > 0) {
|
|
17589
|
+
this.logger.verbose("There is already an instance of MSAL.js in the window.");
|
|
17590
|
+
}
|
|
17591
|
+
// @ts-ignore
|
|
17592
|
+
window.msal.clientIds.push(clientId);
|
|
17593
|
+
collectInstanceStats(clientId, performanceEvent, this.logger);
|
|
17594
|
+
}
|
|
17542
17595
|
}
|
|
17543
17596
|
/**
|
|
17544
17597
|
* Determines whether an error thrown by the refresh token endpoint can be resolved without interaction
|
|
@@ -17825,7 +17878,9 @@
|
|
|
17825
17878
|
* Specific implementation of initialize function for NestedAppAuthController
|
|
17826
17879
|
* @returns
|
|
17827
17880
|
*/
|
|
17828
|
-
async initialize(request
|
|
17881
|
+
async initialize(request,
|
|
17882
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
17883
|
+
isBroker) {
|
|
17829
17884
|
const initCorrelationId = request?.correlationId || createNewGuid();
|
|
17830
17885
|
await this.browserStorage.initialize(initCorrelationId);
|
|
17831
17886
|
return Promise.resolve();
|
|
@@ -18347,6 +18402,7 @@
|
|
|
18347
18402
|
* @param IController Optional parameter to explictly set the controller. (Will be removed when we remove public constructor)
|
|
18348
18403
|
*/
|
|
18349
18404
|
constructor(configuration, controller) {
|
|
18405
|
+
this.isBroker = false;
|
|
18350
18406
|
this.controller =
|
|
18351
18407
|
controller ||
|
|
18352
18408
|
new StandardController(new StandardOperatingContext(configuration));
|
|
@@ -18356,7 +18412,7 @@
|
|
|
18356
18412
|
* @param request {?InitializeApplicationRequest}
|
|
18357
18413
|
*/
|
|
18358
18414
|
async initialize(request) {
|
|
18359
|
-
return this.controller.initialize(request);
|
|
18415
|
+
return this.controller.initialize(request, this.isBroker);
|
|
18360
18416
|
}
|
|
18361
18417
|
/**
|
|
18362
18418
|
* Use when you want to obtain an access_token for your API via opening a popup window in the user's browser
|