@azure/msal-browser 3.0.0 → 3.0.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/README.md +19 -59
- package/dist/app/{IPublicClientApplication.js → IPublicClientApplication.mjs} +3 -3
- package/dist/app/IPublicClientApplication.mjs.map +1 -0
- package/dist/app/{PublicClientApplication.js → PublicClientApplication.mjs} +5 -5
- 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.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.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/{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.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} +107 -67
- package/lib/msal-browser.cjs.map +1 -0
- package/lib/msal-browser.js +106 -66
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +55 -55
- 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.1 2023-08-11 */
|
|
2
2
|
'use strict';
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
|
-
/*! @azure/msal-common v14.0.
|
|
5
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
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.1 2023-08-11 */
|
|
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.1 2023-08-11 */
|
|
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.1 2023-08-11 */
|
|
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.1 2023-08-11 */
|
|
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.1 2023-08-11 */
|
|
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.1 2023-08-11 */
|
|
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.1";
|
|
1317
1317
|
|
|
1318
|
-
/*! @azure/msal-common v14.0.
|
|
1318
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
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.1 2023-08-11 */
|
|
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.1 2023-08-11 */
|
|
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.1 2023-08-11 */
|
|
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.1 2023-08-11 */
|
|
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.1 2023-08-11 */
|
|
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.1 2023-08-11 */
|
|
1889
1889
|
|
|
1890
1890
|
/*
|
|
1891
1891
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2108,7 +2108,7 @@ class AccountEntity {
|
|
|
2108
2108
|
}
|
|
2109
2109
|
}
|
|
2110
2110
|
|
|
2111
|
-
/*! @azure/msal-common v14.0.
|
|
2111
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
2112
2112
|
|
|
2113
2113
|
/*
|
|
2114
2114
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2159,7 +2159,7 @@ class AuthToken {
|
|
|
2159
2159
|
}
|
|
2160
2160
|
}
|
|
2161
2161
|
|
|
2162
|
-
/*! @azure/msal-common v14.0.
|
|
2162
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
2163
2163
|
|
|
2164
2164
|
/*
|
|
2165
2165
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2653,7 +2653,11 @@ class CacheManager {
|
|
|
2653
2653
|
return null;
|
|
2654
2654
|
}
|
|
2655
2655
|
else if (numIdTokens > 1) {
|
|
2656
|
-
|
|
2656
|
+
this.commonLogger.info("CacheManager:getIdToken - Multiple id tokens found, clearing them");
|
|
2657
|
+
idTokens.forEach((idToken) => {
|
|
2658
|
+
this.removeIdToken(idToken.generateCredentialKey());
|
|
2659
|
+
});
|
|
2660
|
+
return null;
|
|
2657
2661
|
}
|
|
2658
2662
|
this.commonLogger.info("CacheManager:getIdToken - Returning id token");
|
|
2659
2663
|
return idTokens[0];
|
|
@@ -2763,7 +2767,11 @@ class CacheManager {
|
|
|
2763
2767
|
return null;
|
|
2764
2768
|
}
|
|
2765
2769
|
else if (numAccessTokens > 1) {
|
|
2766
|
-
|
|
2770
|
+
this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them");
|
|
2771
|
+
accessTokens.forEach((accessToken) => {
|
|
2772
|
+
this.removeAccessToken(accessToken.generateCredentialKey());
|
|
2773
|
+
});
|
|
2774
|
+
return null;
|
|
2767
2775
|
}
|
|
2768
2776
|
this.commonLogger.info("CacheManager:getAccessToken - Returning access token");
|
|
2769
2777
|
return accessTokens[0];
|
|
@@ -3174,7 +3182,7 @@ class DefaultStorageClass extends CacheManager {
|
|
|
3174
3182
|
}
|
|
3175
3183
|
}
|
|
3176
3184
|
|
|
3177
|
-
/*! @azure/msal-common v14.0.
|
|
3185
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
3178
3186
|
|
|
3179
3187
|
/*
|
|
3180
3188
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3276,7 +3284,7 @@ function isOidcProtocolMode(config) {
|
|
|
3276
3284
|
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
3277
3285
|
}
|
|
3278
3286
|
|
|
3279
|
-
/*! @azure/msal-common v14.0.
|
|
3287
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
3280
3288
|
|
|
3281
3289
|
/*
|
|
3282
3290
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3293,7 +3301,7 @@ class ServerError extends AuthError {
|
|
|
3293
3301
|
}
|
|
3294
3302
|
}
|
|
3295
3303
|
|
|
3296
|
-
/*! @azure/msal-common v14.0.
|
|
3304
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
3297
3305
|
|
|
3298
3306
|
/*
|
|
3299
3307
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3390,7 +3398,7 @@ class ThrottlingUtils {
|
|
|
3390
3398
|
}
|
|
3391
3399
|
}
|
|
3392
3400
|
|
|
3393
|
-
/*! @azure/msal-common v14.0.
|
|
3401
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
3394
3402
|
|
|
3395
3403
|
/*
|
|
3396
3404
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3426,7 +3434,7 @@ class NetworkManager {
|
|
|
3426
3434
|
}
|
|
3427
3435
|
}
|
|
3428
3436
|
|
|
3429
|
-
/*! @azure/msal-common v14.0.
|
|
3437
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
3430
3438
|
/*
|
|
3431
3439
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3432
3440
|
* Licensed under the MIT License.
|
|
@@ -3436,7 +3444,7 @@ const CcsCredentialType = {
|
|
|
3436
3444
|
UPN: "UPN",
|
|
3437
3445
|
};
|
|
3438
3446
|
|
|
3439
|
-
/*! @azure/msal-common v14.0.
|
|
3447
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
3440
3448
|
|
|
3441
3449
|
/*
|
|
3442
3450
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3521,7 +3529,7 @@ class RequestValidator {
|
|
|
3521
3529
|
}
|
|
3522
3530
|
}
|
|
3523
3531
|
|
|
3524
|
-
/*! @azure/msal-common v14.0.
|
|
3532
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
3525
3533
|
|
|
3526
3534
|
/*
|
|
3527
3535
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3904,7 +3912,7 @@ class RequestParameterBuilder {
|
|
|
3904
3912
|
}
|
|
3905
3913
|
}
|
|
3906
3914
|
|
|
3907
|
-
/*! @azure/msal-common v14.0.
|
|
3915
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
3908
3916
|
|
|
3909
3917
|
/*
|
|
3910
3918
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3999,7 +4007,7 @@ class BaseClient {
|
|
|
3999
4007
|
}
|
|
4000
4008
|
}
|
|
4001
4009
|
|
|
4002
|
-
/*! @azure/msal-common v14.0.
|
|
4010
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
4003
4011
|
|
|
4004
4012
|
/*
|
|
4005
4013
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4138,7 +4146,7 @@ class CredentialEntity {
|
|
|
4138
4146
|
}
|
|
4139
4147
|
}
|
|
4140
4148
|
|
|
4141
|
-
/*! @azure/msal-common v14.0.
|
|
4149
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
4142
4150
|
|
|
4143
4151
|
/*
|
|
4144
4152
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4197,7 +4205,7 @@ class IdTokenEntity extends CredentialEntity {
|
|
|
4197
4205
|
}
|
|
4198
4206
|
}
|
|
4199
4207
|
|
|
4200
|
-
/*! @azure/msal-common v14.0.
|
|
4208
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
4201
4209
|
/*
|
|
4202
4210
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4203
4211
|
* Licensed under the MIT License.
|
|
@@ -4244,7 +4252,7 @@ class TimeUtils {
|
|
|
4244
4252
|
}
|
|
4245
4253
|
}
|
|
4246
4254
|
|
|
4247
|
-
/*! @azure/msal-common v14.0.
|
|
4255
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
4248
4256
|
|
|
4249
4257
|
/*
|
|
4250
4258
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4358,7 +4366,7 @@ class AccessTokenEntity extends CredentialEntity {
|
|
|
4358
4366
|
}
|
|
4359
4367
|
}
|
|
4360
4368
|
|
|
4361
|
-
/*! @azure/msal-common v14.0.
|
|
4369
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
4362
4370
|
|
|
4363
4371
|
/*
|
|
4364
4372
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4420,7 +4428,7 @@ class RefreshTokenEntity extends CredentialEntity {
|
|
|
4420
4428
|
}
|
|
4421
4429
|
}
|
|
4422
4430
|
|
|
4423
|
-
/*! @azure/msal-common v14.0.
|
|
4431
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
4424
4432
|
|
|
4425
4433
|
/*
|
|
4426
4434
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4501,7 +4509,7 @@ class InteractionRequiredAuthError extends AuthError {
|
|
|
4501
4509
|
}
|
|
4502
4510
|
}
|
|
4503
4511
|
|
|
4504
|
-
/*! @azure/msal-common v14.0.
|
|
4512
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
4505
4513
|
/*
|
|
4506
4514
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4507
4515
|
* Licensed under the MIT License.
|
|
@@ -4516,7 +4524,7 @@ class CacheRecord {
|
|
|
4516
4524
|
}
|
|
4517
4525
|
}
|
|
4518
4526
|
|
|
4519
|
-
/*! @azure/msal-common v14.0.
|
|
4527
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
4520
4528
|
|
|
4521
4529
|
/*
|
|
4522
4530
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4590,7 +4598,7 @@ class ProtocolUtils {
|
|
|
4590
4598
|
}
|
|
4591
4599
|
}
|
|
4592
4600
|
|
|
4593
|
-
/*! @azure/msal-common v14.0.
|
|
4601
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
4594
4602
|
|
|
4595
4603
|
/*
|
|
4596
4604
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4874,7 +4882,7 @@ class UrlString {
|
|
|
4874
4882
|
}
|
|
4875
4883
|
}
|
|
4876
4884
|
|
|
4877
|
-
/*! @azure/msal-common v14.0.
|
|
4885
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
4878
4886
|
/*
|
|
4879
4887
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4880
4888
|
* Licensed under the MIT License.
|
|
@@ -5102,7 +5110,7 @@ const IntFields = new Set([
|
|
|
5102
5110
|
"status",
|
|
5103
5111
|
]);
|
|
5104
5112
|
|
|
5105
|
-
/*! @azure/msal-common v14.0.
|
|
5113
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
5106
5114
|
|
|
5107
5115
|
/*
|
|
5108
5116
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5187,7 +5195,7 @@ class PopTokenGenerator {
|
|
|
5187
5195
|
}
|
|
5188
5196
|
}
|
|
5189
5197
|
|
|
5190
|
-
/*! @azure/msal-common v14.0.
|
|
5198
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
5191
5199
|
|
|
5192
5200
|
/*
|
|
5193
5201
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5256,7 +5264,7 @@ class AppMetadataEntity {
|
|
|
5256
5264
|
}
|
|
5257
5265
|
}
|
|
5258
5266
|
|
|
5259
|
-
/*! @azure/msal-common v14.0.
|
|
5267
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
5260
5268
|
/*
|
|
5261
5269
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5262
5270
|
* Licensed under the MIT License.
|
|
@@ -5283,7 +5291,7 @@ class AppMetadataEntity {
|
|
|
5283
5291
|
}
|
|
5284
5292
|
}
|
|
5285
5293
|
|
|
5286
|
-
/*! @azure/msal-common v14.0.
|
|
5294
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
5287
5295
|
|
|
5288
5296
|
/*
|
|
5289
5297
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5577,7 +5585,7 @@ class ResponseHandler {
|
|
|
5577
5585
|
}
|
|
5578
5586
|
}
|
|
5579
5587
|
|
|
5580
|
-
/*! @azure/msal-common v14.0.
|
|
5588
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
5581
5589
|
|
|
5582
5590
|
/*
|
|
5583
5591
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5738,7 +5746,8 @@ class AuthorizationCodeClient extends BaseClient {
|
|
|
5738
5746
|
async createTokenRequestBody(request) {
|
|
5739
5747
|
this.performanceClient?.addQueueMeasurement(PerformanceEvents.AuthClientCreateTokenRequestBody, request.correlationId);
|
|
5740
5748
|
const parameterBuilder = new RequestParameterBuilder();
|
|
5741
|
-
parameterBuilder.addClientId(
|
|
5749
|
+
parameterBuilder.addClientId(request.tokenBodyParameters?.[AADServerParamKeys.CLIENT_ID] ||
|
|
5750
|
+
this.config.authOptions.clientId);
|
|
5742
5751
|
/*
|
|
5743
5752
|
* For hybrid spa flow, there will be a code but no verifier
|
|
5744
5753
|
* In this scenario, don't include redirect uri as auth code will not be bound to redirect URI
|
|
@@ -5853,7 +5862,8 @@ class AuthorizationCodeClient extends BaseClient {
|
|
|
5853
5862
|
async createAuthCodeUrlQueryString(request) {
|
|
5854
5863
|
this.performanceClient?.addQueueMeasurement(PerformanceEvents.AuthClientCreateQueryString, request.correlationId);
|
|
5855
5864
|
const parameterBuilder = new RequestParameterBuilder();
|
|
5856
|
-
parameterBuilder.addClientId(
|
|
5865
|
+
parameterBuilder.addClientId(request.extraQueryParameters?.[AADServerParamKeys.CLIENT_ID] ||
|
|
5866
|
+
this.config.authOptions.clientId);
|
|
5857
5867
|
const requestScopes = [
|
|
5858
5868
|
...(request.scopes || []),
|
|
5859
5869
|
...(request.extraScopesToConsent || []),
|
|
@@ -6015,7 +6025,7 @@ class AuthorizationCodeClient extends BaseClient {
|
|
|
6015
6025
|
}
|
|
6016
6026
|
}
|
|
6017
6027
|
|
|
6018
|
-
/*! @azure/msal-common v14.0.
|
|
6028
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
6019
6029
|
|
|
6020
6030
|
/*
|
|
6021
6031
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6257,7 +6267,7 @@ class RefreshTokenClient extends BaseClient {
|
|
|
6257
6267
|
}
|
|
6258
6268
|
}
|
|
6259
6269
|
|
|
6260
|
-
/*! @azure/msal-common v14.0.
|
|
6270
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
6261
6271
|
|
|
6262
6272
|
/*
|
|
6263
6273
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6360,7 +6370,7 @@ class SilentFlowClient extends BaseClient {
|
|
|
6360
6370
|
}
|
|
6361
6371
|
}
|
|
6362
6372
|
|
|
6363
|
-
/*! @azure/msal-common v14.0.
|
|
6373
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
6364
6374
|
/*
|
|
6365
6375
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6366
6376
|
* Licensed under the MIT License.
|
|
@@ -6372,7 +6382,7 @@ function isOpenIdConfigResponse(response) {
|
|
|
6372
6382
|
response.hasOwnProperty("jwks_uri"));
|
|
6373
6383
|
}
|
|
6374
6384
|
|
|
6375
|
-
/*! @azure/msal-common v14.0.
|
|
6385
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
6376
6386
|
/*
|
|
6377
6387
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6378
6388
|
* Licensed under the MIT License.
|
|
@@ -7258,7 +7268,7 @@ for (const key in InstanceDiscoveryMetadata) {
|
|
|
7258
7268
|
}
|
|
7259
7269
|
}
|
|
7260
7270
|
|
|
7261
|
-
/*! @azure/msal-common v14.0.
|
|
7271
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
7262
7272
|
|
|
7263
7273
|
/*
|
|
7264
7274
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7338,7 +7348,7 @@ class AuthorityMetadataEntity {
|
|
|
7338
7348
|
}
|
|
7339
7349
|
}
|
|
7340
7350
|
|
|
7341
|
-
/*! @azure/msal-common v14.0.
|
|
7351
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
7342
7352
|
/*
|
|
7343
7353
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7344
7354
|
* Licensed under the MIT License.
|
|
@@ -7348,7 +7358,7 @@ function isCloudInstanceDiscoveryResponse(response) {
|
|
|
7348
7358
|
response.hasOwnProperty("metadata"));
|
|
7349
7359
|
}
|
|
7350
7360
|
|
|
7351
|
-
/*! @azure/msal-common v14.0.
|
|
7361
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
7352
7362
|
/*
|
|
7353
7363
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7354
7364
|
* Licensed under the MIT License.
|
|
@@ -7358,7 +7368,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
|
7358
7368
|
response.hasOwnProperty("error_description"));
|
|
7359
7369
|
}
|
|
7360
7370
|
|
|
7361
|
-
/*! @azure/msal-common v14.0.
|
|
7371
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
7362
7372
|
|
|
7363
7373
|
/*
|
|
7364
7374
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7469,7 +7479,7 @@ RegionDiscovery.IMDS_OPTIONS = {
|
|
|
7469
7479
|
},
|
|
7470
7480
|
};
|
|
7471
7481
|
|
|
7472
|
-
/*! @azure/msal-common v14.0.
|
|
7482
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
7473
7483
|
|
|
7474
7484
|
/*
|
|
7475
7485
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8233,7 +8243,7 @@ Authority.reservedTenantDomains = new Set([
|
|
|
8233
8243
|
AADAuthorityConstants.ORGANIZATIONS,
|
|
8234
8244
|
]);
|
|
8235
8245
|
|
|
8236
|
-
/*! @azure/msal-common v14.0.
|
|
8246
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
8237
8247
|
|
|
8238
8248
|
/*
|
|
8239
8249
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8283,7 +8293,7 @@ class AuthorityFactory {
|
|
|
8283
8293
|
}
|
|
8284
8294
|
}
|
|
8285
8295
|
|
|
8286
|
-
/*! @azure/msal-common v14.0.
|
|
8296
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
8287
8297
|
|
|
8288
8298
|
/*
|
|
8289
8299
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8313,7 +8323,7 @@ class ServerTelemetryEntity {
|
|
|
8313
8323
|
}
|
|
8314
8324
|
}
|
|
8315
8325
|
|
|
8316
|
-
/*! @azure/msal-common v14.0.
|
|
8326
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
8317
8327
|
|
|
8318
8328
|
/*
|
|
8319
8329
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8339,7 +8349,7 @@ class ThrottlingEntity {
|
|
|
8339
8349
|
}
|
|
8340
8350
|
}
|
|
8341
8351
|
|
|
8342
|
-
/*! @azure/msal-common v14.0.
|
|
8352
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
8343
8353
|
|
|
8344
8354
|
/*
|
|
8345
8355
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8356,7 +8366,7 @@ const StubbedNetworkModule = {
|
|
|
8356
8366
|
},
|
|
8357
8367
|
};
|
|
8358
8368
|
|
|
8359
|
-
/*! @azure/msal-common v14.0.
|
|
8369
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
8360
8370
|
|
|
8361
8371
|
/*
|
|
8362
8372
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8398,7 +8408,7 @@ class JoseHeaderError extends AuthError {
|
|
|
8398
8408
|
}
|
|
8399
8409
|
}
|
|
8400
8410
|
|
|
8401
|
-
/*! @azure/msal-common v14.0.
|
|
8411
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
8402
8412
|
|
|
8403
8413
|
/*
|
|
8404
8414
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8437,7 +8447,7 @@ class JoseHeader {
|
|
|
8437
8447
|
}
|
|
8438
8448
|
}
|
|
8439
8449
|
|
|
8440
|
-
/*! @azure/msal-common v14.0.
|
|
8450
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
8441
8451
|
|
|
8442
8452
|
/*
|
|
8443
8453
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8495,7 +8505,7 @@ class AuthenticationHeaderParser {
|
|
|
8495
8505
|
}
|
|
8496
8506
|
}
|
|
8497
8507
|
|
|
8498
|
-
/*! @azure/msal-common v14.0.
|
|
8508
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
8499
8509
|
|
|
8500
8510
|
/*
|
|
8501
8511
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8694,7 +8704,7 @@ class ServerTelemetryManager {
|
|
|
8694
8704
|
}
|
|
8695
8705
|
}
|
|
8696
8706
|
|
|
8697
|
-
/*! @azure/msal-common v14.0.
|
|
8707
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
8698
8708
|
|
|
8699
8709
|
/*
|
|
8700
8710
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -9105,7 +9115,7 @@ class PerformanceClient {
|
|
|
9105
9115
|
}
|
|
9106
9116
|
}
|
|
9107
9117
|
|
|
9108
|
-
/*! @azure/msal-common v14.0.
|
|
9118
|
+
/*! @azure/msal-common v14.0.1 2023-08-11 */
|
|
9109
9119
|
|
|
9110
9120
|
/*
|
|
9111
9121
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -11350,7 +11360,7 @@ const DEFAULT_BROWSER_CACHE_MANAGER = (clientId, logger) => {
|
|
|
11350
11360
|
|
|
11351
11361
|
/* eslint-disable header/header */
|
|
11352
11362
|
const name = "@azure/msal-browser";
|
|
11353
|
-
const version = "3.0.
|
|
11363
|
+
const version = "3.0.1";
|
|
11354
11364
|
|
|
11355
11365
|
/*
|
|
11356
11366
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -12574,6 +12584,10 @@ class SilentCacheClient extends StandardInteractionClient {
|
|
|
12574
12584
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
12575
12585
|
* Licensed under the MIT License.
|
|
12576
12586
|
*/
|
|
12587
|
+
const BrokerServerParamKeys = {
|
|
12588
|
+
BROKER_CLIENT_ID: "brk_client_id",
|
|
12589
|
+
BROKER_REDIRECT_URI: "brk_redirect_uri",
|
|
12590
|
+
};
|
|
12577
12591
|
class NativeInteractionClient extends BaseInteractionClient {
|
|
12578
12592
|
constructor(config, browserStorage, browserCrypto, logger, eventHandler, navigationClient, apiId, performanceClient, provider, accountId, nativeStorageImpl, correlationId) {
|
|
12579
12593
|
super(config, browserStorage, browserCrypto, logger, eventHandler, navigationClient, performanceClient, provider, correlationId);
|
|
@@ -13065,10 +13079,14 @@ class NativeInteractionClient extends BaseInteractionClient {
|
|
|
13065
13079
|
extraParameters: {
|
|
13066
13080
|
...request.extraQueryParameters,
|
|
13067
13081
|
...request.tokenQueryParameters,
|
|
13068
|
-
telemetry: NativeConstants.MATS_TELEMETRY,
|
|
13069
13082
|
},
|
|
13070
13083
|
extendedExpiryToken: false, // Make this configurable?
|
|
13071
13084
|
};
|
|
13085
|
+
this.handleExtraBrokerParams(validatedRequest);
|
|
13086
|
+
validatedRequest.extraParameters =
|
|
13087
|
+
validatedRequest.extraParameters || {};
|
|
13088
|
+
validatedRequest.extraParameters.telemetry =
|
|
13089
|
+
NativeConstants.MATS_TELEMETRY;
|
|
13072
13090
|
if (request.authenticationScheme === AuthenticationScheme.POP) {
|
|
13073
13091
|
// add POP request type
|
|
13074
13092
|
const shrParameters = {
|
|
@@ -13085,6 +13103,28 @@ class NativeInteractionClient extends BaseInteractionClient {
|
|
|
13085
13103
|
}
|
|
13086
13104
|
return validatedRequest;
|
|
13087
13105
|
}
|
|
13106
|
+
/**
|
|
13107
|
+
* Handles extra broker request parameters
|
|
13108
|
+
* @param request {NativeTokenRequest}
|
|
13109
|
+
* @private
|
|
13110
|
+
*/
|
|
13111
|
+
handleExtraBrokerParams(request) {
|
|
13112
|
+
if (!request.extraParameters) {
|
|
13113
|
+
return;
|
|
13114
|
+
}
|
|
13115
|
+
if (request.extraParameters.hasOwnProperty(BrokerServerParamKeys.BROKER_CLIENT_ID) &&
|
|
13116
|
+
request.extraParameters.hasOwnProperty(BrokerServerParamKeys.BROKER_REDIRECT_URI) &&
|
|
13117
|
+
request.extraParameters.hasOwnProperty(AADServerParamKeys.CLIENT_ID)) {
|
|
13118
|
+
const child_client_id = request.extraParameters[AADServerParamKeys.CLIENT_ID];
|
|
13119
|
+
const child_redirect_uri = request.redirectUri;
|
|
13120
|
+
const brk_redirect_uri = request.extraParameters[BrokerServerParamKeys.BROKER_REDIRECT_URI];
|
|
13121
|
+
request.extraParameters = {
|
|
13122
|
+
child_client_id,
|
|
13123
|
+
child_redirect_uri,
|
|
13124
|
+
};
|
|
13125
|
+
request.redirectUri = brk_redirect_uri;
|
|
13126
|
+
}
|
|
13127
|
+
}
|
|
13088
13128
|
}
|
|
13089
13129
|
|
|
13090
13130
|
/*
|
|
@@ -18508,4 +18548,4 @@ exports.WrapperSKU = WrapperSKU;
|
|
|
18508
18548
|
exports.internals = internals;
|
|
18509
18549
|
exports.stubbedPublicClientApplication = stubbedPublicClientApplication;
|
|
18510
18550
|
exports.version = version;
|
|
18511
|
-
//# sourceMappingURL=msal-browser.cjs.
|
|
18551
|
+
//# sourceMappingURL=msal-browser.cjs.map
|