@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
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
RequestThumbprint,
|
|
14
14
|
ResponseHandler,
|
|
15
15
|
ScopeSet,
|
|
16
|
+
StringUtils,
|
|
16
17
|
TimeUtils,
|
|
17
18
|
UrlString,
|
|
18
19
|
ClientAssertion,
|
|
@@ -98,7 +99,8 @@ export class UserFederatedIdentityCredentialClient extends BaseClient {
|
|
|
98
99
|
this.logger,
|
|
99
100
|
this.performanceClient,
|
|
100
101
|
this.config.serializableCache,
|
|
101
|
-
this.config.persistencePlugin
|
|
102
|
+
this.config.persistencePlugin,
|
|
103
|
+
this.config.tokenBindingKeyManager
|
|
102
104
|
);
|
|
103
105
|
|
|
104
106
|
responseHandler.validateTokenResponse(
|
|
@@ -208,8 +210,14 @@ export class UserFederatedIdentityCredentialClient extends BaseClient {
|
|
|
208
210
|
);
|
|
209
211
|
}
|
|
210
212
|
|
|
213
|
+
/*
|
|
214
|
+
* Deep-merge the server-issued `claims` challenge with client-originated `claimsFromClient`
|
|
215
|
+
* (via addClaims -> buildMergedClaims) so both are sent on the wire. Client capabilities
|
|
216
|
+
* are appended by buildMergedClaims.
|
|
217
|
+
*/
|
|
211
218
|
if (
|
|
212
|
-
request.claims ||
|
|
219
|
+
!StringUtils.isEmptyObj(request.claims) ||
|
|
220
|
+
!StringUtils.isEmptyObj(request.claimsFromClient) ||
|
|
213
221
|
(this.config.authOptions.clientCapabilities &&
|
|
214
222
|
this.config.authOptions.clientCapabilities.length > 0)
|
|
215
223
|
) {
|
|
@@ -217,7 +225,9 @@ export class UserFederatedIdentityCredentialClient extends BaseClient {
|
|
|
217
225
|
parameters,
|
|
218
226
|
request.correlationId,
|
|
219
227
|
request.claims,
|
|
220
|
-
this.config.authOptions.clientCapabilities
|
|
228
|
+
this.config.authOptions.clientCapabilities,
|
|
229
|
+
undefined,
|
|
230
|
+
request.claimsFromClient
|
|
221
231
|
);
|
|
222
232
|
}
|
|
223
233
|
|
|
@@ -62,7 +62,8 @@ export class UsernamePasswordClient extends BaseClient {
|
|
|
62
62
|
this.logger,
|
|
63
63
|
this.performanceClient,
|
|
64
64
|
this.config.serializableCache,
|
|
65
|
-
this.config.persistencePlugin
|
|
65
|
+
this.config.persistencePlugin,
|
|
66
|
+
this.config.tokenBindingKeyManager
|
|
66
67
|
);
|
|
67
68
|
|
|
68
69
|
// Validate response. This function throws a server error if an error is returned by the server.
|
|
@@ -3,7 +3,12 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
ClientAuthErrorCodes,
|
|
8
|
+
Constants,
|
|
9
|
+
createClientAuthError,
|
|
10
|
+
} from "@azure/msal-common/node";
|
|
11
|
+
import type { ICrypto, PkceCodes } from "@azure/msal-common/node";
|
|
7
12
|
import { GuidGenerator } from "./GuidGenerator.js";
|
|
8
13
|
import { EncodingUtils } from "../utils/EncodingUtils.js";
|
|
9
14
|
import { PkceGenerator } from "./PkceGenerator.js";
|
|
@@ -72,33 +77,46 @@ export class CryptoProvider implements ICrypto {
|
|
|
72
77
|
return this.pkceGenerator.generatePkceCodes();
|
|
73
78
|
}
|
|
74
79
|
|
|
75
|
-
/**
|
|
76
|
-
* Generates a keypair, stores it and returns a thumbprint - not yet implemented for node
|
|
77
|
-
*/
|
|
78
|
-
getPublicKeyThumbprint(): Promise<string> {
|
|
79
|
-
throw new Error("Method not implemented.");
|
|
80
|
-
}
|
|
81
|
-
|
|
82
80
|
/**
|
|
83
81
|
* Removes cryptographic keypair from key store matching the keyId passed in
|
|
84
82
|
* @param kid - public key id
|
|
83
|
+
* @param correlationId - correlation id
|
|
85
84
|
*/
|
|
86
|
-
removeTokenBindingKey(): Promise<void> {
|
|
85
|
+
removeTokenBindingKey(kid: string, correlationId: string): Promise<void> {
|
|
86
|
+
void kid;
|
|
87
|
+
void correlationId;
|
|
87
88
|
throw new Error("Method not implemented.");
|
|
88
89
|
}
|
|
89
90
|
|
|
90
91
|
/**
|
|
91
92
|
* Removes all cryptographic keys from Keystore
|
|
93
|
+
* @param correlationId - correlation id
|
|
92
94
|
*/
|
|
93
|
-
clearKeystore(): Promise<boolean> {
|
|
95
|
+
clearKeystore(correlationId: string): Promise<boolean> {
|
|
96
|
+
void correlationId;
|
|
94
97
|
throw new Error("Method not implemented.");
|
|
95
98
|
}
|
|
96
99
|
|
|
97
100
|
/**
|
|
98
|
-
* Signs
|
|
101
|
+
* Signs a compact JWT with a token-binding key - not yet implemented for node
|
|
102
|
+
* @param header - JOSE header
|
|
103
|
+
* @param payload - JWT payload
|
|
104
|
+
* @param kid - public key id
|
|
105
|
+
* @param correlationId - correlation id
|
|
99
106
|
*/
|
|
100
|
-
|
|
101
|
-
|
|
107
|
+
signTokenBindingJwt(
|
|
108
|
+
header: object,
|
|
109
|
+
payload: object,
|
|
110
|
+
kid: string,
|
|
111
|
+
correlationId: string
|
|
112
|
+
): Promise<string> {
|
|
113
|
+
void header;
|
|
114
|
+
void payload;
|
|
115
|
+
void kid;
|
|
116
|
+
throw createClientAuthError(
|
|
117
|
+
ClientAuthErrorCodes.methodNotImplemented,
|
|
118
|
+
correlationId
|
|
119
|
+
);
|
|
102
120
|
}
|
|
103
121
|
|
|
104
122
|
/**
|
|
@@ -44,10 +44,12 @@ export const ManagedIdentityErrorMessages = {
|
|
|
44
44
|
"Unable to read the secret file.",
|
|
45
45
|
[ManagedIdentityErrorCodes.userAssignedNotAvailableAtRuntime]:
|
|
46
46
|
"Service Fabric user assigned managed identity ClientId or ResourceId is not configurable at runtime.",
|
|
47
|
+
[ManagedIdentityErrorCodes.userAssignedManagedIdentityNotConfirmed]:
|
|
48
|
+
"Azure Arc did not confirm the requested user-assigned managed identity in the token response. The agent likely does not support user-assigned managed identity and returned the system-assigned identity.",
|
|
47
49
|
[ManagedIdentityErrorCodes.wwwAuthenticateHeaderMissing]:
|
|
48
|
-
"A 401 response was received
|
|
50
|
+
"A 401 response was received from the Azure Arc Managed Identity, but the www-authenticate header is missing.",
|
|
49
51
|
[ManagedIdentityErrorCodes.wwwAuthenticateHeaderUnsupportedFormat]:
|
|
50
|
-
"A 401 response was received
|
|
52
|
+
"A 401 response was received from the Azure Arc Managed Identity, but the www-authenticate header is in an unsupported format.",
|
|
51
53
|
};
|
|
52
54
|
|
|
53
55
|
export class ManagedIdentityError extends AuthError {
|
|
@@ -19,6 +19,8 @@ export const unableToReadSecretFile = "unable_to_read_secret_file";
|
|
|
19
19
|
export const urlParseError = "url_parse_error";
|
|
20
20
|
export const userAssignedNotAvailableAtRuntime =
|
|
21
21
|
"user_assigned_not_available_at_runtime";
|
|
22
|
+
export const userAssignedManagedIdentityNotConfirmed =
|
|
23
|
+
"user_assigned_managed_identity_not_confirmed";
|
|
22
24
|
export const wwwAuthenticateHeaderMissing = "www_authenticate_header_missing";
|
|
23
25
|
export const wwwAuthenticateHeaderUnsupportedFormat =
|
|
24
26
|
"www_authenticate_header_unsupported_format";
|
package/src/packageMetadata.ts
CHANGED
|
@@ -33,6 +33,10 @@ export type AuthorizationCodeRequest = Partial<
|
|
|
33
33
|
* The authorization_code that the user acquired in the first leg of the flow.
|
|
34
34
|
*/
|
|
35
35
|
code: string;
|
|
36
|
+
/**
|
|
37
|
+
* The nonce sent in the original authorization request. When provided, the ID Token nonce claim must be present and match this value.
|
|
38
|
+
*/
|
|
39
|
+
nonce?: string;
|
|
36
40
|
/**
|
|
37
41
|
* Unique GUID generated by the user that is cached by the user and sent to the server during the first leg of the flow. This string is sent back by the server with the authorization code. The user cached state is then compared with the state received from the server to mitigate the risk of CSRF attacks. See https://datatracker.ietf.org/doc/html/rfc6819#section-3.6.
|
|
38
42
|
*/
|
|
@@ -32,4 +32,11 @@ export type CommonClientCredentialRequest = Omit<
|
|
|
32
32
|
* FMI path to scope the client credentials token to a specific agent identity. Sent as `fmi_path` in the POST body.
|
|
33
33
|
*/
|
|
34
34
|
fmiPath?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Client-originated claims to forward to the token endpoint, sent as the `claims` parameter on the wire.
|
|
37
|
+
* Unlike `claims` (a server-issued challenge, which bypasses the token cache), client claims are cached and
|
|
38
|
+
* the cache entry is keyed on the claims value. Must use stable, non-dynamic values to avoid unbounded cache growth.
|
|
39
|
+
* See the MSAL Node token caching guide (`docs/caching.md`) for cache serialization and eviction strategies.
|
|
40
|
+
*/
|
|
41
|
+
claimsFromClient?: string;
|
|
35
42
|
};
|
|
@@ -20,4 +20,11 @@ export type CommonOnBehalfOfRequest = Omit<
|
|
|
20
20
|
* Skip token cache lookup and force request to authority to get a a new token. Defaults to false.
|
|
21
21
|
*/
|
|
22
22
|
skipCache?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Client-originated claims to forward to the token endpoint, sent as the `claims` parameter on the wire.
|
|
25
|
+
* Unlike `claims` (a server-issued challenge, which bypasses the token cache), client claims are cached and
|
|
26
|
+
* the cache entry is keyed on the claims value. Must use stable, non-dynamic values to avoid unbounded cache growth.
|
|
27
|
+
* See the MSAL Node token caching guide (`docs/caching.md`) for cache serialization and eviction strategies.
|
|
28
|
+
*/
|
|
29
|
+
claimsFromClient?: string;
|
|
23
30
|
};
|
|
@@ -22,4 +22,11 @@ export type CommonUserFederatedIdentityCredentialRequest = Omit<
|
|
|
22
22
|
userObjectId?: string;
|
|
23
23
|
/** Target user's UPN — exactly one of userObjectId or username must be provided */
|
|
24
24
|
username?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Client-originated claims to forward to the token endpoint, sent as the `claims` parameter on the wire.
|
|
27
|
+
* Unlike `claims` (a server-issued challenge), these are client-originated. The user_fic grant always calls
|
|
28
|
+
* the network, so `claimsFromClient` is forwarded on every request and does not participate in this flow's cache
|
|
29
|
+
* key (tokens are still written to the cache, but not partitioned by `claimsFromClient`).
|
|
30
|
+
*/
|
|
31
|
+
claimsFromClient?: string;
|
|
25
32
|
};
|
|
@@ -23,6 +23,9 @@ export type ManagedIdentityTokenResponse = {
|
|
|
23
23
|
// success
|
|
24
24
|
access_token?: string;
|
|
25
25
|
client_id?: string;
|
|
26
|
+
object_id?: string; // echoed by Azure Arc when a user-assigned object id is honored
|
|
27
|
+
mi_res_id?: string; // resource-id echo (non-IMDS spelling), accepted as a safety net
|
|
28
|
+
msi_res_id?: string; // resource-id echo (IMDS spelling) that Azure Arc returns
|
|
26
29
|
expires_on?: number; // will be converted to expires_in
|
|
27
30
|
resource?: string; // equivalent to ServerAuthorizationTokenResponse's "scope" field
|
|
28
31
|
token_type?: Constants.AuthenticationScheme;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { AccountInfo, CredentialEntity } from "@azure/msal-common/node";
|
|
2
|
-
export declare function generateCredentialKey(credential: CredentialEntity): string;
|
|
2
|
+
export declare function generateCredentialKey(credential: CredentialEntity, hash?: string): string;
|
|
3
3
|
export declare function generateAccountKey(account: AccountInfo): string;
|
|
4
4
|
//# sourceMappingURL=CacheHelpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CacheHelpers.d.ts","sourceRoot":"","sources":["../../src/cache/CacheHelpers.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,WAAW,EAEX,gBAAgB,EACnB,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"CacheHelpers.d.ts","sourceRoot":"","sources":["../../src/cache/CacheHelpers.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,WAAW,EAEX,gBAAgB,EACnB,MAAM,yBAAyB,CAAC;AAqCjC,wBAAgB,qBAAqB,CACjC,UAAU,EAAE,gBAAgB,EAC5B,IAAI,CAAC,EAAE,MAAM,GACd,MAAM,CAuCR;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,CAS/D"}
|
|
@@ -57,7 +57,7 @@ export declare class NodeStorage extends CacheManager {
|
|
|
57
57
|
* @param value - value of the cache entry
|
|
58
58
|
*/
|
|
59
59
|
setItem(key: string, value: ValidCacheType): void;
|
|
60
|
-
generateCredentialKey(credential: CredentialEntity): string;
|
|
60
|
+
generateCredentialKey(credential: CredentialEntity, additionalCacheKeyHash?: string): string;
|
|
61
61
|
generateAccountKey(account: AccountInfo): string;
|
|
62
62
|
getAccountKeys(): string[];
|
|
63
63
|
getTokenKeys(): TokenKeys;
|
|
@@ -88,10 +88,13 @@ export declare class NodeStorage extends CacheManager {
|
|
|
88
88
|
*/
|
|
89
89
|
getAccessTokenCredential(accessTokenKey: string): AccessTokenEntity | null;
|
|
90
90
|
/**
|
|
91
|
-
*
|
|
92
|
-
* @param accessToken -
|
|
91
|
+
* Set accessToken credential to the cache
|
|
92
|
+
* @param accessToken - the access token entity to cache
|
|
93
|
+
* @param _correlationId - unique identifier for the request
|
|
94
|
+
* @param _kmsi - keep me signed in flag
|
|
95
|
+
* @param additionalCacheKeyHash - optional precomputed hash of additionalCacheKeyComponents used in key generation
|
|
93
96
|
*/
|
|
94
|
-
setAccessTokenCredential(accessToken: AccessTokenEntity): Promise<void>;
|
|
97
|
+
setAccessTokenCredential(accessToken: AccessTokenEntity, _correlationId: string, _kmsi: boolean, additionalCacheKeyHash?: string): Promise<void>;
|
|
95
98
|
/**
|
|
96
99
|
* fetch the refreshToken credential
|
|
97
100
|
* @param refreshTokenKey - lookup key to fetch cache type RefreshTokenEntity
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NodeStorage.d.ts","sourceRoot":"","sources":["../../src/cache/NodeStorage.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,SAAS,EACT,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB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ACvB,sBAAsB;IAWzB;;;;OAIG;cACa,eAAe,CAC3B,eAAe,EAAE,MAAM,EACvB,oBAAoB,EAAE,MAAM,EAC5B,wBAAwB,CAAC,EAAE,wBAAwB,EACnD,iBAAiB,CAAC,EAAE,iBAAiB,GACtC,OAAO,CAAC,SAAS,CAAC;IA4BrB;;OAEG;IACH,UAAU,IAAI,IAAI;CAGrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientCredentialClient.d.ts","sourceRoot":"","sources":["../../src/client/ClientCredentialClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAGH,oBAAoB,EACpB,SAAS,EACT,YAAY,EAEZ,mBAAmB,EACnB,SAAS,EAET,iBAAiB,EACjB,OAAO,EAMP,sBAAsB,EASzB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACH,4BAA4B,EAE/B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C;;;GAGG;AACH,qBAAa,sBAAuB,SAAQ,UAAU;IAClD,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAoB;gBAGlD,aAAa,EAAE,mBAAmB,EAClC,gBAAgB,CAAC,EAAE,iBAAiB;IAMxC;;;OAGG;IACU,YAAY,CACrB,OAAO,EAAE,6BAA6B,GACvC,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"ClientCredentialClient.d.ts","sourceRoot":"","sources":["../../src/client/ClientCredentialClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAGH,oBAAoB,EACpB,SAAS,EACT,YAAY,EAEZ,mBAAmB,EACnB,SAAS,EAET,iBAAiB,EACjB,OAAO,EAMP,sBAAsB,EASzB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACH,4BAA4B,EAE/B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EA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EAAE,uBAAuB,GACjC,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"DeviceCodeClient.d.ts","sourceRoot":"","sources":["../../src/client/DeviceCodeClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,oBAAoB,EACpB,mBAAmB,EActB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAEhF,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,UAAU;gBAChC,aAAa,EAAE,mBAAmB;IAI9C;;;;OAIG;IACU,YAAY,CACrB,OAAO,EAAE,uBAAuB,GACjC,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IA+BvC;;;OAGG;YACW,aAAa;IA+B3B;;;OAGG;IACI,0BAA0B,CAC7B,OAAO,EAAE,uBAAuB,GACjC,MAAM;IAaT;;;;;;;OAOG;YACW,sCAAsC;IAoCpD;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAoCzB;;;;;;OAMG;IACH,OAAO,CAAC,eAAe;IA+CvB;;;;OAIG;YACW,0BAA0B;IAiGxC;;;;OAIG;IACH,OAAO,CAAC,sBAAsB;CA0DjC"}
|
|
@@ -51,22 +51,22 @@ export declare class AzureArc extends BaseManagedIdentitySource {
|
|
|
51
51
|
* Attempts to create an AzureArc managed identity source instance.
|
|
52
52
|
*
|
|
53
53
|
* Validates the Azure Arc environment by checking environment variables
|
|
54
|
-
* and performing file-based detection.
|
|
55
|
-
*
|
|
56
|
-
*
|
|
54
|
+
* and performing file-based detection. Azure Arc supports both system-assigned and user-assigned
|
|
55
|
+
* managed identities; when a user-assigned identity is requested, its selector is forwarded on the
|
|
56
|
+
* request and validated against the token response echo (fail closed). The method performs
|
|
57
|
+
* comprehensive validation of endpoint URLs and logs detailed information about the detection process.
|
|
57
58
|
*
|
|
58
59
|
* @param logger - Logger instance for capturing creation and validation steps
|
|
59
60
|
* @param nodeStorage - Storage implementation for the managed identity source
|
|
60
61
|
* @param networkClient - Network client for HTTP communication
|
|
61
62
|
* @param cryptoProvider - Cryptographic operations provider
|
|
62
63
|
* @param disableInternalRetries - Whether to disable automatic retry mechanisms
|
|
63
|
-
* @param
|
|
64
|
+
* @param _managedIdentityId - Unused; Azure Arc now supports user-assigned identities, which are
|
|
65
|
+
* forwarded on the request and validated against the token response echo (fail closed).
|
|
64
66
|
*
|
|
65
67
|
* @returns AzureArc instance if the environment supports Azure Arc managed identity, null otherwise
|
|
66
|
-
*
|
|
67
|
-
* @throws {ManagedIdentityError} When a user-assigned managed identity is specified (not supported for Azure Arc)
|
|
68
68
|
*/
|
|
69
|
-
static tryCreate(logger: Logger, nodeStorage: NodeStorage, networkClient: INetworkModule, cryptoProvider: CryptoProvider, disableInternalRetries: boolean,
|
|
69
|
+
static tryCreate(logger: Logger, nodeStorage: NodeStorage, networkClient: INetworkModule, cryptoProvider: CryptoProvider, disableInternalRetries: boolean, _managedIdentityId: ManagedIdentityId): AzureArc | null;
|
|
70
70
|
/**
|
|
71
71
|
* Creates a properly formatted HTTP request for acquiring tokens from the Azure Arc identity endpoint.
|
|
72
72
|
*
|
|
@@ -78,7 +78,21 @@ export declare class AzureArc extends BaseManagedIdentitySource {
|
|
|
78
78
|
*
|
|
79
79
|
* @returns A configured ManagedIdentityRequestParameters object ready for network execution
|
|
80
80
|
*/
|
|
81
|
-
createRequest(resource: string): ManagedIdentityRequestParameters;
|
|
81
|
+
createRequest(resource: string, managedIdentityId: ManagedIdentityId): ManagedIdentityRequestParameters;
|
|
82
|
+
/**
|
|
83
|
+
* Fails closed when a user-assigned identity was requested but the Azure Arc token response does
|
|
84
|
+
* not confirm it. A legacy Azure Arc agent ignores the client_id / object_id / msi_res_id selector
|
|
85
|
+
* and silently returns the machine's system-assigned identity; an agent that supports user-assigned
|
|
86
|
+
* managed identity echoes the identity it used. When the echoed identity is missing or does not
|
|
87
|
+
* match the requested selector, MSAL must not return a token for a different identity than requested.
|
|
88
|
+
*
|
|
89
|
+
* @param networkRequest - The request that produced this response; its query parameters carry the
|
|
90
|
+
* requested user-assigned selector (client_id / object_id / msi_res_id)
|
|
91
|
+
* @param responseBody - The deserialized Azure Arc token response
|
|
92
|
+
*
|
|
93
|
+
* @throws {ManagedIdentityError} When a user-assigned identity was requested but not confirmed
|
|
94
|
+
*/
|
|
95
|
+
private validateUserAssignedIdentityWasHonored;
|
|
82
96
|
/**
|
|
83
97
|
* Processes the server response and handles Azure Arc-specific authentication challenges.
|
|
84
98
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AzureArc.d.ts","sourceRoot":"","sources":["../../../src/client/ManagedIdentitySources/AzureArc.ts"],"names":[],"mappings":"AAKA,OAAO,EAIH,cAAc,EACd,eAAe,EACf,qBAAqB,EACrB,MAAM,EACN,gCAAgC,EAEnC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gCAAgC,EAAE,MAAM,kDAAkD,CAAC;AACpG,OAAO,
|
|
1
|
+
{"version":3,"file":"AzureArc.d.ts","sourceRoot":"","sources":["../../../src/client/ManagedIdentitySources/AzureArc.ts"],"names":[],"mappings":"AAKA,OAAO,EAIH,cAAc,EACd,eAAe,EACf,qBAAqB,EACrB,MAAM,EACN,gCAAgC,EAEnC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gCAAgC,EAAE,MAAM,kDAAkD,CAAC;AACpG,OAAO,EACH,yBAAyB,EAE5B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAchE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAOzD,OAAO,EAAE,4BAA4B,EAAE,MAAM,gDAAgD,CAAC;AAC9F,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAGtE,eAAO,MAAM,eAAe,EAAE,MAAqB,CAAC;AACpD,eAAO,MAAM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ceRoot":"","sources":["../../src/client/OnBehalfOfClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAKH,oBAAoB,EAIpB,mBAAmB,
|
|
1
|
+
{"version":3,"file":"OnBehalfOfClient.d.ts","sourceRoot":"","sources":["../../src/client/OnBehalfOfClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAKH,oBAAoB,EAIpB,mBAAmB,EAgBtB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,UAAU;IAC5C,OAAO,CAAC,QAAQ,CAAW;IAC3B,OAAO,CAAC,iBAAiB,CAAS;gBAEtB,aAAa,EAAE,mBAAmB;IAI9C;;;OAGG;IACU,YAAY,CACrB,OAAO,EAAE,uBAAuB,GACjC,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IAqDvC;;;;;;;OAOG;YACW,6BAA6B;IAgG3C;;;;OAIG;IACH,OAAO,CAAC,0BAA0B;IAuBlC;;;;OAIG;IACH,OAAO,CAAC,8BAA8B;IAkDtC;;;;OAIG;YACW,mBAAmB;IAmEjC;;;OAGG;YACW,sBAAsB;CAuGvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserFederatedIdentityCredentialClient.d.ts","sourceRoot":"","sources":["../../src/client/UserFederatedIdentityCredentialClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,oBAAoB,EAEpB,mBAAmB,
|
|
1
|
+
{"version":3,"file":"UserFederatedIdentityCredentialClient.d.ts","sourceRoot":"","sources":["../../src/client/UserFederatedIdentityCredentialClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,oBAAoB,EAEpB,mBAAmB,EAYtB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,4CAA4C,EAAE,MAAM,4DAA4D,CAAC;AAE1H;;;;GAIG;AACH,qBAAa,qCAAsC,SAAQ,UAAU;gBACrD,aAAa,EAAE,mBAAmB;IAI9C;;;;OAIG;IACU,YAAY,CACrB,OAAO,EAAE,4CAA4C,GACtD,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IAIvC;;OAEG;YACW,mBAAmB;IAuEjC;;OAEG;YACW,sBAAsB;CA+GvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UsernamePasswordClient.d.ts","sourceRoot":"","sources":["../../src/client/UsernamePasswordClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,oBAAoB,EAIpB,mBAAmB,EAYtB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C;;;;;GAKG;AACH,qBAAa,sBAAuB,SAAQ,UAAU;gBACtC,aAAa,EAAE,mBAAmB;IAI9C;;;;OAIG;IACG,YAAY,CACd,OAAO,EAAE,6BAA6B,GACvC,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"UsernamePasswordClient.d.ts","sourceRoot":"","sources":["../../src/client/UsernamePasswordClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,oBAAoB,EAIpB,mBAAmB,EAYtB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C;;;;;GAKG;AACH,qBAAa,sBAAuB,SAAQ,UAAU;gBACtC,aAAa,EAAE,mBAAmB;IAI9C;;;;OAIG;IACG,YAAY,CACd,OAAO,EAAE,6BAA6B,GACvC,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IAuCvC;;;;OAIG;YACW,mBAAmB;IAmCjC;;;OAGG;YACW,sBAAsB;CAkGvC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ICrypto, PkceCodes } from "@azure/msal-common/node";
|
|
1
|
+
import type { ICrypto, PkceCodes } from "@azure/msal-common/node";
|
|
2
2
|
/**
|
|
3
3
|
* This class implements MSAL node's crypto interface, which allows it to perform base64 encoding and decoding, generating cryptographically random GUIDs and
|
|
4
4
|
* implementing Proof Key for Code Exchange specs for the OAuth Authorization Code Flow using PKCE (rfc here: https://tools.ietf.org/html/rfc7636).
|
|
@@ -38,23 +38,25 @@ export declare class CryptoProvider implements ICrypto {
|
|
|
38
38
|
* Generates PKCE codes used in Authorization Code Flow.
|
|
39
39
|
*/
|
|
40
40
|
generatePkceCodes(): Promise<PkceCodes>;
|
|
41
|
-
/**
|
|
42
|
-
* Generates a keypair, stores it and returns a thumbprint - not yet implemented for node
|
|
43
|
-
*/
|
|
44
|
-
getPublicKeyThumbprint(): Promise<string>;
|
|
45
41
|
/**
|
|
46
42
|
* Removes cryptographic keypair from key store matching the keyId passed in
|
|
47
43
|
* @param kid - public key id
|
|
44
|
+
* @param correlationId - correlation id
|
|
48
45
|
*/
|
|
49
|
-
removeTokenBindingKey(): Promise<void>;
|
|
46
|
+
removeTokenBindingKey(kid: string, correlationId: string): Promise<void>;
|
|
50
47
|
/**
|
|
51
48
|
* Removes all cryptographic keys from Keystore
|
|
49
|
+
* @param correlationId - correlation id
|
|
52
50
|
*/
|
|
53
|
-
clearKeystore(): Promise<boolean>;
|
|
51
|
+
clearKeystore(correlationId: string): Promise<boolean>;
|
|
54
52
|
/**
|
|
55
|
-
* Signs
|
|
53
|
+
* Signs a compact JWT with a token-binding key - not yet implemented for node
|
|
54
|
+
* @param header - JOSE header
|
|
55
|
+
* @param payload - JWT payload
|
|
56
|
+
* @param kid - public key id
|
|
57
|
+
* @param correlationId - correlation id
|
|
56
58
|
*/
|
|
57
|
-
|
|
59
|
+
signTokenBindingJwt(header: object, payload: object, kid: string, correlationId: string): Promise<string>;
|
|
58
60
|
/**
|
|
59
61
|
* Returns the SHA-256 hash of an input string
|
|
60
62
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CryptoProvider.d.ts","sourceRoot":"","sources":["../../src/crypto/CryptoProvider.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CryptoProvider.d.ts","sourceRoot":"","sources":["../../src/crypto/CryptoProvider.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAMlE;;;;GAIG;AACH,qBAAa,cAAe,YAAW,OAAO;IAC1C,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,SAAS,CAAY;;IAS7B;;OAEG;IACH,eAAe,IAAI,MAAM;IAGzB;;;;OAIG;IACH,SAAS,IAAI,MAAM;IAInB;;;OAGG;IACH,aAAa,IAAI,MAAM;IAIvB;;;OAGG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAInC;;;OAGG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAInC;;OAEG;IACH,iBAAiB,IAAI,OAAO,CAAC,SAAS,CAAC;IAIvC;;;;OAIG;IACH,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAMxE;;;OAGG;IACH,aAAa,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAKtD;;;;;;OAMG;IACH,mBAAmB,CACf,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,GAAG,EAAE,MAAM,EACX,aAAa,EAAE,MAAM,GACtB,OAAO,CAAC,MAAM,CAAC;IAUlB;;OAEG;IACG,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAQvD"}
|
|
@@ -21,6 +21,7 @@ export declare const ManagedIdentityErrorMessages: {
|
|
|
21
21
|
unable_to_create_source: string;
|
|
22
22
|
unable_to_read_secret_file: string;
|
|
23
23
|
user_assigned_not_available_at_runtime: string;
|
|
24
|
+
user_assigned_managed_identity_not_confirmed: string;
|
|
24
25
|
www_authenticate_header_missing: string;
|
|
25
26
|
www_authenticate_header_unsupported_format: string;
|
|
26
27
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ManagedIdentityError.d.ts","sourceRoot":"","sources":["../../src/error/ManagedIdentityError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,yBAAyB,MAAM,gCAAgC,CAAC;AAE5E,OAAO,EAAE,yBAAyB,EAAE,CAAC;AAErC;;GAEG;AACH,eAAO,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file":"ManagedIdentityError.d.ts","sourceRoot":"","sources":["../../src/error/ManagedIdentityError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,yBAAyB,MAAM,gCAAgC,CAAC;AAE5E,OAAO,EAAE,yBAAyB,EAAE,CAAC;AAErC;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;CAuCxC,CAAC;AAEF,qBAAa,oBAAqB,SAAQ,SAAS;gBACnC,SAAS,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM;CASvD;AAED,wBAAgB,0BAA0B,CACtC,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,GACtB,oBAAoB,CAEtB"}
|
|
@@ -11,6 +11,7 @@ export declare const unableToCreateSource = "unable_to_create_source";
|
|
|
11
11
|
export declare const unableToReadSecretFile = "unable_to_read_secret_file";
|
|
12
12
|
export declare const urlParseError = "url_parse_error";
|
|
13
13
|
export declare const userAssignedNotAvailableAtRuntime = "user_assigned_not_available_at_runtime";
|
|
14
|
+
export declare const userAssignedManagedIdentityNotConfirmed = "user_assigned_managed_identity_not_confirmed";
|
|
14
15
|
export declare const wwwAuthenticateHeaderMissing = "www_authenticate_header_missing";
|
|
15
16
|
export declare const wwwAuthenticateHeaderUnsupportedFormat = "www_authenticate_header_unsupported_format";
|
|
16
17
|
export declare const MsiEnvironmentVariableUrlMalformedErrorCodes: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ManagedIdentityErrorCodes.d.ts","sourceRoot":"","sources":["../../src/error/ManagedIdentityErrorCodes.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAC7D,eAAO,MAAM,eAAe,sBAAsB,CAAC;AACnD,eAAO,MAAM,4BAA4B,qCAAqC,CAAC;AAC/E,eAAO,MAAM,aAAa,mBAAmB,CAAC;AAC9C,eAAO,MAAM,SAAS,sBAAsB,CAAC;AAC7C,eAAO,MAAM,kBAAkB,wBAAwB,CAAC;AACxD,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAC7D,eAAO,MAAM,sBAAsB,+BAA+B,CAAC;AACnE,eAAO,MAAM,wBAAwB,iCAAiC,CAAC;AACvE,eAAO,MAAM,oBAAoB,4BAA4B,CAAC;AAC9D,eAAO,MAAM,sBAAsB,+BAA+B,CAAC;AACnE,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAC/C,eAAO,MAAM,iCAAiC,2CACF,CAAC;AAC7C,eAAO,MAAM,4BAA4B,oCAAoC,CAAC;AAC9E,eAAO,MAAM,sCAAsC,+CACH,CAAC;AAEjD,eAAO,MAAM,4CAA4C;;;;;CAS/C,CAAC;AACX,MAAM,MAAM,gCAAgC,GACxC,CAAC,OAAO,4CAA4C,CAAC,CAAC,MAAM,OAAO,4CAA4C,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"ManagedIdentityErrorCodes.d.ts","sourceRoot":"","sources":["../../src/error/ManagedIdentityErrorCodes.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAC7D,eAAO,MAAM,eAAe,sBAAsB,CAAC;AACnD,eAAO,MAAM,4BAA4B,qCAAqC,CAAC;AAC/E,eAAO,MAAM,aAAa,mBAAmB,CAAC;AAC9C,eAAO,MAAM,SAAS,sBAAsB,CAAC;AAC7C,eAAO,MAAM,kBAAkB,wBAAwB,CAAC;AACxD,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAC7D,eAAO,MAAM,sBAAsB,+BAA+B,CAAC;AACnE,eAAO,MAAM,wBAAwB,iCAAiC,CAAC;AACvE,eAAO,MAAM,oBAAoB,4BAA4B,CAAC;AAC9D,eAAO,MAAM,sBAAsB,+BAA+B,CAAC;AACnE,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAC/C,eAAO,MAAM,iCAAiC,2CACF,CAAC;AAC7C,eAAO,MAAM,uCAAuC,iDACF,CAAC;AACnD,eAAO,MAAM,4BAA4B,oCAAoC,CAAC;AAC9E,eAAO,MAAM,sCAAsC,+CACH,CAAC;AAEjD,eAAO,MAAM,4CAA4C;;;;;CAS/C,CAAC;AACX,MAAM,MAAM,gCAAgC,GACxC,CAAC,OAAO,4CAA4C,CAAC,CAAC,MAAM,OAAO,4CAA4C,CAAC,CAAC"}
|
|
@@ -16,6 +16,10 @@ export type AuthorizationCodeRequest = Partial<Omit<CommonAuthorizationCodeReque
|
|
|
16
16
|
* The authorization_code that the user acquired in the first leg of the flow.
|
|
17
17
|
*/
|
|
18
18
|
code: string;
|
|
19
|
+
/**
|
|
20
|
+
* The nonce sent in the original authorization request. When provided, the ID Token nonce claim must be present and match this value.
|
|
21
|
+
*/
|
|
22
|
+
nonce?: string;
|
|
19
23
|
/**
|
|
20
24
|
* Unique GUID generated by the user that is cached by the user and sent to the server during the first leg of the flow. This string is sent back by the server with the authorization code. The user cached state is then compared with the state received from the server to mitigate the risk of CSRF attacks. See https://datatracker.ietf.org/doc/html/rfc6819#section-3.6.
|
|
21
25
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthorizationCodeRequest.d.ts","sourceRoot":"","sources":["../../src/request/AuthorizationCodeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,8BAA8B,EAAE,MAAM,yBAAyB,CAAC;AAEzE;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAC1C,IAAI,CACA,8BAA8B,EAC5B,QAAQ,GACR,aAAa,GACb,MAAM,GACN,sBAAsB,GACtB,uBAAuB,GACvB,oBAAoB,GACpB,cAAc,CACnB,CACJ,GAAG;IACA;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
|
1
|
+
{"version":3,"file":"AuthorizationCodeRequest.d.ts","sourceRoot":"","sources":["../../src/request/AuthorizationCodeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,8BAA8B,EAAE,MAAM,yBAAyB,CAAC;AAEzE;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAC1C,IAAI,CACA,8BAA8B,EAC5B,QAAQ,GACR,aAAa,GACb,MAAM,GACN,sBAAsB,GACtB,uBAAuB,GACvB,oBAAoB,GACpB,cAAc,CACnB,CACJ,GAAG;IACA;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
|
@@ -19,5 +19,12 @@ export type CommonClientCredentialRequest = Omit<BaseAuthRequest, "extraQueryPar
|
|
|
19
19
|
* FMI path to scope the client credentials token to a specific agent identity. Sent as `fmi_path` in the POST body.
|
|
20
20
|
*/
|
|
21
21
|
fmiPath?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Client-originated claims to forward to the token endpoint, sent as the `claims` parameter on the wire.
|
|
24
|
+
* Unlike `claims` (a server-issued challenge, which bypasses the token cache), client claims are cached and
|
|
25
|
+
* the cache entry is keyed on the claims value. Must use stable, non-dynamic values to avoid unbounded cache growth.
|
|
26
|
+
* See the MSAL Node token caching guide (`docs/caching.md`) for cache serialization and eviction strategies.
|
|
27
|
+
*/
|
|
28
|
+
claimsFromClient?: string;
|
|
22
29
|
};
|
|
23
30
|
//# sourceMappingURL=CommonClientCredentialRequest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommonClientCredentialRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonClientCredentialRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,eAAe,EACf,WAAW,EACX,eAAe,EAClB,MAAM,yBAAyB,CAAC;AAEjC;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,IAAI,CAC5C,eAAe,EACf,sBAAsB,GAAG,iBAAiB,CAC7C,GAAG;IACA;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;OAEG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"CommonClientCredentialRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonClientCredentialRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,eAAe,EACf,WAAW,EACX,eAAe,EAClB,MAAM,yBAAyB,CAAC;AAEjC;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,IAAI,CAC5C,eAAe,EACf,sBAAsB,GAAG,iBAAiB,CAC7C,GAAG;IACA;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;OAEG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC"}
|
|
@@ -11,5 +11,12 @@ export type CommonOnBehalfOfRequest = Omit<BaseAuthRequest, "extraQueryParameter
|
|
|
11
11
|
* Skip token cache lookup and force request to authority to get a a new token. Defaults to false.
|
|
12
12
|
*/
|
|
13
13
|
skipCache?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Client-originated claims to forward to the token endpoint, sent as the `claims` parameter on the wire.
|
|
16
|
+
* Unlike `claims` (a server-issued challenge, which bypasses the token cache), client claims are cached and
|
|
17
|
+
* the cache entry is keyed on the claims value. Must use stable, non-dynamic values to avoid unbounded cache growth.
|
|
18
|
+
* See the MSAL Node token caching guide (`docs/caching.md`) for cache serialization and eviction strategies.
|
|
19
|
+
*/
|
|
20
|
+
claimsFromClient?: string;
|
|
14
21
|
};
|
|
15
22
|
//# sourceMappingURL=CommonOnBehalfOfRequest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommonOnBehalfOfRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonOnBehalfOfRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,IAAI,CACtC,eAAe,EACf,sBAAsB,GAAG,iBAAiB,CAC7C,GAAG;IACA;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CommonOnBehalfOfRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonOnBehalfOfRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,IAAI,CACtC,eAAe,EACf,sBAAsB,GAAG,iBAAiB,CAC7C,GAAG;IACA;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC"}
|
|
@@ -13,5 +13,12 @@ export type CommonUserFederatedIdentityCredentialRequest = Omit<BaseAuthRequest,
|
|
|
13
13
|
userObjectId?: string;
|
|
14
14
|
/** Target user's UPN — exactly one of userObjectId or username must be provided */
|
|
15
15
|
username?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Client-originated claims to forward to the token endpoint, sent as the `claims` parameter on the wire.
|
|
18
|
+
* Unlike `claims` (a server-issued challenge), these are client-originated. The user_fic grant always calls
|
|
19
|
+
* the network, so `claimsFromClient` is forwarded on every request and does not participate in this flow's cache
|
|
20
|
+
* key (tokens are still written to the cache, but not partitioned by `claimsFromClient`).
|
|
21
|
+
*/
|
|
22
|
+
claimsFromClient?: string;
|
|
16
23
|
};
|
|
17
24
|
//# sourceMappingURL=CommonUserFederatedIdentityCredentialRequest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommonUserFederatedIdentityCredentialRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonUserFederatedIdentityCredentialRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE3E;;;;GAIG;AACH,MAAM,MAAM,4CAA4C,GAAG,IAAI,CAC3D,eAAe,EACf,sBAAsB,GAAG,iBAAiB,CAC7C,GAAG;IACA,oEAAoE;IACpE,SAAS,EAAE,MAAM,CAAC;IAClB,wDAAwD;IACxD,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,yFAAyF;IACzF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mFAAmF;IACnF,QAAQ,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"CommonUserFederatedIdentityCredentialRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonUserFederatedIdentityCredentialRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE3E;;;;GAIG;AACH,MAAM,MAAM,4CAA4C,GAAG,IAAI,CAC3D,eAAe,EACf,sBAAsB,GAAG,iBAAiB,CAC7C,GAAG;IACA,oEAAoE;IACpE,SAAS,EAAE,MAAM,CAAC;IAClB,wDAAwD;IACxD,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,yFAAyF;IACzF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mFAAmF;IACnF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC"}
|
|
@@ -16,6 +16,9 @@ import { Constants } from "@azure/msal-common/node";
|
|
|
16
16
|
export type ManagedIdentityTokenResponse = {
|
|
17
17
|
access_token?: string;
|
|
18
18
|
client_id?: string;
|
|
19
|
+
object_id?: string;
|
|
20
|
+
mi_res_id?: string;
|
|
21
|
+
msi_res_id?: string;
|
|
19
22
|
expires_on?: number;
|
|
20
23
|
resource?: string;
|
|
21
24
|
token_type?: Constants.AuthenticationScheme;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ManagedIdentityTokenResponse.d.ts","sourceRoot":"","sources":["../../src/response/ManagedIdentityTokenResponse.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,4BAA4B,GAAG;IAEvC,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