@azure/msal-node 3.6.0 → 3.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cache/NodeStorage.d.ts.map +1 -1
- package/dist/cache/NodeStorage.mjs +3 -2
- package/dist/cache/NodeStorage.mjs.map +1 -1
- package/dist/cache/TokenCache.d.ts +1 -1
- package/dist/cache/TokenCache.d.ts.map +1 -1
- package/dist/cache/TokenCache.mjs +4 -3
- package/dist/cache/TokenCache.mjs.map +1 -1
- package/dist/cache/distributed/DistributedCachePlugin.mjs +1 -1
- package/dist/cache/serializer/Deserializer.mjs +1 -1
- package/dist/cache/serializer/Serializer.mjs +1 -1
- package/dist/client/ClientApplication.mjs +1 -1
- package/dist/client/ClientAssertion.mjs +1 -1
- package/dist/client/ClientCredentialClient.mjs +1 -1
- package/dist/client/ConfidentialClientApplication.mjs +1 -1
- package/dist/client/DeviceCodeClient.mjs +1 -1
- package/dist/client/ManagedIdentityApplication.mjs +1 -1
- package/dist/client/ManagedIdentityClient.mjs +1 -1
- package/dist/client/ManagedIdentitySources/AppService.mjs +1 -1
- package/dist/client/ManagedIdentitySources/AzureArc.mjs +1 -1
- package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs +1 -1
- package/dist/client/ManagedIdentitySources/CloudShell.mjs +1 -1
- package/dist/client/ManagedIdentitySources/Imds.mjs +1 -1
- package/dist/client/ManagedIdentitySources/MachineLearning.d.ts +1 -0
- package/dist/client/ManagedIdentitySources/MachineLearning.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/MachineLearning.mjs +13 -4
- package/dist/client/ManagedIdentitySources/MachineLearning.mjs.map +1 -1
- package/dist/client/ManagedIdentitySources/ServiceFabric.mjs +1 -1
- package/dist/client/OnBehalfOfClient.mjs +1 -1
- package/dist/client/PublicClientApplication.d.ts.map +1 -1
- package/dist/client/PublicClientApplication.mjs +2 -2
- package/dist/client/PublicClientApplication.mjs.map +1 -1
- package/dist/client/UsernamePasswordClient.mjs +1 -1
- package/dist/config/Configuration.mjs +1 -1
- package/dist/config/ManagedIdentityId.mjs +1 -1
- package/dist/config/ManagedIdentityRequestParameters.mjs +1 -1
- package/dist/crypto/CryptoProvider.d.ts +1 -1
- package/dist/crypto/CryptoProvider.d.ts.map +1 -1
- package/dist/crypto/CryptoProvider.mjs +1 -1
- package/dist/crypto/GuidGenerator.mjs +1 -1
- package/dist/crypto/HashUtils.mjs +1 -1
- package/dist/crypto/PkceGenerator.mjs +1 -1
- package/dist/error/ManagedIdentityError.mjs +1 -1
- package/dist/error/ManagedIdentityErrorCodes.mjs +1 -1
- package/dist/error/NodeAuthError.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/internals.mjs +1 -1
- package/dist/network/HttpClient.mjs +1 -1
- package/dist/network/HttpClientWithRetries.mjs +1 -1
- package/dist/network/LoopbackClient.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/retry/DefaultManagedIdentityRetryPolicy.mjs +1 -1
- package/dist/retry/ExponentialRetryStrategy.mjs +1 -1
- package/dist/retry/ImdsRetryPolicy.mjs +1 -1
- package/dist/retry/LinearRetryStrategy.mjs +1 -1
- package/dist/utils/Constants.d.ts +1 -0
- package/dist/utils/Constants.d.ts.map +1 -1
- package/dist/utils/Constants.mjs +2 -1
- package/dist/utils/Constants.mjs.map +1 -1
- package/dist/utils/EncodingUtils.mjs +1 -1
- package/dist/utils/NetworkUtils.mjs +1 -1
- package/dist/utils/TimeUtils.mjs +1 -1
- package/lib/msal-node.cjs +462 -365
- package/lib/msal-node.cjs.map +1 -1
- package/lib/types/cache/NodeStorage.d.ts.map +1 -1
- package/lib/types/cache/TokenCache.d.ts +1 -1
- package/lib/types/cache/TokenCache.d.ts.map +1 -1
- package/lib/types/client/ManagedIdentitySources/MachineLearning.d.ts +1 -0
- package/lib/types/client/ManagedIdentitySources/MachineLearning.d.ts.map +1 -1
- package/lib/types/client/PublicClientApplication.d.ts.map +1 -1
- package/lib/types/crypto/CryptoProvider.d.ts +1 -1
- package/lib/types/crypto/CryptoProvider.d.ts.map +1 -1
- package/lib/types/packageMetadata.d.ts +1 -1
- package/lib/types/utils/Constants.d.ts +1 -0
- package/lib/types/utils/Constants.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/cache/NodeStorage.ts +8 -1
- package/src/cache/TokenCache.ts +8 -3
- package/src/client/ManagedIdentitySources/MachineLearning.ts +21 -2
- package/src/client/PublicClientApplication.ts +4 -1
- package/src/crypto/CryptoProvider.ts +1 -1
- package/src/packageMetadata.ts +1 -1
- package/src/utils/Constants.ts +1 -0
package/lib/msal-node.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-node v3.6.
|
|
1
|
+
/*! @azure/msal-node v3.6.1 2025-06-18 */
|
|
2
2
|
'use strict';
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -6,8 +6,8 @@ var http = require('http');
|
|
|
6
6
|
var https = require('https');
|
|
7
7
|
var uuid = require('uuid');
|
|
8
8
|
var crypto = require('crypto');
|
|
9
|
-
var jwt = require('jsonwebtoken');
|
|
10
9
|
var msalCommon = require('@azure/msal-common');
|
|
10
|
+
var jwt = require('jsonwebtoken');
|
|
11
11
|
var fs = require('fs');
|
|
12
12
|
var path = require('path');
|
|
13
13
|
|
|
@@ -153,7 +153,7 @@ class Serializer {
|
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
/*! @azure/msal-common v15.7.
|
|
156
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
157
157
|
/*
|
|
158
158
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
159
159
|
* Licensed under the MIT License.
|
|
@@ -442,7 +442,7 @@ const EncodingTypes = {
|
|
|
442
442
|
UTF8: "utf-8",
|
|
443
443
|
};
|
|
444
444
|
|
|
445
|
-
/*! @azure/msal-common v15.7.
|
|
445
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
446
446
|
/*
|
|
447
447
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
448
448
|
* Licensed under the MIT License.
|
|
@@ -459,7 +459,7 @@ var AuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
459
459
|
unexpectedError: unexpectedError
|
|
460
460
|
});
|
|
461
461
|
|
|
462
|
-
/*! @azure/msal-common v15.7.
|
|
462
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
463
463
|
|
|
464
464
|
/*
|
|
465
465
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -508,7 +508,7 @@ function createAuthError(code, additionalMessage) {
|
|
|
508
508
|
: AuthErrorMessages[code]);
|
|
509
509
|
}
|
|
510
510
|
|
|
511
|
-
/*! @azure/msal-common v15.7.
|
|
511
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
512
512
|
/*
|
|
513
513
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
514
514
|
* Licensed under the MIT License.
|
|
@@ -606,7 +606,7 @@ var ClientAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
606
606
|
userTimeoutReached: userTimeoutReached
|
|
607
607
|
});
|
|
608
608
|
|
|
609
|
-
/*! @azure/msal-common v15.7.
|
|
609
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
610
610
|
|
|
611
611
|
/*
|
|
612
612
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -858,7 +858,7 @@ function createClientAuthError(errorCode, additionalMessage) {
|
|
|
858
858
|
return new ClientAuthError(errorCode, additionalMessage);
|
|
859
859
|
}
|
|
860
860
|
|
|
861
|
-
/*! @azure/msal-common v15.7.
|
|
861
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
862
862
|
|
|
863
863
|
/*
|
|
864
864
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -897,7 +897,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
|
|
|
897
897
|
},
|
|
898
898
|
};
|
|
899
899
|
|
|
900
|
-
/*! @azure/msal-common v15.7.
|
|
900
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
901
901
|
|
|
902
902
|
/*
|
|
903
903
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1088,12 +1088,12 @@ class Logger {
|
|
|
1088
1088
|
}
|
|
1089
1089
|
}
|
|
1090
1090
|
|
|
1091
|
-
/*! @azure/msal-common v15.7.
|
|
1091
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
1092
1092
|
/* eslint-disable header/header */
|
|
1093
1093
|
const name$1 = "@azure/msal-common";
|
|
1094
|
-
const version$1 = "15.7.
|
|
1094
|
+
const version$1 = "15.7.1";
|
|
1095
1095
|
|
|
1096
|
-
/*! @azure/msal-common v15.7.
|
|
1096
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
1097
1097
|
/*
|
|
1098
1098
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1099
1099
|
* Licensed under the MIT License.
|
|
@@ -1113,7 +1113,7 @@ const AzureCloudInstance = {
|
|
|
1113
1113
|
AzureUsGovernment: "https://login.microsoftonline.us",
|
|
1114
1114
|
};
|
|
1115
1115
|
|
|
1116
|
-
/*! @azure/msal-common v15.7.
|
|
1116
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
1117
1117
|
|
|
1118
1118
|
/*
|
|
1119
1119
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1174,7 +1174,7 @@ function checkMaxAge(authTime, maxAge) {
|
|
|
1174
1174
|
}
|
|
1175
1175
|
}
|
|
1176
1176
|
|
|
1177
|
-
/*! @azure/msal-common v15.7.
|
|
1177
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
1178
1178
|
/*
|
|
1179
1179
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1180
1180
|
* Licensed under the MIT License.
|
|
@@ -1229,7 +1229,7 @@ function delay(t, value) {
|
|
|
1229
1229
|
return new Promise((resolve) => setTimeout(() => resolve(value), t));
|
|
1230
1230
|
}
|
|
1231
1231
|
|
|
1232
|
-
/*! @azure/msal-common v15.7.
|
|
1232
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
1233
1233
|
|
|
1234
1234
|
/*
|
|
1235
1235
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1556,7 +1556,7 @@ function isAuthorityMetadataExpired(metadata) {
|
|
|
1556
1556
|
return metadata.expiresAt <= nowSeconds();
|
|
1557
1557
|
}
|
|
1558
1558
|
|
|
1559
|
-
/*! @azure/msal-common v15.7.
|
|
1559
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
1560
1560
|
/*
|
|
1561
1561
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1562
1562
|
* Licensed under the MIT License.
|
|
@@ -1610,7 +1610,7 @@ var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
1610
1610
|
urlParseError: urlParseError
|
|
1611
1611
|
});
|
|
1612
1612
|
|
|
1613
|
-
/*! @azure/msal-common v15.7.
|
|
1613
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
1614
1614
|
|
|
1615
1615
|
/*
|
|
1616
1616
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1748,7 +1748,7 @@ function createClientConfigurationError(errorCode) {
|
|
|
1748
1748
|
return new ClientConfigurationError(errorCode);
|
|
1749
1749
|
}
|
|
1750
1750
|
|
|
1751
|
-
/*! @azure/msal-common v15.7.
|
|
1751
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
1752
1752
|
/*
|
|
1753
1753
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1754
1754
|
* Licensed under the MIT License.
|
|
@@ -1845,7 +1845,7 @@ class StringUtils {
|
|
|
1845
1845
|
}
|
|
1846
1846
|
}
|
|
1847
1847
|
|
|
1848
|
-
/*! @azure/msal-common v15.7.
|
|
1848
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
1849
1849
|
|
|
1850
1850
|
/*
|
|
1851
1851
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2036,7 +2036,7 @@ class ScopeSet {
|
|
|
2036
2036
|
}
|
|
2037
2037
|
}
|
|
2038
2038
|
|
|
2039
|
-
/*! @azure/msal-common v15.7.
|
|
2039
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
2040
2040
|
|
|
2041
2041
|
/*
|
|
2042
2042
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2076,7 +2076,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
|
|
|
2076
2076
|
};
|
|
2077
2077
|
}
|
|
2078
2078
|
|
|
2079
|
-
/*! @azure/msal-common v15.7.
|
|
2079
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
2080
2080
|
/*
|
|
2081
2081
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2082
2082
|
* Licensed under the MIT License.
|
|
@@ -2155,7 +2155,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
|
|
|
2155
2155
|
return updatedAccountInfo;
|
|
2156
2156
|
}
|
|
2157
2157
|
|
|
2158
|
-
/*! @azure/msal-common v15.7.
|
|
2158
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
2159
2159
|
/*
|
|
2160
2160
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2161
2161
|
* Licensed under the MIT License.
|
|
@@ -2170,7 +2170,7 @@ const AuthorityType = {
|
|
|
2170
2170
|
Ciam: 3,
|
|
2171
2171
|
};
|
|
2172
2172
|
|
|
2173
|
-
/*! @azure/msal-common v15.7.
|
|
2173
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
2174
2174
|
/*
|
|
2175
2175
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2176
2176
|
* Licensed under the MIT License.
|
|
@@ -2192,7 +2192,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
|
|
|
2192
2192
|
return null;
|
|
2193
2193
|
}
|
|
2194
2194
|
|
|
2195
|
-
/*! @azure/msal-common v15.7.
|
|
2195
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
2196
2196
|
/*
|
|
2197
2197
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2198
2198
|
* Licensed under the MIT License.
|
|
@@ -2216,7 +2216,7 @@ const ProtocolMode = {
|
|
|
2216
2216
|
EAR: "EAR",
|
|
2217
2217
|
};
|
|
2218
2218
|
|
|
2219
|
-
/*! @azure/msal-common v15.7.
|
|
2219
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
2220
2220
|
|
|
2221
2221
|
/*
|
|
2222
2222
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2459,7 +2459,7 @@ class AccountEntity {
|
|
|
2459
2459
|
}
|
|
2460
2460
|
}
|
|
2461
2461
|
|
|
2462
|
-
/*! @azure/msal-common v15.7.
|
|
2462
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
2463
2463
|
|
|
2464
2464
|
/*
|
|
2465
2465
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2524,7 +2524,7 @@ function mapToQueryString(parameters, encodeExtraParams = true, extraQueryParame
|
|
|
2524
2524
|
return queryParameterArray.join("&");
|
|
2525
2525
|
}
|
|
2526
2526
|
|
|
2527
|
-
/*! @azure/msal-common v15.7.
|
|
2527
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
2528
2528
|
|
|
2529
2529
|
/*
|
|
2530
2530
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2688,7 +2688,7 @@ class UrlString {
|
|
|
2688
2688
|
}
|
|
2689
2689
|
}
|
|
2690
2690
|
|
|
2691
|
-
/*! @azure/msal-common v15.7.
|
|
2691
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
2692
2692
|
|
|
2693
2693
|
/*
|
|
2694
2694
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2828,7 +2828,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
2828
2828
|
return null;
|
|
2829
2829
|
}
|
|
2830
2830
|
|
|
2831
|
-
/*! @azure/msal-common v15.7.
|
|
2831
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
2832
2832
|
/*
|
|
2833
2833
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2834
2834
|
* Licensed under the MIT License.
|
|
@@ -2836,7 +2836,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
2836
2836
|
const cacheQuotaExceededErrorCode = "cache_quota_exceeded";
|
|
2837
2837
|
const cacheUnknownErrorCode = "cache_error_unknown";
|
|
2838
2838
|
|
|
2839
|
-
/*! @azure/msal-common v15.7.
|
|
2839
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
2840
2840
|
|
|
2841
2841
|
/*
|
|
2842
2842
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2863,7 +2863,7 @@ class CacheError extends Error {
|
|
|
2863
2863
|
}
|
|
2864
2864
|
}
|
|
2865
2865
|
|
|
2866
|
-
/*! @azure/msal-common v15.7.
|
|
2866
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
2867
2867
|
|
|
2868
2868
|
/*
|
|
2869
2869
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2874,11 +2874,12 @@ class CacheError extends Error {
|
|
|
2874
2874
|
* @internal
|
|
2875
2875
|
*/
|
|
2876
2876
|
class CacheManager {
|
|
2877
|
-
constructor(clientId, cryptoImpl, logger, staticAuthorityOptions) {
|
|
2877
|
+
constructor(clientId, cryptoImpl, logger, performanceClient, staticAuthorityOptions) {
|
|
2878
2878
|
this.clientId = clientId;
|
|
2879
2879
|
this.cryptoImpl = cryptoImpl;
|
|
2880
2880
|
this.commonLogger = logger.clone(name$1, version$1);
|
|
2881
2881
|
this.staticAuthorityOptions = staticAuthorityOptions;
|
|
2882
|
+
this.performanceClient = performanceClient;
|
|
2882
2883
|
}
|
|
2883
2884
|
/**
|
|
2884
2885
|
* Returns all the accounts in the cache that match the optional filter. If no filter is provided, all accounts are returned.
|
|
@@ -3087,7 +3088,6 @@ class CacheManager {
|
|
|
3087
3088
|
};
|
|
3088
3089
|
const tokenKeys = this.getTokenKeys();
|
|
3089
3090
|
const currentScopes = ScopeSet.fromString(credential.target);
|
|
3090
|
-
const removedAccessTokens = [];
|
|
3091
3091
|
tokenKeys.accessToken.forEach((key) => {
|
|
3092
3092
|
if (!this.accessTokenKeyMatchesFilter(key, accessTokenFilter, false)) {
|
|
3093
3093
|
return;
|
|
@@ -3097,11 +3097,10 @@ class CacheManager {
|
|
|
3097
3097
|
this.credentialMatchesFilter(tokenEntity, accessTokenFilter)) {
|
|
3098
3098
|
const tokenScopeSet = ScopeSet.fromString(tokenEntity.target);
|
|
3099
3099
|
if (tokenScopeSet.intersectingScopeSets(currentScopes)) {
|
|
3100
|
-
|
|
3100
|
+
this.removeAccessToken(key, correlationId);
|
|
3101
3101
|
}
|
|
3102
3102
|
}
|
|
3103
3103
|
});
|
|
3104
|
-
await Promise.all(removedAccessTokens);
|
|
3105
3104
|
await this.setAccessTokenCredential(credential, correlationId);
|
|
3106
3105
|
}
|
|
3107
3106
|
/**
|
|
@@ -3343,34 +3342,31 @@ class CacheManager {
|
|
|
3343
3342
|
/**
|
|
3344
3343
|
* Removes all accounts and related tokens from cache.
|
|
3345
3344
|
*/
|
|
3346
|
-
|
|
3345
|
+
removeAllAccounts(correlationId) {
|
|
3347
3346
|
const allAccountKeys = this.getAccountKeys();
|
|
3348
|
-
const removedAccounts = [];
|
|
3349
3347
|
allAccountKeys.forEach((cacheKey) => {
|
|
3350
|
-
|
|
3348
|
+
this.removeAccount(cacheKey, correlationId);
|
|
3351
3349
|
});
|
|
3352
|
-
await Promise.all(removedAccounts);
|
|
3353
3350
|
}
|
|
3354
3351
|
/**
|
|
3355
3352
|
* Removes the account and related tokens for a given account key
|
|
3356
3353
|
* @param account
|
|
3357
3354
|
*/
|
|
3358
|
-
|
|
3355
|
+
removeAccount(accountKey, correlationId) {
|
|
3359
3356
|
const account = this.getAccount(accountKey, this.commonLogger);
|
|
3360
3357
|
if (!account) {
|
|
3361
3358
|
return;
|
|
3362
3359
|
}
|
|
3363
|
-
|
|
3360
|
+
this.removeAccountContext(account, correlationId);
|
|
3364
3361
|
this.removeItem(accountKey);
|
|
3365
3362
|
}
|
|
3366
3363
|
/**
|
|
3367
3364
|
* Removes credentials associated with the provided account
|
|
3368
3365
|
* @param account
|
|
3369
3366
|
*/
|
|
3370
|
-
|
|
3367
|
+
removeAccountContext(account, correlationId) {
|
|
3371
3368
|
const allTokenKeys = this.getTokenKeys();
|
|
3372
3369
|
const accountId = account.generateAccountId();
|
|
3373
|
-
const removedCredentials = [];
|
|
3374
3370
|
allTokenKeys.idToken.forEach((key) => {
|
|
3375
3371
|
if (key.indexOf(accountId) === 0) {
|
|
3376
3372
|
this.removeIdToken(key);
|
|
@@ -3378,7 +3374,7 @@ class CacheManager {
|
|
|
3378
3374
|
});
|
|
3379
3375
|
allTokenKeys.accessToken.forEach((key) => {
|
|
3380
3376
|
if (key.indexOf(accountId) === 0) {
|
|
3381
|
-
|
|
3377
|
+
this.removeAccessToken(key, correlationId);
|
|
3382
3378
|
}
|
|
3383
3379
|
});
|
|
3384
3380
|
allTokenKeys.refreshToken.forEach((key) => {
|
|
@@ -3386,17 +3382,17 @@ class CacheManager {
|
|
|
3386
3382
|
this.removeRefreshToken(key);
|
|
3387
3383
|
}
|
|
3388
3384
|
});
|
|
3389
|
-
await Promise.all(removedCredentials);
|
|
3390
3385
|
}
|
|
3391
3386
|
/**
|
|
3392
3387
|
* returns a boolean if the given credential is removed
|
|
3393
3388
|
* @param credential
|
|
3394
3389
|
*/
|
|
3395
|
-
|
|
3390
|
+
removeAccessToken(key, correlationId) {
|
|
3396
3391
|
const credential = this.getAccessTokenCredential(key);
|
|
3397
3392
|
if (!credential) {
|
|
3398
3393
|
return;
|
|
3399
3394
|
}
|
|
3395
|
+
this.removeItem(key);
|
|
3400
3396
|
// Remove Token Binding Key from key store for PoP Tokens Credentials
|
|
3401
3397
|
if (credential.credentialType.toLowerCase() ===
|
|
3402
3398
|
CredentialType.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase()) {
|
|
@@ -3404,16 +3400,15 @@ class CacheManager {
|
|
|
3404
3400
|
const accessTokenWithAuthSchemeEntity = credential;
|
|
3405
3401
|
const kid = accessTokenWithAuthSchemeEntity.keyId;
|
|
3406
3402
|
if (kid) {
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
}
|
|
3403
|
+
void this.cryptoImpl
|
|
3404
|
+
.removeTokenBindingKey(kid)
|
|
3405
|
+
.catch(() => {
|
|
3406
|
+
this.commonLogger.error(`Failed to remove token binding key ${kid}`, correlationId);
|
|
3407
|
+
this.performanceClient?.incrementFields({ removeTokenBindingKeyFailure: 1 }, correlationId);
|
|
3408
|
+
});
|
|
3413
3409
|
}
|
|
3414
3410
|
}
|
|
3415
3411
|
}
|
|
3416
|
-
return this.removeItem(key);
|
|
3417
3412
|
}
|
|
3418
3413
|
/**
|
|
3419
3414
|
* Removes all app metadata objects from cache.
|
|
@@ -3555,10 +3550,10 @@ class CacheManager {
|
|
|
3555
3550
|
* @param request {BaseAuthRequest}
|
|
3556
3551
|
* @param tokenKeys {?TokenKeys}
|
|
3557
3552
|
* @param performanceClient {?IPerformanceClient}
|
|
3558
|
-
* @param correlationId {?string}
|
|
3559
3553
|
*/
|
|
3560
|
-
getAccessToken(account, request, tokenKeys, targetRealm
|
|
3561
|
-
|
|
3554
|
+
getAccessToken(account, request, tokenKeys, targetRealm) {
|
|
3555
|
+
const correlationId = request.correlationId;
|
|
3556
|
+
this.commonLogger.trace("CacheManager - getAccessToken called", correlationId);
|
|
3562
3557
|
const scopes = ScopeSet.createSearchScopes(request.scopes);
|
|
3563
3558
|
const authScheme = request.authenticationScheme || AuthenticationScheme.BEARER;
|
|
3564
3559
|
/*
|
|
@@ -3596,20 +3591,18 @@ class CacheManager {
|
|
|
3596
3591
|
});
|
|
3597
3592
|
const numAccessTokens = accessTokens.length;
|
|
3598
3593
|
if (numAccessTokens < 1) {
|
|
3599
|
-
this.commonLogger.info("CacheManager:getAccessToken - No token found");
|
|
3594
|
+
this.commonLogger.info("CacheManager:getAccessToken - No token found", correlationId);
|
|
3600
3595
|
return null;
|
|
3601
3596
|
}
|
|
3602
3597
|
else if (numAccessTokens > 1) {
|
|
3603
|
-
this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them");
|
|
3598
|
+
this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them", correlationId);
|
|
3604
3599
|
accessTokens.forEach((accessToken) => {
|
|
3605
|
-
|
|
3600
|
+
this.removeAccessToken(generateCredentialKey(accessToken), correlationId);
|
|
3606
3601
|
});
|
|
3607
|
-
|
|
3608
|
-
performanceClient.addFields({ multiMatchedAT: accessTokens.length }, correlationId);
|
|
3609
|
-
}
|
|
3602
|
+
this.performanceClient.addFields({ multiMatchedAT: accessTokens.length }, correlationId);
|
|
3610
3603
|
return null;
|
|
3611
3604
|
}
|
|
3612
|
-
this.commonLogger.info("CacheManager:getAccessToken - Returning access token");
|
|
3605
|
+
this.commonLogger.info("CacheManager:getAccessToken - Returning access token", correlationId);
|
|
3613
3606
|
return accessTokens[0];
|
|
3614
3607
|
}
|
|
3615
3608
|
/**
|
|
@@ -4047,7 +4040,356 @@ class DefaultStorageClass extends CacheManager {
|
|
|
4047
4040
|
}
|
|
4048
4041
|
}
|
|
4049
4042
|
|
|
4050
|
-
/*! @azure/msal-common v15.7.
|
|
4043
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
4044
|
+
/*
|
|
4045
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4046
|
+
* Licensed under the MIT License.
|
|
4047
|
+
*/
|
|
4048
|
+
/**
|
|
4049
|
+
* Enumeration of operations that are instrumented by have their performance measured by the PerformanceClient.
|
|
4050
|
+
*
|
|
4051
|
+
* @export
|
|
4052
|
+
* @enum {number}
|
|
4053
|
+
*/
|
|
4054
|
+
const PerformanceEvents = {
|
|
4055
|
+
/**
|
|
4056
|
+
* acquireTokenByCode API (msal-browser and msal-node).
|
|
4057
|
+
* Used to acquire tokens by trading an authorization code against the token endpoint.
|
|
4058
|
+
*/
|
|
4059
|
+
AcquireTokenByCode: "acquireTokenByCode",
|
|
4060
|
+
/**
|
|
4061
|
+
* acquireTokenByRefreshToken API (msal-browser and msal-node).
|
|
4062
|
+
* Used to renew an access token using a refresh token against the token endpoint.
|
|
4063
|
+
*/
|
|
4064
|
+
AcquireTokenByRefreshToken: "acquireTokenByRefreshToken",
|
|
4065
|
+
/**
|
|
4066
|
+
* acquireTokenSilent API (msal-browser and msal-node).
|
|
4067
|
+
* Used to silently acquire a new access token (from the cache or the network).
|
|
4068
|
+
*/
|
|
4069
|
+
AcquireTokenSilent: "acquireTokenSilent",
|
|
4070
|
+
/**
|
|
4071
|
+
* acquireTokenSilentAsync (msal-browser).
|
|
4072
|
+
* Internal API for acquireTokenSilent.
|
|
4073
|
+
*/
|
|
4074
|
+
AcquireTokenSilentAsync: "acquireTokenSilentAsync",
|
|
4075
|
+
/**
|
|
4076
|
+
* acquireTokenPopup (msal-browser).
|
|
4077
|
+
* Used to acquire a new access token interactively through pop ups
|
|
4078
|
+
*/
|
|
4079
|
+
AcquireTokenPopup: "acquireTokenPopup",
|
|
4080
|
+
/**
|
|
4081
|
+
* acquireTokenPreRedirect (msal-browser).
|
|
4082
|
+
* First part of the redirect flow.
|
|
4083
|
+
* Used to acquire a new access token interactively through redirects.
|
|
4084
|
+
*/
|
|
4085
|
+
AcquireTokenPreRedirect: "acquireTokenPreRedirect",
|
|
4086
|
+
/**
|
|
4087
|
+
* acquireTokenRedirect (msal-browser).
|
|
4088
|
+
* Second part of the redirect flow.
|
|
4089
|
+
* Used to acquire a new access token interactively through redirects.
|
|
4090
|
+
*/
|
|
4091
|
+
AcquireTokenRedirect: "acquireTokenRedirect",
|
|
4092
|
+
/**
|
|
4093
|
+
* getPublicKeyThumbprint API in CryptoOpts class (msal-browser).
|
|
4094
|
+
* Used to generate a public/private keypair and generate a public key thumbprint for pop requests.
|
|
4095
|
+
*/
|
|
4096
|
+
CryptoOptsGetPublicKeyThumbprint: "cryptoOptsGetPublicKeyThumbprint",
|
|
4097
|
+
/**
|
|
4098
|
+
* signJwt API in CryptoOpts class (msal-browser).
|
|
4099
|
+
* Used to signed a pop token.
|
|
4100
|
+
*/
|
|
4101
|
+
CryptoOptsSignJwt: "cryptoOptsSignJwt",
|
|
4102
|
+
/**
|
|
4103
|
+
* acquireToken API in the SilentCacheClient class (msal-browser).
|
|
4104
|
+
* Used to read access tokens from the cache.
|
|
4105
|
+
*/
|
|
4106
|
+
SilentCacheClientAcquireToken: "silentCacheClientAcquireToken",
|
|
4107
|
+
/**
|
|
4108
|
+
* acquireToken API in the SilentIframeClient class (msal-browser).
|
|
4109
|
+
* Used to acquire a new set of tokens from the authorize endpoint in a hidden iframe.
|
|
4110
|
+
*/
|
|
4111
|
+
SilentIframeClientAcquireToken: "silentIframeClientAcquireToken",
|
|
4112
|
+
AwaitConcurrentIframe: "awaitConcurrentIframe",
|
|
4113
|
+
/**
|
|
4114
|
+
* acquireToken API in SilentRereshClient (msal-browser).
|
|
4115
|
+
* Used to acquire a new set of tokens from the token endpoint using a refresh token.
|
|
4116
|
+
*/
|
|
4117
|
+
SilentRefreshClientAcquireToken: "silentRefreshClientAcquireToken",
|
|
4118
|
+
/**
|
|
4119
|
+
* ssoSilent API (msal-browser).
|
|
4120
|
+
* Used to silently acquire an authorization code and set of tokens using a hidden iframe.
|
|
4121
|
+
*/
|
|
4122
|
+
SsoSilent: "ssoSilent",
|
|
4123
|
+
/**
|
|
4124
|
+
* getDiscoveredAuthority API in StandardInteractionClient class (msal-browser).
|
|
4125
|
+
* Used to load authority metadata for a request.
|
|
4126
|
+
*/
|
|
4127
|
+
StandardInteractionClientGetDiscoveredAuthority: "standardInteractionClientGetDiscoveredAuthority",
|
|
4128
|
+
/**
|
|
4129
|
+
* acquireToken APIs in msal-browser.
|
|
4130
|
+
* Used to make an /authorize endpoint call with native brokering enabled.
|
|
4131
|
+
*/
|
|
4132
|
+
FetchAccountIdWithNativeBroker: "fetchAccountIdWithNativeBroker",
|
|
4133
|
+
/**
|
|
4134
|
+
* acquireToken API in NativeInteractionClient class (msal-browser).
|
|
4135
|
+
* Used to acquire a token from Native component when native brokering is enabled.
|
|
4136
|
+
*/
|
|
4137
|
+
NativeInteractionClientAcquireToken: "nativeInteractionClientAcquireToken",
|
|
4138
|
+
/**
|
|
4139
|
+
* Time spent creating default headers for requests to token endpoint
|
|
4140
|
+
*/
|
|
4141
|
+
BaseClientCreateTokenRequestHeaders: "baseClientCreateTokenRequestHeaders",
|
|
4142
|
+
/**
|
|
4143
|
+
* Time spent sending/waiting for the response of a request to the token endpoint
|
|
4144
|
+
*/
|
|
4145
|
+
NetworkClientSendPostRequestAsync: "networkClientSendPostRequestAsync",
|
|
4146
|
+
RefreshTokenClientExecutePostToTokenEndpoint: "refreshTokenClientExecutePostToTokenEndpoint",
|
|
4147
|
+
AuthorizationCodeClientExecutePostToTokenEndpoint: "authorizationCodeClientExecutePostToTokenEndpoint",
|
|
4148
|
+
/**
|
|
4149
|
+
* Used to measure the time taken for completing embedded-broker handshake (PW-Broker).
|
|
4150
|
+
*/
|
|
4151
|
+
BrokerHandhshake: "brokerHandshake",
|
|
4152
|
+
/**
|
|
4153
|
+
* acquireTokenByRefreshToken API in BrokerClientApplication (PW-Broker) .
|
|
4154
|
+
*/
|
|
4155
|
+
AcquireTokenByRefreshTokenInBroker: "acquireTokenByRefreshTokenInBroker",
|
|
4156
|
+
/**
|
|
4157
|
+
* Time taken for token acquisition by broker
|
|
4158
|
+
*/
|
|
4159
|
+
AcquireTokenByBroker: "acquireTokenByBroker",
|
|
4160
|
+
/**
|
|
4161
|
+
* Time spent on the network for refresh token acquisition
|
|
4162
|
+
*/
|
|
4163
|
+
RefreshTokenClientExecuteTokenRequest: "refreshTokenClientExecuteTokenRequest",
|
|
4164
|
+
/**
|
|
4165
|
+
* Time taken for acquiring refresh token , records RT size
|
|
4166
|
+
*/
|
|
4167
|
+
RefreshTokenClientAcquireToken: "refreshTokenClientAcquireToken",
|
|
4168
|
+
/**
|
|
4169
|
+
* Time taken for acquiring cached refresh token
|
|
4170
|
+
*/
|
|
4171
|
+
RefreshTokenClientAcquireTokenWithCachedRefreshToken: "refreshTokenClientAcquireTokenWithCachedRefreshToken",
|
|
4172
|
+
/**
|
|
4173
|
+
* acquireTokenByRefreshToken API in RefreshTokenClient (msal-common).
|
|
4174
|
+
*/
|
|
4175
|
+
RefreshTokenClientAcquireTokenByRefreshToken: "refreshTokenClientAcquireTokenByRefreshToken",
|
|
4176
|
+
/**
|
|
4177
|
+
* Helper function to create token request body in RefreshTokenClient (msal-common).
|
|
4178
|
+
*/
|
|
4179
|
+
RefreshTokenClientCreateTokenRequestBody: "refreshTokenClientCreateTokenRequestBody",
|
|
4180
|
+
/**
|
|
4181
|
+
* acquireTokenFromCache (msal-browser).
|
|
4182
|
+
* Internal API for acquiring token from cache
|
|
4183
|
+
*/
|
|
4184
|
+
AcquireTokenFromCache: "acquireTokenFromCache",
|
|
4185
|
+
SilentFlowClientAcquireCachedToken: "silentFlowClientAcquireCachedToken",
|
|
4186
|
+
SilentFlowClientGenerateResultFromCacheRecord: "silentFlowClientGenerateResultFromCacheRecord",
|
|
4187
|
+
/**
|
|
4188
|
+
* acquireTokenBySilentIframe (msal-browser).
|
|
4189
|
+
* Internal API for acquiring token by silent Iframe
|
|
4190
|
+
*/
|
|
4191
|
+
AcquireTokenBySilentIframe: "acquireTokenBySilentIframe",
|
|
4192
|
+
/**
|
|
4193
|
+
* Internal API for initializing base request in BaseInteractionClient (msal-browser)
|
|
4194
|
+
*/
|
|
4195
|
+
InitializeBaseRequest: "initializeBaseRequest",
|
|
4196
|
+
/**
|
|
4197
|
+
* Internal API for initializing silent request in SilentCacheClient (msal-browser)
|
|
4198
|
+
*/
|
|
4199
|
+
InitializeSilentRequest: "initializeSilentRequest",
|
|
4200
|
+
InitializeClientApplication: "initializeClientApplication",
|
|
4201
|
+
InitializeCache: "initializeCache",
|
|
4202
|
+
/**
|
|
4203
|
+
* Helper function in SilentIframeClient class (msal-browser).
|
|
4204
|
+
*/
|
|
4205
|
+
SilentIframeClientTokenHelper: "silentIframeClientTokenHelper",
|
|
4206
|
+
/**
|
|
4207
|
+
* SilentHandler
|
|
4208
|
+
*/
|
|
4209
|
+
SilentHandlerInitiateAuthRequest: "silentHandlerInitiateAuthRequest",
|
|
4210
|
+
SilentHandlerMonitorIframeForHash: "silentHandlerMonitorIframeForHash",
|
|
4211
|
+
SilentHandlerLoadFrame: "silentHandlerLoadFrame",
|
|
4212
|
+
SilentHandlerLoadFrameSync: "silentHandlerLoadFrameSync",
|
|
4213
|
+
/**
|
|
4214
|
+
* Helper functions in StandardInteractionClient class (msal-browser)
|
|
4215
|
+
*/
|
|
4216
|
+
StandardInteractionClientCreateAuthCodeClient: "standardInteractionClientCreateAuthCodeClient",
|
|
4217
|
+
StandardInteractionClientGetClientConfiguration: "standardInteractionClientGetClientConfiguration",
|
|
4218
|
+
StandardInteractionClientInitializeAuthorizationRequest: "standardInteractionClientInitializeAuthorizationRequest",
|
|
4219
|
+
/**
|
|
4220
|
+
* getAuthCodeUrl API (msal-browser and msal-node).
|
|
4221
|
+
*/
|
|
4222
|
+
GetAuthCodeUrl: "getAuthCodeUrl",
|
|
4223
|
+
GetStandardParams: "getStandardParams",
|
|
4224
|
+
/**
|
|
4225
|
+
* Functions from InteractionHandler (msal-browser)
|
|
4226
|
+
*/
|
|
4227
|
+
HandleCodeResponseFromServer: "handleCodeResponseFromServer",
|
|
4228
|
+
HandleCodeResponse: "handleCodeResponse",
|
|
4229
|
+
HandleResponseEar: "handleResponseEar",
|
|
4230
|
+
HandleResponsePlatformBroker: "handleResponsePlatformBroker",
|
|
4231
|
+
HandleResponseCode: "handleResponseCode",
|
|
4232
|
+
UpdateTokenEndpointAuthority: "updateTokenEndpointAuthority",
|
|
4233
|
+
/**
|
|
4234
|
+
* APIs in Authorization Code Client (msal-common)
|
|
4235
|
+
*/
|
|
4236
|
+
AuthClientAcquireToken: "authClientAcquireToken",
|
|
4237
|
+
AuthClientExecuteTokenRequest: "authClientExecuteTokenRequest",
|
|
4238
|
+
AuthClientCreateTokenRequestBody: "authClientCreateTokenRequestBody",
|
|
4239
|
+
/**
|
|
4240
|
+
* Generate functions in PopTokenGenerator (msal-common)
|
|
4241
|
+
*/
|
|
4242
|
+
PopTokenGenerateCnf: "popTokenGenerateCnf",
|
|
4243
|
+
PopTokenGenerateKid: "popTokenGenerateKid",
|
|
4244
|
+
/**
|
|
4245
|
+
* handleServerTokenResponse API in ResponseHandler (msal-common)
|
|
4246
|
+
*/
|
|
4247
|
+
HandleServerTokenResponse: "handleServerTokenResponse",
|
|
4248
|
+
DeserializeResponse: "deserializeResponse",
|
|
4249
|
+
/**
|
|
4250
|
+
* Authority functions
|
|
4251
|
+
*/
|
|
4252
|
+
AuthorityFactoryCreateDiscoveredInstance: "authorityFactoryCreateDiscoveredInstance",
|
|
4253
|
+
AuthorityResolveEndpointsAsync: "authorityResolveEndpointsAsync",
|
|
4254
|
+
AuthorityResolveEndpointsFromLocalSources: "authorityResolveEndpointsFromLocalSources",
|
|
4255
|
+
AuthorityGetCloudDiscoveryMetadataFromNetwork: "authorityGetCloudDiscoveryMetadataFromNetwork",
|
|
4256
|
+
AuthorityUpdateCloudDiscoveryMetadata: "authorityUpdateCloudDiscoveryMetadata",
|
|
4257
|
+
AuthorityGetEndpointMetadataFromNetwork: "authorityGetEndpointMetadataFromNetwork",
|
|
4258
|
+
AuthorityUpdateEndpointMetadata: "authorityUpdateEndpointMetadata",
|
|
4259
|
+
AuthorityUpdateMetadataWithRegionalInformation: "authorityUpdateMetadataWithRegionalInformation",
|
|
4260
|
+
/**
|
|
4261
|
+
* Region Discovery functions
|
|
4262
|
+
*/
|
|
4263
|
+
RegionDiscoveryDetectRegion: "regionDiscoveryDetectRegion",
|
|
4264
|
+
RegionDiscoveryGetRegionFromIMDS: "regionDiscoveryGetRegionFromIMDS",
|
|
4265
|
+
RegionDiscoveryGetCurrentVersion: "regionDiscoveryGetCurrentVersion",
|
|
4266
|
+
AcquireTokenByCodeAsync: "acquireTokenByCodeAsync",
|
|
4267
|
+
GetEndpointMetadataFromNetwork: "getEndpointMetadataFromNetwork",
|
|
4268
|
+
GetCloudDiscoveryMetadataFromNetworkMeasurement: "getCloudDiscoveryMetadataFromNetworkMeasurement",
|
|
4269
|
+
HandleRedirectPromiseMeasurement: "handleRedirectPromise",
|
|
4270
|
+
HandleNativeRedirectPromiseMeasurement: "handleNativeRedirectPromise",
|
|
4271
|
+
UpdateCloudDiscoveryMetadataMeasurement: "updateCloudDiscoveryMetadataMeasurement",
|
|
4272
|
+
UsernamePasswordClientAcquireToken: "usernamePasswordClientAcquireToken",
|
|
4273
|
+
NativeMessageHandlerHandshake: "nativeMessageHandlerHandshake",
|
|
4274
|
+
NativeGenerateAuthResult: "nativeGenerateAuthResult",
|
|
4275
|
+
RemoveHiddenIframe: "removeHiddenIframe",
|
|
4276
|
+
/**
|
|
4277
|
+
* Cache operations
|
|
4278
|
+
*/
|
|
4279
|
+
ClearTokensAndKeysWithClaims: "clearTokensAndKeysWithClaims",
|
|
4280
|
+
CacheManagerGetRefreshToken: "cacheManagerGetRefreshToken",
|
|
4281
|
+
ImportExistingCache: "importExistingCache",
|
|
4282
|
+
SetUserData: "setUserData",
|
|
4283
|
+
LocalStorageUpdated: "localStorageUpdated",
|
|
4284
|
+
/**
|
|
4285
|
+
* Crypto Operations
|
|
4286
|
+
*/
|
|
4287
|
+
GeneratePkceCodes: "generatePkceCodes",
|
|
4288
|
+
GenerateCodeVerifier: "generateCodeVerifier",
|
|
4289
|
+
GenerateCodeChallengeFromVerifier: "generateCodeChallengeFromVerifier",
|
|
4290
|
+
Sha256Digest: "sha256Digest",
|
|
4291
|
+
GetRandomValues: "getRandomValues",
|
|
4292
|
+
GenerateHKDF: "generateHKDF",
|
|
4293
|
+
GenerateBaseKey: "generateBaseKey",
|
|
4294
|
+
Base64Decode: "base64Decode",
|
|
4295
|
+
UrlEncodeArr: "urlEncodeArr",
|
|
4296
|
+
Encrypt: "encrypt",
|
|
4297
|
+
Decrypt: "decrypt",
|
|
4298
|
+
GenerateEarKey: "generateEarKey",
|
|
4299
|
+
DecryptEarResponse: "decryptEarResponse",
|
|
4300
|
+
};
|
|
4301
|
+
/**
|
|
4302
|
+
* State of the performance event.
|
|
4303
|
+
*
|
|
4304
|
+
* @export
|
|
4305
|
+
* @enum {number}
|
|
4306
|
+
*/
|
|
4307
|
+
const PerformanceEventStatus = {
|
|
4308
|
+
NotStarted: 0,
|
|
4309
|
+
InProgress: 1,
|
|
4310
|
+
Completed: 2,
|
|
4311
|
+
};
|
|
4312
|
+
|
|
4313
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
4314
|
+
|
|
4315
|
+
/*
|
|
4316
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4317
|
+
* Licensed under the MIT License.
|
|
4318
|
+
*/
|
|
4319
|
+
class StubPerformanceMeasurement {
|
|
4320
|
+
startMeasurement() {
|
|
4321
|
+
return;
|
|
4322
|
+
}
|
|
4323
|
+
endMeasurement() {
|
|
4324
|
+
return;
|
|
4325
|
+
}
|
|
4326
|
+
flushMeasurement() {
|
|
4327
|
+
return null;
|
|
4328
|
+
}
|
|
4329
|
+
}
|
|
4330
|
+
class StubPerformanceClient {
|
|
4331
|
+
generateId() {
|
|
4332
|
+
return "callback-id";
|
|
4333
|
+
}
|
|
4334
|
+
startMeasurement(measureName, correlationId) {
|
|
4335
|
+
return {
|
|
4336
|
+
end: () => null,
|
|
4337
|
+
discard: () => { },
|
|
4338
|
+
add: () => { },
|
|
4339
|
+
increment: () => { },
|
|
4340
|
+
event: {
|
|
4341
|
+
eventId: this.generateId(),
|
|
4342
|
+
status: PerformanceEventStatus.InProgress,
|
|
4343
|
+
authority: "",
|
|
4344
|
+
libraryName: "",
|
|
4345
|
+
libraryVersion: "",
|
|
4346
|
+
clientId: "",
|
|
4347
|
+
name: measureName,
|
|
4348
|
+
startTimeMs: Date.now(),
|
|
4349
|
+
correlationId: correlationId || "",
|
|
4350
|
+
},
|
|
4351
|
+
measurement: new StubPerformanceMeasurement(),
|
|
4352
|
+
};
|
|
4353
|
+
}
|
|
4354
|
+
startPerformanceMeasurement() {
|
|
4355
|
+
return new StubPerformanceMeasurement();
|
|
4356
|
+
}
|
|
4357
|
+
calculateQueuedTime() {
|
|
4358
|
+
return 0;
|
|
4359
|
+
}
|
|
4360
|
+
addQueueMeasurement() {
|
|
4361
|
+
return;
|
|
4362
|
+
}
|
|
4363
|
+
setPreQueueTime() {
|
|
4364
|
+
return;
|
|
4365
|
+
}
|
|
4366
|
+
endMeasurement() {
|
|
4367
|
+
return null;
|
|
4368
|
+
}
|
|
4369
|
+
discardMeasurements() {
|
|
4370
|
+
return;
|
|
4371
|
+
}
|
|
4372
|
+
removePerformanceCallback() {
|
|
4373
|
+
return true;
|
|
4374
|
+
}
|
|
4375
|
+
addPerformanceCallback() {
|
|
4376
|
+
return "";
|
|
4377
|
+
}
|
|
4378
|
+
emitEvents() {
|
|
4379
|
+
return;
|
|
4380
|
+
}
|
|
4381
|
+
addFields() {
|
|
4382
|
+
return;
|
|
4383
|
+
}
|
|
4384
|
+
incrementFields() {
|
|
4385
|
+
return;
|
|
4386
|
+
}
|
|
4387
|
+
cacheEventByCorrelationId() {
|
|
4388
|
+
return;
|
|
4389
|
+
}
|
|
4390
|
+
}
|
|
4391
|
+
|
|
4392
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
4051
4393
|
|
|
4052
4394
|
/*
|
|
4053
4395
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4114,7 +4456,7 @@ function buildClientConfiguration({ authOptions: userAuthOptions, systemOptions:
|
|
|
4114
4456
|
loggerOptions: loggerOptions,
|
|
4115
4457
|
cacheOptions: { ...DEFAULT_CACHE_OPTIONS$1, ...userCacheOptions },
|
|
4116
4458
|
storageInterface: storageImplementation ||
|
|
4117
|
-
new DefaultStorageClass(userAuthOptions.clientId, DEFAULT_CRYPTO_IMPLEMENTATION, new Logger(loggerOptions)),
|
|
4459
|
+
new DefaultStorageClass(userAuthOptions.clientId, DEFAULT_CRYPTO_IMPLEMENTATION, new Logger(loggerOptions), new StubPerformanceClient()),
|
|
4118
4460
|
networkInterface: networkImplementation || DEFAULT_NETWORK_IMPLEMENTATION,
|
|
4119
4461
|
cryptoInterface: cryptoImplementation || DEFAULT_CRYPTO_IMPLEMENTATION,
|
|
4120
4462
|
clientCredentials: clientCredentials || DEFAULT_CLIENT_CREDENTIALS,
|
|
@@ -4147,7 +4489,7 @@ function isOidcProtocolMode(config) {
|
|
|
4147
4489
|
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
4148
4490
|
}
|
|
4149
4491
|
|
|
4150
|
-
/*! @azure/msal-common v15.7.
|
|
4492
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
4151
4493
|
/*
|
|
4152
4494
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4153
4495
|
* Licensed under the MIT License.
|
|
@@ -4157,7 +4499,7 @@ const CcsCredentialType = {
|
|
|
4157
4499
|
UPN: "UPN",
|
|
4158
4500
|
};
|
|
4159
4501
|
|
|
4160
|
-
/*! @azure/msal-common v15.7.
|
|
4502
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
4161
4503
|
/*
|
|
4162
4504
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4163
4505
|
* Licensed under the MIT License.
|
|
@@ -4208,7 +4550,7 @@ const BROKER_CLIENT_ID = "brk_client_id";
|
|
|
4208
4550
|
const BROKER_REDIRECT_URI = "brk_redirect_uri";
|
|
4209
4551
|
const INSTANCE_AWARE = "instance_aware";
|
|
4210
4552
|
|
|
4211
|
-
/*! @azure/msal-common v15.7.
|
|
4553
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
4212
4554
|
|
|
4213
4555
|
/*
|
|
4214
4556
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4594,7 +4936,7 @@ function addBrokerParameters(parameters, brokerClientId, brokerRedirectUri) {
|
|
|
4594
4936
|
}
|
|
4595
4937
|
}
|
|
4596
4938
|
|
|
4597
|
-
/*! @azure/msal-common v15.7.
|
|
4939
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
4598
4940
|
/*
|
|
4599
4941
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4600
4942
|
* Licensed under the MIT License.
|
|
@@ -4606,7 +4948,7 @@ function isOpenIdConfigResponse(response) {
|
|
|
4606
4948
|
response.hasOwnProperty("jwks_uri"));
|
|
4607
4949
|
}
|
|
4608
4950
|
|
|
4609
|
-
/*! @azure/msal-common v15.7.
|
|
4951
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
4610
4952
|
/*
|
|
4611
4953
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4612
4954
|
* Licensed under the MIT License.
|
|
@@ -4616,276 +4958,17 @@ function isCloudInstanceDiscoveryResponse(response) {
|
|
|
4616
4958
|
response.hasOwnProperty("metadata"));
|
|
4617
4959
|
}
|
|
4618
4960
|
|
|
4619
|
-
/*! @azure/msal-common v15.7.
|
|
4620
|
-
/*
|
|
4621
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4622
|
-
* Licensed under the MIT License.
|
|
4623
|
-
*/
|
|
4624
|
-
function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
4625
|
-
return (response.hasOwnProperty("error") &&
|
|
4626
|
-
response.hasOwnProperty("error_description"));
|
|
4627
|
-
}
|
|
4628
|
-
|
|
4629
|
-
/*! @azure/msal-common v15.7.0 2025-05-30 */
|
|
4961
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
4630
4962
|
/*
|
|
4631
4963
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4632
|
-
* Licensed under the MIT License.
|
|
4633
|
-
*/
|
|
4634
|
-
/**
|
|
4635
|
-
* Enumeration of operations that are instrumented by have their performance measured by the PerformanceClient.
|
|
4636
|
-
*
|
|
4637
|
-
* @export
|
|
4638
|
-
* @enum {number}
|
|
4964
|
+
* Licensed under the MIT License.
|
|
4639
4965
|
*/
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
*/
|
|
4645
|
-
AcquireTokenByCode: "acquireTokenByCode",
|
|
4646
|
-
/**
|
|
4647
|
-
* acquireTokenByRefreshToken API (msal-browser and msal-node).
|
|
4648
|
-
* Used to renew an access token using a refresh token against the token endpoint.
|
|
4649
|
-
*/
|
|
4650
|
-
AcquireTokenByRefreshToken: "acquireTokenByRefreshToken",
|
|
4651
|
-
/**
|
|
4652
|
-
* acquireTokenSilent API (msal-browser and msal-node).
|
|
4653
|
-
* Used to silently acquire a new access token (from the cache or the network).
|
|
4654
|
-
*/
|
|
4655
|
-
AcquireTokenSilent: "acquireTokenSilent",
|
|
4656
|
-
/**
|
|
4657
|
-
* acquireTokenSilentAsync (msal-browser).
|
|
4658
|
-
* Internal API for acquireTokenSilent.
|
|
4659
|
-
*/
|
|
4660
|
-
AcquireTokenSilentAsync: "acquireTokenSilentAsync",
|
|
4661
|
-
/**
|
|
4662
|
-
* acquireTokenPopup (msal-browser).
|
|
4663
|
-
* Used to acquire a new access token interactively through pop ups
|
|
4664
|
-
*/
|
|
4665
|
-
AcquireTokenPopup: "acquireTokenPopup",
|
|
4666
|
-
/**
|
|
4667
|
-
* acquireTokenPreRedirect (msal-browser).
|
|
4668
|
-
* First part of the redirect flow.
|
|
4669
|
-
* Used to acquire a new access token interactively through redirects.
|
|
4670
|
-
*/
|
|
4671
|
-
AcquireTokenPreRedirect: "acquireTokenPreRedirect",
|
|
4672
|
-
/**
|
|
4673
|
-
* acquireTokenRedirect (msal-browser).
|
|
4674
|
-
* Second part of the redirect flow.
|
|
4675
|
-
* Used to acquire a new access token interactively through redirects.
|
|
4676
|
-
*/
|
|
4677
|
-
AcquireTokenRedirect: "acquireTokenRedirect",
|
|
4678
|
-
/**
|
|
4679
|
-
* getPublicKeyThumbprint API in CryptoOpts class (msal-browser).
|
|
4680
|
-
* Used to generate a public/private keypair and generate a public key thumbprint for pop requests.
|
|
4681
|
-
*/
|
|
4682
|
-
CryptoOptsGetPublicKeyThumbprint: "cryptoOptsGetPublicKeyThumbprint",
|
|
4683
|
-
/**
|
|
4684
|
-
* signJwt API in CryptoOpts class (msal-browser).
|
|
4685
|
-
* Used to signed a pop token.
|
|
4686
|
-
*/
|
|
4687
|
-
CryptoOptsSignJwt: "cryptoOptsSignJwt",
|
|
4688
|
-
/**
|
|
4689
|
-
* acquireToken API in the SilentCacheClient class (msal-browser).
|
|
4690
|
-
* Used to read access tokens from the cache.
|
|
4691
|
-
*/
|
|
4692
|
-
SilentCacheClientAcquireToken: "silentCacheClientAcquireToken",
|
|
4693
|
-
/**
|
|
4694
|
-
* acquireToken API in the SilentIframeClient class (msal-browser).
|
|
4695
|
-
* Used to acquire a new set of tokens from the authorize endpoint in a hidden iframe.
|
|
4696
|
-
*/
|
|
4697
|
-
SilentIframeClientAcquireToken: "silentIframeClientAcquireToken",
|
|
4698
|
-
AwaitConcurrentIframe: "awaitConcurrentIframe",
|
|
4699
|
-
/**
|
|
4700
|
-
* acquireToken API in SilentRereshClient (msal-browser).
|
|
4701
|
-
* Used to acquire a new set of tokens from the token endpoint using a refresh token.
|
|
4702
|
-
*/
|
|
4703
|
-
SilentRefreshClientAcquireToken: "silentRefreshClientAcquireToken",
|
|
4704
|
-
/**
|
|
4705
|
-
* ssoSilent API (msal-browser).
|
|
4706
|
-
* Used to silently acquire an authorization code and set of tokens using a hidden iframe.
|
|
4707
|
-
*/
|
|
4708
|
-
SsoSilent: "ssoSilent",
|
|
4709
|
-
/**
|
|
4710
|
-
* getDiscoveredAuthority API in StandardInteractionClient class (msal-browser).
|
|
4711
|
-
* Used to load authority metadata for a request.
|
|
4712
|
-
*/
|
|
4713
|
-
StandardInteractionClientGetDiscoveredAuthority: "standardInteractionClientGetDiscoveredAuthority",
|
|
4714
|
-
/**
|
|
4715
|
-
* acquireToken APIs in msal-browser.
|
|
4716
|
-
* Used to make an /authorize endpoint call with native brokering enabled.
|
|
4717
|
-
*/
|
|
4718
|
-
FetchAccountIdWithNativeBroker: "fetchAccountIdWithNativeBroker",
|
|
4719
|
-
/**
|
|
4720
|
-
* acquireToken API in NativeInteractionClient class (msal-browser).
|
|
4721
|
-
* Used to acquire a token from Native component when native brokering is enabled.
|
|
4722
|
-
*/
|
|
4723
|
-
NativeInteractionClientAcquireToken: "nativeInteractionClientAcquireToken",
|
|
4724
|
-
/**
|
|
4725
|
-
* Time spent creating default headers for requests to token endpoint
|
|
4726
|
-
*/
|
|
4727
|
-
BaseClientCreateTokenRequestHeaders: "baseClientCreateTokenRequestHeaders",
|
|
4728
|
-
/**
|
|
4729
|
-
* Time spent sending/waiting for the response of a request to the token endpoint
|
|
4730
|
-
*/
|
|
4731
|
-
NetworkClientSendPostRequestAsync: "networkClientSendPostRequestAsync",
|
|
4732
|
-
RefreshTokenClientExecutePostToTokenEndpoint: "refreshTokenClientExecutePostToTokenEndpoint",
|
|
4733
|
-
AuthorizationCodeClientExecutePostToTokenEndpoint: "authorizationCodeClientExecutePostToTokenEndpoint",
|
|
4734
|
-
/**
|
|
4735
|
-
* Used to measure the time taken for completing embedded-broker handshake (PW-Broker).
|
|
4736
|
-
*/
|
|
4737
|
-
BrokerHandhshake: "brokerHandshake",
|
|
4738
|
-
/**
|
|
4739
|
-
* acquireTokenByRefreshToken API in BrokerClientApplication (PW-Broker) .
|
|
4740
|
-
*/
|
|
4741
|
-
AcquireTokenByRefreshTokenInBroker: "acquireTokenByRefreshTokenInBroker",
|
|
4742
|
-
/**
|
|
4743
|
-
* Time taken for token acquisition by broker
|
|
4744
|
-
*/
|
|
4745
|
-
AcquireTokenByBroker: "acquireTokenByBroker",
|
|
4746
|
-
/**
|
|
4747
|
-
* Time spent on the network for refresh token acquisition
|
|
4748
|
-
*/
|
|
4749
|
-
RefreshTokenClientExecuteTokenRequest: "refreshTokenClientExecuteTokenRequest",
|
|
4750
|
-
/**
|
|
4751
|
-
* Time taken for acquiring refresh token , records RT size
|
|
4752
|
-
*/
|
|
4753
|
-
RefreshTokenClientAcquireToken: "refreshTokenClientAcquireToken",
|
|
4754
|
-
/**
|
|
4755
|
-
* Time taken for acquiring cached refresh token
|
|
4756
|
-
*/
|
|
4757
|
-
RefreshTokenClientAcquireTokenWithCachedRefreshToken: "refreshTokenClientAcquireTokenWithCachedRefreshToken",
|
|
4758
|
-
/**
|
|
4759
|
-
* acquireTokenByRefreshToken API in RefreshTokenClient (msal-common).
|
|
4760
|
-
*/
|
|
4761
|
-
RefreshTokenClientAcquireTokenByRefreshToken: "refreshTokenClientAcquireTokenByRefreshToken",
|
|
4762
|
-
/**
|
|
4763
|
-
* Helper function to create token request body in RefreshTokenClient (msal-common).
|
|
4764
|
-
*/
|
|
4765
|
-
RefreshTokenClientCreateTokenRequestBody: "refreshTokenClientCreateTokenRequestBody",
|
|
4766
|
-
/**
|
|
4767
|
-
* acquireTokenFromCache (msal-browser).
|
|
4768
|
-
* Internal API for acquiring token from cache
|
|
4769
|
-
*/
|
|
4770
|
-
AcquireTokenFromCache: "acquireTokenFromCache",
|
|
4771
|
-
SilentFlowClientAcquireCachedToken: "silentFlowClientAcquireCachedToken",
|
|
4772
|
-
SilentFlowClientGenerateResultFromCacheRecord: "silentFlowClientGenerateResultFromCacheRecord",
|
|
4773
|
-
/**
|
|
4774
|
-
* acquireTokenBySilentIframe (msal-browser).
|
|
4775
|
-
* Internal API for acquiring token by silent Iframe
|
|
4776
|
-
*/
|
|
4777
|
-
AcquireTokenBySilentIframe: "acquireTokenBySilentIframe",
|
|
4778
|
-
/**
|
|
4779
|
-
* Internal API for initializing base request in BaseInteractionClient (msal-browser)
|
|
4780
|
-
*/
|
|
4781
|
-
InitializeBaseRequest: "initializeBaseRequest",
|
|
4782
|
-
/**
|
|
4783
|
-
* Internal API for initializing silent request in SilentCacheClient (msal-browser)
|
|
4784
|
-
*/
|
|
4785
|
-
InitializeSilentRequest: "initializeSilentRequest",
|
|
4786
|
-
InitializeClientApplication: "initializeClientApplication",
|
|
4787
|
-
InitializeCache: "initializeCache",
|
|
4788
|
-
/**
|
|
4789
|
-
* Helper function in SilentIframeClient class (msal-browser).
|
|
4790
|
-
*/
|
|
4791
|
-
SilentIframeClientTokenHelper: "silentIframeClientTokenHelper",
|
|
4792
|
-
/**
|
|
4793
|
-
* SilentHandler
|
|
4794
|
-
*/
|
|
4795
|
-
SilentHandlerInitiateAuthRequest: "silentHandlerInitiateAuthRequest",
|
|
4796
|
-
SilentHandlerMonitorIframeForHash: "silentHandlerMonitorIframeForHash",
|
|
4797
|
-
SilentHandlerLoadFrame: "silentHandlerLoadFrame",
|
|
4798
|
-
SilentHandlerLoadFrameSync: "silentHandlerLoadFrameSync",
|
|
4799
|
-
/**
|
|
4800
|
-
* Helper functions in StandardInteractionClient class (msal-browser)
|
|
4801
|
-
*/
|
|
4802
|
-
StandardInteractionClientCreateAuthCodeClient: "standardInteractionClientCreateAuthCodeClient",
|
|
4803
|
-
StandardInteractionClientGetClientConfiguration: "standardInteractionClientGetClientConfiguration",
|
|
4804
|
-
StandardInteractionClientInitializeAuthorizationRequest: "standardInteractionClientInitializeAuthorizationRequest",
|
|
4805
|
-
/**
|
|
4806
|
-
* getAuthCodeUrl API (msal-browser and msal-node).
|
|
4807
|
-
*/
|
|
4808
|
-
GetAuthCodeUrl: "getAuthCodeUrl",
|
|
4809
|
-
GetStandardParams: "getStandardParams",
|
|
4810
|
-
/**
|
|
4811
|
-
* Functions from InteractionHandler (msal-browser)
|
|
4812
|
-
*/
|
|
4813
|
-
HandleCodeResponseFromServer: "handleCodeResponseFromServer",
|
|
4814
|
-
HandleCodeResponse: "handleCodeResponse",
|
|
4815
|
-
HandleResponseEar: "handleResponseEar",
|
|
4816
|
-
HandleResponsePlatformBroker: "handleResponsePlatformBroker",
|
|
4817
|
-
HandleResponseCode: "handleResponseCode",
|
|
4818
|
-
UpdateTokenEndpointAuthority: "updateTokenEndpointAuthority",
|
|
4819
|
-
/**
|
|
4820
|
-
* APIs in Authorization Code Client (msal-common)
|
|
4821
|
-
*/
|
|
4822
|
-
AuthClientAcquireToken: "authClientAcquireToken",
|
|
4823
|
-
AuthClientExecuteTokenRequest: "authClientExecuteTokenRequest",
|
|
4824
|
-
AuthClientCreateTokenRequestBody: "authClientCreateTokenRequestBody",
|
|
4825
|
-
/**
|
|
4826
|
-
* Generate functions in PopTokenGenerator (msal-common)
|
|
4827
|
-
*/
|
|
4828
|
-
PopTokenGenerateCnf: "popTokenGenerateCnf",
|
|
4829
|
-
PopTokenGenerateKid: "popTokenGenerateKid",
|
|
4830
|
-
/**
|
|
4831
|
-
* handleServerTokenResponse API in ResponseHandler (msal-common)
|
|
4832
|
-
*/
|
|
4833
|
-
HandleServerTokenResponse: "handleServerTokenResponse",
|
|
4834
|
-
DeserializeResponse: "deserializeResponse",
|
|
4835
|
-
/**
|
|
4836
|
-
* Authority functions
|
|
4837
|
-
*/
|
|
4838
|
-
AuthorityFactoryCreateDiscoveredInstance: "authorityFactoryCreateDiscoveredInstance",
|
|
4839
|
-
AuthorityResolveEndpointsAsync: "authorityResolveEndpointsAsync",
|
|
4840
|
-
AuthorityResolveEndpointsFromLocalSources: "authorityResolveEndpointsFromLocalSources",
|
|
4841
|
-
AuthorityGetCloudDiscoveryMetadataFromNetwork: "authorityGetCloudDiscoveryMetadataFromNetwork",
|
|
4842
|
-
AuthorityUpdateCloudDiscoveryMetadata: "authorityUpdateCloudDiscoveryMetadata",
|
|
4843
|
-
AuthorityGetEndpointMetadataFromNetwork: "authorityGetEndpointMetadataFromNetwork",
|
|
4844
|
-
AuthorityUpdateEndpointMetadata: "authorityUpdateEndpointMetadata",
|
|
4845
|
-
AuthorityUpdateMetadataWithRegionalInformation: "authorityUpdateMetadataWithRegionalInformation",
|
|
4846
|
-
/**
|
|
4847
|
-
* Region Discovery functions
|
|
4848
|
-
*/
|
|
4849
|
-
RegionDiscoveryDetectRegion: "regionDiscoveryDetectRegion",
|
|
4850
|
-
RegionDiscoveryGetRegionFromIMDS: "regionDiscoveryGetRegionFromIMDS",
|
|
4851
|
-
RegionDiscoveryGetCurrentVersion: "regionDiscoveryGetCurrentVersion",
|
|
4852
|
-
AcquireTokenByCodeAsync: "acquireTokenByCodeAsync",
|
|
4853
|
-
GetEndpointMetadataFromNetwork: "getEndpointMetadataFromNetwork",
|
|
4854
|
-
GetCloudDiscoveryMetadataFromNetworkMeasurement: "getCloudDiscoveryMetadataFromNetworkMeasurement",
|
|
4855
|
-
HandleRedirectPromiseMeasurement: "handleRedirectPromise",
|
|
4856
|
-
HandleNativeRedirectPromiseMeasurement: "handleNativeRedirectPromise",
|
|
4857
|
-
UpdateCloudDiscoveryMetadataMeasurement: "updateCloudDiscoveryMetadataMeasurement",
|
|
4858
|
-
UsernamePasswordClientAcquireToken: "usernamePasswordClientAcquireToken",
|
|
4859
|
-
NativeMessageHandlerHandshake: "nativeMessageHandlerHandshake",
|
|
4860
|
-
NativeGenerateAuthResult: "nativeGenerateAuthResult",
|
|
4861
|
-
RemoveHiddenIframe: "removeHiddenIframe",
|
|
4862
|
-
/**
|
|
4863
|
-
* Cache operations
|
|
4864
|
-
*/
|
|
4865
|
-
ClearTokensAndKeysWithClaims: "clearTokensAndKeysWithClaims",
|
|
4866
|
-
CacheManagerGetRefreshToken: "cacheManagerGetRefreshToken",
|
|
4867
|
-
ImportExistingCache: "importExistingCache",
|
|
4868
|
-
SetUserData: "setUserData",
|
|
4869
|
-
LocalStorageUpdated: "localStorageUpdated",
|
|
4870
|
-
/**
|
|
4871
|
-
* Crypto Operations
|
|
4872
|
-
*/
|
|
4873
|
-
GeneratePkceCodes: "generatePkceCodes",
|
|
4874
|
-
GenerateCodeVerifier: "generateCodeVerifier",
|
|
4875
|
-
GenerateCodeChallengeFromVerifier: "generateCodeChallengeFromVerifier",
|
|
4876
|
-
Sha256Digest: "sha256Digest",
|
|
4877
|
-
GetRandomValues: "getRandomValues",
|
|
4878
|
-
GenerateHKDF: "generateHKDF",
|
|
4879
|
-
GenerateBaseKey: "generateBaseKey",
|
|
4880
|
-
Base64Decode: "base64Decode",
|
|
4881
|
-
UrlEncodeArr: "urlEncodeArr",
|
|
4882
|
-
Encrypt: "encrypt",
|
|
4883
|
-
Decrypt: "decrypt",
|
|
4884
|
-
GenerateEarKey: "generateEarKey",
|
|
4885
|
-
DecryptEarResponse: "decryptEarResponse",
|
|
4886
|
-
};
|
|
4966
|
+
function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
4967
|
+
return (response.hasOwnProperty("error") &&
|
|
4968
|
+
response.hasOwnProperty("error_description"));
|
|
4969
|
+
}
|
|
4887
4970
|
|
|
4888
|
-
/*! @azure/msal-common v15.7.
|
|
4971
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
4889
4972
|
/*
|
|
4890
4973
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4891
4974
|
* Licensed under the MIT License.
|
|
@@ -4981,7 +5064,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
|
|
|
4981
5064
|
};
|
|
4982
5065
|
};
|
|
4983
5066
|
|
|
4984
|
-
/*! @azure/msal-common v15.7.
|
|
5067
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
4985
5068
|
|
|
4986
5069
|
/*
|
|
4987
5070
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5087,7 +5170,7 @@ RegionDiscovery.IMDS_OPTIONS = {
|
|
|
5087
5170
|
},
|
|
5088
5171
|
};
|
|
5089
5172
|
|
|
5090
|
-
/*! @azure/msal-common v15.7.
|
|
5173
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
5091
5174
|
|
|
5092
5175
|
/*
|
|
5093
5176
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5926,7 +6009,7 @@ function buildStaticAuthorityOptions(authOptions) {
|
|
|
5926
6009
|
};
|
|
5927
6010
|
}
|
|
5928
6011
|
|
|
5929
|
-
/*! @azure/msal-common v15.7.
|
|
6012
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
5930
6013
|
|
|
5931
6014
|
/*
|
|
5932
6015
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5957,7 +6040,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
|
|
|
5957
6040
|
}
|
|
5958
6041
|
}
|
|
5959
6042
|
|
|
5960
|
-
/*! @azure/msal-common v15.7.
|
|
6043
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
5961
6044
|
|
|
5962
6045
|
/*
|
|
5963
6046
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5976,7 +6059,7 @@ class ServerError extends AuthError {
|
|
|
5976
6059
|
}
|
|
5977
6060
|
}
|
|
5978
6061
|
|
|
5979
|
-
/*! @azure/msal-common v15.7.
|
|
6062
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
5980
6063
|
/*
|
|
5981
6064
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5982
6065
|
* Licensed under the MIT License.
|
|
@@ -5997,7 +6080,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
|
|
|
5997
6080
|
};
|
|
5998
6081
|
}
|
|
5999
6082
|
|
|
6000
|
-
/*! @azure/msal-common v15.7.
|
|
6083
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
6001
6084
|
|
|
6002
6085
|
/*
|
|
6003
6086
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6084,7 +6167,7 @@ class ThrottlingUtils {
|
|
|
6084
6167
|
}
|
|
6085
6168
|
}
|
|
6086
6169
|
|
|
6087
|
-
/*! @azure/msal-common v15.7.
|
|
6170
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
6088
6171
|
|
|
6089
6172
|
/*
|
|
6090
6173
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6104,7 +6187,7 @@ class NetworkError extends AuthError {
|
|
|
6104
6187
|
}
|
|
6105
6188
|
}
|
|
6106
6189
|
|
|
6107
|
-
/*! @azure/msal-common v15.7.
|
|
6190
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
6108
6191
|
|
|
6109
6192
|
/*
|
|
6110
6193
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6252,7 +6335,7 @@ class BaseClient {
|
|
|
6252
6335
|
}
|
|
6253
6336
|
}
|
|
6254
6337
|
|
|
6255
|
-
/*! @azure/msal-common v15.7.
|
|
6338
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
6256
6339
|
/*
|
|
6257
6340
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6258
6341
|
* Licensed under the MIT License.
|
|
@@ -6261,6 +6344,7 @@ class BaseClient {
|
|
|
6261
6344
|
const noTokensFound = "no_tokens_found";
|
|
6262
6345
|
const nativeAccountUnavailable = "native_account_unavailable";
|
|
6263
6346
|
const refreshTokenExpired = "refresh_token_expired";
|
|
6347
|
+
const uxNotAllowed = "ux_not_allowed";
|
|
6264
6348
|
// Codes potentially returned by server
|
|
6265
6349
|
const interactionRequired = "interaction_required";
|
|
6266
6350
|
const consentRequired = "consent_required";
|
|
@@ -6275,10 +6359,11 @@ var InteractionRequiredAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
6275
6359
|
loginRequired: loginRequired,
|
|
6276
6360
|
nativeAccountUnavailable: nativeAccountUnavailable,
|
|
6277
6361
|
noTokensFound: noTokensFound,
|
|
6278
|
-
refreshTokenExpired: refreshTokenExpired
|
|
6362
|
+
refreshTokenExpired: refreshTokenExpired,
|
|
6363
|
+
uxNotAllowed: uxNotAllowed
|
|
6279
6364
|
});
|
|
6280
6365
|
|
|
6281
|
-
/*! @azure/msal-common v15.7.
|
|
6366
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
6282
6367
|
|
|
6283
6368
|
/*
|
|
6284
6369
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6292,6 +6377,7 @@ const InteractionRequiredServerErrorMessage = [
|
|
|
6292
6377
|
consentRequired,
|
|
6293
6378
|
loginRequired,
|
|
6294
6379
|
badToken,
|
|
6380
|
+
uxNotAllowed,
|
|
6295
6381
|
];
|
|
6296
6382
|
const InteractionRequiredAuthSubErrorMessage = [
|
|
6297
6383
|
"message_only",
|
|
@@ -6306,6 +6392,7 @@ const InteractionRequiredAuthErrorMessages = {
|
|
|
6306
6392
|
[nativeAccountUnavailable]: "The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API.",
|
|
6307
6393
|
[refreshTokenExpired]: "Refresh token has expired.",
|
|
6308
6394
|
[badToken]: "Identity provider returned bad_token due to an expired or invalid refresh token. Please invoke an interactive API to resolve.",
|
|
6395
|
+
[uxNotAllowed]: "`canShowUI` flag in Edge was set to false. User interaction required on web page. Please invoke an interactive API to resolve.",
|
|
6309
6396
|
};
|
|
6310
6397
|
/**
|
|
6311
6398
|
* Interaction required errors defined by the SDK
|
|
@@ -6366,7 +6453,7 @@ function createInteractionRequiredAuthError(errorCode) {
|
|
|
6366
6453
|
return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
|
|
6367
6454
|
}
|
|
6368
6455
|
|
|
6369
|
-
/*! @azure/msal-common v15.7.
|
|
6456
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
6370
6457
|
|
|
6371
6458
|
/*
|
|
6372
6459
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6438,7 +6525,7 @@ class ProtocolUtils {
|
|
|
6438
6525
|
}
|
|
6439
6526
|
}
|
|
6440
6527
|
|
|
6441
|
-
/*! @azure/msal-common v15.7.
|
|
6528
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
6442
6529
|
|
|
6443
6530
|
/*
|
|
6444
6531
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6522,7 +6609,7 @@ class PopTokenGenerator {
|
|
|
6522
6609
|
}
|
|
6523
6610
|
}
|
|
6524
6611
|
|
|
6525
|
-
/*! @azure/msal-common v15.7.
|
|
6612
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
6526
6613
|
/*
|
|
6527
6614
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6528
6615
|
* Licensed under the MIT License.
|
|
@@ -6549,7 +6636,7 @@ class PopTokenGenerator {
|
|
|
6549
6636
|
}
|
|
6550
6637
|
}
|
|
6551
6638
|
|
|
6552
|
-
/*! @azure/msal-common v15.7.
|
|
6639
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
6553
6640
|
|
|
6554
6641
|
/*
|
|
6555
6642
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6880,7 +6967,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
|
|
|
6880
6967
|
return baseAccount;
|
|
6881
6968
|
}
|
|
6882
6969
|
|
|
6883
|
-
/*! @azure/msal-common v15.7.
|
|
6970
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
6884
6971
|
|
|
6885
6972
|
/*
|
|
6886
6973
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6947,7 +7034,7 @@ class RequestValidator {
|
|
|
6947
7034
|
}
|
|
6948
7035
|
}
|
|
6949
7036
|
|
|
6950
|
-
/*! @azure/msal-common v15.7.
|
|
7037
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
6951
7038
|
/*
|
|
6952
7039
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6953
7040
|
* Licensed under the MIT License.
|
|
@@ -6965,7 +7052,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint) {
|
|
|
6965
7052
|
}
|
|
6966
7053
|
}
|
|
6967
7054
|
|
|
6968
|
-
/*! @azure/msal-common v15.7.
|
|
7055
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
6969
7056
|
|
|
6970
7057
|
/*
|
|
6971
7058
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7198,7 +7285,7 @@ class AuthorizationCodeClient extends BaseClient {
|
|
|
7198
7285
|
}
|
|
7199
7286
|
}
|
|
7200
7287
|
|
|
7201
|
-
/*! @azure/msal-common v15.7.
|
|
7288
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
7202
7289
|
|
|
7203
7290
|
/*
|
|
7204
7291
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7407,7 +7494,7 @@ class RefreshTokenClient extends BaseClient {
|
|
|
7407
7494
|
}
|
|
7408
7495
|
}
|
|
7409
7496
|
|
|
7410
|
-
/*! @azure/msal-common v15.7.
|
|
7497
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
7411
7498
|
|
|
7412
7499
|
/*
|
|
7413
7500
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7439,7 +7526,7 @@ class SilentFlowClient extends BaseClient {
|
|
|
7439
7526
|
const requestTenantId = request.account.tenantId ||
|
|
7440
7527
|
getTenantFromAuthorityString(request.authority);
|
|
7441
7528
|
const tokenKeys = this.cacheManager.getTokenKeys();
|
|
7442
|
-
const cachedAccessToken = this.cacheManager.getAccessToken(request.account, request, tokenKeys, requestTenantId
|
|
7529
|
+
const cachedAccessToken = this.cacheManager.getAccessToken(request.account, request, tokenKeys, requestTenantId);
|
|
7443
7530
|
if (!cachedAccessToken) {
|
|
7444
7531
|
// must refresh due to non-existent access_token
|
|
7445
7532
|
this.setCacheOutcome(CacheOutcome.NO_CACHED_ACCESS_TOKEN, request.correlationId);
|
|
@@ -7505,7 +7592,7 @@ class SilentFlowClient extends BaseClient {
|
|
|
7505
7592
|
}
|
|
7506
7593
|
}
|
|
7507
7594
|
|
|
7508
|
-
/*! @azure/msal-common v15.7.
|
|
7595
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
7509
7596
|
|
|
7510
7597
|
/*
|
|
7511
7598
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7655,7 +7742,7 @@ function extractLoginHint(account) {
|
|
|
7655
7742
|
return account.idTokenClaims?.login_hint || null;
|
|
7656
7743
|
}
|
|
7657
7744
|
|
|
7658
|
-
/*! @azure/msal-common v15.7.
|
|
7745
|
+
/*! @azure/msal-common v15.7.1 2025-06-18 */
|
|
7659
7746
|
|
|
7660
7747
|
/*
|
|
7661
7748
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8133,6 +8220,7 @@ const ManagedIdentityQueryParameters = {
|
|
|
8133
8220
|
*/
|
|
8134
8221
|
const ManagedIdentityEnvironmentVariableNames = {
|
|
8135
8222
|
AZURE_POD_IDENTITY_AUTHORITY_HOST: "AZURE_POD_IDENTITY_AUTHORITY_HOST",
|
|
8223
|
+
DEFAULT_IDENTITY_CLIENT_ID: "DEFAULT_IDENTITY_CLIENT_ID",
|
|
8136
8224
|
IDENTITY_ENDPOINT: "IDENTITY_ENDPOINT",
|
|
8137
8225
|
IDENTITY_HEADER: "IDENTITY_HEADER",
|
|
8138
8226
|
IDENTITY_SERVER_THUMBPRINT: "IDENTITY_SERVER_THUMBPRINT",
|
|
@@ -9114,7 +9202,7 @@ class CryptoProvider {
|
|
|
9114
9202
|
*/
|
|
9115
9203
|
class NodeStorage extends CacheManager {
|
|
9116
9204
|
constructor(logger, clientId, cryptoImpl, staticAuthorityOptions) {
|
|
9117
|
-
super(clientId, cryptoImpl, logger, staticAuthorityOptions);
|
|
9205
|
+
super(clientId, cryptoImpl, logger, new msalCommon.StubPerformanceClient(), staticAuthorityOptions);
|
|
9118
9206
|
this.cache = {};
|
|
9119
9207
|
this.changeEmitters = [];
|
|
9120
9208
|
this.logger = logger;
|
|
@@ -9647,7 +9735,7 @@ class TokenCache {
|
|
|
9647
9735
|
* API to remove a specific account and the relevant data from cache
|
|
9648
9736
|
* @param account - AccountInfo passed by the user
|
|
9649
9737
|
*/
|
|
9650
|
-
async removeAccount(account) {
|
|
9738
|
+
async removeAccount(account, correlationId) {
|
|
9651
9739
|
this.logger.trace("removeAccount called");
|
|
9652
9740
|
let cacheContext;
|
|
9653
9741
|
try {
|
|
@@ -9655,7 +9743,7 @@ class TokenCache {
|
|
|
9655
9743
|
cacheContext = new TokenCacheContext(this, true);
|
|
9656
9744
|
await this.persistence.beforeCacheAccess(cacheContext);
|
|
9657
9745
|
}
|
|
9658
|
-
|
|
9746
|
+
this.storage.removeAccount(AccountEntity.generateAccountCacheKey(account), correlationId || new GuidGenerator().generateGuid());
|
|
9659
9747
|
}
|
|
9660
9748
|
finally {
|
|
9661
9749
|
if (this.persistence && cacheContext) {
|
|
@@ -9952,7 +10040,7 @@ class ClientAssertion {
|
|
|
9952
10040
|
|
|
9953
10041
|
/* eslint-disable header/header */
|
|
9954
10042
|
const name = "@azure/msal-node";
|
|
9955
|
-
const version = "3.6.
|
|
10043
|
+
const version = "3.6.1";
|
|
9956
10044
|
|
|
9957
10045
|
/*
|
|
9958
10046
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -10938,7 +11026,7 @@ class PublicClientApplication extends ClientApplication {
|
|
|
10938
11026
|
};
|
|
10939
11027
|
await this.nativeBrokerPlugin.signOut(signoutRequest);
|
|
10940
11028
|
}
|
|
10941
|
-
await this.getTokenCache().removeAccount(request.account);
|
|
11029
|
+
await this.getTokenCache().removeAccount(request.account, request.correlationId);
|
|
10942
11030
|
}
|
|
10943
11031
|
/**
|
|
10944
11032
|
* Returns all cached accounts for this application. If brokering is enabled this request will be serviced by the broker.
|
|
@@ -12408,6 +12496,7 @@ class ServiceFabric extends BaseManagedIdentitySource {
|
|
|
12408
12496
|
* Licensed under the MIT License.
|
|
12409
12497
|
*/
|
|
12410
12498
|
const MACHINE_LEARNING_MSI_API_VERSION = "2017-09-01";
|
|
12499
|
+
const MANAGED_IDENTITY_MACHINE_LEARNING_UNSUPPORTED_ID_TYPE_ERROR = `Only client id is supported for user-assigned managed identity in ${ManagedIdentitySourceNames.MACHINE_LEARNING}.`; // referenced in unit test
|
|
12411
12500
|
class MachineLearning extends BaseManagedIdentitySource {
|
|
12412
12501
|
constructor(logger, nodeStorage, networkClient, cryptoProvider, disableInternalRetries, msiEndpoint, secret) {
|
|
12413
12502
|
super(logger, nodeStorage, networkClient, cryptoProvider, disableInternalRetries);
|
|
@@ -12439,11 +12528,19 @@ class MachineLearning extends BaseManagedIdentitySource {
|
|
|
12439
12528
|
MACHINE_LEARNING_MSI_API_VERSION;
|
|
12440
12529
|
request.queryParameters[ManagedIdentityQueryParameters.RESOURCE] =
|
|
12441
12530
|
resource;
|
|
12442
|
-
if (managedIdentityId.idType
|
|
12531
|
+
if (managedIdentityId.idType === ManagedIdentityIdType.SYSTEM_ASSIGNED) {
|
|
12532
|
+
request.queryParameters[ManagedIdentityUserAssignedIdQueryParameterNames.MANAGED_IDENTITY_CLIENT_ID_2017] = process.env[ManagedIdentityEnvironmentVariableNames
|
|
12533
|
+
.DEFAULT_IDENTITY_CLIENT_ID]; // this environment variable is always set in an Azure Machine Learning source
|
|
12534
|
+
}
|
|
12535
|
+
else if (managedIdentityId.idType ===
|
|
12536
|
+
ManagedIdentityIdType.USER_ASSIGNED_CLIENT_ID) {
|
|
12443
12537
|
request.queryParameters[this.getManagedIdentityUserAssignedIdQueryParameterKey(managedIdentityId.idType, false, // isIMDS
|
|
12444
12538
|
true // uses2017API
|
|
12445
12539
|
)] = managedIdentityId.id;
|
|
12446
12540
|
}
|
|
12541
|
+
else {
|
|
12542
|
+
throw new Error(MANAGED_IDENTITY_MACHINE_LEARNING_UNSUPPORTED_ID_TYPE_ERROR);
|
|
12543
|
+
}
|
|
12447
12544
|
// bodyParameters calculated in BaseManagedIdentity.acquireTokenWithManagedIdentity
|
|
12448
12545
|
return request;
|
|
12449
12546
|
}
|