@azure/msal-node 7.2.3 → 7.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -3
- 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/BaseClient.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.mjs +1 -1
- package/dist/client/SilentRequestCoalescer.mjs +1 -1
- package/dist/client/UserFederatedIdentityCredentialClient.mjs +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/ClientAuthErrorCodes.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.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.mjs +1 -1
- package/dist/utils/EncodingUtils.mjs +1 -1
- package/dist/utils/TimeUtils.mjs +1 -1
- package/lib/msal-node.cjs +159 -92
- package/lib/msal-node.cjs.map +1 -1
- package/package.json +7 -2
- package/src/packageMetadata.ts +1 -1
- package/types/packageMetadata.d.ts +1 -1
package/lib/msal-node.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-node v7.2.
|
|
1
|
+
/*! @azure/msal-node v7.2.4 2026-12-02 */
|
|
2
2
|
'use strict';
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -151,7 +151,7 @@ class Serializer {
|
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
-
/*! @azure/msal-common v16.
|
|
154
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
155
155
|
/*
|
|
156
156
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
157
157
|
* Licensed under the MIT License.
|
|
@@ -215,7 +215,7 @@ const ATTRIBUTE_TOKENS = "attribute_tokens";
|
|
|
215
215
|
*/
|
|
216
216
|
const POPUP_ORIGIN_CHECK_DONE = "pocd";
|
|
217
217
|
|
|
218
|
-
/*! @azure/msal-common v16.
|
|
218
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
219
219
|
/*
|
|
220
220
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
221
221
|
* Licensed under the MIT License.
|
|
@@ -473,7 +473,7 @@ const EncodingTypes = {
|
|
|
473
473
|
UTF8: "utf-8",
|
|
474
474
|
};
|
|
475
475
|
|
|
476
|
-
/*! @azure/msal-common v16.
|
|
476
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
477
477
|
/*
|
|
478
478
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
479
479
|
* Licensed under the MIT License.
|
|
@@ -502,7 +502,7 @@ function createAuthError(code, correlationId, additionalMessage) {
|
|
|
502
502
|
return new AuthError(code, correlationId, additionalMessage || getDefaultErrorMessage(code));
|
|
503
503
|
}
|
|
504
504
|
|
|
505
|
-
/*! @azure/msal-common v16.
|
|
505
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
506
506
|
|
|
507
507
|
/*
|
|
508
508
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -525,7 +525,7 @@ function createClientAuthError(errorCode, correlationId, additionalMessage) {
|
|
|
525
525
|
return new ClientAuthError(errorCode, correlationId, additionalMessage);
|
|
526
526
|
}
|
|
527
527
|
|
|
528
|
-
/*! @azure/msal-common v16.
|
|
528
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
529
529
|
/*
|
|
530
530
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
531
531
|
* Licensed under the MIT License.
|
|
@@ -611,7 +611,7 @@ var ClientAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
611
611
|
userCanceled: userCanceled
|
|
612
612
|
});
|
|
613
613
|
|
|
614
|
-
/*! @azure/msal-common v16.
|
|
614
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
615
615
|
|
|
616
616
|
/*
|
|
617
617
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -649,7 +649,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
|
|
|
649
649
|
};
|
|
650
650
|
}
|
|
651
651
|
|
|
652
|
-
/*! @azure/msal-common v16.
|
|
652
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
653
653
|
|
|
654
654
|
/*
|
|
655
655
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -715,7 +715,7 @@ function getJWSPayload(authToken, correlationId) {
|
|
|
715
715
|
return matches[2];
|
|
716
716
|
}
|
|
717
717
|
|
|
718
|
-
/*! @azure/msal-common v16.
|
|
718
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
719
719
|
|
|
720
720
|
/*
|
|
721
721
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -803,7 +803,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
|
|
|
803
803
|
return updatedAccountInfo;
|
|
804
804
|
}
|
|
805
805
|
|
|
806
|
-
/*! @azure/msal-common v16.
|
|
806
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
807
807
|
/*
|
|
808
808
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
809
809
|
* Licensed under the MIT License.
|
|
@@ -817,7 +817,7 @@ const AuthorityType = {
|
|
|
817
817
|
Ciam: 3,
|
|
818
818
|
};
|
|
819
819
|
|
|
820
|
-
/*! @azure/msal-common v16.
|
|
820
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
821
821
|
/*
|
|
822
822
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
823
823
|
* Licensed under the MIT License.
|
|
@@ -839,7 +839,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
|
|
|
839
839
|
return null;
|
|
840
840
|
}
|
|
841
841
|
|
|
842
|
-
/*! @azure/msal-common v16.
|
|
842
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
843
843
|
/*
|
|
844
844
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
845
845
|
* Licensed under the MIT License.
|
|
@@ -863,7 +863,7 @@ const ProtocolMode = {
|
|
|
863
863
|
EAR: "EAR",
|
|
864
864
|
};
|
|
865
865
|
|
|
866
|
-
/*! @azure/msal-common v16.
|
|
866
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
867
867
|
/**
|
|
868
868
|
* Returns the AccountInfo interface for this account.
|
|
869
869
|
* @internal
|
|
@@ -1012,7 +1012,7 @@ function isAccountEntity(entity) {
|
|
|
1012
1012
|
entity.hasOwnProperty("authorityType"));
|
|
1013
1013
|
}
|
|
1014
1014
|
|
|
1015
|
-
/*! @azure/msal-common v16.
|
|
1015
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
1016
1016
|
/*
|
|
1017
1017
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1018
1018
|
* Licensed under the MIT License.
|
|
@@ -1029,7 +1029,7 @@ var AuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
1029
1029
|
unexpectedError: unexpectedError
|
|
1030
1030
|
});
|
|
1031
1031
|
|
|
1032
|
-
/*! @azure/msal-common v16.
|
|
1032
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
1033
1033
|
|
|
1034
1034
|
/*
|
|
1035
1035
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1049,7 +1049,7 @@ function createClientConfigurationError(errorCode, correlationId) {
|
|
|
1049
1049
|
return new ClientConfigurationError(errorCode, correlationId);
|
|
1050
1050
|
}
|
|
1051
1051
|
|
|
1052
|
-
/*! @azure/msal-common v16.
|
|
1052
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
1053
1053
|
/*
|
|
1054
1054
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1055
1055
|
* Licensed under the MIT License.
|
|
@@ -1089,7 +1089,7 @@ function getResponseHeader(headers, name) {
|
|
|
1089
1089
|
return headerName === undefined ? undefined : headers[headerName];
|
|
1090
1090
|
}
|
|
1091
1091
|
|
|
1092
|
-
/*! @azure/msal-common v16.
|
|
1092
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
1093
1093
|
/*
|
|
1094
1094
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1095
1095
|
* Licensed under the MIT License.
|
|
@@ -1159,7 +1159,7 @@ var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
1159
1159
|
urlParseError: urlParseError
|
|
1160
1160
|
});
|
|
1161
1161
|
|
|
1162
|
-
/*! @azure/msal-common v16.
|
|
1162
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
1163
1163
|
/*
|
|
1164
1164
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1165
1165
|
* Licensed under the MIT License.
|
|
@@ -1171,7 +1171,7 @@ function isOpenIdConfigResponse(response) {
|
|
|
1171
1171
|
response.hasOwnProperty("jwks_uri"));
|
|
1172
1172
|
}
|
|
1173
1173
|
|
|
1174
|
-
/*! @azure/msal-common v16.
|
|
1174
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
1175
1175
|
/*
|
|
1176
1176
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1177
1177
|
* Licensed under the MIT License.
|
|
@@ -1251,7 +1251,7 @@ class StringUtils {
|
|
|
1251
1251
|
}
|
|
1252
1252
|
}
|
|
1253
1253
|
|
|
1254
|
-
/*! @azure/msal-common v16.
|
|
1254
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
1255
1255
|
|
|
1256
1256
|
/*
|
|
1257
1257
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1438,7 +1438,7 @@ class UrlString {
|
|
|
1438
1438
|
}
|
|
1439
1439
|
}
|
|
1440
1440
|
|
|
1441
|
-
/*! @azure/msal-common v16.
|
|
1441
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
1442
1442
|
|
|
1443
1443
|
/*
|
|
1444
1444
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1592,7 +1592,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
1592
1592
|
return null;
|
|
1593
1593
|
}
|
|
1594
1594
|
|
|
1595
|
-
/*! @azure/msal-common v16.
|
|
1595
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
1596
1596
|
/*
|
|
1597
1597
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1598
1598
|
* Licensed under the MIT License.
|
|
@@ -1610,7 +1610,7 @@ const AzureCloudInstance = {
|
|
|
1610
1610
|
AzureUsGovernment: "https://login.microsoftonline.us",
|
|
1611
1611
|
};
|
|
1612
1612
|
|
|
1613
|
-
/*! @azure/msal-common v16.
|
|
1613
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
1614
1614
|
/*
|
|
1615
1615
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1616
1616
|
* Licensed under the MIT License.
|
|
@@ -1620,7 +1620,7 @@ function isCloudInstanceDiscoveryResponse(response) {
|
|
|
1620
1620
|
response.hasOwnProperty("metadata"));
|
|
1621
1621
|
}
|
|
1622
1622
|
|
|
1623
|
-
/*! @azure/msal-common v16.
|
|
1623
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
1624
1624
|
/*
|
|
1625
1625
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1626
1626
|
* Licensed under the MIT License.
|
|
@@ -1630,7 +1630,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
|
1630
1630
|
response.hasOwnProperty("error_description"));
|
|
1631
1631
|
}
|
|
1632
1632
|
|
|
1633
|
-
/*! @azure/msal-common v16.
|
|
1633
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
1634
1634
|
/*
|
|
1635
1635
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1636
1636
|
* Licensed under the MIT License.
|
|
@@ -1692,7 +1692,7 @@ const RegionDiscoveryGetCurrentVersion = "regionDiscoveryGetCurrentVersion";
|
|
|
1692
1692
|
*/
|
|
1693
1693
|
const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken";
|
|
1694
1694
|
|
|
1695
|
-
/*! @azure/msal-common v16.
|
|
1695
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
1696
1696
|
/*
|
|
1697
1697
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1698
1698
|
* Licensed under the MIT License.
|
|
@@ -1786,7 +1786,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
|
|
|
1786
1786
|
};
|
|
1787
1787
|
};
|
|
1788
1788
|
|
|
1789
|
-
/*! @azure/msal-common v16.
|
|
1789
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
1790
1790
|
|
|
1791
1791
|
/*
|
|
1792
1792
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1915,7 +1915,7 @@ RegionDiscovery.IMDS_OPTIONS = {
|
|
|
1915
1915
|
},
|
|
1916
1916
|
};
|
|
1917
1917
|
|
|
1918
|
-
/*! @azure/msal-common v16.
|
|
1918
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
1919
1919
|
/*
|
|
1920
1920
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1921
1921
|
* Licensed under the MIT License.
|
|
@@ -1970,7 +1970,7 @@ function delay(t, value) {
|
|
|
1970
1970
|
return new Promise((resolve) => setTimeout(() => resolve(value), t));
|
|
1971
1971
|
}
|
|
1972
1972
|
|
|
1973
|
-
/*! @azure/msal-common v16.
|
|
1973
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
1974
1974
|
|
|
1975
1975
|
/*
|
|
1976
1976
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2257,7 +2257,7 @@ function serializeAttributeTokens(attributeTokens) {
|
|
|
2257
2257
|
return [...attributeTokens].sort().join(" ");
|
|
2258
2258
|
}
|
|
2259
2259
|
|
|
2260
|
-
/*! @azure/msal-common v16.
|
|
2260
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
2261
2261
|
|
|
2262
2262
|
/*
|
|
2263
2263
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3228,7 +3228,7 @@ function buildStaticAuthorityOptions(authOptions) {
|
|
|
3228
3228
|
};
|
|
3229
3229
|
}
|
|
3230
3230
|
|
|
3231
|
-
/*! @azure/msal-common v16.
|
|
3231
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
3232
3232
|
|
|
3233
3233
|
/*
|
|
3234
3234
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3262,7 +3262,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
|
|
|
3262
3262
|
}
|
|
3263
3263
|
}
|
|
3264
3264
|
|
|
3265
|
-
/*! @azure/msal-common v16.
|
|
3265
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
3266
3266
|
|
|
3267
3267
|
/*
|
|
3268
3268
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3458,7 +3458,7 @@ class ScopeSet {
|
|
|
3458
3458
|
}
|
|
3459
3459
|
}
|
|
3460
3460
|
|
|
3461
|
-
/*! @azure/msal-common v16.
|
|
3461
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
3462
3462
|
|
|
3463
3463
|
/*
|
|
3464
3464
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3976,7 +3976,7 @@ function addAttributeTokens(parameters, attributeTokens) {
|
|
|
3976
3976
|
}
|
|
3977
3977
|
}
|
|
3978
3978
|
|
|
3979
|
-
/*! @azure/msal-common v16.
|
|
3979
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
3980
3980
|
|
|
3981
3981
|
/*
|
|
3982
3982
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4043,7 +4043,7 @@ function mapToQueryString(parameters) {
|
|
|
4043
4043
|
return queryParameterArray.join("&");
|
|
4044
4044
|
}
|
|
4045
4045
|
|
|
4046
|
-
/*! @azure/msal-common v16.
|
|
4046
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
4047
4047
|
|
|
4048
4048
|
/*
|
|
4049
4049
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4091,7 +4091,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
|
|
|
4091
4091
|
},
|
|
4092
4092
|
};
|
|
4093
4093
|
|
|
4094
|
-
/*! @azure/msal-common v16.
|
|
4094
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
4095
4095
|
|
|
4096
4096
|
/*
|
|
4097
4097
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4114,7 +4114,7 @@ const DEFAULT_TOKEN_BINDING_KEY_MANAGER = {
|
|
|
4114
4114
|
},
|
|
4115
4115
|
};
|
|
4116
4116
|
|
|
4117
|
-
/*! @azure/msal-common v16.
|
|
4117
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
4118
4118
|
/*
|
|
4119
4119
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4120
4120
|
* Licensed under the MIT License.
|
|
@@ -4389,12 +4389,12 @@ class Logger {
|
|
|
4389
4389
|
}
|
|
4390
4390
|
}
|
|
4391
4391
|
|
|
4392
|
-
/*! @azure/msal-common v16.
|
|
4392
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
4393
4393
|
/* eslint-disable header/header */
|
|
4394
4394
|
const name$1 = "@azure/msal-common";
|
|
4395
|
-
const version$1 = "16.
|
|
4395
|
+
const version$1 = "16.18.0";
|
|
4396
4396
|
|
|
4397
|
-
/*! @azure/msal-common v16.
|
|
4397
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
4398
4398
|
/*
|
|
4399
4399
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4400
4400
|
* Licensed under the MIT License.
|
|
@@ -4402,7 +4402,7 @@ const version$1 = "16.17.0";
|
|
|
4402
4402
|
const cacheQuotaExceeded = "cache_quota_exceeded";
|
|
4403
4403
|
const cacheErrorUnknown = "cache_error_unknown";
|
|
4404
4404
|
|
|
4405
|
-
/*! @azure/msal-common v16.
|
|
4405
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
4406
4406
|
|
|
4407
4407
|
/*
|
|
4408
4408
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4440,7 +4440,7 @@ function createCacheError(e) {
|
|
|
4440
4440
|
}
|
|
4441
4441
|
}
|
|
4442
4442
|
|
|
4443
|
-
/*! @azure/msal-common v16.
|
|
4443
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
4444
4444
|
|
|
4445
4445
|
/*
|
|
4446
4446
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5667,7 +5667,7 @@ class DefaultStorageClass extends CacheManager {
|
|
|
5667
5667
|
}
|
|
5668
5668
|
}
|
|
5669
5669
|
|
|
5670
|
-
/*! @azure/msal-common v16.
|
|
5670
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
5671
5671
|
/*
|
|
5672
5672
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5673
5673
|
* Licensed under the MIT License.
|
|
@@ -5681,7 +5681,7 @@ class DefaultStorageClass extends CacheManager {
|
|
|
5681
5681
|
const PerformanceEventStatus = {
|
|
5682
5682
|
InProgress: 1};
|
|
5683
5683
|
|
|
5684
|
-
/*! @azure/msal-common v16.
|
|
5684
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
5685
5685
|
|
|
5686
5686
|
/*
|
|
5687
5687
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5739,7 +5739,7 @@ class StubPerformanceClient {
|
|
|
5739
5739
|
}
|
|
5740
5740
|
}
|
|
5741
5741
|
|
|
5742
|
-
/*! @azure/msal-common v16.
|
|
5742
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
5743
5743
|
|
|
5744
5744
|
/*
|
|
5745
5745
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5793,7 +5793,7 @@ const DEFAULT_TELEMETRY_OPTIONS$1 = {
|
|
|
5793
5793
|
* @returns Configuration
|
|
5794
5794
|
* @internal
|
|
5795
5795
|
*/
|
|
5796
|
-
function buildClientConfiguration({ authOptions: userAuthOptions, systemOptions: userSystemOptions, loggerOptions: userLoggerOption, storageInterface: storageImplementation, networkInterface: networkImplementation, cryptoInterface: cryptoImplementation, tokenBindingKeyManager: tokenBindingKeyManager, clientCredentials: clientCredentials, libraryInfo: libraryInfo, telemetry: telemetry, serverTelemetryManager: serverTelemetryManager, persistencePlugin: persistencePlugin, serializableCache: serializableCache, }) {
|
|
5796
|
+
function buildClientConfiguration({ authOptions: userAuthOptions, systemOptions: userSystemOptions, loggerOptions: userLoggerOption, storageInterface: storageImplementation, networkInterface: networkImplementation, cryptoInterface: cryptoImplementation, tokenBindingKeyManager: tokenBindingKeyManager, dpopNonceProvider: dpopNonceProvider, clientCredentials: clientCredentials, libraryInfo: libraryInfo, telemetry: telemetry, serverTelemetryManager: serverTelemetryManager, persistencePlugin: persistencePlugin, serializableCache: serializableCache, }) {
|
|
5797
5797
|
const loggerOptions = {
|
|
5798
5798
|
...DEFAULT_LOGGER_IMPLEMENTATION,
|
|
5799
5799
|
...userLoggerOption,
|
|
@@ -5808,6 +5808,7 @@ function buildClientConfiguration({ authOptions: userAuthOptions, systemOptions:
|
|
|
5808
5808
|
networkInterface: networkImplementation || DEFAULT_NETWORK_IMPLEMENTATION,
|
|
5809
5809
|
cryptoInterface: cryptoImplementation || DEFAULT_CRYPTO_IMPLEMENTATION,
|
|
5810
5810
|
tokenBindingKeyManager: resolvedTokenBindingKeyManager,
|
|
5811
|
+
dpopNonceProvider,
|
|
5811
5812
|
clientCredentials: clientCredentials || DEFAULT_CLIENT_CREDENTIALS,
|
|
5812
5813
|
libraryInfo: { ...DEFAULT_LIBRARY_INFO, ...libraryInfo },
|
|
5813
5814
|
telemetry: { ...DEFAULT_TELEMETRY_OPTIONS$1, ...telemetry },
|
|
@@ -5837,7 +5838,7 @@ function isOidcProtocolMode(config) {
|
|
|
5837
5838
|
return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
|
|
5838
5839
|
}
|
|
5839
5840
|
|
|
5840
|
-
/*! @azure/msal-common v16.
|
|
5841
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
5841
5842
|
/*
|
|
5842
5843
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5843
5844
|
* Licensed under the MIT License.
|
|
@@ -5864,7 +5865,7 @@ function isOidcProtocolMode(config) {
|
|
|
5864
5865
|
}
|
|
5865
5866
|
}
|
|
5866
5867
|
|
|
5867
|
-
/*! @azure/msal-common v16.
|
|
5868
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
5868
5869
|
|
|
5869
5870
|
/*
|
|
5870
5871
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5885,7 +5886,7 @@ function createJoseHeaderError(code, correlationId) {
|
|
|
5885
5886
|
return new JoseHeaderError(code, correlationId);
|
|
5886
5887
|
}
|
|
5887
5888
|
|
|
5888
|
-
/*! @azure/msal-common v16.
|
|
5889
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
5889
5890
|
/*
|
|
5890
5891
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5891
5892
|
* Licensed under the MIT License.
|
|
@@ -5910,7 +5911,7 @@ function isPlainObject(value) {
|
|
|
5910
5911
|
return Object.getPrototypeOf(value) === proto;
|
|
5911
5912
|
}
|
|
5912
5913
|
|
|
5913
|
-
/*! @azure/msal-common v16.
|
|
5914
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
5914
5915
|
/*
|
|
5915
5916
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5916
5917
|
* Licensed under the MIT License.
|
|
@@ -5920,7 +5921,7 @@ const missingAlgError = "missing_alg_error";
|
|
|
5920
5921
|
const missingJwkError = "missing_jwk_error";
|
|
5921
5922
|
const invalidJwkError = "invalid_jwk_error";
|
|
5922
5923
|
|
|
5923
|
-
/*! @azure/msal-common v16.
|
|
5924
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
5924
5925
|
|
|
5925
5926
|
/*
|
|
5926
5927
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5986,7 +5987,7 @@ class JoseHeader {
|
|
|
5986
5987
|
}
|
|
5987
5988
|
}
|
|
5988
5989
|
|
|
5989
|
-
/*! @azure/msal-common v16.
|
|
5990
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
5990
5991
|
|
|
5991
5992
|
/*
|
|
5992
5993
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6087,7 +6088,25 @@ class PopTokenGenerator {
|
|
|
6087
6088
|
}
|
|
6088
6089
|
}
|
|
6089
6090
|
|
|
6090
|
-
/*! @azure/msal-common v16.
|
|
6091
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
6092
|
+
|
|
6093
|
+
/*
|
|
6094
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6095
|
+
* Licensed under the MIT License.
|
|
6096
|
+
*/
|
|
6097
|
+
/**
|
|
6098
|
+
* Validates that a DPoP nonce is a non-empty string and returns the opaque
|
|
6099
|
+
* value unchanged.
|
|
6100
|
+
* @internal
|
|
6101
|
+
*/
|
|
6102
|
+
function validateDpopNonce(nonce, correlationId = "") {
|
|
6103
|
+
if (typeof nonce !== "string" || nonce.length === 0) {
|
|
6104
|
+
throw createClientConfigurationError(invalidDpopNonce, correlationId);
|
|
6105
|
+
}
|
|
6106
|
+
return nonce;
|
|
6107
|
+
}
|
|
6108
|
+
|
|
6109
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
6091
6110
|
|
|
6092
6111
|
/*
|
|
6093
6112
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6132,11 +6151,6 @@ function normalizeHtu(url, correlationId) {
|
|
|
6132
6151
|
parsedUrl.hash = "";
|
|
6133
6152
|
return parsedUrl.href;
|
|
6134
6153
|
}
|
|
6135
|
-
function validateDpopNonce(nonce, correlationId) {
|
|
6136
|
-
if (nonce !== undefined && nonce.trim().length === 0) {
|
|
6137
|
-
throw createClientConfigurationError(invalidDpopNonce, correlationId);
|
|
6138
|
-
}
|
|
6139
|
-
}
|
|
6140
6154
|
/**
|
|
6141
6155
|
* Validates and normalizes the HTTP resource context for a DPoP-bound request.
|
|
6142
6156
|
* @internal
|
|
@@ -6180,7 +6194,6 @@ class DpopProofGenerator {
|
|
|
6180
6194
|
* - jti is a fresh CSPRNG-backed unique identifier for every proof.
|
|
6181
6195
|
*/
|
|
6182
6196
|
buildTokenProofClaims(params, correlationId = "") {
|
|
6183
|
-
validateDpopNonce(params.nonce, correlationId);
|
|
6184
6197
|
const claims = {
|
|
6185
6198
|
jti: this.cryptoUtils.createNewGuid(),
|
|
6186
6199
|
htm: "POST",
|
|
@@ -6188,7 +6201,7 @@ class DpopProofGenerator {
|
|
|
6188
6201
|
iat: nowSeconds(),
|
|
6189
6202
|
};
|
|
6190
6203
|
if (params.nonce !== undefined) {
|
|
6191
|
-
claims.nonce = params.nonce;
|
|
6204
|
+
claims.nonce = validateDpopNonce(params.nonce, correlationId);
|
|
6192
6205
|
}
|
|
6193
6206
|
return claims;
|
|
6194
6207
|
}
|
|
@@ -6206,7 +6219,6 @@ class DpopProofGenerator {
|
|
|
6206
6219
|
* - jti is a fresh CSPRNG-backed unique identifier for every proof.
|
|
6207
6220
|
*/
|
|
6208
6221
|
buildResourceProofClaims(params, correlationId = "") {
|
|
6209
|
-
validateDpopNonce(params.nonce, correlationId);
|
|
6210
6222
|
const resourceContext = normalizeDpopResourceRequestContext(params, correlationId);
|
|
6211
6223
|
const claims = {
|
|
6212
6224
|
jti: this.cryptoUtils.createNewGuid(),
|
|
@@ -6216,7 +6228,7 @@ class DpopProofGenerator {
|
|
|
6216
6228
|
iat: nowSeconds(),
|
|
6217
6229
|
};
|
|
6218
6230
|
if (params.nonce !== undefined) {
|
|
6219
|
-
claims.nonce = params.nonce;
|
|
6231
|
+
claims.nonce = validateDpopNonce(params.nonce, correlationId);
|
|
6220
6232
|
}
|
|
6221
6233
|
return claims;
|
|
6222
6234
|
}
|
|
@@ -6242,7 +6254,7 @@ class DpopProofGenerator {
|
|
|
6242
6254
|
}
|
|
6243
6255
|
}
|
|
6244
6256
|
|
|
6245
|
-
/*! @azure/msal-common v16.
|
|
6257
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
6246
6258
|
/*
|
|
6247
6259
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6248
6260
|
* Licensed under the MIT License.
|
|
@@ -6306,7 +6318,7 @@ var InteractionRequiredAuthErrorCodes = /*#__PURE__*/Object.freeze({
|
|
|
6306
6318
|
uiNotAllowed: uiNotAllowed
|
|
6307
6319
|
});
|
|
6308
6320
|
|
|
6309
|
-
/*! @azure/msal-common v16.
|
|
6321
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
6310
6322
|
|
|
6311
6323
|
/*
|
|
6312
6324
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6373,7 +6385,7 @@ function createInteractionRequiredAuthError(errorCode, correlationId, errorMessa
|
|
|
6373
6385
|
return new InteractionRequiredAuthError(errorCode, correlationId, errorMessage);
|
|
6374
6386
|
}
|
|
6375
6387
|
|
|
6376
|
-
/*! @azure/msal-common v16.
|
|
6388
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
6377
6389
|
|
|
6378
6390
|
/*
|
|
6379
6391
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6392,7 +6404,7 @@ class ServerError extends AuthError {
|
|
|
6392
6404
|
}
|
|
6393
6405
|
}
|
|
6394
6406
|
|
|
6395
|
-
/*! @azure/msal-common v16.
|
|
6407
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
6396
6408
|
|
|
6397
6409
|
/*
|
|
6398
6410
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6460,18 +6472,29 @@ function parseRequestState(base64Decode, state, correlationId) {
|
|
|
6460
6472
|
}
|
|
6461
6473
|
}
|
|
6462
6474
|
|
|
6463
|
-
/*! @azure/msal-common v16.
|
|
6475
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
6464
6476
|
|
|
6465
6477
|
/*
|
|
6466
6478
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6467
6479
|
* Licensed under the MIT License.
|
|
6468
6480
|
*/
|
|
6481
|
+
/*
|
|
6482
|
+
* Retains the signing key for fresh proofs on deduplicated calls without
|
|
6483
|
+
* exposing it on the public AuthenticationResult.
|
|
6484
|
+
*/
|
|
6485
|
+
const dpopKeyIdByAuthenticationResult = new WeakMap();
|
|
6486
|
+
function getDpopNonceForRequest(dpopNonceProvider, request) {
|
|
6487
|
+
if (!request.resourceRequestUri || !dpopNonceProvider) {
|
|
6488
|
+
return undefined;
|
|
6489
|
+
}
|
|
6490
|
+
return dpopNonceProvider.getDpopNonce(request.resourceRequestUri, request.correlationId);
|
|
6491
|
+
}
|
|
6469
6492
|
/**
|
|
6470
6493
|
* Class that handles response parsing.
|
|
6471
6494
|
* @internal
|
|
6472
6495
|
*/
|
|
6473
6496
|
class ResponseHandler {
|
|
6474
|
-
constructor(clientId, cacheStorage, cryptoObj, logger, performanceClient, serializableCache, persistencePlugin, tokenBindingKeyManager = DEFAULT_TOKEN_BINDING_KEY_MANAGER) {
|
|
6497
|
+
constructor(clientId, cacheStorage, cryptoObj, logger, performanceClient, serializableCache, persistencePlugin, tokenBindingKeyManager = DEFAULT_TOKEN_BINDING_KEY_MANAGER, dpopNonceProvider) {
|
|
6475
6498
|
this.clientId = clientId;
|
|
6476
6499
|
this.cacheStorage = cacheStorage;
|
|
6477
6500
|
this.cryptoObj = cryptoObj;
|
|
@@ -6480,6 +6503,7 @@ class ResponseHandler {
|
|
|
6480
6503
|
this.performanceClient = performanceClient;
|
|
6481
6504
|
this.serializableCache = serializableCache;
|
|
6482
6505
|
this.persistencePlugin = persistencePlugin;
|
|
6506
|
+
this.dpopNonceProvider = dpopNonceProvider;
|
|
6483
6507
|
}
|
|
6484
6508
|
/**
|
|
6485
6509
|
* Function which validates server authorization token response.
|
|
@@ -6618,6 +6642,7 @@ class ResponseHandler {
|
|
|
6618
6642
|
requestState: requestStateObj,
|
|
6619
6643
|
requestId: serverRequestId,
|
|
6620
6644
|
tokenBindingKeyManager: this.tokenBindingKeyManager,
|
|
6645
|
+
dpopNonceProvider: this.dpopNonceProvider,
|
|
6621
6646
|
});
|
|
6622
6647
|
}
|
|
6623
6648
|
}
|
|
@@ -6637,6 +6662,7 @@ class ResponseHandler {
|
|
|
6637
6662
|
serverTokenResponse,
|
|
6638
6663
|
requestId: serverRequestId,
|
|
6639
6664
|
tokenBindingKeyManager: this.tokenBindingKeyManager,
|
|
6665
|
+
dpopNonceProvider: this.dpopNonceProvider,
|
|
6640
6666
|
});
|
|
6641
6667
|
}
|
|
6642
6668
|
/**
|
|
@@ -6734,7 +6760,7 @@ class ResponseHandler {
|
|
|
6734
6760
|
* @param stateString
|
|
6735
6761
|
*/
|
|
6736
6762
|
static async generateAuthenticationResult(cryptoObj, authority, cacheRecord, fromTokenCache, request, performanceClient, options = {}) {
|
|
6737
|
-
const { idTokenClaims, requestState, serverTokenResponse, requestId, tokenBindingKeyManager = DEFAULT_TOKEN_BINDING_KEY_MANAGER, } = options;
|
|
6763
|
+
const { idTokenClaims, requestState, serverTokenResponse, requestId, tokenBindingKeyManager = DEFAULT_TOKEN_BINDING_KEY_MANAGER, dpopNonceProvider, } = options;
|
|
6738
6764
|
let accessToken = "";
|
|
6739
6765
|
let responseScopes = [];
|
|
6740
6766
|
let expiresOn = null;
|
|
@@ -6742,8 +6768,13 @@ class ResponseHandler {
|
|
|
6742
6768
|
let refreshOn;
|
|
6743
6769
|
let familyId = "";
|
|
6744
6770
|
let dpopProof;
|
|
6771
|
+
const cachedAccessTokenType = cacheRecord.accessToken?.tokenType || "";
|
|
6772
|
+
const isDpopAccessToken = cachedAccessTokenType.toLowerCase() ===
|
|
6773
|
+
AuthenticationScheme.DPOP.toLowerCase();
|
|
6774
|
+
const resultTokenType = isDpopAccessToken
|
|
6775
|
+
? AuthenticationScheme.DPOP
|
|
6776
|
+
: cachedAccessTokenType;
|
|
6745
6777
|
if (cacheRecord.accessToken) {
|
|
6746
|
-
const accessTokenType = cacheRecord.accessToken.tokenType?.toLowerCase();
|
|
6747
6778
|
/*
|
|
6748
6779
|
* if the request object has `popKid` property, `signPopToken` will be set to false and
|
|
6749
6780
|
* the token will be returned unsigned
|
|
@@ -6761,15 +6792,17 @@ class ResponseHandler {
|
|
|
6761
6792
|
else {
|
|
6762
6793
|
accessToken = cacheRecord.accessToken.secret;
|
|
6763
6794
|
}
|
|
6764
|
-
if (
|
|
6765
|
-
AuthenticationScheme.DPOP.toLowerCase()) {
|
|
6795
|
+
if (isDpopAccessToken) {
|
|
6766
6796
|
if (!cacheRecord.accessToken.keyId) {
|
|
6767
6797
|
throw createClientAuthError(keyIdMissing, request.correlationId);
|
|
6768
6798
|
}
|
|
6769
6799
|
const dpopProofGenerator = new DpopProofGenerator(cryptoObj, tokenBindingKeyManager);
|
|
6800
|
+
const dpopNonce = getDpopNonceForRequest(dpopNonceProvider, request);
|
|
6801
|
+
performanceClient?.addFields({ dpopNonceAppliedToProof: Boolean(dpopNonce) }, request.correlationId);
|
|
6770
6802
|
dpopProof = await dpopProofGenerator.generateResourceProof({
|
|
6771
6803
|
htu: request.resourceRequestUri,
|
|
6772
6804
|
htm: request.resourceRequestMethod,
|
|
6805
|
+
nonce: dpopNonce,
|
|
6773
6806
|
accessToken: cacheRecord.accessToken.secret,
|
|
6774
6807
|
}, cacheRecord.accessToken.keyId, request.correlationId);
|
|
6775
6808
|
}
|
|
@@ -6817,7 +6850,7 @@ class ResponseHandler {
|
|
|
6817
6850
|
? updateAccountTenantProfileData(getAccountInfo(cacheRecord.account), undefined, // tenantProfile optional
|
|
6818
6851
|
idTokenClaims, cacheRecord.idToken?.secret)
|
|
6819
6852
|
: null;
|
|
6820
|
-
|
|
6853
|
+
const authenticationResult = {
|
|
6821
6854
|
authority: authority.canonicalAuthority,
|
|
6822
6855
|
uniqueId: uid,
|
|
6823
6856
|
tenantId: tid,
|
|
@@ -6834,16 +6867,49 @@ class ResponseHandler {
|
|
|
6834
6867
|
correlationId: request.correlationId,
|
|
6835
6868
|
requestId: requestId || "",
|
|
6836
6869
|
familyId: familyId,
|
|
6837
|
-
tokenType:
|
|
6838
|
-
AuthenticationScheme.DPOP.toLowerCase()
|
|
6839
|
-
? AuthenticationScheme.DPOP
|
|
6840
|
-
: cacheRecord.accessToken?.tokenType || "",
|
|
6870
|
+
tokenType: resultTokenType,
|
|
6841
6871
|
state: requestState ? requestState.userRequestState : "",
|
|
6842
6872
|
cloudGraphHostName: cacheRecord.account?.cloudGraphHostName || "",
|
|
6843
6873
|
msGraphHost: cacheRecord.account?.msGraphHost || "",
|
|
6844
6874
|
code: serverTokenResponse?.spa_code,
|
|
6845
6875
|
fromPlatformBroker: false,
|
|
6846
6876
|
};
|
|
6877
|
+
if (isDpopAccessToken && cacheRecord.accessToken?.keyId) {
|
|
6878
|
+
ResponseHandler.setDpopKeyId(authenticationResult, cacheRecord.accessToken.keyId);
|
|
6879
|
+
}
|
|
6880
|
+
return authenticationResult;
|
|
6881
|
+
}
|
|
6882
|
+
/**
|
|
6883
|
+
* Retains an MSAL-owned DPoP key for fresh proofs on deduplicated calls.
|
|
6884
|
+
* @internal
|
|
6885
|
+
*/
|
|
6886
|
+
static setDpopKeyId(authenticationResult, keyId) {
|
|
6887
|
+
dpopKeyIdByAuthenticationResult.set(authenticationResult, keyId);
|
|
6888
|
+
}
|
|
6889
|
+
/**
|
|
6890
|
+
* Returns whether MSAL can generate another proof for this result.
|
|
6891
|
+
* @internal
|
|
6892
|
+
*/
|
|
6893
|
+
static hasDpopKeyId(authenticationResult) {
|
|
6894
|
+
return dpopKeyIdByAuthenticationResult.has(authenticationResult);
|
|
6895
|
+
}
|
|
6896
|
+
/**
|
|
6897
|
+
* Generates a fresh resource proof for a previously constructed DPoP result.
|
|
6898
|
+
* @internal
|
|
6899
|
+
*/
|
|
6900
|
+
static async generateDpopResourceProof(cryptoObj, authenticationResult, request, performanceClient, options = {}) {
|
|
6901
|
+
const keyId = dpopKeyIdByAuthenticationResult.get(authenticationResult);
|
|
6902
|
+
if (!keyId) {
|
|
6903
|
+
throw createClientAuthError(keyIdMissing, request.correlationId);
|
|
6904
|
+
}
|
|
6905
|
+
const dpopNonce = getDpopNonceForRequest(options.dpopNonceProvider, request);
|
|
6906
|
+
performanceClient.addFields({ dpopNonceAppliedToProof: Boolean(dpopNonce) }, request.correlationId);
|
|
6907
|
+
return new DpopProofGenerator(cryptoObj, options.tokenBindingKeyManager ?? DEFAULT_TOKEN_BINDING_KEY_MANAGER).generateResourceProof({
|
|
6908
|
+
htu: request.resourceRequestUri,
|
|
6909
|
+
htm: request.resourceRequestMethod,
|
|
6910
|
+
nonce: dpopNonce,
|
|
6911
|
+
accessToken: authenticationResult.accessToken,
|
|
6912
|
+
}, keyId, request.correlationId);
|
|
6847
6913
|
}
|
|
6848
6914
|
}
|
|
6849
6915
|
/** @internal */
|
|
@@ -6888,7 +6954,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
|
|
|
6888
6954
|
return baseAccount;
|
|
6889
6955
|
}
|
|
6890
6956
|
|
|
6891
|
-
/*! @azure/msal-common v16.
|
|
6957
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
6892
6958
|
/*
|
|
6893
6959
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6894
6960
|
* Licensed under the MIT License.
|
|
@@ -6898,7 +6964,7 @@ const CcsCredentialType = {
|
|
|
6898
6964
|
UPN: "UPN",
|
|
6899
6965
|
};
|
|
6900
6966
|
|
|
6901
|
-
/*! @azure/msal-common v16.
|
|
6967
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
6902
6968
|
/*
|
|
6903
6969
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6904
6970
|
* Licensed under the MIT License.
|
|
@@ -6917,7 +6983,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint, fmiP
|
|
|
6917
6983
|
}
|
|
6918
6984
|
}
|
|
6919
6985
|
|
|
6920
|
-
/*! @azure/msal-common v16.
|
|
6986
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
6921
6987
|
|
|
6922
6988
|
/*
|
|
6923
6989
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6941,7 +7007,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
|
|
|
6941
7007
|
};
|
|
6942
7008
|
}
|
|
6943
7009
|
|
|
6944
|
-
/*! @azure/msal-common v16.
|
|
7010
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
6945
7011
|
|
|
6946
7012
|
/*
|
|
6947
7013
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7031,7 +7097,7 @@ function getRetryAfterHeader(response) {
|
|
|
7031
7097
|
return undefined;
|
|
7032
7098
|
}
|
|
7033
7099
|
|
|
7034
|
-
/*! @azure/msal-common v16.
|
|
7100
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
7035
7101
|
|
|
7036
7102
|
/*
|
|
7037
7103
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7062,7 +7128,7 @@ function createNetworkError(error, httpStatus, responseHeaders, additionalError)
|
|
|
7062
7128
|
return new NetworkError(error, httpStatus, responseHeaders);
|
|
7063
7129
|
}
|
|
7064
7130
|
|
|
7065
|
-
/*! @azure/msal-common v16.
|
|
7131
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
7066
7132
|
|
|
7067
7133
|
/*
|
|
7068
7134
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7196,7 +7262,7 @@ async function sendPostRequest(thumbprint, tokenEndpoint, options, correlationId
|
|
|
7196
7262
|
return response;
|
|
7197
7263
|
}
|
|
7198
7264
|
|
|
7199
|
-
/*! @azure/msal-common v16.
|
|
7265
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
7200
7266
|
|
|
7201
7267
|
/*
|
|
7202
7268
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7247,7 +7313,7 @@ class AuthorizationCodeClient {
|
|
|
7247
7313
|
const response = await invokeAsync(this.executeTokenRequest.bind(this), AuthClientExecuteTokenRequest, this.logger, this.performanceClient, request.correlationId)(this.authority, request, this.serverTelemetryManager);
|
|
7248
7314
|
// Retrieve requestId from response headers
|
|
7249
7315
|
const requestId = response.headers?.[HeaderNames.X_MS_REQUEST_ID];
|
|
7250
|
-
const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.performanceClient, this.config.serializableCache, this.config.persistencePlugin, this.config.tokenBindingKeyManager);
|
|
7316
|
+
const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.performanceClient, this.config.serializableCache, this.config.persistencePlugin, this.config.tokenBindingKeyManager, this.config.dpopNonceProvider);
|
|
7251
7317
|
// Validate response. This function throws a server error if an error is returned by the server.
|
|
7252
7318
|
responseHandler.validateTokenResponse(response.body, request.correlationId);
|
|
7253
7319
|
return invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), HandleServerTokenResponse, this.logger, this.performanceClient, request.correlationId)(response.body, this.authority, reqTimestamp, request, apiId, authCodePayload, undefined, undefined, undefined, requestId);
|
|
@@ -7464,7 +7530,7 @@ class AuthorizationCodeClient {
|
|
|
7464
7530
|
}
|
|
7465
7531
|
}
|
|
7466
7532
|
|
|
7467
|
-
/*! @azure/msal-common v16.
|
|
7533
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
7468
7534
|
|
|
7469
7535
|
/*
|
|
7470
7536
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7618,7 +7684,7 @@ function extractLoginHint(account) {
|
|
|
7618
7684
|
return account.loginHint || account.idTokenClaims?.login_hint || null;
|
|
7619
7685
|
}
|
|
7620
7686
|
|
|
7621
|
-
/*! @azure/msal-common v16.
|
|
7687
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
7622
7688
|
|
|
7623
7689
|
/*
|
|
7624
7690
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -7653,7 +7719,7 @@ class RefreshTokenClient {
|
|
|
7653
7719
|
const response = await invokeAsync(this.executeTokenRequest.bind(this), RefreshTokenClientExecuteTokenRequest, this.logger, this.performanceClient, request.correlationId)(request, this.authority);
|
|
7654
7720
|
// Retrieve requestId from response headers
|
|
7655
7721
|
const requestId = response.headers?.[HeaderNames.X_MS_REQUEST_ID];
|
|
7656
|
-
const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.performanceClient, this.config.serializableCache, this.config.persistencePlugin, this.config.tokenBindingKeyManager);
|
|
7722
|
+
const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.performanceClient, this.config.serializableCache, this.config.persistencePlugin, this.config.tokenBindingKeyManager, this.config.dpopNonceProvider);
|
|
7657
7723
|
responseHandler.validateTokenResponse(response.body, request.correlationId);
|
|
7658
7724
|
return invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), HandleServerTokenResponse, this.logger, this.performanceClient, request.correlationId)(response.body, this.authority, reqTimestamp, request, apiId, undefined, undefined, true, request.forceCache, requestId);
|
|
7659
7725
|
}
|
|
@@ -7853,7 +7919,7 @@ class RefreshTokenClient {
|
|
|
7853
7919
|
}
|
|
7854
7920
|
}
|
|
7855
7921
|
|
|
7856
|
-
/*! @azure/msal-common v16.
|
|
7922
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
7857
7923
|
|
|
7858
7924
|
/*
|
|
7859
7925
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8119,7 +8185,7 @@ class ServerTelemetryManager {
|
|
|
8119
8185
|
}
|
|
8120
8186
|
}
|
|
8121
8187
|
|
|
8122
|
-
/*! @azure/msal-common v16.
|
|
8188
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
8123
8189
|
|
|
8124
8190
|
/*
|
|
8125
8191
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -8242,11 +8308,12 @@ class SilentFlowClient {
|
|
|
8242
8308
|
return ResponseHandler.generateAuthenticationResult(this.cryptoUtils, this.authority, cacheRecord, true, request, this.performanceClient, {
|
|
8243
8309
|
idTokenClaims,
|
|
8244
8310
|
tokenBindingKeyManager: this.config.tokenBindingKeyManager,
|
|
8311
|
+
dpopNonceProvider: this.config.dpopNonceProvider,
|
|
8245
8312
|
});
|
|
8246
8313
|
}
|
|
8247
8314
|
}
|
|
8248
8315
|
|
|
8249
|
-
/*! @azure/msal-common v16.
|
|
8316
|
+
/*! @azure/msal-common v16.18.0 2026-12-02 */
|
|
8250
8317
|
|
|
8251
8318
|
/*
|
|
8252
8319
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -10296,7 +10363,7 @@ class ClientAssertion {
|
|
|
10296
10363
|
|
|
10297
10364
|
/* eslint-disable header/header */
|
|
10298
10365
|
const name = "@azure/msal-node";
|
|
10299
|
-
const version = "7.2.
|
|
10366
|
+
const version = "7.2.4";
|
|
10300
10367
|
|
|
10301
10368
|
/*
|
|
10302
10369
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|