@azure/msal-node 5.4.3 → 5.6.0
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 +32 -6
- package/dist/cache/CacheHelpers.mjs.map +1 -1
- package/dist/cache/NodeStorage.mjs +10 -7
- package/dist/cache/NodeStorage.mjs.map +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 +16 -6
- package/dist/client/ClientApplication.mjs.map +1 -1
- package/dist/client/ClientAssertion.mjs +1 -1
- package/dist/client/ClientCredentialClient.mjs +30 -7
- package/dist/client/ClientCredentialClient.mjs.map +1 -1
- package/dist/client/ConfidentialClientApplication.mjs +1 -1
- package/dist/client/DeviceCodeClient.mjs +2 -2
- package/dist/client/DeviceCodeClient.mjs.map +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 +93 -16
- package/dist/client/ManagedIdentitySources/AzureArc.mjs.map +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 +44 -15
- package/dist/client/OnBehalfOfClient.mjs.map +1 -1
- package/dist/client/PublicClientApplication.mjs +1 -1
- package/dist/client/UserFederatedIdentityCredentialClient.mjs +11 -5
- package/dist/client/UserFederatedIdentityCredentialClient.mjs.map +1 -1
- package/dist/client/UsernamePasswordClient.mjs +2 -2
- package/dist/client/UsernamePasswordClient.mjs.map +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 +13 -13
- package/dist/crypto/CryptoProvider.mjs.map +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 +5 -4
- package/dist/error/ManagedIdentityError.mjs.map +1 -1
- package/dist/error/ManagedIdentityErrorCodes.mjs +3 -2
- package/dist/error/ManagedIdentityErrorCodes.mjs.map +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 +709 -198
- package/lib/msal-node.cjs.map +1 -1
- package/package.json +2 -2
- package/src/cache/CacheHelpers.ts +36 -7
- package/src/cache/NodeStorage.ts +18 -6
- package/src/client/ClientApplication.ts +15 -5
- package/src/client/ClientCredentialClient.ts +34 -5
- package/src/client/DeviceCodeClient.ts +2 -1
- package/src/client/ManagedIdentitySources/AzureArc.ts +139 -19
- package/src/client/OnBehalfOfClient.ts +58 -14
- package/src/client/UserFederatedIdentityCredentialClient.ts +13 -3
- package/src/client/UsernamePasswordClient.ts +2 -1
- package/src/crypto/CryptoProvider.ts +31 -13
- package/src/error/ManagedIdentityError.ts +4 -2
- package/src/error/ManagedIdentityErrorCodes.ts +2 -0
- package/src/packageMetadata.ts +1 -1
- package/src/request/AuthorizationCodeRequest.ts +4 -0
- package/src/request/CommonClientCredentialRequest.ts +7 -0
- package/src/request/CommonOnBehalfOfRequest.ts +7 -0
- package/src/request/CommonUserFederatedIdentityCredentialRequest.ts +7 -0
- package/src/response/ManagedIdentityTokenResponse.ts +3 -0
- package/types/cache/CacheHelpers.d.ts +1 -1
- package/types/cache/CacheHelpers.d.ts.map +1 -1
- package/types/cache/NodeStorage.d.ts +7 -4
- package/types/cache/NodeStorage.d.ts.map +1 -1
- package/types/client/ClientApplication.d.ts.map +1 -1
- package/types/client/ClientCredentialClient.d.ts.map +1 -1
- package/types/client/DeviceCodeClient.d.ts.map +1 -1
- package/types/client/ManagedIdentitySources/AzureArc.d.ts +22 -8
- package/types/client/ManagedIdentitySources/AzureArc.d.ts.map +1 -1
- package/types/client/OnBehalfOfClient.d.ts.map +1 -1
- package/types/client/UserFederatedIdentityCredentialClient.d.ts.map +1 -1
- package/types/client/UsernamePasswordClient.d.ts.map +1 -1
- package/types/crypto/CryptoProvider.d.ts +11 -9
- package/types/crypto/CryptoProvider.d.ts.map +1 -1
- package/types/error/ManagedIdentityError.d.ts +1 -0
- package/types/error/ManagedIdentityError.d.ts.map +1 -1
- package/types/error/ManagedIdentityErrorCodes.d.ts +1 -0
- package/types/error/ManagedIdentityErrorCodes.d.ts.map +1 -1
- package/types/packageMetadata.d.ts +1 -1
- package/types/request/AuthorizationCodeRequest.d.ts +4 -0
- package/types/request/AuthorizationCodeRequest.d.ts.map +1 -1
- package/types/request/CommonClientCredentialRequest.d.ts +7 -0
- package/types/request/CommonClientCredentialRequest.d.ts.map +1 -1
- package/types/request/CommonOnBehalfOfRequest.d.ts +7 -0
- package/types/request/CommonOnBehalfOfRequest.d.ts.map +1 -1
- package/types/request/CommonUserFederatedIdentityCredentialRequest.d.ts +7 -0
- package/types/request/CommonUserFederatedIdentityCredentialRequest.d.ts.map +1 -1
- package/types/response/ManagedIdentityTokenResponse.d.ts +3 -0
- package/types/response/ManagedIdentityTokenResponse.d.ts.map +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/*! @azure/msal-node v5.
|
|
1
|
+
/*! @azure/msal-node v5.6.0 2026-08-18 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { Constants, AuthError, createClientAuthError, ClientAuthErrorCodes } from '@azure/msal-common/node';
|
|
4
4
|
import { ManagedIdentityRequestParameters } from '../../config/ManagedIdentityRequestParameters.mjs';
|
|
5
|
-
import { BaseManagedIdentitySource } from './BaseManagedIdentitySource.mjs';
|
|
5
|
+
import { BaseManagedIdentitySource, ManagedIdentityUserAssignedIdQueryParameterNames } from './BaseManagedIdentitySource.mjs';
|
|
6
6
|
import { createManagedIdentityError } from '../../error/ManagedIdentityError.mjs';
|
|
7
|
-
import { ManagedIdentityEnvironmentVariableNames, ManagedIdentitySourceNames,
|
|
7
|
+
import { ManagedIdentityEnvironmentVariableNames, ManagedIdentitySourceNames, HttpMethod, ManagedIdentityHeaders, ManagedIdentityQueryParameters, ManagedIdentityIdType, AZURE_ARC_SECRET_FILE_MAX_SIZE_BYTES } from '../../utils/Constants.mjs';
|
|
8
8
|
import { accessSync, constants, statSync, readFileSync } from 'fs';
|
|
9
9
|
import path from 'path';
|
|
10
|
-
import {
|
|
10
|
+
import { userAssignedManagedIdentityNotConfirmed, wwwAuthenticateHeaderMissing, wwwAuthenticateHeaderUnsupportedFormat, platformNotSupported, invalidFileExtension, invalidFilePath, unableToReadSecretFile, invalidSecret } from '../../error/ManagedIdentityErrorCodes.mjs';
|
|
11
11
|
|
|
12
12
|
/*
|
|
13
13
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -88,22 +88,24 @@ class AzureArc extends BaseManagedIdentitySource {
|
|
|
88
88
|
* Attempts to create an AzureArc managed identity source instance.
|
|
89
89
|
*
|
|
90
90
|
* Validates the Azure Arc environment by checking environment variables
|
|
91
|
-
* and performing file-based detection.
|
|
92
|
-
*
|
|
93
|
-
*
|
|
91
|
+
* and performing file-based detection. Azure Arc supports both system-assigned and user-assigned
|
|
92
|
+
* managed identities; when a user-assigned identity is requested, its selector is forwarded on the
|
|
93
|
+
* request and validated against the token response echo (fail closed). The method performs
|
|
94
|
+
* comprehensive validation of endpoint URLs and logs detailed information about the detection process.
|
|
94
95
|
*
|
|
95
96
|
* @param logger - Logger instance for capturing creation and validation steps
|
|
96
97
|
* @param nodeStorage - Storage implementation for the managed identity source
|
|
97
98
|
* @param networkClient - Network client for HTTP communication
|
|
98
99
|
* @param cryptoProvider - Cryptographic operations provider
|
|
99
100
|
* @param disableInternalRetries - Whether to disable automatic retry mechanisms
|
|
100
|
-
* @param
|
|
101
|
+
* @param _managedIdentityId - Unused; Azure Arc now supports user-assigned identities, which are
|
|
102
|
+
* forwarded on the request and validated against the token response echo (fail closed).
|
|
101
103
|
*
|
|
102
104
|
* @returns AzureArc instance if the environment supports Azure Arc managed identity, null otherwise
|
|
103
|
-
*
|
|
104
|
-
* @throws {ManagedIdentityError} When a user-assigned managed identity is specified (not supported for Azure Arc)
|
|
105
105
|
*/
|
|
106
|
-
static tryCreate(logger, nodeStorage, networkClient, cryptoProvider, disableInternalRetries,
|
|
106
|
+
static tryCreate(logger, nodeStorage, networkClient, cryptoProvider, disableInternalRetries,
|
|
107
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
108
|
+
_managedIdentityId) {
|
|
107
109
|
const [identityEndpoint, imdsEndpoint] = AzureArc.getEnvironmentVariables();
|
|
108
110
|
// if either of the identity or imds endpoints are undefined (even after himds file detection)
|
|
109
111
|
if (!identityEndpoint || !imdsEndpoint) {
|
|
@@ -124,9 +126,6 @@ class AzureArc extends BaseManagedIdentitySource {
|
|
|
124
126
|
AzureArc.getValidatedEnvVariableUrlString(ManagedIdentityEnvironmentVariableNames.IMDS_ENDPOINT, imdsEndpoint, ManagedIdentitySourceNames.AZURE_ARC, logger);
|
|
125
127
|
logger.info(`[Managed Identity] Environment variables validation passed for ${ManagedIdentitySourceNames.AZURE_ARC} managed identity. Endpoint URI: ${validatedIdentityEndpoint}. Creating ${ManagedIdentitySourceNames.AZURE_ARC} managed identity.`, "");
|
|
126
128
|
}
|
|
127
|
-
if (managedIdentityId.idType !== ManagedIdentityIdType.SYSTEM_ASSIGNED) {
|
|
128
|
-
throw createManagedIdentityError(unableToCreateAzureArc, "");
|
|
129
|
-
}
|
|
130
129
|
return new AzureArc(logger, nodeStorage, networkClient, cryptoProvider, disableInternalRetries, identityEndpoint);
|
|
131
130
|
}
|
|
132
131
|
/**
|
|
@@ -140,16 +139,85 @@ class AzureArc extends BaseManagedIdentitySource {
|
|
|
140
139
|
*
|
|
141
140
|
* @returns A configured ManagedIdentityRequestParameters object ready for network execution
|
|
142
141
|
*/
|
|
143
|
-
createRequest(resource) {
|
|
142
|
+
createRequest(resource, managedIdentityId) {
|
|
144
143
|
const request = new ManagedIdentityRequestParameters(HttpMethod.GET, this.identityEndpoint.replace("localhost", "127.0.0.1"));
|
|
145
144
|
request.headers[ManagedIdentityHeaders.METADATA_HEADER_NAME] = "true";
|
|
146
145
|
request.queryParameters[ManagedIdentityQueryParameters.API_VERSION] =
|
|
147
146
|
ARC_API_VERSION;
|
|
148
147
|
request.queryParameters[ManagedIdentityQueryParameters.RESOURCE] =
|
|
149
148
|
resource;
|
|
149
|
+
if (managedIdentityId.idType !== ManagedIdentityIdType.SYSTEM_ASSIGNED) {
|
|
150
|
+
/*
|
|
151
|
+
* Forward the user-assigned selector. Azure Arc honors the IMDS "msi_res_id" spelling for
|
|
152
|
+
* the resource-id selector (isImds = true); "mi_res_id" is silently ignored and returns
|
|
153
|
+
* the system-assigned identity.
|
|
154
|
+
*/
|
|
155
|
+
request.queryParameters[this.getManagedIdentityUserAssignedIdQueryParameterKey(managedIdentityId.idType, true // isImds -> msi_res_id for the resource-id selector
|
|
156
|
+
)] = managedIdentityId.id;
|
|
157
|
+
}
|
|
150
158
|
// bodyParameters calculated in BaseManagedIdentity.acquireTokenWithManagedIdentity
|
|
151
159
|
return request;
|
|
152
160
|
}
|
|
161
|
+
/**
|
|
162
|
+
* Fails closed when a user-assigned identity was requested but the Azure Arc token response does
|
|
163
|
+
* not confirm it. A legacy Azure Arc agent ignores the client_id / object_id / msi_res_id selector
|
|
164
|
+
* and silently returns the machine's system-assigned identity; an agent that supports user-assigned
|
|
165
|
+
* managed identity echoes the identity it used. When the echoed identity is missing or does not
|
|
166
|
+
* match the requested selector, MSAL must not return a token for a different identity than requested.
|
|
167
|
+
*
|
|
168
|
+
* @param networkRequest - The request that produced this response; its query parameters carry the
|
|
169
|
+
* requested user-assigned selector (client_id / object_id / msi_res_id)
|
|
170
|
+
* @param responseBody - The deserialized Azure Arc token response
|
|
171
|
+
*
|
|
172
|
+
* @throws {ManagedIdentityError} When a user-assigned identity was requested but not confirmed
|
|
173
|
+
*/
|
|
174
|
+
validateUserAssignedIdentityWasHonored(networkRequest, responseBody) {
|
|
175
|
+
/*
|
|
176
|
+
* Derive the requested selector from the request that produced this response rather than from
|
|
177
|
+
* instance state. The managed identity source instance is cached and reused across acquireToken
|
|
178
|
+
* calls, so relying on a stored field could compare against a different identity than the one
|
|
179
|
+
* this request actually asked for. The network request is scoped to this call and carries exactly
|
|
180
|
+
* one user-assigned selector (client_id, object_id, or msi_res_id) when a UAMI was requested.
|
|
181
|
+
*/
|
|
182
|
+
const queryParameters = networkRequest.queryParameters;
|
|
183
|
+
let requestedIdentity;
|
|
184
|
+
let echoedIdentity;
|
|
185
|
+
if (queryParameters[ManagedIdentityUserAssignedIdQueryParameterNames
|
|
186
|
+
.MANAGED_IDENTITY_CLIENT_ID]) {
|
|
187
|
+
requestedIdentity =
|
|
188
|
+
queryParameters[ManagedIdentityUserAssignedIdQueryParameterNames
|
|
189
|
+
.MANAGED_IDENTITY_CLIENT_ID];
|
|
190
|
+
echoedIdentity = responseBody.client_id;
|
|
191
|
+
}
|
|
192
|
+
else if (queryParameters[ManagedIdentityUserAssignedIdQueryParameterNames
|
|
193
|
+
.MANAGED_IDENTITY_OBJECT_ID]) {
|
|
194
|
+
requestedIdentity =
|
|
195
|
+
queryParameters[ManagedIdentityUserAssignedIdQueryParameterNames
|
|
196
|
+
.MANAGED_IDENTITY_OBJECT_ID];
|
|
197
|
+
echoedIdentity = responseBody.object_id;
|
|
198
|
+
}
|
|
199
|
+
else if (queryParameters[ManagedIdentityUserAssignedIdQueryParameterNames
|
|
200
|
+
.MANAGED_IDENTITY_RESOURCE_ID_IMDS]) {
|
|
201
|
+
requestedIdentity =
|
|
202
|
+
queryParameters[ManagedIdentityUserAssignedIdQueryParameterNames
|
|
203
|
+
.MANAGED_IDENTITY_RESOURCE_ID_IMDS];
|
|
204
|
+
// Accept either spelling on the echo as a safety net; Azure Arc returns msi_res_id.
|
|
205
|
+
echoedIdentity = responseBody.msi_res_id || responseBody.mi_res_id;
|
|
206
|
+
}
|
|
207
|
+
else {
|
|
208
|
+
// System-assigned (no user-assigned selector forwarded): nothing to confirm.
|
|
209
|
+
return;
|
|
210
|
+
}
|
|
211
|
+
/*
|
|
212
|
+
* Compare case-insensitively: client_id / object_id are GUIDs, and an ARM resource id can
|
|
213
|
+
* legitimately differ in segment casing.
|
|
214
|
+
*/
|
|
215
|
+
if (!echoedIdentity ||
|
|
216
|
+
echoedIdentity.toLowerCase() !== requestedIdentity.toLowerCase()) {
|
|
217
|
+
this.logger.error("[Managed Identity] Azure Arc did not confirm the requested user-assigned identity in the token response. The agent likely does not support user-assigned managed identity and returned the system-assigned identity.", "");
|
|
218
|
+
throw createManagedIdentityError(userAssignedManagedIdentityNotConfirmed, "");
|
|
219
|
+
}
|
|
220
|
+
}
|
|
153
221
|
/**
|
|
154
222
|
* Processes the server response and handles Azure Arc-specific authentication challenges.
|
|
155
223
|
*
|
|
@@ -240,7 +308,16 @@ class AzureArc extends BaseManagedIdentitySource {
|
|
|
240
308
|
}
|
|
241
309
|
}
|
|
242
310
|
}
|
|
243
|
-
|
|
311
|
+
const finalResponse = retryResponse || originalResponse;
|
|
312
|
+
/*
|
|
313
|
+
* Fail closed: when a user-assigned identity was requested and the agent returned a token,
|
|
314
|
+
* ensure the echoed identity matches. A genuine service error (no access_token, e.g. a 404
|
|
315
|
+
* for a non-existent identity) is surfaced normally by the response handler.
|
|
316
|
+
*/
|
|
317
|
+
if (finalResponse.body.access_token) {
|
|
318
|
+
this.validateUserAssignedIdentityWasHonored(networkRequest, finalResponse.body);
|
|
319
|
+
}
|
|
320
|
+
return this.getServerTokenResponse(finalResponse);
|
|
244
321
|
}
|
|
245
322
|
}
|
|
246
323
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AzureArc.mjs","sources":["../../../src/client/ManagedIdentitySources/AzureArc.ts"],"sourcesContent":[null],"names":["fsConstants","ManagedIdentityErrorCodes.
|
|
1
|
+
{"version":3,"file":"AzureArc.mjs","sources":["../../../src/client/ManagedIdentitySources/AzureArc.ts"],"sourcesContent":[null],"names":["fsConstants","ManagedIdentityErrorCodes.userAssignedManagedIdentityNotConfirmed","ManagedIdentityErrorCodes.wwwAuthenticateHeaderMissing","ManagedIdentityErrorCodes.wwwAuthenticateHeaderUnsupportedFormat","ManagedIdentityErrorCodes.platformNotSupported","ManagedIdentityErrorCodes.invalidFileExtension","ManagedIdentityErrorCodes.invalidFilePath","ManagedIdentityErrorCodes.unableToReadSecretFile","ManagedIdentityErrorCodes.invalidSecret"],"mappings":";;;;;;;;;;;AAAA;;;AAGG;AA2CI,MAAM,eAAe,GAAW,aAAa;AAC7C,MAAM,mCAAmC,GAC5C,wDAAwD;AAC5D,MAAM,8BAA8B,GAAG,8BAA8B,CAAC;AAO/D,MAAM,6BAA6B,GAAgB;IACtD,K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AA;AAED,QAAA,OAAO,IAAI,CAAC,sBAAsB,CAAC,aAAa,CAAC,CAAC;IACtD,CAAC;AACJ;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-node v5.
|
|
1
|
+
/*! @azure/msal-node v5.6.0 2026-08-18 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { TimeUtils, Constants, AuthError, createClientAuthError, ClientAuthErrorCodes, ResponseHandler, StubPerformanceClient, UrlString } from '@azure/msal-common/node';
|
|
4
4
|
import { ManagedIdentityQueryParameters, HttpMethod, ApiId, ManagedIdentityIdType } from '../../utils/Constants.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-node v5.
|
|
1
|
+
/*! @azure/msal-node v5.6.0 2026-08-18 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { ManagedIdentityRequestParameters } from '../../config/ManagedIdentityRequestParameters.mjs';
|
|
4
4
|
import { BaseManagedIdentitySource } from './BaseManagedIdentitySource.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-node v5.
|
|
1
|
+
/*! @azure/msal-node v5.6.0 2026-08-18 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { ManagedIdentityRequestParameters } from '../../config/ManagedIdentityRequestParameters.mjs';
|
|
4
4
|
import { BaseManagedIdentitySource } from './BaseManagedIdentitySource.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-node v5.
|
|
1
|
+
/*! @azure/msal-node v5.6.0 2026-08-18 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { BaseManagedIdentitySource, ManagedIdentityUserAssignedIdQueryParameterNames } from './BaseManagedIdentitySource.mjs';
|
|
4
4
|
import { ManagedIdentityEnvironmentVariableNames, ManagedIdentitySourceNames, ManagedIdentityHeaders, ManagedIdentityQueryParameters, ManagedIdentityIdType, HttpMethod } from '../../utils/Constants.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-node v5.
|
|
1
|
+
/*! @azure/msal-node v5.6.0 2026-08-18 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { ManagedIdentityRequestParameters } from '../../config/ManagedIdentityRequestParameters.mjs';
|
|
4
4
|
import { BaseManagedIdentitySource } from './BaseManagedIdentitySource.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! @azure/msal-node v5.
|
|
1
|
+
/*! @azure/msal-node v5.6.0 2026-08-18 */
|
|
2
2
|
'use strict';
|
|
3
|
-
import { ScopeSet, Constants, createClientAuthError, ClientAuthErrorCodes, TimeUtils, AuthToken, ResponseHandler, UrlString, RequestParameterBuilder, AADServerParamKeys, getClientAssertion, UrlUtils } from '@azure/msal-common/node';
|
|
3
|
+
import { ScopeSet, StringUtils, Constants, createClientAuthError, ClientAuthErrorCodes, TimeUtils, AuthToken, ResponseHandler, UrlString, RequestParameterBuilder, AADServerParamKeys, getClientAssertion, UrlUtils } from '@azure/msal-common/node';
|
|
4
4
|
import { ApiId } from '../utils/Constants.mjs';
|
|
5
5
|
import { EncodingUtils } from '../utils/EncodingUtils.mjs';
|
|
6
6
|
import { BaseClient } from './BaseClient.mjs';
|
|
@@ -25,15 +25,29 @@ class OnBehalfOfClient extends BaseClient {
|
|
|
25
25
|
this.scopeSet = new ScopeSet(request.scopes || [], request.correlationId);
|
|
26
26
|
// generate the user_assertion_hash for OBOAssertion
|
|
27
27
|
this.userAssertionHash = await this.cryptoUtils.hashString(request.oboAssertion);
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
/*
|
|
29
|
+
* Client-originated claims participate in the cache key (unlike server-issued `claims`,
|
|
30
|
+
* which bypasses the cache). Identical claims values are served from cache; different
|
|
31
|
+
* values produce separate cache entries. Gate on `!isEmptyObj` (not just `trim()`) so an
|
|
32
|
+
* empty/whitespace or empty-object (`{}`) value - which contributes nothing to the request
|
|
33
|
+
* body - does not fragment the cache from an omitted `claimsFromClient`.
|
|
34
|
+
*/
|
|
35
|
+
let additionalCacheKeyComponents;
|
|
36
|
+
if (request.claimsFromClient &&
|
|
37
|
+
!StringUtils.isEmptyObj(request.claimsFromClient)) {
|
|
38
|
+
additionalCacheKeyComponents = {
|
|
39
|
+
client_claims: request.claimsFromClient,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
if (request.skipCache || !StringUtils.isEmptyObj(request.claims)) {
|
|
43
|
+
return this.executeTokenRequest(request, this.authority, this.userAssertionHash, additionalCacheKeyComponents);
|
|
30
44
|
}
|
|
31
45
|
try {
|
|
32
|
-
return await this.getCachedAuthenticationResult(request);
|
|
46
|
+
return await this.getCachedAuthenticationResult(request, additionalCacheKeyComponents);
|
|
33
47
|
}
|
|
34
48
|
catch (e) {
|
|
35
49
|
// Any failure falls back to interactive request, once we implement distributed cache, we plan to handle `createRefreshRequiredError` to refresh using the RT
|
|
36
|
-
return await this.executeTokenRequest(request, this.authority, this.userAssertionHash);
|
|
50
|
+
return await this.executeTokenRequest(request, this.authority, this.userAssertionHash, additionalCacheKeyComponents);
|
|
37
51
|
}
|
|
38
52
|
}
|
|
39
53
|
/**
|
|
@@ -44,9 +58,9 @@ class OnBehalfOfClient extends BaseClient {
|
|
|
44
58
|
* This is to prevent security issues when the assertion changes over time, however, longlived RT helps retaining the session
|
|
45
59
|
* @param request - developer provided CommonOnBehalfOfRequest
|
|
46
60
|
*/
|
|
47
|
-
async getCachedAuthenticationResult(request) {
|
|
61
|
+
async getCachedAuthenticationResult(request, additionalCacheKeyComponents) {
|
|
48
62
|
// look in the cache for the access_token which matches the incoming_assertion
|
|
49
|
-
const cachedAccessToken = this.readAccessTokenFromCacheForOBO(this.config.authOptions.clientId, request);
|
|
63
|
+
const cachedAccessToken = this.readAccessTokenFromCacheForOBO(this.config.authOptions.clientId, request, additionalCacheKeyComponents);
|
|
50
64
|
if (!cachedAccessToken) {
|
|
51
65
|
// Must refresh due to non-existent access_token.
|
|
52
66
|
this.serverTelemetryManager?.setCacheOutcome(Constants.CacheOutcome.NO_CACHED_ACCESS_TOKEN);
|
|
@@ -85,7 +99,10 @@ class OnBehalfOfClient extends BaseClient {
|
|
|
85
99
|
idToken: cachedIdToken,
|
|
86
100
|
refreshToken: null,
|
|
87
101
|
appMetadata: null,
|
|
88
|
-
}, true, request, this.performanceClient,
|
|
102
|
+
}, true, request, this.performanceClient, {
|
|
103
|
+
idTokenClaims,
|
|
104
|
+
tokenBindingKeyManager: this.config.tokenBindingKeyManager,
|
|
105
|
+
});
|
|
89
106
|
}
|
|
90
107
|
/**
|
|
91
108
|
* read idtoken from cache, this is a specific implementation for OBO as the requirements differ from a generic lookup in the cacheManager
|
|
@@ -112,7 +129,7 @@ class OnBehalfOfClient extends BaseClient {
|
|
|
112
129
|
* @param clientId - client id
|
|
113
130
|
* @param request - developer provided CommonOnBehalfOfRequest
|
|
114
131
|
*/
|
|
115
|
-
readAccessTokenFromCacheForOBO(clientId, request) {
|
|
132
|
+
readAccessTokenFromCacheForOBO(clientId, request, additionalCacheKeyComponents) {
|
|
116
133
|
const authScheme = request.authenticationScheme ||
|
|
117
134
|
Constants.AuthenticationScheme.BEARER;
|
|
118
135
|
/*
|
|
@@ -131,6 +148,7 @@ class OnBehalfOfClient extends BaseClient {
|
|
|
131
148
|
tokenType: authScheme,
|
|
132
149
|
keyId: request.sshKid,
|
|
133
150
|
userAssertionHash: this.userAssertionHash,
|
|
151
|
+
additionalCacheKeyComponents: additionalCacheKeyComponents,
|
|
134
152
|
};
|
|
135
153
|
const accessTokens = this.cacheManager.getAccessTokensByFilter(accessTokenFilter, request.correlationId);
|
|
136
154
|
const numAccessTokens = accessTokens.length;
|
|
@@ -147,7 +165,7 @@ class OnBehalfOfClient extends BaseClient {
|
|
|
147
165
|
* @param request - developer provided CommonOnBehalfOfRequest
|
|
148
166
|
* @param authority - authority object
|
|
149
167
|
*/
|
|
150
|
-
async executeTokenRequest(request, authority, userAssertionHash) {
|
|
168
|
+
async executeTokenRequest(request, authority, userAssertionHash, additionalCacheKeyComponents) {
|
|
151
169
|
const queryParametersString = this.createTokenQueryParameters(request);
|
|
152
170
|
const endpoint = UrlString.appendQueryString(authority.tokenEndpoint, queryParametersString);
|
|
153
171
|
const requestBody = await this.createTokenRequestBody(request);
|
|
@@ -165,9 +183,14 @@ class OnBehalfOfClient extends BaseClient {
|
|
|
165
183
|
};
|
|
166
184
|
const reqTimestamp = TimeUtils.nowSeconds();
|
|
167
185
|
const response = await this.executePostToTokenEndpoint(endpoint, requestBody, headers, thumbprint, request.correlationId);
|
|
168
|
-
const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.performanceClient, this.config.serializableCache, this.config.persistencePlugin);
|
|
186
|
+
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);
|
|
169
187
|
responseHandler.validateTokenResponse(response.body, request.correlationId);
|
|
170
|
-
const tokenResponse = await responseHandler.handleServerTokenResponse(response.body, this.authority, reqTimestamp, request, ApiId.acquireTokenByOBO, undefined,
|
|
188
|
+
const tokenResponse = await responseHandler.handleServerTokenResponse(response.body, this.authority, reqTimestamp, request, ApiId.acquireTokenByOBO, undefined, // authCodePayload
|
|
189
|
+
userAssertionHash, // userAssertionHash
|
|
190
|
+
undefined, // handlingRefreshTokenResponse
|
|
191
|
+
undefined, // forceCacheRefreshTokenResponse
|
|
192
|
+
undefined, // serverRequestId
|
|
193
|
+
additionalCacheKeyComponents);
|
|
171
194
|
return tokenResponse;
|
|
172
195
|
}
|
|
173
196
|
/**
|
|
@@ -199,10 +222,16 @@ class OnBehalfOfClient extends BaseClient {
|
|
|
199
222
|
RequestParameterBuilder.addClientAssertion(parameters, await getClientAssertion(clientAssertion.assertion, this.config.authOptions.clientId, request.resourceRequestUri));
|
|
200
223
|
RequestParameterBuilder.addClientAssertionType(parameters, clientAssertion.assertionType);
|
|
201
224
|
}
|
|
202
|
-
|
|
225
|
+
/*
|
|
226
|
+
* Deep-merge the server-issued `claims` challenge with client-originated `claimsFromClient`
|
|
227
|
+
* (via addClaims -> buildMergedClaims) so both are sent on the wire. Client capabilities
|
|
228
|
+
* are appended by buildMergedClaims.
|
|
229
|
+
*/
|
|
230
|
+
if (!StringUtils.isEmptyObj(request.claims) ||
|
|
231
|
+
!StringUtils.isEmptyObj(request.claimsFromClient) ||
|
|
203
232
|
(this.config.authOptions.clientCapabilities &&
|
|
204
233
|
this.config.authOptions.clientCapabilities.length > 0)) {
|
|
205
|
-
RequestParameterBuilder.addClaims(parameters, request.correlationId, request.claims, this.config.authOptions.clientCapabilities);
|
|
234
|
+
RequestParameterBuilder.addClaims(parameters, request.correlationId, request.claims, this.config.authOptions.clientCapabilities, undefined, request.claimsFromClient);
|
|
206
235
|
}
|
|
207
236
|
return UrlUtils.mapToQueryString(parameters);
|
|
208
237
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OnBehalfOfClient.mjs","sources":["../../src/client/OnBehalfOfClient.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAAA;;;AAGG;
|
|
1
|
+
{"version":3,"file":"OnBehalfOfClient.mjs","sources":["../../src/client/OnBehalfOfClient.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAAA;;;AAGG;AAiCH;;;AAGG;AACG,MAAO,gBAAiB,SAAQ,UAAU,CAAA;AAI5C,IAAA,WAAA,CAAY,aAAkC,EAAA;QAC1C,KAAK,CAAC,aAAa,CAAC,CAAC;IACzB,CAAC;AAED;;;AAGG;IACI,MAAM,YAAY,CACrB,OAAgC,EAAA;AAEhC,QAAA,IAAI,CAAC,QAAQ,GAAG,IAAI,QAAQ,CACxB,OAAO,CAAC,MAAM,IAAI,EAAE,EACpB,OAAO,CAAC,aAAa,CACxB,CAAC;;AAGF,QAAA,IAAI,CAAC,iBAAiB,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,UAAU,CAC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UAAU,CAAC,OAAO,CAAC,MAAM,CAAC;AACvC,YAAA,CAAC,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,gBAAgB,CAAC;AACjD,aAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,kBAAkB;gBACvC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,kBAAkB,CAAC,MAAM,GAAG,CAAC,CAAC,EAC5D;YACE,uBAAuB,CAAC,SAAS,CAC7B,UAAU,EACV,OAAO,CAAC,aAAa,EACrB,OAAO,CAAC,MAAM,EACd,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,kBAAkB,EAC1C,SAAS,EACT,OAAO,CAAC,gBAAgB,CAC3B,CAAC;AACL,QAAA,CAAA;AAED,QAAA,OAAO,QAAQ,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;IACjD,CAAC;AACJ;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-node v5.
|
|
1
|
+
/*! @azure/msal-node v5.6.0 2026-08-18 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { Constants, ApiId, LOOPBACK_SERVER_CONSTANTS } from '../utils/Constants.mjs';
|
|
4
4
|
import { ServerTelemetryManager, enforceResourceParameter, AuthError, Constants as Constants$1, createClientConfigurationError, ClientConfigurationErrorCodes, ServerError, AADServerParamKeys } from '@azure/msal-common/node';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! @azure/msal-node v5.
|
|
1
|
+
/*! @azure/msal-node v5.6.0 2026-08-18 */
|
|
2
2
|
'use strict';
|
|
3
|
-
import { ScopeSet, Constants, UrlString, TimeUtils, ResponseHandler, RequestParameterBuilder, AADServerParamKeys, getClientAssertion, UrlUtils } from '@azure/msal-common/node';
|
|
3
|
+
import { ScopeSet, Constants, UrlString, TimeUtils, ResponseHandler, RequestParameterBuilder, AADServerParamKeys, getClientAssertion, StringUtils, UrlUtils } from '@azure/msal-common/node';
|
|
4
4
|
import { ApiId } from '../utils/Constants.mjs';
|
|
5
5
|
import { BaseClient } from './BaseClient.mjs';
|
|
6
6
|
|
|
@@ -50,7 +50,7 @@ class UserFederatedIdentityCredentialClient extends BaseClient {
|
|
|
50
50
|
};
|
|
51
51
|
const reqTimestamp = TimeUtils.nowSeconds();
|
|
52
52
|
const response = await this.executePostToTokenEndpoint(endpoint, requestBody, headers, thumbprint, request.correlationId);
|
|
53
|
-
const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.performanceClient, this.config.serializableCache, this.config.persistencePlugin);
|
|
53
|
+
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);
|
|
54
54
|
responseHandler.validateTokenResponse(response.body, request.correlationId);
|
|
55
55
|
const tokenResponse = await responseHandler.handleServerTokenResponse(response.body, this.authority, reqTimestamp, request, ApiId.acquireTokenByUserFederatedIdentityCredential);
|
|
56
56
|
return tokenResponse;
|
|
@@ -94,10 +94,16 @@ class UserFederatedIdentityCredentialClient extends BaseClient {
|
|
|
94
94
|
RequestParameterBuilder.addClientAssertion(parameters, await getClientAssertion(clientAssertion.assertion, this.config.authOptions.clientId, this.authority.tokenEndpoint));
|
|
95
95
|
RequestParameterBuilder.addClientAssertionType(parameters, clientAssertion.assertionType);
|
|
96
96
|
}
|
|
97
|
-
|
|
97
|
+
/*
|
|
98
|
+
* Deep-merge the server-issued `claims` challenge with client-originated `claimsFromClient`
|
|
99
|
+
* (via addClaims -> buildMergedClaims) so both are sent on the wire. Client capabilities
|
|
100
|
+
* are appended by buildMergedClaims.
|
|
101
|
+
*/
|
|
102
|
+
if (!StringUtils.isEmptyObj(request.claims) ||
|
|
103
|
+
!StringUtils.isEmptyObj(request.claimsFromClient) ||
|
|
98
104
|
(this.config.authOptions.clientCapabilities &&
|
|
99
105
|
this.config.authOptions.clientCapabilities.length > 0)) {
|
|
100
|
-
RequestParameterBuilder.addClaims(parameters, request.correlationId, request.claims, this.config.authOptions.clientCapabilities);
|
|
106
|
+
RequestParameterBuilder.addClaims(parameters, request.correlationId, request.claims, this.config.authOptions.clientCapabilities, undefined, request.claimsFromClient);
|
|
101
107
|
}
|
|
102
108
|
return UrlUtils.mapToQueryString(parameters);
|
|
103
109
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserFederatedIdentityCredentialClient.mjs","sources":["../../src/client/UserFederatedIdentityCredentialClient.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAAA;;;AAGG;
|
|
1
|
+
{"version":3,"file":"UserFederatedIdentityCredentialClient.mjs","sources":["../../src/client/UserFederatedIdentityCredentialClient.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAAA;;;AAGG;AAuBH;;;;AAIG;AACG,MAAO,qCAAsC,SAAQ,UAAU,CAAA;AACjE,IAAA,WAAA,CAAY,aAAkC,EAAA;QAC1C,KAAK,CAAC,aAAa,CAAC,CAAC;IACzB,CAAC;AAED;;;;AAIG;IACI,MAAM,YAAY,CACrB,OAAqD,EAAA;QAErD,OAAO,IAAI,CAAC,mBAAmB,CAAC,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;IAC7D,CAAC;AAED;;AAEG;AACK,IAAA,MAAM,mBAAmB,CAC7B,OAAqD,EACrD,SAAoB,EAAA;;AAGpB,QAAA,MAAM,QAAQ,GAAG,IAAI,QAAQ,CACzB,OAAO,CAAC,MAAM,IAAI,EAAE,EACpB,OAAO,CAAC,aAAa,CACxB,CAAC;AACF,QAAA,QAAQ,CAAC,YAAY,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC;AACrD,QAAA,MAAM,eAAe,GAAG,QAAQ,CAAC,OAAO,EAAE,CAAC;QAE3C,MAAM,qBAAqB,GAAG,IAAI,CAAC,0BAA0B,CAAC,OAAO,CAAC,CAAC;AACvE,QAAA,MAAM,QAAQ,GAAG,SAAS,CAAC,iB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,CAAC,MAAM,GAAG,CAAC,CAAC,EAC5D;YACE,uBAAuB,CAAC,SAAS,CAC7B,UAAU,EACV,OAAO,CAAC,aAAa,EACrB,OAAO,CAAC,MAAM,EACd,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,kBAAkB,EAC1C,SAAS,EACT,OAAO,CAAC,gBAAgB,CAC3B,CAAC;AACL,QAAA,CAAA;AAED,QAAA,OAAO,QAAQ,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;IACjD,CAAC;AACJ;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-node v5.
|
|
1
|
+
/*! @azure/msal-node v5.6.0 2026-08-18 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { TimeUtils, ResponseHandler, UrlString, CcsCredentialType, RequestParameterBuilder, Constants, getClientAssertion, StringUtils, UrlUtils } from '@azure/msal-common/node';
|
|
4
4
|
import { ApiId } from '../utils/Constants.mjs';
|
|
@@ -27,7 +27,7 @@ class UsernamePasswordClient extends BaseClient {
|
|
|
27
27
|
this.logger.info("in acquireToken call in username-password client", request.correlationId);
|
|
28
28
|
const reqTimestamp = TimeUtils.nowSeconds();
|
|
29
29
|
const response = await this.executeTokenRequest(this.authority, request);
|
|
30
|
-
const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.performanceClient, this.config.serializableCache, this.config.persistencePlugin);
|
|
30
|
+
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);
|
|
31
31
|
// Validate response. This function throws a server error if an error is returned by the server.
|
|
32
32
|
responseHandler.validateTokenResponse(response.body, request.correlationId);
|
|
33
33
|
const tokenResponse = responseHandler.handleServerTokenResponse(response.body, this.authority, reqTimestamp, request, ApiId.acquireTokenByUsernamePassword);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UsernamePasswordClient.mjs","sources":["../../src/client/UsernamePasswordClient.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAAA;;;AAGG;AAwBH;;;;;AAKG;AACG,MAAO,sBAAuB,SAAQ,UAAU,CAAA;AAClD,IAAA,WAAA,CAAY,aAAkC,EAAA;QAC1C,KAAK,CAAC,aAAa,CAAC,CAAC;IACzB,CAAC;AAED;;;;AAIG;IACH,MAAM,YAAY,CACd,OAAsC,EAAA;QAEtC,IAAI,CAAC,MAAM,CAAC,IAAI,CACZ,kDAAkD,EAClD,OAAO,CAAC,aAAa,CACxB,CAAC;AAEF,QAAA,MAAM,YAAY,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;AAC5C,QAAA,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAC3C,IAAI,CAAC,SAAS,EACd,OAAO,CACV,CAAC;
|
|
1
|
+
{"version":3,"file":"UsernamePasswordClient.mjs","sources":["../../src/client/UsernamePasswordClient.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAAA;;;AAGG;AAwBH;;;;;AAKG;AACG,MAAO,sBAAuB,SAAQ,UAAU,CAAA;AAClD,IAAA,WAAA,CAAY,aAAkC,EAAA;QAC1C,KAAK,CAAC,aAAa,CAAC,CAAC;IACzB,CAAC;AAED;;;;AAIG;IACH,MAAM,YAAY,CACd,OAAsC,EAAA;QAEtC,IAAI,CAAC,MAAM,CAAC,IAAI,CACZ,kDAAkD,EAClD,OAAO,CAAC,aAAa,CACxB,CAAC;AAEF,QAAA,MAAM,YAAY,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;AAC5C,QAAA,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAC3C,IAAI,CAAC,SAAS,EACd,OAAO,CACV,CAAC;QAEF,MAAM,eAAe,GAAG,IAAI,eAAe,CACvC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,QAAQ,EAChC,IAAI,CAAC,YAAY,EACjB,I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C7C,CAAC;AACL,QAAA,CAAA;AAED,QAAA,IACI,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,oBAAoB;YAC9C,OAAO,CAAC,QAAQ,EAClB;YACE,uBAAuB,CAAC,SAAS,CAAC,UAAU,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;AACnE,QAAA,CAAA;AAED,QAAA,OAAO,QAAQ,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;IACjD,CAAC;AACJ;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-node v5.
|
|
1
|
+
/*! @azure/msal-node v5.6.0 2026-08-18 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { createManagedIdentityError } from '../error/ManagedIdentityError.mjs';
|
|
4
4
|
import { ManagedIdentityIdType, DEFAULT_MANAGED_IDENTITY_ID } from '../utils/Constants.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-node v5.
|
|
1
|
+
/*! @azure/msal-node v5.6.0 2026-08-18 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { RequestParameterBuilder, UrlUtils, UrlString } from '@azure/msal-common/node';
|
|
4
4
|
import { DefaultManagedIdentityRetryPolicy } from '../retry/DefaultManagedIdentityRetryPolicy.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! @azure/msal-node v5.
|
|
1
|
+
/*! @azure/msal-node v5.6.0 2026-08-18 */
|
|
2
2
|
'use strict';
|
|
3
|
-
import { Constants } from '@azure/msal-common/node';
|
|
3
|
+
import { createClientAuthError, ClientAuthErrorCodes, Constants } from '@azure/msal-common/node';
|
|
4
4
|
import { GuidGenerator } from './GuidGenerator.mjs';
|
|
5
5
|
import { EncodingUtils } from '../utils/EncodingUtils.mjs';
|
|
6
6
|
import { PkceGenerator } from './PkceGenerator.mjs';
|
|
@@ -63,30 +63,30 @@ class CryptoProvider {
|
|
|
63
63
|
generatePkceCodes() {
|
|
64
64
|
return this.pkceGenerator.generatePkceCodes();
|
|
65
65
|
}
|
|
66
|
-
/**
|
|
67
|
-
* Generates a keypair, stores it and returns a thumbprint - not yet implemented for node
|
|
68
|
-
*/
|
|
69
|
-
getPublicKeyThumbprint() {
|
|
70
|
-
throw new Error("Method not implemented.");
|
|
71
|
-
}
|
|
72
66
|
/**
|
|
73
67
|
* Removes cryptographic keypair from key store matching the keyId passed in
|
|
74
68
|
* @param kid - public key id
|
|
69
|
+
* @param correlationId - correlation id
|
|
75
70
|
*/
|
|
76
|
-
removeTokenBindingKey() {
|
|
71
|
+
removeTokenBindingKey(kid, correlationId) {
|
|
77
72
|
throw new Error("Method not implemented.");
|
|
78
73
|
}
|
|
79
74
|
/**
|
|
80
75
|
* Removes all cryptographic keys from Keystore
|
|
76
|
+
* @param correlationId - correlation id
|
|
81
77
|
*/
|
|
82
|
-
clearKeystore() {
|
|
78
|
+
clearKeystore(correlationId) {
|
|
83
79
|
throw new Error("Method not implemented.");
|
|
84
80
|
}
|
|
85
81
|
/**
|
|
86
|
-
* Signs
|
|
82
|
+
* Signs a compact JWT with a token-binding key - not yet implemented for node
|
|
83
|
+
* @param header - JOSE header
|
|
84
|
+
* @param payload - JWT payload
|
|
85
|
+
* @param kid - public key id
|
|
86
|
+
* @param correlationId - correlation id
|
|
87
87
|
*/
|
|
88
|
-
|
|
89
|
-
throw
|
|
88
|
+
signTokenBindingJwt(header, payload, kid, correlationId) {
|
|
89
|
+
throw createClientAuthError(ClientAuthErrorCodes.methodNotImplemented, correlationId);
|
|
90
90
|
}
|
|
91
91
|
/**
|
|
92
92
|
* Returns the SHA-256 hash of an input string
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CryptoProvider.mjs","sources":["../../src/crypto/CryptoProvider.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;AAAA;;;AAGG;
|
|
1
|
+
{"version":3,"file":"CryptoProvider.mjs","sources":["../../src/crypto/CryptoProvider.ts"],"sourcesContent":[null],"names":[],"mappings":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