@azure/msal-browser 3.0.0 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -62
- package/dist/app/IPublicClientApplication.d.ts +4 -2
- package/dist/app/IPublicClientApplication.d.ts.map +1 -1
- package/dist/app/{IPublicClientApplication.js → IPublicClientApplication.mjs} +3 -3
- package/dist/app/IPublicClientApplication.mjs.map +1 -0
- package/dist/app/PublicClientApplication.d.ts +5 -3
- package/dist/app/PublicClientApplication.d.ts.map +1 -1
- package/dist/app/{PublicClientApplication.js → PublicClientApplication.mjs} +7 -6
- package/dist/app/PublicClientApplication.mjs.map +1 -0
- package/dist/broker/nativeBroker/{NativeMessageHandler.js → NativeMessageHandler.mjs} +5 -5
- package/dist/broker/nativeBroker/NativeMessageHandler.mjs.map +1 -0
- package/dist/cache/{AsyncMemoryStorage.js → AsyncMemoryStorage.mjs} +5 -5
- package/dist/cache/AsyncMemoryStorage.mjs.map +1 -0
- package/dist/cache/BrowserCacheManager.d.ts +4 -1
- package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
- package/dist/cache/{BrowserCacheManager.js → BrowserCacheManager.mjs} +7 -7
- package/dist/cache/BrowserCacheManager.mjs.map +1 -0
- package/dist/cache/{BrowserStorage.js → BrowserStorage.mjs} +4 -4
- package/dist/cache/BrowserStorage.mjs.map +1 -0
- package/dist/cache/{CryptoKeyStore.js → CryptoKeyStore.mjs} +3 -3
- package/dist/cache/CryptoKeyStore.mjs.map +1 -0
- package/dist/cache/{DatabaseStorage.js → DatabaseStorage.mjs} +4 -4
- package/dist/cache/DatabaseStorage.mjs.map +1 -0
- package/dist/cache/{MemoryStorage.js → MemoryStorage.mjs} +2 -2
- package/dist/cache/MemoryStorage.mjs.map +1 -0
- package/dist/cache/{TokenCache.js → TokenCache.mjs} +3 -3
- package/dist/cache/TokenCache.mjs.map +1 -0
- package/dist/config/Configuration.d.ts +2 -0
- package/dist/config/Configuration.d.ts.map +1 -1
- package/dist/config/{Configuration.js → Configuration.mjs} +6 -6
- package/dist/config/Configuration.mjs.map +1 -0
- package/dist/controllers/{ControllerFactory.js → ControllerFactory.mjs} +7 -7
- package/dist/controllers/ControllerFactory.mjs.map +1 -0
- package/dist/controllers/IController.d.ts +19 -2
- package/dist/controllers/IController.d.ts.map +1 -1
- package/dist/controllers/StandardController.d.ts +1 -1
- package/dist/controllers/StandardController.d.ts.map +1 -1
- package/dist/controllers/{StandardController.js → StandardController.mjs} +20 -20
- package/dist/controllers/StandardController.mjs.map +1 -0
- package/dist/crypto/{BrowserCrypto.js → BrowserCrypto.mjs} +5 -5
- package/dist/crypto/BrowserCrypto.mjs.map +1 -0
- package/dist/crypto/{CryptoOps.js → CryptoOps.mjs} +10 -10
- package/dist/crypto/CryptoOps.mjs.map +1 -0
- package/dist/crypto/{GuidGenerator.js → GuidGenerator.mjs} +3 -3
- package/dist/crypto/GuidGenerator.mjs.map +1 -0
- package/dist/crypto/{ModernBrowserCrypto.js → ModernBrowserCrypto.mjs} +3 -3
- package/dist/crypto/ModernBrowserCrypto.mjs.map +1 -0
- package/dist/crypto/{PkceGenerator.js → PkceGenerator.mjs} +4 -4
- package/dist/crypto/PkceGenerator.mjs.map +1 -0
- package/dist/crypto/{SignedHttpRequest.js → SignedHttpRequest.mjs} +4 -4
- package/dist/crypto/SignedHttpRequest.mjs.map +1 -0
- package/dist/encode/{Base64Decode.js → Base64Decode.mjs} +3 -3
- package/dist/encode/Base64Decode.mjs.map +1 -0
- package/dist/encode/{Base64Encode.js → Base64Encode.mjs} +3 -3
- package/dist/encode/Base64Encode.mjs.map +1 -0
- package/dist/error/{BrowserAuthError.js → BrowserAuthError.mjs} +2 -2
- package/dist/error/BrowserAuthError.mjs.map +1 -0
- package/dist/error/{BrowserConfigurationAuthError.js → BrowserConfigurationAuthError.mjs} +2 -2
- package/dist/error/BrowserConfigurationAuthError.mjs.map +1 -0
- package/dist/error/{NativeAuthError.js → NativeAuthError.mjs} +3 -3
- package/dist/error/NativeAuthError.mjs.map +1 -0
- package/dist/event/{EventHandler.js → EventHandler.mjs} +3 -3
- package/dist/event/EventHandler.mjs.map +1 -0
- package/dist/event/{EventMessage.js → EventMessage.mjs} +4 -4
- package/dist/event/EventMessage.mjs.map +1 -0
- package/dist/event/{EventType.js → EventType.mjs} +2 -2
- package/dist/event/EventType.mjs.map +1 -0
- package/dist/index.d.ts +5 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/{index.js → index.mjs} +17 -17
- package/dist/index.mjs.map +1 -0
- package/dist/interaction_client/{BaseInteractionClient.js → BaseInteractionClient.mjs} +5 -5
- package/dist/interaction_client/BaseInteractionClient.mjs.map +1 -0
- package/dist/interaction_client/{HybridSpaAuthorizationCodeClient.js → HybridSpaAuthorizationCodeClient.mjs} +2 -2
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs.map +1 -0
- package/dist/interaction_client/NativeInteractionClient.d.ts +6 -0
- package/dist/interaction_client/NativeInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/{NativeInteractionClient.js → NativeInteractionClient.mjs} +39 -9
- package/dist/interaction_client/NativeInteractionClient.mjs.map +1 -0
- package/dist/interaction_client/{PopupClient.js → PopupClient.mjs} +10 -10
- package/dist/interaction_client/PopupClient.mjs.map +1 -0
- package/dist/interaction_client/{RedirectClient.js → RedirectClient.mjs} +10 -10
- package/dist/interaction_client/RedirectClient.mjs.map +1 -0
- package/dist/interaction_client/{SilentAuthCodeClient.js → SilentAuthCodeClient.mjs} +7 -7
- package/dist/interaction_client/SilentAuthCodeClient.mjs.map +1 -0
- package/dist/interaction_client/{SilentCacheClient.js → SilentCacheClient.mjs} +5 -5
- package/dist/interaction_client/SilentCacheClient.mjs.map +1 -0
- package/dist/interaction_client/{SilentIframeClient.js → SilentIframeClient.mjs} +8 -8
- package/dist/interaction_client/SilentIframeClient.mjs.map +1 -0
- package/dist/interaction_client/{SilentRefreshClient.js → SilentRefreshClient.mjs} +5 -5
- package/dist/interaction_client/SilentRefreshClient.mjs.map +1 -0
- package/dist/interaction_client/{StandardInteractionClient.js → StandardInteractionClient.mjs} +8 -8
- package/dist/interaction_client/StandardInteractionClient.mjs.map +1 -0
- package/dist/interaction_handler/{InteractionHandler.js → InteractionHandler.mjs} +4 -4
- package/dist/interaction_handler/InteractionHandler.mjs.map +1 -0
- package/dist/interaction_handler/{RedirectHandler.js → RedirectHandler.mjs} +5 -5
- package/dist/interaction_handler/RedirectHandler.mjs.map +1 -0
- package/dist/interaction_handler/{SilentHandler.js → SilentHandler.mjs} +5 -5
- package/dist/interaction_handler/SilentHandler.mjs.map +1 -0
- package/dist/{internals.js → internals.mjs} +16 -16
- package/dist/internals.mjs.map +1 -0
- package/dist/navigation/{NavigationClient.js → NavigationClient.mjs} +2 -2
- package/dist/navigation/NavigationClient.mjs.map +1 -0
- package/dist/network/{FetchClient.js → FetchClient.mjs} +4 -4
- package/dist/network/FetchClient.mjs.map +1 -0
- package/dist/network/{XhrClient.js → XhrClient.mjs} +4 -4
- package/dist/network/XhrClient.mjs.map +1 -0
- package/dist/operatingcontext/{BaseOperatingContext.js → BaseOperatingContext.mjs} +4 -4
- package/dist/operatingcontext/BaseOperatingContext.mjs.map +1 -0
- package/dist/operatingcontext/{StandardOperatingContext.js → StandardOperatingContext.mjs} +3 -3
- package/dist/operatingcontext/StandardOperatingContext.mjs.map +1 -0
- package/dist/operatingcontext/{TeamsAppOperatingContext.js → TeamsAppOperatingContext.mjs} +3 -3
- package/dist/operatingcontext/TeamsAppOperatingContext.mjs.map +1 -0
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.mjs +8 -0
- package/dist/packageMetadata.mjs.map +1 -0
- package/dist/request/PopupRequest.d.ts +3 -1
- package/dist/request/PopupRequest.d.ts.map +1 -1
- package/dist/request/RedirectRequest.d.ts +3 -1
- package/dist/request/RedirectRequest.d.ts.map +1 -1
- package/dist/request/SilentRequest.d.ts +2 -0
- package/dist/request/SilentRequest.d.ts.map +1 -1
- package/dist/request/SsoSilentRequest.d.ts +5 -2
- package/dist/request/SsoSilentRequest.d.ts.map +1 -1
- package/dist/telemetry/{BrowserPerformanceClient.js → BrowserPerformanceClient.mjs} +6 -6
- package/dist/telemetry/BrowserPerformanceClient.mjs.map +1 -0
- package/dist/telemetry/{BrowserPerformanceMeasurement.js → BrowserPerformanceMeasurement.mjs} +2 -2
- package/dist/telemetry/BrowserPerformanceMeasurement.mjs.map +1 -0
- package/dist/utils/{BrowserConstants.js → BrowserConstants.mjs} +2 -2
- package/dist/utils/BrowserConstants.mjs.map +1 -0
- package/dist/utils/{BrowserProtocolUtils.js → BrowserProtocolUtils.mjs} +2 -2
- package/dist/utils/BrowserProtocolUtils.mjs.map +1 -0
- package/dist/utils/{BrowserStringUtils.js → BrowserStringUtils.mjs} +2 -2
- package/dist/utils/BrowserStringUtils.mjs.map +1 -0
- package/dist/utils/{BrowserUtils.js → BrowserUtils.mjs} +6 -6
- package/dist/utils/BrowserUtils.mjs.map +1 -0
- package/dist/utils/{MathUtils.js → MathUtils.mjs} +2 -2
- package/dist/utils/MathUtils.mjs.map +1 -0
- package/lib/{msal-browser.cjs.js → msal-browser.cjs} +129 -69
- package/lib/msal-browser.cjs.map +1 -0
- package/lib/msal-browser.js +128 -68
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +56 -56
- package/package.json +13 -14
- package/dist/app/IPublicClientApplication.js.map +0 -1
- package/dist/app/PublicClientApplication.js.map +0 -1
- package/dist/broker/nativeBroker/NativeMessageHandler.js.map +0 -1
- package/dist/cache/AsyncMemoryStorage.js.map +0 -1
- package/dist/cache/BrowserCacheManager.js.map +0 -1
- package/dist/cache/BrowserStorage.js.map +0 -1
- package/dist/cache/CryptoKeyStore.js.map +0 -1
- package/dist/cache/DatabaseStorage.js.map +0 -1
- package/dist/cache/MemoryStorage.js.map +0 -1
- package/dist/cache/TokenCache.js.map +0 -1
- package/dist/cache/entities/CacheRecord.d.ts +0 -6
- package/dist/cache/entities/CacheRecord.d.ts.map +0 -1
- package/dist/config/Configuration.js.map +0 -1
- package/dist/controllers/ControllerFactory.js.map +0 -1
- package/dist/controllers/StandardController.js.map +0 -1
- package/dist/crypto/BrowserCrypto.js.map +0 -1
- package/dist/crypto/CryptoOps.js.map +0 -1
- package/dist/crypto/GuidGenerator.js.map +0 -1
- package/dist/crypto/ModernBrowserCrypto.js.map +0 -1
- package/dist/crypto/PkceGenerator.js.map +0 -1
- package/dist/crypto/SignedHttpRequest.js.map +0 -1
- package/dist/encode/Base64Decode.js.map +0 -1
- package/dist/encode/Base64Encode.js.map +0 -1
- package/dist/error/BrowserAuthError.js.map +0 -1
- package/dist/error/BrowserConfigurationAuthError.js.map +0 -1
- package/dist/error/NativeAuthError.js.map +0 -1
- package/dist/event/EventHandler.js.map +0 -1
- package/dist/event/EventMessage.js.map +0 -1
- package/dist/event/EventType.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/interaction_client/BaseInteractionClient.js.map +0 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.js.map +0 -1
- package/dist/interaction_client/NativeInteractionClient.js.map +0 -1
- package/dist/interaction_client/PopupClient.js.map +0 -1
- package/dist/interaction_client/RedirectClient.js.map +0 -1
- package/dist/interaction_client/SilentAuthCodeClient.js.map +0 -1
- package/dist/interaction_client/SilentCacheClient.js.map +0 -1
- package/dist/interaction_client/SilentIframeClient.js.map +0 -1
- package/dist/interaction_client/SilentRefreshClient.js.map +0 -1
- package/dist/interaction_client/StandardInteractionClient.js.map +0 -1
- package/dist/interaction_handler/InteractionHandler.js.map +0 -1
- package/dist/interaction_handler/RedirectHandler.js.map +0 -1
- package/dist/interaction_handler/SilentHandler.js.map +0 -1
- package/dist/internals.js.map +0 -1
- package/dist/navigation/NavigationClient.js.map +0 -1
- package/dist/network/FetchClient.js.map +0 -1
- package/dist/network/XhrClient.js.map +0 -1
- package/dist/operatingcontext/BaseOperatingContext.js.map +0 -1
- package/dist/operatingcontext/StandardOperatingContext.js.map +0 -1
- package/dist/operatingcontext/TeamsAppOperatingContext.js.map +0 -1
- package/dist/packageMetadata.js +0 -8
- package/dist/packageMetadata.js.map +0 -1
- package/dist/telemetry/BrowserPerformanceClient.js.map +0 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.js.map +0 -1
- package/dist/utils/BrowserConstants.js.map +0 -1
- package/dist/utils/BrowserProtocolUtils.js.map +0 -1
- package/dist/utils/BrowserStringUtils.js.map +0 -1
- package/dist/utils/BrowserUtils.js.map +0 -1
- package/dist/utils/MathUtils.js.map +0 -1
- package/lib/msal-browser.cjs.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @azure/msal-browser v3.0.
|
|
1
|
+
/*! @azure/msal-browser v3.0.2 2023-08-18 */
|
|
2
2
|
'use strict';
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
|
-
/*! @azure/msal-common v14.0.
|
|
5
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
6
6
|
/*
|
|
7
7
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8
8
|
* Licensed under the MIT License.
|
|
@@ -362,7 +362,7 @@ const JsonTypes = {
|
|
|
362
362
|
Pop: "pop",
|
|
363
363
|
};
|
|
364
364
|
|
|
365
|
-
/*! @azure/msal-common v14.0.
|
|
365
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
366
366
|
|
|
367
367
|
/*
|
|
368
368
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -416,7 +416,7 @@ class AuthError extends Error {
|
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
418
|
|
|
419
|
-
/*! @azure/msal-common v14.0.
|
|
419
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
420
420
|
|
|
421
421
|
/*
|
|
422
422
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -461,7 +461,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
|
|
|
461
461
|
},
|
|
462
462
|
};
|
|
463
463
|
|
|
464
|
-
/*! @azure/msal-common v14.0.
|
|
464
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
465
465
|
|
|
466
466
|
/*
|
|
467
467
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -983,7 +983,7 @@ class ClientAuthError extends AuthError {
|
|
|
983
983
|
}
|
|
984
984
|
}
|
|
985
985
|
|
|
986
|
-
/*! @azure/msal-common v14.0.
|
|
986
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
987
987
|
|
|
988
988
|
/*
|
|
989
989
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1110,7 +1110,7 @@ class StringUtils {
|
|
|
1110
1110
|
}
|
|
1111
1111
|
}
|
|
1112
1112
|
|
|
1113
|
-
/*! @azure/msal-common v14.0.
|
|
1113
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
1114
1114
|
|
|
1115
1115
|
/*
|
|
1116
1116
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1310,12 +1310,12 @@ class Logger {
|
|
|
1310
1310
|
}
|
|
1311
1311
|
}
|
|
1312
1312
|
|
|
1313
|
-
/*! @azure/msal-common v14.0.
|
|
1313
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
1314
1314
|
/* eslint-disable header/header */
|
|
1315
1315
|
const name$1 = "@azure/msal-common";
|
|
1316
|
-
const version$1 = "14.0.
|
|
1316
|
+
const version$1 = "14.0.2";
|
|
1317
1317
|
|
|
1318
|
-
/*! @azure/msal-common v14.0.
|
|
1318
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
1319
1319
|
/*
|
|
1320
1320
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1321
1321
|
* Licensed under the MIT License.
|
|
@@ -1335,7 +1335,7 @@ const AzureCloudInstance = {
|
|
|
1335
1335
|
AzureUsGovernment: "https://login.microsoftonline.us",
|
|
1336
1336
|
};
|
|
1337
1337
|
|
|
1338
|
-
/*! @azure/msal-common v14.0.
|
|
1338
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
1339
1339
|
|
|
1340
1340
|
/*
|
|
1341
1341
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1617,7 +1617,7 @@ class ClientConfigurationError extends ClientAuthError {
|
|
|
1617
1617
|
}
|
|
1618
1618
|
}
|
|
1619
1619
|
|
|
1620
|
-
/*! @azure/msal-common v14.0.
|
|
1620
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
1621
1621
|
|
|
1622
1622
|
/*
|
|
1623
1623
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1817,7 +1817,7 @@ class ScopeSet {
|
|
|
1817
1817
|
}
|
|
1818
1818
|
}
|
|
1819
1819
|
|
|
1820
|
-
/*! @azure/msal-common v14.0.
|
|
1820
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
1821
1821
|
|
|
1822
1822
|
/*
|
|
1823
1823
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1857,7 +1857,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
|
|
|
1857
1857
|
};
|
|
1858
1858
|
}
|
|
1859
1859
|
|
|
1860
|
-
/*! @azure/msal-common v14.0.
|
|
1860
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
1861
1861
|
/*
|
|
1862
1862
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1863
1863
|
* Licensed under the MIT License.
|
|
@@ -1872,7 +1872,7 @@ const AuthorityType = {
|
|
|
1872
1872
|
Ciam: 3,
|
|
1873
1873
|
};
|
|
1874
1874
|
|
|
1875
|
-
/*! @azure/msal-common v14.0.
|
|
1875
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
1876
1876
|
/*
|
|
1877
1877
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1878
1878
|
* Licensed under the MIT License.
|
|
@@ -1885,7 +1885,7 @@ const ProtocolMode = {
|
|
|
1885
1885
|
OIDC: "OIDC",
|
|
1886
1886
|
};
|
|
1887
1887
|
|
|
1888
|
-
/*! @azure/msal-common v14.0.
|
|
1888
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
1889
1889
|
|
|
1890
1890
|
/*
|
|
1891
1891
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1912,6 +1912,7 @@ const ProtocolMode = {
|
|
|
1912
1912
|
* idTokenClaims: Object containing claims parsed from ID token
|
|
1913
1913
|
* nativeAccountId: Account identifier on the native device
|
|
1914
1914
|
* }
|
|
1915
|
+
* @internal
|
|
1915
1916
|
*/
|
|
1916
1917
|
class AccountEntity {
|
|
1917
1918
|
/**
|
|
@@ -2108,7 +2109,7 @@ class AccountEntity {
|
|
|
2108
2109
|
}
|
|
2109
2110
|
}
|
|
2110
2111
|
|
|
2111
|
-
/*! @azure/msal-common v14.0.
|
|
2112
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
2112
2113
|
|
|
2113
2114
|
/*
|
|
2114
2115
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2159,7 +2160,7 @@ class AuthToken {
|
|
|
2159
2160
|
}
|
|
2160
2161
|
}
|
|
2161
2162
|
|
|
2162
|
-
/*! @azure/msal-common v14.0.
|
|
2163
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
2163
2164
|
|
|
2164
2165
|
/*
|
|
2165
2166
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2167,6 +2168,7 @@ class AuthToken {
|
|
|
2167
2168
|
*/
|
|
2168
2169
|
/**
|
|
2169
2170
|
* Interface class which implement cache storage functions used by MSAL to perform validity checks, and store tokens.
|
|
2171
|
+
* @internal
|
|
2170
2172
|
*/
|
|
2171
2173
|
class CacheManager {
|
|
2172
2174
|
constructor(clientId, cryptoImpl, logger) {
|
|
@@ -2653,7 +2655,11 @@ class CacheManager {
|
|
|
2653
2655
|
return null;
|
|
2654
2656
|
}
|
|
2655
2657
|
else if (numIdTokens > 1) {
|
|
2656
|
-
|
|
2658
|
+
this.commonLogger.info("CacheManager:getIdToken - Multiple id tokens found, clearing them");
|
|
2659
|
+
idTokens.forEach((idToken) => {
|
|
2660
|
+
this.removeIdToken(idToken.generateCredentialKey());
|
|
2661
|
+
});
|
|
2662
|
+
return null;
|
|
2657
2663
|
}
|
|
2658
2664
|
this.commonLogger.info("CacheManager:getIdToken - Returning id token");
|
|
2659
2665
|
return idTokens[0];
|
|
@@ -2763,7 +2769,11 @@ class CacheManager {
|
|
|
2763
2769
|
return null;
|
|
2764
2770
|
}
|
|
2765
2771
|
else if (numAccessTokens > 1) {
|
|
2766
|
-
|
|
2772
|
+
this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them");
|
|
2773
|
+
accessTokens.forEach((accessToken) => {
|
|
2774
|
+
this.removeAccessToken(accessToken.generateCredentialKey());
|
|
2775
|
+
});
|
|
2776
|
+
return null;
|
|
2767
2777
|
}
|
|
2768
2778
|
this.commonLogger.info("CacheManager:getAccessToken - Returning access token");
|
|
2769
2779
|
return accessTokens[0];
|
|
@@ -3075,6 +3085,7 @@ class CacheManager {
|
|
|
3075
3085
|
return obj;
|
|
3076
3086
|
}
|
|
3077
3087
|
}
|
|
3088
|
+
/** @internal */
|
|
3078
3089
|
class DefaultStorageClass extends CacheManager {
|
|
3079
3090
|
setAccount() {
|
|
3080
3091
|
const notImplErr = "Storage interface - setAccount() has not been implemented for the cacheStorage interface.";
|
|
@@ -3174,7 +3185,7 @@ class DefaultStorageClass extends CacheManager {
|
|
|
3174
3185
|
}
|
|
3175
3186
|
}
|
|
3176
3187
|
|
|
3177
|
-
/*! @azure/msal-common v14.0.
|
|
3188
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
3178
3189
|
|
|
3179
3190
|
/*
|
|
3180
3191
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3276,7 +3287,7 @@ function isOidcProtocolMode(config) {
|
|
|
3276
3287
|
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
3277
3288
|
}
|
|
3278
3289
|
|
|
3279
|
-
/*! @azure/msal-common v14.0.
|
|
3290
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
3280
3291
|
|
|
3281
3292
|
/*
|
|
3282
3293
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3293,12 +3304,13 @@ class ServerError extends AuthError {
|
|
|
3293
3304
|
}
|
|
3294
3305
|
}
|
|
3295
3306
|
|
|
3296
|
-
/*! @azure/msal-common v14.0.
|
|
3307
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
3297
3308
|
|
|
3298
3309
|
/*
|
|
3299
3310
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3300
3311
|
* Licensed under the MIT License.
|
|
3301
3312
|
*/
|
|
3313
|
+
/** @internal */
|
|
3302
3314
|
class ThrottlingUtils {
|
|
3303
3315
|
/**
|
|
3304
3316
|
* Prepares a RequestThumbprint to be stored as a key.
|
|
@@ -3390,12 +3402,13 @@ class ThrottlingUtils {
|
|
|
3390
3402
|
}
|
|
3391
3403
|
}
|
|
3392
3404
|
|
|
3393
|
-
/*! @azure/msal-common v14.0.
|
|
3405
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
3394
3406
|
|
|
3395
3407
|
/*
|
|
3396
3408
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3397
3409
|
* Licensed under the MIT License.
|
|
3398
3410
|
*/
|
|
3411
|
+
/** @internal */
|
|
3399
3412
|
class NetworkManager {
|
|
3400
3413
|
constructor(networkClient, cacheManager) {
|
|
3401
3414
|
this.networkClient = networkClient;
|
|
@@ -3426,7 +3439,7 @@ class NetworkManager {
|
|
|
3426
3439
|
}
|
|
3427
3440
|
}
|
|
3428
3441
|
|
|
3429
|
-
/*! @azure/msal-common v14.0.
|
|
3442
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
3430
3443
|
/*
|
|
3431
3444
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3432
3445
|
* Licensed under the MIT License.
|
|
@@ -3436,7 +3449,7 @@ const CcsCredentialType = {
|
|
|
3436
3449
|
UPN: "UPN",
|
|
3437
3450
|
};
|
|
3438
3451
|
|
|
3439
|
-
/*! @azure/msal-common v14.0.
|
|
3452
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
3440
3453
|
|
|
3441
3454
|
/*
|
|
3442
3455
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3521,12 +3534,13 @@ class RequestValidator {
|
|
|
3521
3534
|
}
|
|
3522
3535
|
}
|
|
3523
3536
|
|
|
3524
|
-
/*! @azure/msal-common v14.0.
|
|
3537
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
3525
3538
|
|
|
3526
3539
|
/*
|
|
3527
3540
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3528
3541
|
* Licensed under the MIT License.
|
|
3529
3542
|
*/
|
|
3543
|
+
/** @internal */
|
|
3530
3544
|
class RequestParameterBuilder {
|
|
3531
3545
|
constructor() {
|
|
3532
3546
|
this.parameters = new Map();
|
|
@@ -3904,7 +3918,7 @@ class RequestParameterBuilder {
|
|
|
3904
3918
|
}
|
|
3905
3919
|
}
|
|
3906
3920
|
|
|
3907
|
-
/*! @azure/msal-common v14.0.
|
|
3921
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
3908
3922
|
|
|
3909
3923
|
/*
|
|
3910
3924
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3912,6 +3926,7 @@ class RequestParameterBuilder {
|
|
|
3912
3926
|
*/
|
|
3913
3927
|
/**
|
|
3914
3928
|
* Base application class which will construct requests to send to and handle responses from the Microsoft STS using the authorization code flow.
|
|
3929
|
+
* @internal
|
|
3915
3930
|
*/
|
|
3916
3931
|
class BaseClient {
|
|
3917
3932
|
constructor(configuration, performanceClient) {
|
|
@@ -3999,7 +4014,7 @@ class BaseClient {
|
|
|
3999
4014
|
}
|
|
4000
4015
|
}
|
|
4001
4016
|
|
|
4002
|
-
/*! @azure/msal-common v14.0.
|
|
4017
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
4003
4018
|
|
|
4004
4019
|
/*
|
|
4005
4020
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4138,7 +4153,7 @@ class CredentialEntity {
|
|
|
4138
4153
|
}
|
|
4139
4154
|
}
|
|
4140
4155
|
|
|
4141
|
-
/*! @azure/msal-common v14.0.
|
|
4156
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
4142
4157
|
|
|
4143
4158
|
/*
|
|
4144
4159
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4197,7 +4212,7 @@ class IdTokenEntity extends CredentialEntity {
|
|
|
4197
4212
|
}
|
|
4198
4213
|
}
|
|
4199
4214
|
|
|
4200
|
-
/*! @azure/msal-common v14.0.
|
|
4215
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
4201
4216
|
/*
|
|
4202
4217
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4203
4218
|
* Licensed under the MIT License.
|
|
@@ -4244,7 +4259,7 @@ class TimeUtils {
|
|
|
4244
4259
|
}
|
|
4245
4260
|
}
|
|
4246
4261
|
|
|
4247
|
-
/*! @azure/msal-common v14.0.
|
|
4262
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
4248
4263
|
|
|
4249
4264
|
/*
|
|
4250
4265
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4358,7 +4373,7 @@ class AccessTokenEntity extends CredentialEntity {
|
|
|
4358
4373
|
}
|
|
4359
4374
|
}
|
|
4360
4375
|
|
|
4361
|
-
/*! @azure/msal-common v14.0.
|
|
4376
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
4362
4377
|
|
|
4363
4378
|
/*
|
|
4364
4379
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4420,7 +4435,7 @@ class RefreshTokenEntity extends CredentialEntity {
|
|
|
4420
4435
|
}
|
|
4421
4436
|
}
|
|
4422
4437
|
|
|
4423
|
-
/*! @azure/msal-common v14.0.
|
|
4438
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
4424
4439
|
|
|
4425
4440
|
/*
|
|
4426
4441
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4501,11 +4516,12 @@ class InteractionRequiredAuthError extends AuthError {
|
|
|
4501
4516
|
}
|
|
4502
4517
|
}
|
|
4503
4518
|
|
|
4504
|
-
/*! @azure/msal-common v14.0.
|
|
4519
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
4505
4520
|
/*
|
|
4506
4521
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4507
4522
|
* Licensed under the MIT License.
|
|
4508
4523
|
*/
|
|
4524
|
+
/** @internal */
|
|
4509
4525
|
class CacheRecord {
|
|
4510
4526
|
constructor(accountEntity, idTokenEntity, accessTokenEntity, refreshTokenEntity, appMetadataEntity) {
|
|
4511
4527
|
this.account = accountEntity || null;
|
|
@@ -4516,7 +4532,7 @@ class CacheRecord {
|
|
|
4516
4532
|
}
|
|
4517
4533
|
}
|
|
4518
4534
|
|
|
4519
|
-
/*! @azure/msal-common v14.0.
|
|
4535
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
4520
4536
|
|
|
4521
4537
|
/*
|
|
4522
4538
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4590,7 +4606,7 @@ class ProtocolUtils {
|
|
|
4590
4606
|
}
|
|
4591
4607
|
}
|
|
4592
4608
|
|
|
4593
|
-
/*! @azure/msal-common v14.0.
|
|
4609
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
4594
4610
|
|
|
4595
4611
|
/*
|
|
4596
4612
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4874,7 +4890,7 @@ class UrlString {
|
|
|
4874
4890
|
}
|
|
4875
4891
|
}
|
|
4876
4892
|
|
|
4877
|
-
/*! @azure/msal-common v14.0.
|
|
4893
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
4878
4894
|
/*
|
|
4879
4895
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4880
4896
|
* Licensed under the MIT License.
|
|
@@ -5102,7 +5118,7 @@ const IntFields = new Set([
|
|
|
5102
5118
|
"status",
|
|
5103
5119
|
]);
|
|
5104
5120
|
|
|
5105
|
-
/*! @azure/msal-common v14.0.
|
|
5121
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
5106
5122
|
|
|
5107
5123
|
/*
|
|
5108
5124
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5112,6 +5128,7 @@ const KeyLocation = {
|
|
|
5112
5128
|
SW: "sw",
|
|
5113
5129
|
UHW: "uhw",
|
|
5114
5130
|
};
|
|
5131
|
+
/** @internal */
|
|
5115
5132
|
class PopTokenGenerator {
|
|
5116
5133
|
constructor(cryptoUtils, performanceClient) {
|
|
5117
5134
|
this.cryptoUtils = cryptoUtils;
|
|
@@ -5187,7 +5204,7 @@ class PopTokenGenerator {
|
|
|
5187
5204
|
}
|
|
5188
5205
|
}
|
|
5189
5206
|
|
|
5190
|
-
/*! @azure/msal-common v14.0.
|
|
5207
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
5191
5208
|
|
|
5192
5209
|
/*
|
|
5193
5210
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5256,7 +5273,7 @@ class AppMetadataEntity {
|
|
|
5256
5273
|
}
|
|
5257
5274
|
}
|
|
5258
5275
|
|
|
5259
|
-
/*! @azure/msal-common v14.0.
|
|
5276
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
5260
5277
|
/*
|
|
5261
5278
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5262
5279
|
* Licensed under the MIT License.
|
|
@@ -5283,7 +5300,7 @@ class AppMetadataEntity {
|
|
|
5283
5300
|
}
|
|
5284
5301
|
}
|
|
5285
5302
|
|
|
5286
|
-
/*! @azure/msal-common v14.0.
|
|
5303
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
5287
5304
|
|
|
5288
5305
|
/*
|
|
5289
5306
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5291,6 +5308,7 @@ class AppMetadataEntity {
|
|
|
5291
5308
|
*/
|
|
5292
5309
|
/**
|
|
5293
5310
|
* Class that handles response parsing.
|
|
5311
|
+
* @internal
|
|
5294
5312
|
*/
|
|
5295
5313
|
class ResponseHandler {
|
|
5296
5314
|
constructor(clientId, cacheStorage, cryptoObj, logger, serializableCache, persistencePlugin, performanceClient) {
|
|
@@ -5577,7 +5595,7 @@ class ResponseHandler {
|
|
|
5577
5595
|
}
|
|
5578
5596
|
}
|
|
5579
5597
|
|
|
5580
|
-
/*! @azure/msal-common v14.0.
|
|
5598
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
5581
5599
|
|
|
5582
5600
|
/*
|
|
5583
5601
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5585,6 +5603,7 @@ class ResponseHandler {
|
|
|
5585
5603
|
*/
|
|
5586
5604
|
/**
|
|
5587
5605
|
* Oauth2.0 Authorization Code client
|
|
5606
|
+
* @internal
|
|
5588
5607
|
*/
|
|
5589
5608
|
class AuthorizationCodeClient extends BaseClient {
|
|
5590
5609
|
constructor(configuration, performanceClient) {
|
|
@@ -5738,7 +5757,8 @@ class AuthorizationCodeClient extends BaseClient {
|
|
|
5738
5757
|
async createTokenRequestBody(request) {
|
|
5739
5758
|
this.performanceClient?.addQueueMeasurement(PerformanceEvents.AuthClientCreateTokenRequestBody, request.correlationId);
|
|
5740
5759
|
const parameterBuilder = new RequestParameterBuilder();
|
|
5741
|
-
parameterBuilder.addClientId(
|
|
5760
|
+
parameterBuilder.addClientId(request.tokenBodyParameters?.[AADServerParamKeys.CLIENT_ID] ||
|
|
5761
|
+
this.config.authOptions.clientId);
|
|
5742
5762
|
/*
|
|
5743
5763
|
* For hybrid spa flow, there will be a code but no verifier
|
|
5744
5764
|
* In this scenario, don't include redirect uri as auth code will not be bound to redirect URI
|
|
@@ -5853,7 +5873,8 @@ class AuthorizationCodeClient extends BaseClient {
|
|
|
5853
5873
|
async createAuthCodeUrlQueryString(request) {
|
|
5854
5874
|
this.performanceClient?.addQueueMeasurement(PerformanceEvents.AuthClientCreateQueryString, request.correlationId);
|
|
5855
5875
|
const parameterBuilder = new RequestParameterBuilder();
|
|
5856
|
-
parameterBuilder.addClientId(
|
|
5876
|
+
parameterBuilder.addClientId(request.extraQueryParameters?.[AADServerParamKeys.CLIENT_ID] ||
|
|
5877
|
+
this.config.authOptions.clientId);
|
|
5857
5878
|
const requestScopes = [
|
|
5858
5879
|
...(request.scopes || []),
|
|
5859
5880
|
...(request.extraScopesToConsent || []),
|
|
@@ -6015,7 +6036,7 @@ class AuthorizationCodeClient extends BaseClient {
|
|
|
6015
6036
|
}
|
|
6016
6037
|
}
|
|
6017
6038
|
|
|
6018
|
-
/*! @azure/msal-common v14.0.
|
|
6039
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
6019
6040
|
|
|
6020
6041
|
/*
|
|
6021
6042
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6023,6 +6044,7 @@ class AuthorizationCodeClient extends BaseClient {
|
|
|
6023
6044
|
*/
|
|
6024
6045
|
/**
|
|
6025
6046
|
* OAuth2.0 refresh token client
|
|
6047
|
+
* @internal
|
|
6026
6048
|
*/
|
|
6027
6049
|
class RefreshTokenClient extends BaseClient {
|
|
6028
6050
|
constructor(configuration, performanceClient) {
|
|
@@ -6257,12 +6279,13 @@ class RefreshTokenClient extends BaseClient {
|
|
|
6257
6279
|
}
|
|
6258
6280
|
}
|
|
6259
6281
|
|
|
6260
|
-
/*! @azure/msal-common v14.0.
|
|
6282
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
6261
6283
|
|
|
6262
6284
|
/*
|
|
6263
6285
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6264
6286
|
* Licensed under the MIT License.
|
|
6265
6287
|
*/
|
|
6288
|
+
/** @internal */
|
|
6266
6289
|
class SilentFlowClient extends BaseClient {
|
|
6267
6290
|
constructor(configuration, performanceClient) {
|
|
6268
6291
|
super(configuration, performanceClient);
|
|
@@ -6360,7 +6383,7 @@ class SilentFlowClient extends BaseClient {
|
|
|
6360
6383
|
}
|
|
6361
6384
|
}
|
|
6362
6385
|
|
|
6363
|
-
/*! @azure/msal-common v14.0.
|
|
6386
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
6364
6387
|
/*
|
|
6365
6388
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6366
6389
|
* Licensed under the MIT License.
|
|
@@ -6372,7 +6395,7 @@ function isOpenIdConfigResponse(response) {
|
|
|
6372
6395
|
response.hasOwnProperty("jwks_uri"));
|
|
6373
6396
|
}
|
|
6374
6397
|
|
|
6375
|
-
/*! @azure/msal-common v14.0.
|
|
6398
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
6376
6399
|
/*
|
|
6377
6400
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6378
6401
|
* Licensed under the MIT License.
|
|
@@ -7258,12 +7281,13 @@ for (const key in InstanceDiscoveryMetadata) {
|
|
|
7258
7281
|
}
|
|
7259
7282
|
}
|
|
7260
7283
|
|
|
7261
|
-
/*! @azure/msal-common v14.0.
|
|
7284
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
7262
7285
|
|
|
7263
7286
|
/*
|
|
7264
7287
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7265
7288
|
* Licensed under the MIT License.
|
|
7266
7289
|
*/
|
|
7290
|
+
/** @internal */
|
|
7267
7291
|
class AuthorityMetadataEntity {
|
|
7268
7292
|
constructor() {
|
|
7269
7293
|
this.expiresAt =
|
|
@@ -7338,7 +7362,7 @@ class AuthorityMetadataEntity {
|
|
|
7338
7362
|
}
|
|
7339
7363
|
}
|
|
7340
7364
|
|
|
7341
|
-
/*! @azure/msal-common v14.0.
|
|
7365
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
7342
7366
|
/*
|
|
7343
7367
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7344
7368
|
* Licensed under the MIT License.
|
|
@@ -7348,7 +7372,7 @@ function isCloudInstanceDiscoveryResponse(response) {
|
|
|
7348
7372
|
response.hasOwnProperty("metadata"));
|
|
7349
7373
|
}
|
|
7350
7374
|
|
|
7351
|
-
/*! @azure/msal-common v14.0.
|
|
7375
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
7352
7376
|
/*
|
|
7353
7377
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7354
7378
|
* Licensed under the MIT License.
|
|
@@ -7358,7 +7382,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
|
7358
7382
|
response.hasOwnProperty("error_description"));
|
|
7359
7383
|
}
|
|
7360
7384
|
|
|
7361
|
-
/*! @azure/msal-common v14.0.
|
|
7385
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
7362
7386
|
|
|
7363
7387
|
/*
|
|
7364
7388
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7469,7 +7493,7 @@ RegionDiscovery.IMDS_OPTIONS = {
|
|
|
7469
7493
|
},
|
|
7470
7494
|
};
|
|
7471
7495
|
|
|
7472
|
-
/*! @azure/msal-common v14.0.
|
|
7496
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
7473
7497
|
|
|
7474
7498
|
/*
|
|
7475
7499
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7478,6 +7502,7 @@ RegionDiscovery.IMDS_OPTIONS = {
|
|
|
7478
7502
|
/**
|
|
7479
7503
|
* The authority class validates the authority URIs used by the user, and retrieves the OpenID Configuration Data from the
|
|
7480
7504
|
* endpoint. It will store the pertinent config data in this object for use during token calls.
|
|
7505
|
+
* @internal
|
|
7481
7506
|
*/
|
|
7482
7507
|
class Authority {
|
|
7483
7508
|
constructor(authority, networkInterface, cacheManager, authorityOptions, logger, performanceClient, correlationId) {
|
|
@@ -7691,7 +7716,8 @@ class Authority {
|
|
|
7691
7716
|
get defaultOpenIdConfigurationEndpoint() {
|
|
7692
7717
|
const canonicalAuthorityHost = this.hostnameAndPort;
|
|
7693
7718
|
if (this.authorityType === AuthorityType.Adfs ||
|
|
7694
|
-
|
|
7719
|
+
(this.protocolMode !== ProtocolMode.AAD &&
|
|
7720
|
+
!this.isAliasOfKnownMicrosoftAuthority(canonicalAuthorityHost))) {
|
|
7695
7721
|
return `${this.canonicalAuthority}.well-known/openid-configuration`;
|
|
7696
7722
|
}
|
|
7697
7723
|
return `${this.canonicalAuthority}v2.0/.well-known/openid-configuration`;
|
|
@@ -8233,12 +8259,13 @@ Authority.reservedTenantDomains = new Set([
|
|
|
8233
8259
|
AADAuthorityConstants.ORGANIZATIONS,
|
|
8234
8260
|
]);
|
|
8235
8261
|
|
|
8236
|
-
/*! @azure/msal-common v14.0.
|
|
8262
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
8237
8263
|
|
|
8238
8264
|
/*
|
|
8239
8265
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8240
8266
|
* Licensed under the MIT License.
|
|
8241
8267
|
*/
|
|
8268
|
+
/** @internal */
|
|
8242
8269
|
class AuthorityFactory {
|
|
8243
8270
|
/**
|
|
8244
8271
|
* Create an authority object of the correct type based on the url
|
|
@@ -8283,7 +8310,7 @@ class AuthorityFactory {
|
|
|
8283
8310
|
}
|
|
8284
8311
|
}
|
|
8285
8312
|
|
|
8286
|
-
/*! @azure/msal-common v14.0.
|
|
8313
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
8287
8314
|
|
|
8288
8315
|
/*
|
|
8289
8316
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8313,7 +8340,7 @@ class ServerTelemetryEntity {
|
|
|
8313
8340
|
}
|
|
8314
8341
|
}
|
|
8315
8342
|
|
|
8316
|
-
/*! @azure/msal-common v14.0.
|
|
8343
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
8317
8344
|
|
|
8318
8345
|
/*
|
|
8319
8346
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8339,7 +8366,7 @@ class ThrottlingEntity {
|
|
|
8339
8366
|
}
|
|
8340
8367
|
}
|
|
8341
8368
|
|
|
8342
|
-
/*! @azure/msal-common v14.0.
|
|
8369
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
8343
8370
|
|
|
8344
8371
|
/*
|
|
8345
8372
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8356,7 +8383,7 @@ const StubbedNetworkModule = {
|
|
|
8356
8383
|
},
|
|
8357
8384
|
};
|
|
8358
8385
|
|
|
8359
|
-
/*! @azure/msal-common v14.0.
|
|
8386
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
8360
8387
|
|
|
8361
8388
|
/*
|
|
8362
8389
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8398,12 +8425,13 @@ class JoseHeaderError extends AuthError {
|
|
|
8398
8425
|
}
|
|
8399
8426
|
}
|
|
8400
8427
|
|
|
8401
|
-
/*! @azure/msal-common v14.0.
|
|
8428
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
8402
8429
|
|
|
8403
8430
|
/*
|
|
8404
8431
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8405
8432
|
* Licensed under the MIT License.
|
|
8406
8433
|
*/
|
|
8434
|
+
/** @internal */
|
|
8407
8435
|
class JoseHeader {
|
|
8408
8436
|
constructor(options) {
|
|
8409
8437
|
this.typ = options.typ;
|
|
@@ -8437,7 +8465,7 @@ class JoseHeader {
|
|
|
8437
8465
|
}
|
|
8438
8466
|
}
|
|
8439
8467
|
|
|
8440
|
-
/*! @azure/msal-common v14.0.
|
|
8468
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
8441
8469
|
|
|
8442
8470
|
/*
|
|
8443
8471
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8495,12 +8523,13 @@ class AuthenticationHeaderParser {
|
|
|
8495
8523
|
}
|
|
8496
8524
|
}
|
|
8497
8525
|
|
|
8498
|
-
/*! @azure/msal-common v14.0.
|
|
8526
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
8499
8527
|
|
|
8500
8528
|
/*
|
|
8501
8529
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8502
8530
|
* Licensed under the MIT License.
|
|
8503
8531
|
*/
|
|
8532
|
+
/** @internal */
|
|
8504
8533
|
class ServerTelemetryManager {
|
|
8505
8534
|
constructor(telemetryRequest, cacheManager) {
|
|
8506
8535
|
this.cacheOutcome = CacheOutcome.NO_CACHE_HIT;
|
|
@@ -8694,7 +8723,7 @@ class ServerTelemetryManager {
|
|
|
8694
8723
|
}
|
|
8695
8724
|
}
|
|
8696
8725
|
|
|
8697
|
-
/*! @azure/msal-common v14.0.
|
|
8726
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
8698
8727
|
|
|
8699
8728
|
/*
|
|
8700
8729
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -9105,7 +9134,7 @@ class PerformanceClient {
|
|
|
9105
9134
|
}
|
|
9106
9135
|
}
|
|
9107
9136
|
|
|
9108
|
-
/*! @azure/msal-common v14.0.
|
|
9137
|
+
/*! @azure/msal-common v14.0.2 2023-08-18 */
|
|
9109
9138
|
|
|
9110
9139
|
/*
|
|
9111
9140
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -11350,7 +11379,7 @@ const DEFAULT_BROWSER_CACHE_MANAGER = (clientId, logger) => {
|
|
|
11350
11379
|
|
|
11351
11380
|
/* eslint-disable header/header */
|
|
11352
11381
|
const name = "@azure/msal-browser";
|
|
11353
|
-
const version = "3.0.
|
|
11382
|
+
const version = "3.0.2";
|
|
11354
11383
|
|
|
11355
11384
|
/*
|
|
11356
11385
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -12574,6 +12603,10 @@ class SilentCacheClient extends StandardInteractionClient {
|
|
|
12574
12603
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
12575
12604
|
* Licensed under the MIT License.
|
|
12576
12605
|
*/
|
|
12606
|
+
const BrokerServerParamKeys = {
|
|
12607
|
+
BROKER_CLIENT_ID: "brk_client_id",
|
|
12608
|
+
BROKER_REDIRECT_URI: "brk_redirect_uri",
|
|
12609
|
+
};
|
|
12577
12610
|
class NativeInteractionClient extends BaseInteractionClient {
|
|
12578
12611
|
constructor(config, browserStorage, browserCrypto, logger, eventHandler, navigationClient, apiId, performanceClient, provider, accountId, nativeStorageImpl, correlationId) {
|
|
12579
12612
|
super(config, browserStorage, browserCrypto, logger, eventHandler, navigationClient, performanceClient, provider, correlationId);
|
|
@@ -13065,10 +13098,14 @@ class NativeInteractionClient extends BaseInteractionClient {
|
|
|
13065
13098
|
extraParameters: {
|
|
13066
13099
|
...request.extraQueryParameters,
|
|
13067
13100
|
...request.tokenQueryParameters,
|
|
13068
|
-
telemetry: NativeConstants.MATS_TELEMETRY,
|
|
13069
13101
|
},
|
|
13070
13102
|
extendedExpiryToken: false, // Make this configurable?
|
|
13071
13103
|
};
|
|
13104
|
+
this.handleExtraBrokerParams(validatedRequest);
|
|
13105
|
+
validatedRequest.extraParameters =
|
|
13106
|
+
validatedRequest.extraParameters || {};
|
|
13107
|
+
validatedRequest.extraParameters.telemetry =
|
|
13108
|
+
NativeConstants.MATS_TELEMETRY;
|
|
13072
13109
|
if (request.authenticationScheme === AuthenticationScheme.POP) {
|
|
13073
13110
|
// add POP request type
|
|
13074
13111
|
const shrParameters = {
|
|
@@ -13085,6 +13122,28 @@ class NativeInteractionClient extends BaseInteractionClient {
|
|
|
13085
13122
|
}
|
|
13086
13123
|
return validatedRequest;
|
|
13087
13124
|
}
|
|
13125
|
+
/**
|
|
13126
|
+
* Handles extra broker request parameters
|
|
13127
|
+
* @param request {NativeTokenRequest}
|
|
13128
|
+
* @private
|
|
13129
|
+
*/
|
|
13130
|
+
handleExtraBrokerParams(request) {
|
|
13131
|
+
if (!request.extraParameters) {
|
|
13132
|
+
return;
|
|
13133
|
+
}
|
|
13134
|
+
if (request.extraParameters.hasOwnProperty(BrokerServerParamKeys.BROKER_CLIENT_ID) &&
|
|
13135
|
+
request.extraParameters.hasOwnProperty(BrokerServerParamKeys.BROKER_REDIRECT_URI) &&
|
|
13136
|
+
request.extraParameters.hasOwnProperty(AADServerParamKeys.CLIENT_ID)) {
|
|
13137
|
+
const child_client_id = request.extraParameters[AADServerParamKeys.CLIENT_ID];
|
|
13138
|
+
const child_redirect_uri = request.redirectUri;
|
|
13139
|
+
const brk_redirect_uri = request.extraParameters[BrokerServerParamKeys.BROKER_REDIRECT_URI];
|
|
13140
|
+
request.extraParameters = {
|
|
13141
|
+
child_client_id,
|
|
13142
|
+
child_redirect_uri,
|
|
13143
|
+
};
|
|
13144
|
+
request.redirectUri = brk_redirect_uri;
|
|
13145
|
+
}
|
|
13146
|
+
}
|
|
13088
13147
|
}
|
|
13089
13148
|
|
|
13090
13149
|
/*
|
|
@@ -17797,7 +17856,7 @@ class PublicClientApplication {
|
|
|
17797
17856
|
* Silently acquire an access token for a given set of scopes. Returns currently processing promise if parallel requests are made.
|
|
17798
17857
|
*
|
|
17799
17858
|
* @param {@link (SilentRequest:type)}
|
|
17800
|
-
* @returns {Promise.<AuthenticationResult>} - a promise that is fulfilled when this function has completed, or rejected if an error was raised. Returns the {@link
|
|
17859
|
+
* @returns {Promise.<AuthenticationResult>} - a promise that is fulfilled when this function has completed, or rejected if an error was raised. Returns the {@link AuthenticationResult} object
|
|
17801
17860
|
*/
|
|
17802
17861
|
acquireTokenSilent(silentRequest) {
|
|
17803
17862
|
return this.controller.acquireTokenSilent(silentRequest);
|
|
@@ -18021,6 +18080,7 @@ class PublicClientApplication {
|
|
|
18021
18080
|
}
|
|
18022
18081
|
/**
|
|
18023
18082
|
* Returns the configuration object
|
|
18083
|
+
* @internal
|
|
18024
18084
|
*/
|
|
18025
18085
|
getConfiguration() {
|
|
18026
18086
|
return this.controller.getConfiguration();
|
|
@@ -18508,4 +18568,4 @@ exports.WrapperSKU = WrapperSKU;
|
|
|
18508
18568
|
exports.internals = internals;
|
|
18509
18569
|
exports.stubbedPublicClientApplication = stubbedPublicClientApplication;
|
|
18510
18570
|
exports.version = version;
|
|
18511
|
-
//# sourceMappingURL=msal-browser.cjs.
|
|
18571
|
+
//# sourceMappingURL=msal-browser.cjs.map
|