@azure/msal-node 3.7.1 → 3.7.3
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/CacheHelpers.mjs +1 -1
- package/dist/cache/NodeStorage.mjs +1 -1
- package/dist/cache/TokenCache.mjs +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.mjs +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 +9 -3
- 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.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.d.ts +8 -0
- package/dist/error/NodeAuthError.d.ts.map +1 -1
- package/dist/error/NodeAuthError.mjs +11 -1
- package/dist/error/NodeAuthError.mjs.map +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/request/InteractiveRequest.d.ts +1 -1
- package/dist/request/InteractiveRequest.d.ts.map +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.mjs +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 +84 -69
- package/lib/msal-node.cjs.map +1 -1
- package/lib/types/client/PublicClientApplication.d.ts.map +1 -1
- package/lib/types/error/NodeAuthError.d.ts +8 -0
- package/lib/types/error/NodeAuthError.d.ts.map +1 -1
- package/lib/types/packageMetadata.d.ts +1 -1
- package/lib/types/request/InteractiveRequest.d.ts +1 -1
- package/lib/types/request/InteractiveRequest.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/client/PublicClientApplication.ts +9 -2
- package/src/error/NodeAuthError.ts +14 -0
- package/src/packageMetadata.ts +1 -1
- package/src/request/InteractiveRequest.ts +1 -1
package/lib/msal-node.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-node v3.7.
|
|
1
|
+
/*! @azure/msal-node v3.7.3 2025-08-27 */
|
|
2
2
|
'use strict';
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -153,7 +153,7 @@ class Serializer {
|
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
/*! @azure/msal-common v15.
|
|
156
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
157
157
|
/*
|
|
158
158
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
159
159
|
* Licensed under the MIT License.
|
|
@@ -433,7 +433,7 @@ const EncodingTypes = {
|
|
|
433
433
|
UTF8: "utf-8",
|
|
434
434
|
};
|
|
435
435
|
|
|
436
|
-
/*! @azure/msal-common v15.
|
|
436
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
437
437
|
/*
|
|
438
438
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
439
439
|
* Licensed under the MIT License.
|
|
@@ -450,7 +450,7 @@ var AuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
450
450
|
unexpectedError: unexpectedError
|
|
451
451
|
});
|
|
452
452
|
|
|
453
|
-
/*! @azure/msal-common v15.
|
|
453
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
454
454
|
|
|
455
455
|
/*
|
|
456
456
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -499,7 +499,7 @@ function createAuthError(code, additionalMessage) {
|
|
|
499
499
|
: AuthErrorMessages[code]);
|
|
500
500
|
}
|
|
501
501
|
|
|
502
|
-
/*! @azure/msal-common v15.
|
|
502
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
503
503
|
/*
|
|
504
504
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
505
505
|
* Licensed under the MIT License.
|
|
@@ -597,7 +597,7 @@ var ClientAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
597
597
|
userTimeoutReached: userTimeoutReached
|
|
598
598
|
});
|
|
599
599
|
|
|
600
|
-
/*! @azure/msal-common v15.
|
|
600
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
601
601
|
|
|
602
602
|
/*
|
|
603
603
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -849,7 +849,7 @@ function createClientAuthError(errorCode, additionalMessage) {
|
|
|
849
849
|
return new ClientAuthError(errorCode, additionalMessage);
|
|
850
850
|
}
|
|
851
851
|
|
|
852
|
-
/*! @azure/msal-common v15.
|
|
852
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
853
853
|
|
|
854
854
|
/*
|
|
855
855
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -888,7 +888,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
|
|
|
888
888
|
},
|
|
889
889
|
};
|
|
890
890
|
|
|
891
|
-
/*! @azure/msal-common v15.
|
|
891
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
892
892
|
|
|
893
893
|
/*
|
|
894
894
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1079,12 +1079,12 @@ class Logger {
|
|
|
1079
1079
|
}
|
|
1080
1080
|
}
|
|
1081
1081
|
|
|
1082
|
-
/*! @azure/msal-common v15.
|
|
1082
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
1083
1083
|
/* eslint-disable header/header */
|
|
1084
1084
|
const name$1 = "@azure/msal-common";
|
|
1085
|
-
const version$1 = "15.
|
|
1085
|
+
const version$1 = "15.12.0";
|
|
1086
1086
|
|
|
1087
|
-
/*! @azure/msal-common v15.
|
|
1087
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
1088
1088
|
/*
|
|
1089
1089
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1090
1090
|
* Licensed under the MIT License.
|
|
@@ -1104,7 +1104,7 @@ const AzureCloudInstance = {
|
|
|
1104
1104
|
AzureUsGovernment: "https://login.microsoftonline.us",
|
|
1105
1105
|
};
|
|
1106
1106
|
|
|
1107
|
-
/*! @azure/msal-common v15.
|
|
1107
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
1108
1108
|
/*
|
|
1109
1109
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1110
1110
|
* Licensed under the MIT License.
|
|
@@ -1160,7 +1160,7 @@ var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
1160
1160
|
urlParseError: urlParseError
|
|
1161
1161
|
});
|
|
1162
1162
|
|
|
1163
|
-
/*! @azure/msal-common v15.
|
|
1163
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
1164
1164
|
|
|
1165
1165
|
/*
|
|
1166
1166
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1303,7 +1303,7 @@ function createClientConfigurationError(errorCode) {
|
|
|
1303
1303
|
return new ClientConfigurationError(errorCode);
|
|
1304
1304
|
}
|
|
1305
1305
|
|
|
1306
|
-
/*! @azure/msal-common v15.
|
|
1306
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
1307
1307
|
/*
|
|
1308
1308
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1309
1309
|
* Licensed under the MIT License.
|
|
@@ -1400,7 +1400,7 @@ class StringUtils {
|
|
|
1400
1400
|
}
|
|
1401
1401
|
}
|
|
1402
1402
|
|
|
1403
|
-
/*! @azure/msal-common v15.
|
|
1403
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
1404
1404
|
|
|
1405
1405
|
/*
|
|
1406
1406
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1444,7 +1444,11 @@ class ScopeSet {
|
|
|
1444
1444
|
* @returns
|
|
1445
1445
|
*/
|
|
1446
1446
|
static createSearchScopes(inputScopeString) {
|
|
1447
|
-
|
|
1447
|
+
// Handle empty scopes by using default OIDC scopes for cache lookup
|
|
1448
|
+
const scopesToUse = inputScopeString && inputScopeString.length > 0
|
|
1449
|
+
? inputScopeString
|
|
1450
|
+
: [...OIDC_DEFAULT_SCOPES];
|
|
1451
|
+
const scopeSet = new ScopeSet(scopesToUse);
|
|
1448
1452
|
if (!scopeSet.containsOnlyOIDCScopes()) {
|
|
1449
1453
|
scopeSet.removeOIDCScopes();
|
|
1450
1454
|
}
|
|
@@ -1591,7 +1595,7 @@ class ScopeSet {
|
|
|
1591
1595
|
}
|
|
1592
1596
|
}
|
|
1593
1597
|
|
|
1594
|
-
/*! @azure/msal-common v15.
|
|
1598
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
1595
1599
|
/*
|
|
1596
1600
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1597
1601
|
* Licensed under the MIT License.
|
|
@@ -1673,7 +1677,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
|
|
|
1673
1677
|
return updatedAccountInfo;
|
|
1674
1678
|
}
|
|
1675
1679
|
|
|
1676
|
-
/*! @azure/msal-common v15.
|
|
1680
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
1677
1681
|
|
|
1678
1682
|
/*
|
|
1679
1683
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1734,12 +1738,7 @@ function checkMaxAge(authTime, maxAge) {
|
|
|
1734
1738
|
}
|
|
1735
1739
|
}
|
|
1736
1740
|
|
|
1737
|
-
/*! @azure/msal-common v15.
|
|
1738
|
-
|
|
1739
|
-
/*
|
|
1740
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1741
|
-
* Licensed under the MIT License.
|
|
1742
|
-
*/
|
|
1741
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
1743
1742
|
/**
|
|
1744
1743
|
* Parses hash string from given string. Returns empty string if no hash symbol is found.
|
|
1745
1744
|
* @param hashString
|
|
@@ -1799,7 +1798,7 @@ function mapToQueryString(parameters, encodeExtraParams = true, extraQueryParame
|
|
|
1799
1798
|
return queryParameterArray.join("&");
|
|
1800
1799
|
}
|
|
1801
1800
|
|
|
1802
|
-
/*! @azure/msal-common v15.
|
|
1801
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
1803
1802
|
|
|
1804
1803
|
/*
|
|
1805
1804
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1963,7 +1962,7 @@ class UrlString {
|
|
|
1963
1962
|
}
|
|
1964
1963
|
}
|
|
1965
1964
|
|
|
1966
|
-
/*! @azure/msal-common v15.
|
|
1965
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
1967
1966
|
|
|
1968
1967
|
/*
|
|
1969
1968
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2102,7 +2101,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
2102
2101
|
return null;
|
|
2103
2102
|
}
|
|
2104
2103
|
|
|
2105
|
-
/*! @azure/msal-common v15.
|
|
2104
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
2106
2105
|
/*
|
|
2107
2106
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2108
2107
|
* Licensed under the MIT License.
|
|
@@ -2110,7 +2109,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
2110
2109
|
const cacheQuotaExceeded = "cache_quota_exceeded";
|
|
2111
2110
|
const cacheErrorUnknown = "cache_error_unknown";
|
|
2112
2111
|
|
|
2113
|
-
/*! @azure/msal-common v15.
|
|
2112
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
2114
2113
|
|
|
2115
2114
|
/*
|
|
2116
2115
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2155,7 +2154,7 @@ function createCacheError(e) {
|
|
|
2155
2154
|
}
|
|
2156
2155
|
}
|
|
2157
2156
|
|
|
2158
|
-
/*! @azure/msal-common v15.
|
|
2157
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
2159
2158
|
|
|
2160
2159
|
/*
|
|
2161
2160
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3263,7 +3262,7 @@ class DefaultStorageClass extends CacheManager {
|
|
|
3263
3262
|
}
|
|
3264
3263
|
}
|
|
3265
3264
|
|
|
3266
|
-
/*! @azure/msal-common v15.
|
|
3265
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
3267
3266
|
/*
|
|
3268
3267
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3269
3268
|
* Licensed under the MIT License.
|
|
@@ -3287,7 +3286,7 @@ const ProtocolMode = {
|
|
|
3287
3286
|
EAR: "EAR",
|
|
3288
3287
|
};
|
|
3289
3288
|
|
|
3290
|
-
/*! @azure/msal-common v15.
|
|
3289
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
3291
3290
|
/*
|
|
3292
3291
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3293
3292
|
* Licensed under the MIT License.
|
|
@@ -3554,7 +3553,7 @@ const PerformanceEvents = {
|
|
|
3554
3553
|
const PerformanceEventStatus = {
|
|
3555
3554
|
InProgress: 1};
|
|
3556
3555
|
|
|
3557
|
-
/*! @azure/msal-common v15.
|
|
3556
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
3558
3557
|
|
|
3559
3558
|
/*
|
|
3560
3559
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3633,7 +3632,7 @@ class StubPerformanceClient {
|
|
|
3633
3632
|
}
|
|
3634
3633
|
}
|
|
3635
3634
|
|
|
3636
|
-
/*! @azure/msal-common v15.
|
|
3635
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
3637
3636
|
|
|
3638
3637
|
/*
|
|
3639
3638
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3733,7 +3732,7 @@ function isOidcProtocolMode(config) {
|
|
|
3733
3732
|
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
3734
3733
|
}
|
|
3735
3734
|
|
|
3736
|
-
/*! @azure/msal-common v15.
|
|
3735
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
3737
3736
|
/*
|
|
3738
3737
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3739
3738
|
* Licensed under the MIT License.
|
|
@@ -3743,7 +3742,7 @@ const CcsCredentialType = {
|
|
|
3743
3742
|
UPN: "UPN",
|
|
3744
3743
|
};
|
|
3745
3744
|
|
|
3746
|
-
/*! @azure/msal-common v15.
|
|
3745
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
3747
3746
|
|
|
3748
3747
|
/*
|
|
3749
3748
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3783,7 +3782,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
|
|
|
3783
3782
|
};
|
|
3784
3783
|
}
|
|
3785
3784
|
|
|
3786
|
-
/*! @azure/msal-common v15.
|
|
3785
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
3787
3786
|
/*
|
|
3788
3787
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3789
3788
|
* Licensed under the MIT License.
|
|
@@ -3834,7 +3833,7 @@ const BROKER_CLIENT_ID = "brk_client_id";
|
|
|
3834
3833
|
const BROKER_REDIRECT_URI = "brk_redirect_uri";
|
|
3835
3834
|
const INSTANCE_AWARE = "instance_aware";
|
|
3836
3835
|
|
|
3837
|
-
/*! @azure/msal-common v15.
|
|
3836
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
3838
3837
|
|
|
3839
3838
|
/*
|
|
3840
3839
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4220,7 +4219,7 @@ function addBrokerParameters(parameters, brokerClientId, brokerRedirectUri) {
|
|
|
4220
4219
|
}
|
|
4221
4220
|
}
|
|
4222
4221
|
|
|
4223
|
-
/*! @azure/msal-common v15.
|
|
4222
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
4224
4223
|
/*
|
|
4225
4224
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4226
4225
|
* Licensed under the MIT License.
|
|
@@ -4235,7 +4234,7 @@ const AuthorityType = {
|
|
|
4235
4234
|
Ciam: 3,
|
|
4236
4235
|
};
|
|
4237
4236
|
|
|
4238
|
-
/*! @azure/msal-common v15.
|
|
4237
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
4239
4238
|
/*
|
|
4240
4239
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4241
4240
|
* Licensed under the MIT License.
|
|
@@ -4247,7 +4246,7 @@ function isOpenIdConfigResponse(response) {
|
|
|
4247
4246
|
response.hasOwnProperty("jwks_uri"));
|
|
4248
4247
|
}
|
|
4249
4248
|
|
|
4250
|
-
/*! @azure/msal-common v15.
|
|
4249
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
4251
4250
|
/*
|
|
4252
4251
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4253
4252
|
* Licensed under the MIT License.
|
|
@@ -4257,7 +4256,7 @@ function isCloudInstanceDiscoveryResponse(response) {
|
|
|
4257
4256
|
response.hasOwnProperty("metadata"));
|
|
4258
4257
|
}
|
|
4259
4258
|
|
|
4260
|
-
/*! @azure/msal-common v15.
|
|
4259
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
4261
4260
|
/*
|
|
4262
4261
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4263
4262
|
* Licensed under the MIT License.
|
|
@@ -4267,7 +4266,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
|
4267
4266
|
response.hasOwnProperty("error_description"));
|
|
4268
4267
|
}
|
|
4269
4268
|
|
|
4270
|
-
/*! @azure/msal-common v15.
|
|
4269
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
4271
4270
|
/*
|
|
4272
4271
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4273
4272
|
* Licensed under the MIT License.
|
|
@@ -4363,7 +4362,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
|
|
|
4363
4362
|
};
|
|
4364
4363
|
};
|
|
4365
4364
|
|
|
4366
|
-
/*! @azure/msal-common v15.
|
|
4365
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
4367
4366
|
|
|
4368
4367
|
/*
|
|
4369
4368
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4469,7 +4468,7 @@ RegionDiscovery.IMDS_OPTIONS = {
|
|
|
4469
4468
|
},
|
|
4470
4469
|
};
|
|
4471
4470
|
|
|
4472
|
-
/*! @azure/msal-common v15.
|
|
4471
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
4473
4472
|
/*
|
|
4474
4473
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4475
4474
|
* Licensed under the MIT License.
|
|
@@ -4524,7 +4523,7 @@ function delay(t, value) {
|
|
|
4524
4523
|
return new Promise((resolve) => setTimeout(() => resolve(value), t));
|
|
4525
4524
|
}
|
|
4526
4525
|
|
|
4527
|
-
/*! @azure/msal-common v15.
|
|
4526
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
4528
4527
|
|
|
4529
4528
|
/*
|
|
4530
4529
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4786,7 +4785,7 @@ function isAuthorityMetadataExpired(metadata) {
|
|
|
4786
4785
|
return metadata.expiresAt <= nowSeconds();
|
|
4787
4786
|
}
|
|
4788
4787
|
|
|
4789
|
-
/*! @azure/msal-common v15.
|
|
4788
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
4790
4789
|
|
|
4791
4790
|
/*
|
|
4792
4791
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5625,7 +5624,7 @@ function buildStaticAuthorityOptions(authOptions) {
|
|
|
5625
5624
|
};
|
|
5626
5625
|
}
|
|
5627
5626
|
|
|
5628
|
-
/*! @azure/msal-common v15.
|
|
5627
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
5629
5628
|
|
|
5630
5629
|
/*
|
|
5631
5630
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5656,7 +5655,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
|
|
|
5656
5655
|
}
|
|
5657
5656
|
}
|
|
5658
5657
|
|
|
5659
|
-
/*! @azure/msal-common v15.
|
|
5658
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
5660
5659
|
|
|
5661
5660
|
/*
|
|
5662
5661
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5675,7 +5674,7 @@ class ServerError extends AuthError {
|
|
|
5675
5674
|
}
|
|
5676
5675
|
}
|
|
5677
5676
|
|
|
5678
|
-
/*! @azure/msal-common v15.
|
|
5677
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
5679
5678
|
/*
|
|
5680
5679
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5681
5680
|
* Licensed under the MIT License.
|
|
@@ -5696,7 +5695,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
|
|
|
5696
5695
|
};
|
|
5697
5696
|
}
|
|
5698
5697
|
|
|
5699
|
-
/*! @azure/msal-common v15.
|
|
5698
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
5700
5699
|
|
|
5701
5700
|
/*
|
|
5702
5701
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5783,7 +5782,7 @@ class ThrottlingUtils {
|
|
|
5783
5782
|
}
|
|
5784
5783
|
}
|
|
5785
5784
|
|
|
5786
|
-
/*! @azure/msal-common v15.
|
|
5785
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
5787
5786
|
|
|
5788
5787
|
/*
|
|
5789
5788
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5803,7 +5802,7 @@ class NetworkError extends AuthError {
|
|
|
5803
5802
|
}
|
|
5804
5803
|
}
|
|
5805
5804
|
|
|
5806
|
-
/*! @azure/msal-common v15.
|
|
5805
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
5807
5806
|
|
|
5808
5807
|
/*
|
|
5809
5808
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5951,7 +5950,7 @@ class BaseClient {
|
|
|
5951
5950
|
}
|
|
5952
5951
|
}
|
|
5953
5952
|
|
|
5954
|
-
/*! @azure/msal-common v15.
|
|
5953
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
5955
5954
|
/*
|
|
5956
5955
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5957
5956
|
* Licensed under the MIT License.
|
|
@@ -5973,7 +5972,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
|
|
|
5973
5972
|
return null;
|
|
5974
5973
|
}
|
|
5975
5974
|
|
|
5976
|
-
/*! @azure/msal-common v15.
|
|
5975
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
5977
5976
|
|
|
5978
5977
|
/*
|
|
5979
5978
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6188,7 +6187,7 @@ class AccountEntity {
|
|
|
6188
6187
|
}
|
|
6189
6188
|
}
|
|
6190
6189
|
|
|
6191
|
-
/*! @azure/msal-common v15.
|
|
6190
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
6192
6191
|
/*
|
|
6193
6192
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6194
6193
|
* Licensed under the MIT License.
|
|
@@ -6216,7 +6215,7 @@ var InteractionRequiredAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
6216
6215
|
uxNotAllowed: uxNotAllowed
|
|
6217
6216
|
});
|
|
6218
6217
|
|
|
6219
|
-
/*! @azure/msal-common v15.
|
|
6218
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
6220
6219
|
|
|
6221
6220
|
/*
|
|
6222
6221
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6306,7 +6305,7 @@ function createInteractionRequiredAuthError(errorCode) {
|
|
|
6306
6305
|
return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
|
|
6307
6306
|
}
|
|
6308
6307
|
|
|
6309
|
-
/*! @azure/msal-common v15.
|
|
6308
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
6310
6309
|
|
|
6311
6310
|
/*
|
|
6312
6311
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6378,7 +6377,7 @@ class ProtocolUtils {
|
|
|
6378
6377
|
}
|
|
6379
6378
|
}
|
|
6380
6379
|
|
|
6381
|
-
/*! @azure/msal-common v15.
|
|
6380
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
6382
6381
|
|
|
6383
6382
|
/*
|
|
6384
6383
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6460,7 +6459,7 @@ class PopTokenGenerator {
|
|
|
6460
6459
|
}
|
|
6461
6460
|
}
|
|
6462
6461
|
|
|
6463
|
-
/*! @azure/msal-common v15.
|
|
6462
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
6464
6463
|
/*
|
|
6465
6464
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6466
6465
|
* Licensed under the MIT License.
|
|
@@ -6487,7 +6486,7 @@ class PopTokenGenerator {
|
|
|
6487
6486
|
}
|
|
6488
6487
|
}
|
|
6489
6488
|
|
|
6490
|
-
/*! @azure/msal-common v15.
|
|
6489
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
6491
6490
|
|
|
6492
6491
|
/*
|
|
6493
6492
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6818,7 +6817,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
|
|
|
6818
6817
|
return baseAccount;
|
|
6819
6818
|
}
|
|
6820
6819
|
|
|
6821
|
-
/*! @azure/msal-common v15.
|
|
6820
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
6822
6821
|
/*
|
|
6823
6822
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6824
6823
|
* Licensed under the MIT License.
|
|
@@ -6836,7 +6835,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint) {
|
|
|
6836
6835
|
}
|
|
6837
6836
|
}
|
|
6838
6837
|
|
|
6839
|
-
/*! @azure/msal-common v15.
|
|
6838
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
6840
6839
|
|
|
6841
6840
|
/*
|
|
6842
6841
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7071,7 +7070,7 @@ class AuthorizationCodeClient extends BaseClient {
|
|
|
7071
7070
|
}
|
|
7072
7071
|
}
|
|
7073
7072
|
|
|
7074
|
-
/*! @azure/msal-common v15.
|
|
7073
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
7075
7074
|
|
|
7076
7075
|
/*
|
|
7077
7076
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7280,7 +7279,7 @@ class RefreshTokenClient extends BaseClient {
|
|
|
7280
7279
|
}
|
|
7281
7280
|
}
|
|
7282
7281
|
|
|
7283
|
-
/*! @azure/msal-common v15.
|
|
7282
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
7284
7283
|
|
|
7285
7284
|
/*
|
|
7286
7285
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7378,7 +7377,7 @@ class SilentFlowClient extends BaseClient {
|
|
|
7378
7377
|
}
|
|
7379
7378
|
}
|
|
7380
7379
|
|
|
7381
|
-
/*! @azure/msal-common v15.
|
|
7380
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
7382
7381
|
|
|
7383
7382
|
/*
|
|
7384
7383
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7528,7 +7527,7 @@ function extractLoginHint(account) {
|
|
|
7528
7527
|
return account.loginHint || account.idTokenClaims?.login_hint || null;
|
|
7529
7528
|
}
|
|
7530
7529
|
|
|
7531
|
-
/*! @azure/msal-common v15.
|
|
7530
|
+
/*! @azure/msal-common v15.12.0 2025-08-27 */
|
|
7532
7531
|
|
|
7533
7532
|
/*
|
|
7534
7533
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8603,6 +8602,10 @@ const NodeAuthErrorMessage = {
|
|
|
8603
8602
|
code: "thumbprint_missing_from_client_certificate",
|
|
8604
8603
|
desc: "Client certificate does not contain a SHA-1 or SHA-256 thumbprint.",
|
|
8605
8604
|
},
|
|
8605
|
+
redirectUriNotSupported: {
|
|
8606
|
+
code: "redirect_uri_not_supported",
|
|
8607
|
+
desc: "RedirectUri is not supported in this scenario. Please remove redirectUri from the request.",
|
|
8608
|
+
},
|
|
8606
8609
|
};
|
|
8607
8610
|
class NodeAuthError extends AuthError {
|
|
8608
8611
|
constructor(errorCode, errorMessage) {
|
|
@@ -8657,6 +8660,12 @@ class NodeAuthError extends AuthError {
|
|
|
8657
8660
|
static createThumbprintMissingError() {
|
|
8658
8661
|
return new NodeAuthError(NodeAuthErrorMessage.thumbprintMissing.code, NodeAuthErrorMessage.thumbprintMissing.desc);
|
|
8659
8662
|
}
|
|
8663
|
+
/**
|
|
8664
|
+
* Creates an error thrown when redirectUri is provided in an unsupported scenario
|
|
8665
|
+
*/
|
|
8666
|
+
static createRedirectUriNotSupportedError() {
|
|
8667
|
+
return new NodeAuthError(NodeAuthErrorMessage.redirectUriNotSupported.code, NodeAuthErrorMessage.redirectUriNotSupported.desc);
|
|
8668
|
+
}
|
|
8660
8669
|
}
|
|
8661
8670
|
|
|
8662
8671
|
/*
|
|
@@ -9875,7 +9884,7 @@ class ClientAssertion {
|
|
|
9875
9884
|
|
|
9876
9885
|
/* eslint-disable header/header */
|
|
9877
9886
|
const name = "@azure/msal-node";
|
|
9878
|
-
const version = "3.7.
|
|
9887
|
+
const version = "3.7.3";
|
|
9879
9888
|
|
|
9880
9889
|
/*
|
|
9881
9890
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -10757,7 +10766,7 @@ class PublicClientApplication extends ClientApplication {
|
|
|
10757
10766
|
...remainingProperties,
|
|
10758
10767
|
clientId: this.config.auth.clientId,
|
|
10759
10768
|
scopes: request.scopes || OIDC_DEFAULT_SCOPES,
|
|
10760
|
-
redirectUri:
|
|
10769
|
+
redirectUri: request.redirectUri || "",
|
|
10761
10770
|
authority: request.authority || this.config.auth.authority,
|
|
10762
10771
|
correlationId: correlationId,
|
|
10763
10772
|
extraParameters: {
|
|
@@ -10769,6 +10778,9 @@ class PublicClientApplication extends ClientApplication {
|
|
|
10769
10778
|
};
|
|
10770
10779
|
return this.nativeBrokerPlugin.acquireTokenInteractive(brokerRequest, windowHandle);
|
|
10771
10780
|
}
|
|
10781
|
+
if (request.redirectUri) {
|
|
10782
|
+
throw NodeAuthError.createRedirectUriNotSupportedError();
|
|
10783
|
+
}
|
|
10772
10784
|
const { verifier, challenge } = await this.cryptoProvider.generatePkceCodes();
|
|
10773
10785
|
const loopbackClient = customLoopbackClient || new LoopbackClient();
|
|
10774
10786
|
let authCodeResponse = {};
|
|
@@ -10832,7 +10844,7 @@ class PublicClientApplication extends ClientApplication {
|
|
|
10832
10844
|
...request,
|
|
10833
10845
|
clientId: this.config.auth.clientId,
|
|
10834
10846
|
scopes: request.scopes || OIDC_DEFAULT_SCOPES,
|
|
10835
|
-
redirectUri:
|
|
10847
|
+
redirectUri: request.redirectUri || "",
|
|
10836
10848
|
authority: request.authority || this.config.auth.authority,
|
|
10837
10849
|
correlationId: correlationId,
|
|
10838
10850
|
extraParameters: {
|
|
@@ -10844,6 +10856,9 @@ class PublicClientApplication extends ClientApplication {
|
|
|
10844
10856
|
};
|
|
10845
10857
|
return this.nativeBrokerPlugin.acquireTokenSilent(brokerRequest);
|
|
10846
10858
|
}
|
|
10859
|
+
if (request.redirectUri) {
|
|
10860
|
+
throw NodeAuthError.createRedirectUriNotSupportedError();
|
|
10861
|
+
}
|
|
10847
10862
|
return super.acquireTokenSilent(request);
|
|
10848
10863
|
}
|
|
10849
10864
|
/**
|