@azure/msal-node 5.0.0-alpha.0 → 5.0.0-beta.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 +1 -1
- package/dist/cache/NodeStorage.mjs +1 -1
- package/dist/cache/NodeStorage.mjs.map +1 -1
- package/dist/cache/TokenCache.mjs +1 -1
- package/dist/cache/TokenCache.mjs.map +1 -1
- package/dist/cache/distributed/DistributedCachePlugin.mjs +1 -1
- package/dist/cache/distributed/DistributedCachePlugin.mjs.map +1 -1
- package/dist/cache/serializer/Deserializer.mjs +1 -1
- package/dist/cache/serializer/Deserializer.mjs.map +1 -1
- package/dist/cache/serializer/Serializer.mjs +1 -1
- package/dist/cache/serializer/Serializer.mjs.map +1 -1
- package/dist/client/BaseClient.d.ts +42 -0
- package/dist/client/BaseClient.d.ts.map +1 -0
- package/dist/client/BaseClient.mjs +68 -0
- package/dist/client/BaseClient.mjs.map +1 -0
- package/dist/client/ClientApplication.mjs +1 -1
- package/dist/client/ClientApplication.mjs.map +1 -1
- package/dist/client/ClientAssertion.mjs +1 -1
- package/dist/client/ClientAssertion.mjs.map +1 -1
- package/dist/client/ClientCredentialClient.d.ts +2 -1
- package/dist/client/ClientCredentialClient.d.ts.map +1 -1
- package/dist/client/ClientCredentialClient.mjs +4 -3
- package/dist/client/ClientCredentialClient.mjs.map +1 -1
- package/dist/client/ConfidentialClientApplication.mjs +1 -1
- package/dist/client/ConfidentialClientApplication.mjs.map +1 -1
- package/dist/client/DeviceCodeClient.d.ts +2 -1
- package/dist/client/DeviceCodeClient.d.ts.map +1 -1
- package/dist/client/DeviceCodeClient.mjs +6 -5
- package/dist/client/DeviceCodeClient.mjs.map +1 -1
- package/dist/client/ManagedIdentityApplication.mjs +1 -1
- package/dist/client/ManagedIdentityApplication.mjs.map +1 -1
- package/dist/client/ManagedIdentityClient.mjs +1 -1
- package/dist/client/ManagedIdentityClient.mjs.map +1 -1
- package/dist/client/ManagedIdentitySources/AppService.d.ts +54 -0
- package/dist/client/ManagedIdentitySources/AppService.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/AppService.mjs +55 -1
- package/dist/client/ManagedIdentitySources/AppService.mjs.map +1 -1
- package/dist/client/ManagedIdentitySources/AzureArc.d.ts +81 -0
- package/dist/client/ManagedIdentitySources/AzureArc.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/AzureArc.mjs +82 -1
- package/dist/client/ManagedIdentitySources/AzureArc.mjs.map +1 -1
- package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts +93 -2
- package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs +81 -1
- package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs.map +1 -1
- package/dist/client/ManagedIdentitySources/CloudShell.d.ts +54 -0
- package/dist/client/ManagedIdentitySources/CloudShell.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/CloudShell.mjs +55 -1
- package/dist/client/ManagedIdentitySources/CloudShell.mjs.map +1 -1
- package/dist/client/ManagedIdentitySources/Imds.d.ts +44 -22
- package/dist/client/ManagedIdentitySources/Imds.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/Imds.mjs +44 -22
- package/dist/client/ManagedIdentitySources/Imds.mjs.map +1 -1
- package/dist/client/ManagedIdentitySources/MachineLearning.d.ts +65 -0
- package/dist/client/ManagedIdentitySources/MachineLearning.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/MachineLearning.mjs +66 -1
- package/dist/client/ManagedIdentitySources/MachineLearning.mjs.map +1 -1
- package/dist/client/ManagedIdentitySources/ServiceFabric.d.ts +56 -22
- package/dist/client/ManagedIdentitySources/ServiceFabric.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/ServiceFabric.mjs +57 -23
- package/dist/client/ManagedIdentitySources/ServiceFabric.mjs.map +1 -1
- package/dist/client/OnBehalfOfClient.d.ts +2 -1
- package/dist/client/OnBehalfOfClient.d.ts.map +1 -1
- package/dist/client/OnBehalfOfClient.mjs +4 -3
- package/dist/client/OnBehalfOfClient.mjs.map +1 -1
- package/dist/client/PublicClientApplication.d.ts.map +1 -1
- package/dist/client/PublicClientApplication.mjs +21 -5
- package/dist/client/PublicClientApplication.mjs.map +1 -1
- package/dist/client/UsernamePasswordClient.d.ts +2 -1
- package/dist/client/UsernamePasswordClient.d.ts.map +1 -1
- package/dist/client/UsernamePasswordClient.mjs +4 -3
- package/dist/client/UsernamePasswordClient.mjs.map +1 -1
- package/dist/config/Configuration.d.ts +0 -6
- package/dist/config/Configuration.d.ts.map +1 -1
- package/dist/config/Configuration.mjs +3 -5
- package/dist/config/Configuration.mjs.map +1 -1
- package/dist/config/ManagedIdentityId.mjs +1 -1
- package/dist/config/ManagedIdentityId.mjs.map +1 -1
- package/dist/config/ManagedIdentityRequestParameters.mjs +3 -3
- package/dist/config/ManagedIdentityRequestParameters.mjs.map +1 -1
- package/dist/crypto/CryptoProvider.mjs +1 -1
- package/dist/crypto/CryptoProvider.mjs.map +1 -1
- package/dist/crypto/GuidGenerator.mjs +1 -1
- package/dist/crypto/GuidGenerator.mjs.map +1 -1
- package/dist/crypto/HashUtils.mjs +1 -1
- package/dist/crypto/HashUtils.mjs.map +1 -1
- package/dist/crypto/PkceGenerator.mjs +1 -1
- package/dist/crypto/PkceGenerator.mjs.map +1 -1
- package/dist/error/ClientAuthErrorCodes.mjs +1 -1
- package/dist/error/ManagedIdentityError.mjs +1 -1
- package/dist/error/ManagedIdentityError.mjs.map +1 -1
- package/dist/error/ManagedIdentityErrorCodes.mjs +1 -1
- package/dist/error/ManagedIdentityErrorCodes.mjs.map +1 -1
- package/dist/error/NodeAuthError.d.ts +8 -0
- package/dist/error/NodeAuthError.d.ts.map +1 -1
- package/dist/error/NodeAuthError.mjs +11 -1
- package/dist/error/NodeAuthError.mjs.map +1 -1
- package/dist/index.d.ts +0 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +1 -7
- package/dist/index.mjs.map +1 -1
- package/dist/internals.mjs +1 -1
- package/dist/network/HttpClient.d.ts +54 -14
- package/dist/network/HttpClient.d.ts.map +1 -1
- package/dist/network/HttpClient.mjs +140 -262
- package/dist/network/HttpClient.mjs.map +1 -1
- package/dist/network/HttpClientWithRetries.mjs +1 -1
- package/dist/network/HttpClientWithRetries.mjs.map +1 -1
- package/dist/network/LoopbackClient.mjs +1 -1
- package/dist/network/LoopbackClient.mjs.map +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.d.ts.map +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/protocol/Authorize.mjs +2 -2
- package/dist/protocol/Authorize.mjs.map +1 -1
- package/dist/request/AuthorizationCodeRequest.d.ts +2 -1
- package/dist/request/AuthorizationCodeRequest.d.ts.map +1 -1
- package/dist/request/AuthorizationUrlRequest.d.ts +2 -2
- package/dist/request/ClientCredentialRequest.d.ts +0 -1
- package/dist/request/ClientCredentialRequest.d.ts.map +1 -1
- package/dist/request/CommonClientCredentialRequest.d.ts +3 -2
- package/dist/request/CommonClientCredentialRequest.d.ts.map +1 -1
- package/dist/request/CommonDeviceCodeRequest.d.ts +3 -2
- package/dist/request/CommonDeviceCodeRequest.d.ts.map +1 -1
- package/dist/request/CommonOnBehalfOfRequest.d.ts +1 -2
- package/dist/request/CommonOnBehalfOfRequest.d.ts.map +1 -1
- package/dist/request/CommonUsernamePasswordRequest.d.ts +2 -1
- package/dist/request/CommonUsernamePasswordRequest.d.ts.map +1 -1
- package/dist/request/InteractiveRequest.d.ts +1 -1
- package/dist/request/InteractiveRequest.d.ts.map +1 -1
- package/dist/request/OnBehalfOfRequest.d.ts +0 -1
- package/dist/request/OnBehalfOfRequest.d.ts.map +1 -1
- package/dist/request/RefreshTokenRequest.d.ts +2 -1
- package/dist/request/RefreshTokenRequest.d.ts.map +1 -1
- package/dist/request/SilentFlowRequest.d.ts +2 -1
- package/dist/request/SilentFlowRequest.d.ts.map +1 -1
- package/dist/request/UsernamePasswordRequest.d.ts +2 -1
- package/dist/request/UsernamePasswordRequest.d.ts.map +1 -1
- package/dist/retry/DefaultManagedIdentityRetryPolicy.mjs +1 -1
- package/dist/retry/DefaultManagedIdentityRetryPolicy.mjs.map +1 -1
- package/dist/retry/ExponentialRetryStrategy.mjs +1 -1
- package/dist/retry/ExponentialRetryStrategy.mjs.map +1 -1
- package/dist/retry/ImdsRetryPolicy.mjs +1 -1
- package/dist/retry/ImdsRetryPolicy.mjs.map +1 -1
- package/dist/retry/LinearRetryStrategy.mjs +1 -1
- package/dist/retry/LinearRetryStrategy.mjs.map +1 -1
- package/dist/utils/Constants.d.ts +2 -9
- package/dist/utils/Constants.d.ts.map +1 -1
- package/dist/utils/Constants.mjs +4 -12
- package/dist/utils/Constants.mjs.map +1 -1
- package/dist/utils/EncodingUtils.mjs +1 -1
- package/dist/utils/EncodingUtils.mjs.map +1 -1
- package/dist/utils/TimeUtils.mjs +1 -1
- package/dist/utils/TimeUtils.mjs.map +1 -1
- package/lib/msal-node.cjs +5747 -5335
- package/lib/msal-node.cjs.map +1 -1
- package/lib/types/client/BaseClient.d.ts +42 -0
- package/lib/types/client/BaseClient.d.ts.map +1 -0
- package/lib/types/client/ClientCredentialClient.d.ts +2 -1
- package/lib/types/client/ClientCredentialClient.d.ts.map +1 -1
- package/lib/types/client/DeviceCodeClient.d.ts +2 -1
- package/lib/types/client/DeviceCodeClient.d.ts.map +1 -1
- package/lib/types/client/ManagedIdentitySources/AppService.d.ts +54 -0
- package/lib/types/client/ManagedIdentitySources/AppService.d.ts.map +1 -1
- package/lib/types/client/ManagedIdentitySources/AzureArc.d.ts +81 -0
- package/lib/types/client/ManagedIdentitySources/AzureArc.d.ts.map +1 -1
- package/lib/types/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts +93 -2
- package/lib/types/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +1 -1
- package/lib/types/client/ManagedIdentitySources/CloudShell.d.ts +54 -0
- package/lib/types/client/ManagedIdentitySources/CloudShell.d.ts.map +1 -1
- package/lib/types/client/ManagedIdentitySources/Imds.d.ts +44 -22
- package/lib/types/client/ManagedIdentitySources/Imds.d.ts.map +1 -1
- package/lib/types/client/ManagedIdentitySources/MachineLearning.d.ts +65 -0
- package/lib/types/client/ManagedIdentitySources/MachineLearning.d.ts.map +1 -1
- package/lib/types/client/ManagedIdentitySources/ServiceFabric.d.ts +56 -22
- package/lib/types/client/ManagedIdentitySources/ServiceFabric.d.ts.map +1 -1
- package/lib/types/client/OnBehalfOfClient.d.ts +2 -1
- package/lib/types/client/OnBehalfOfClient.d.ts.map +1 -1
- package/lib/types/client/PublicClientApplication.d.ts.map +1 -1
- package/lib/types/client/UsernamePasswordClient.d.ts +2 -1
- package/lib/types/client/UsernamePasswordClient.d.ts.map +1 -1
- package/lib/types/config/Configuration.d.ts +0 -6
- package/lib/types/config/Configuration.d.ts.map +1 -1
- package/lib/types/error/NodeAuthError.d.ts +8 -0
- package/lib/types/error/NodeAuthError.d.ts.map +1 -1
- package/lib/types/index.d.ts +0 -6
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/network/HttpClient.d.ts +54 -14
- package/lib/types/network/HttpClient.d.ts.map +1 -1
- package/lib/types/packageMetadata.d.ts +1 -1
- package/lib/types/packageMetadata.d.ts.map +1 -1
- package/lib/types/request/AuthorizationCodeRequest.d.ts +2 -1
- package/lib/types/request/AuthorizationCodeRequest.d.ts.map +1 -1
- package/lib/types/request/AuthorizationUrlRequest.d.ts +2 -2
- package/lib/types/request/ClientCredentialRequest.d.ts +0 -1
- package/lib/types/request/ClientCredentialRequest.d.ts.map +1 -1
- package/lib/types/request/CommonClientCredentialRequest.d.ts +3 -2
- package/lib/types/request/CommonClientCredentialRequest.d.ts.map +1 -1
- package/lib/types/request/CommonDeviceCodeRequest.d.ts +3 -2
- package/lib/types/request/CommonDeviceCodeRequest.d.ts.map +1 -1
- package/lib/types/request/CommonOnBehalfOfRequest.d.ts +1 -2
- package/lib/types/request/CommonOnBehalfOfRequest.d.ts.map +1 -1
- package/lib/types/request/CommonUsernamePasswordRequest.d.ts +2 -1
- package/lib/types/request/CommonUsernamePasswordRequest.d.ts.map +1 -1
- package/lib/types/request/InteractiveRequest.d.ts +1 -1
- package/lib/types/request/InteractiveRequest.d.ts.map +1 -1
- package/lib/types/request/OnBehalfOfRequest.d.ts +0 -1
- package/lib/types/request/OnBehalfOfRequest.d.ts.map +1 -1
- package/lib/types/request/RefreshTokenRequest.d.ts +2 -1
- package/lib/types/request/RefreshTokenRequest.d.ts.map +1 -1
- package/lib/types/request/SilentFlowRequest.d.ts +2 -1
- package/lib/types/request/SilentFlowRequest.d.ts.map +1 -1
- package/lib/types/request/UsernamePasswordRequest.d.ts +2 -1
- package/lib/types/request/UsernamePasswordRequest.d.ts.map +1 -1
- package/lib/types/utils/Constants.d.ts +2 -9
- package/lib/types/utils/Constants.d.ts.map +1 -1
- package/package.json +88 -88
- package/src/client/BaseClient.ts +158 -0
- package/src/client/ClientCredentialClient.ts +2 -3
- package/src/client/DeviceCodeClient.ts +4 -5
- package/src/client/ManagedIdentitySources/AppService.ts +54 -0
- package/src/client/ManagedIdentitySources/AzureArc.ts +81 -0
- package/src/client/ManagedIdentitySources/BaseManagedIdentitySource.ts +92 -2
- package/src/client/ManagedIdentitySources/CloudShell.ts +54 -0
- package/src/client/ManagedIdentitySources/Imds.ts +43 -21
- package/src/client/ManagedIdentitySources/MachineLearning.ts +65 -0
- package/src/client/ManagedIdentitySources/ServiceFabric.ts +56 -22
- package/src/client/OnBehalfOfClient.ts +2 -3
- package/src/client/PublicClientApplication.ts +22 -4
- package/src/client/UsernamePasswordClient.ts +2 -3
- package/src/config/Configuration.ts +2 -14
- package/src/config/ManagedIdentityRequestParameters.ts +2 -2
- package/src/error/NodeAuthError.ts +14 -0
- package/src/index.ts +0 -8
- package/src/network/HttpClient.ts +166 -372
- package/src/packageMetadata.ts +1 -1
- package/src/protocol/Authorize.ts +1 -1
- package/src/request/AuthorizationCodeRequest.ts +2 -1
- package/src/request/AuthorizationUrlRequest.ts +2 -2
- package/src/request/ClientCredentialRequest.ts +0 -1
- package/src/request/CommonClientCredentialRequest.ts +6 -2
- package/src/request/CommonDeviceCodeRequest.ts +3 -6
- package/src/request/CommonOnBehalfOfRequest.ts +4 -2
- package/src/request/CommonUsernamePasswordRequest.ts +2 -1
- package/src/request/InteractiveRequest.ts +1 -4
- package/src/request/OnBehalfOfRequest.ts +0 -1
- package/src/request/RefreshTokenRequest.ts +2 -1
- package/src/request/SilentFlowRequest.ts +2 -1
- package/src/request/UsernamePasswordRequest.ts +2 -1
- package/src/utils/Constants.ts +2 -11
- package/dist/utils/NetworkUtils.mjs +0 -43
- package/dist/utils/NetworkUtils.mjs.map +0 -1
|
@@ -5,12 +5,77 @@ import { ManagedIdentityRequestParameters } from "../../config/ManagedIdentityRe
|
|
|
5
5
|
import { ManagedIdentityId } from "../../config/ManagedIdentityId.js";
|
|
6
6
|
import { NodeStorage } from "../../cache/NodeStorage.js";
|
|
7
7
|
export declare const MANAGED_IDENTITY_MACHINE_LEARNING_UNSUPPORTED_ID_TYPE_ERROR: string;
|
|
8
|
+
/**
|
|
9
|
+
* Machine Learning Managed Identity Source implementation for Azure Machine Learning environments.
|
|
10
|
+
*
|
|
11
|
+
* This class handles managed identity authentication specifically for Azure Machine Learning services.
|
|
12
|
+
* It supports both system-assigned and user-assigned managed identities, using the MSI_ENDPOINT
|
|
13
|
+
* and MSI_SECRET environment variables that are automatically provided in Azure ML environments.
|
|
14
|
+
*/
|
|
8
15
|
export declare class MachineLearning extends BaseManagedIdentitySource {
|
|
9
16
|
private msiEndpoint;
|
|
10
17
|
private secret;
|
|
18
|
+
/**
|
|
19
|
+
* Creates a new MachineLearning managed identity source instance.
|
|
20
|
+
*
|
|
21
|
+
* @param logger - Logger instance for diagnostic information
|
|
22
|
+
* @param nodeStorage - Node storage implementation for caching
|
|
23
|
+
* @param networkClient - Network client for making HTTP requests
|
|
24
|
+
* @param cryptoProvider - Cryptographic operations provider
|
|
25
|
+
* @param disableInternalRetries - Whether to disable automatic request retries
|
|
26
|
+
* @param msiEndpoint - The MSI endpoint URL from environment variables
|
|
27
|
+
* @param secret - The MSI secret from environment variables
|
|
28
|
+
*/
|
|
11
29
|
constructor(logger: Logger, nodeStorage: NodeStorage, networkClient: INetworkModule, cryptoProvider: CryptoProvider, disableInternalRetries: boolean, msiEndpoint: string, secret: string);
|
|
30
|
+
/**
|
|
31
|
+
* Retrieves the required environment variables for Azure Machine Learning managed identity.
|
|
32
|
+
*
|
|
33
|
+
* This method checks for the presence of MSI_ENDPOINT and MSI_SECRET environment variables
|
|
34
|
+
* that are automatically set by the Azure Machine Learning platform when managed identity
|
|
35
|
+
* is enabled for the compute instance or cluster.
|
|
36
|
+
*
|
|
37
|
+
* @returns An array containing [msiEndpoint, secret] where either value may be undefined
|
|
38
|
+
* if the corresponding environment variable is not set
|
|
39
|
+
*/
|
|
12
40
|
static getEnvironmentVariables(): Array<string | undefined>;
|
|
41
|
+
/**
|
|
42
|
+
* Attempts to create a MachineLearning managed identity source.
|
|
43
|
+
*
|
|
44
|
+
* This method validates the Azure Machine Learning environment by checking for the required
|
|
45
|
+
* MSI_ENDPOINT and MSI_SECRET environment variables. If both are present and valid,
|
|
46
|
+
* it creates and returns a MachineLearning instance. If either is missing or invalid,
|
|
47
|
+
* it returns null, indicating that this managed identity source is not available
|
|
48
|
+
* in the current environment.
|
|
49
|
+
*
|
|
50
|
+
* @param logger - Logger instance for diagnostic information
|
|
51
|
+
* @param nodeStorage - Node storage implementation for caching
|
|
52
|
+
* @param networkClient - Network client for making HTTP requests
|
|
53
|
+
* @param cryptoProvider - Cryptographic operations provider
|
|
54
|
+
* @param disableInternalRetries - Whether to disable automatic request retries
|
|
55
|
+
*
|
|
56
|
+
* @returns A new MachineLearning instance if the environment is valid, null otherwise
|
|
57
|
+
*/
|
|
13
58
|
static tryCreate(logger: Logger, nodeStorage: NodeStorage, networkClient: INetworkModule, cryptoProvider: CryptoProvider, disableInternalRetries: boolean): MachineLearning | null;
|
|
59
|
+
/**
|
|
60
|
+
* Creates a managed identity token request for Azure Machine Learning environments.
|
|
61
|
+
*
|
|
62
|
+
* This method constructs the HTTP request parameters needed to acquire an access token
|
|
63
|
+
* from the Azure Machine Learning managed identity endpoint. It handles both system-assigned
|
|
64
|
+
* and user-assigned managed identities with specific logic for each type:
|
|
65
|
+
*
|
|
66
|
+
* - System-assigned: Uses the DEFAULT_IDENTITY_CLIENT_ID environment variable
|
|
67
|
+
* - User-assigned: Only supports client ID-based identification (not object ID or resource ID)
|
|
68
|
+
*
|
|
69
|
+
* The request uses the 2017-09-01 API version and includes the required secret header
|
|
70
|
+
* for authentication with the MSI endpoint.
|
|
71
|
+
*
|
|
72
|
+
* @param resource - The target resource/scope for which to request an access token (e.g., "https://graph.microsoft.com/.default")
|
|
73
|
+
* @param managedIdentityId - The managed identity configuration specifying whether to use system-assigned or user-assigned identity
|
|
74
|
+
*
|
|
75
|
+
* @returns A configured ManagedIdentityRequestParameters object ready for network execution
|
|
76
|
+
*
|
|
77
|
+
* @throws Error if an unsupported managed identity ID type is specified (only client ID is supported for user-assigned)
|
|
78
|
+
*/
|
|
14
79
|
createRequest(resource: string, managedIdentityId: ManagedIdentityId): ManagedIdentityRequestParameters;
|
|
15
80
|
}
|
|
16
81
|
//# sourceMappingURL=MachineLearning.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MachineLearning.d.ts","sourceRoot":"","sources":["../../../../src/client/ManagedIdentitySources/MachineLearning.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EACH,yBAAyB,EAE5B,MAAM,gCAAgC,CAAC;AASxC,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,gCAAgC,EAAE,MAAM,kD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C7B,cAAc,EAAE,cAAc,EAC9B,sBAAsB,EAAE,OAAO,GAChC,eAAe,GAAG,IAAI;IAoCzB;;;;;;;;;;;;;;;;;;;OAmBG;IACI,aAAa,CAChB,QAAQ,EAAE,MAAM,EAChB,iBAAiB,EAAE,iBAAiB,GACrC,gCAAgC;CA8CtC"}
|
|
@@ -11,37 +11,71 @@ export declare class ServiceFabric extends BaseManagedIdentitySource {
|
|
|
11
11
|
private identityEndpoint;
|
|
12
12
|
private identityHeader;
|
|
13
13
|
/**
|
|
14
|
-
* Constructs a new ServiceFabric managed identity source.
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* @param
|
|
21
|
-
* @param
|
|
14
|
+
* Constructs a new ServiceFabric managed identity source for acquiring tokens from Azure Service Fabric clusters.
|
|
15
|
+
*
|
|
16
|
+
* Service Fabric managed identity allows applications running in Service Fabric clusters to authenticate
|
|
17
|
+
* without storing credentials in code. This source handles token acquisition using the Service Fabric
|
|
18
|
+
* Managed Identity Token Service (MITS).
|
|
19
|
+
*
|
|
20
|
+
* @param logger - Logger instance for logging authentication events and debugging information
|
|
21
|
+
* @param nodeStorage - NodeStorage instance for caching tokens and other authentication artifacts
|
|
22
|
+
* @param networkClient - Network client for making HTTP requests to the Service Fabric identity endpoint
|
|
23
|
+
* @param cryptoProvider - Crypto provider for cryptographic operations like token validation
|
|
24
|
+
* @param disableInternalRetries - Whether to disable internal retry logic for failed requests
|
|
25
|
+
* @param identityEndpoint - The Service Fabric managed identity endpoint URL
|
|
26
|
+
* @param identityHeader - The Service Fabric managed identity secret header value
|
|
22
27
|
*/
|
|
23
28
|
constructor(logger: Logger, nodeStorage: NodeStorage, networkClient: INetworkModule, cryptoProvider: CryptoProvider, disableInternalRetries: boolean, identityEndpoint: string, identityHeader: string);
|
|
24
29
|
/**
|
|
25
|
-
* Retrieves the environment variables required for Service Fabric managed identity.
|
|
26
|
-
*
|
|
30
|
+
* Retrieves the environment variables required for Service Fabric managed identity authentication.
|
|
31
|
+
*
|
|
32
|
+
* Service Fabric managed identity requires three specific environment variables to be set by the
|
|
33
|
+
* Service Fabric runtime:
|
|
34
|
+
* - IDENTITY_ENDPOINT: The endpoint URL for the Managed Identity Token Service (MITS)
|
|
35
|
+
* - IDENTITY_HEADER: A secret value used for authentication with the MITS
|
|
36
|
+
* - IDENTITY_SERVER_THUMBPRINT: The thumbprint of the MITS server certificate for secure communication
|
|
37
|
+
*
|
|
38
|
+
* @returns An array containing the identity endpoint, identity header, and identity server thumbprint values.
|
|
39
|
+
* Elements will be undefined if the corresponding environment variables are not set.
|
|
27
40
|
*/
|
|
28
41
|
static getEnvironmentVariables(): Array<string | undefined>;
|
|
29
42
|
/**
|
|
30
|
-
* Attempts to create a ServiceFabric managed identity source if
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
43
|
+
* Attempts to create a ServiceFabric managed identity source if the runtime environment supports it.
|
|
44
|
+
*
|
|
45
|
+
* Checks for the presence of all required Service Fabric environment variables
|
|
46
|
+
* and validates the endpoint URL format. It will only create a ServiceFabric instance if the application
|
|
47
|
+
* is running in a properly configured Service Fabric cluster with managed identity enabled.
|
|
48
|
+
*
|
|
49
|
+
* Note: User-assigned managed identities must be configured at the cluster level, not at runtime.
|
|
50
|
+
* This method will log a warning if a user-assigned identity is requested.
|
|
51
|
+
*
|
|
52
|
+
* @param logger - Logger instance for logging creation events and validation results
|
|
53
|
+
* @param nodeStorage - NodeStorage instance for caching tokens and authentication artifacts
|
|
54
|
+
* @param networkClient - Network client for making HTTP requests to the identity endpoint
|
|
55
|
+
* @param cryptoProvider - Crypto provider for cryptographic operations
|
|
56
|
+
* @param disableInternalRetries - Whether to disable internal retry logic for failed requests
|
|
57
|
+
* @param managedIdentityId - Managed identity identifier specifying system-assigned or user-assigned identity
|
|
58
|
+
*
|
|
59
|
+
* @returns A ServiceFabric instance if all environment variables are valid and present, otherwise null
|
|
38
60
|
*/
|
|
39
61
|
static tryCreate(logger: Logger, nodeStorage: NodeStorage, networkClient: INetworkModule, cryptoProvider: CryptoProvider, disableInternalRetries: boolean, managedIdentityId: ManagedIdentityId): ServiceFabric | null;
|
|
40
62
|
/**
|
|
41
|
-
* Creates
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
63
|
+
* Creates HTTP request parameters for acquiring an access token from the Service Fabric Managed Identity Token Service (MITS).
|
|
64
|
+
*
|
|
65
|
+
* This method constructs a properly formatted HTTP GET request that includes:
|
|
66
|
+
* - The secret header for authentication with MITS
|
|
67
|
+
* - API version parameter for the Service Fabric MSI endpoint
|
|
68
|
+
* - Resource parameter specifying the target Azure service
|
|
69
|
+
* - Optional identity parameters for user-assigned managed identities
|
|
70
|
+
*
|
|
71
|
+
* The request follows the Service Fabric managed identity protocol and uses the 2019-07-01-preview API version.
|
|
72
|
+
* For user-assigned identities, the appropriate query parameter (client_id, object_id, or resource_id) is added
|
|
73
|
+
* based on the identity type.
|
|
74
|
+
*
|
|
75
|
+
* @param resource - The Azure resource URI for which the access token is requested (e.g., "https://vault.azure.net/")
|
|
76
|
+
* @param managedIdentityId - The managed identity configuration specifying system-assigned or user-assigned identity details
|
|
77
|
+
*
|
|
78
|
+
* @returns A configured ManagedIdentityRequestParameters object ready for network execution
|
|
45
79
|
*/
|
|
46
80
|
createRequest(resource: string, managedIdentityId: ManagedIdentityId): ManagedIdentityRequestParameters;
|
|
47
81
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServiceFabric.d.ts","sourceRoot":"","sources":["../../../../src/client/ManagedIdentitySources/ServiceFabric.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,gCAAgC,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EAAE,cAAc,EAC7B,cAAc,EAAE,cAAc,EAC9B,sBAAsB,EAAE,OAAO,EAC/B,iBAAiB,EAAE,iBAAiB,GACrC,aAAa,GAAG,IAAI;IA6CvB;;;;;;;;;;;;;;;;;OAiBG;IACI,aAAa,CAChB,QAAQ,EAAE,MAAM,EAChB,iBAAiB,EAAE,iBAAiB,GACrC,gCAAgC;CA6BtC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { AuthenticationResult,
|
|
1
|
+
import { AuthenticationResult, ClientConfiguration } from "@azure/msal-common/node";
|
|
2
2
|
import { CommonOnBehalfOfRequest } from "../request/CommonOnBehalfOfRequest.js";
|
|
3
|
+
import { BaseClient } from "./BaseClient.js";
|
|
3
4
|
/**
|
|
4
5
|
* On-Behalf-Of client
|
|
5
6
|
* @public
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OnBehalfOfClient.d.ts","sourceRoot":"","sources":["../../../src/client/OnBehalfOfClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAKH,oBAAoB,
|
|
1
|
+
{"version":3,"file":"OnBehalfOfClient.d.ts","sourceRoot":"","sources":["../../../src/client/OnBehalfOfClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAKH,oBAAoB,EAIpB,mBAAmB,EAetB,MAAM,yBAAyB,CAAC;AAEjC,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;IA4BvC;;;;;;;OAOG;YACW,6BAA6B;IAwF3C;;;;OAIG;IACH,OAAO,CAAC,0BAA0B;IAuBlC;;;;OAIG;IACH,OAAO,CAAC,8BAA8B;IA4CtC;;;;OAIG;YACW,mBAAmB;IA4DjC;;;OAGG;YACW,sBAAsB;CA0FvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicClientApplication.d.ts","sourceRoot":"","sources":["../../../src/client/PublicClientApplication.ts"],"names":[],"mappings":"AAUA,OAAO,EACH,oBAAoB,EAMpB,WAAW,EAKd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAIpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAGtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAK9D;;;;GAIG;AACH,qBAAa,uBACT,SAAQ,iBACR,YAAW,wBAAwB;IAEnC,OAAO,CAAC,kBAAkB,CAAC,CAAsB;IACjD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAS;IAC9B;;;;;;;;;;;;;;;;OAgBG;gBACS,aAAa,EAAE,aAAa;IAqBxC;;;;;;;;OAQG;IACU,wBAAwB,CACjC,OAAO,EAAE,iBAAiB,GAC3B,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IAyCvC;;OAEG;IACG,uBAAuB,CACzB,OAAO,EAAE,kBAAkB,GAC5B,OAAO,CAAC,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"PublicClientApplication.d.ts","sourceRoot":"","sources":["../../../src/client/PublicClientApplication.ts"],"names":[],"mappings":"AAUA,OAAO,EACH,oBAAoB,EAMpB,WAAW,EAKd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAIpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAGtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAK9D;;;;GAIG;AACH,qBAAa,uBACT,SAAQ,iBACR,YAAW,wBAAwB;IAEnC,OAAO,CAAC,kBAAkB,CAAC,CAAsB;IACjD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAS;IAC9B;;;;;;;;;;;;;;;;OAgBG;gBACS,aAAa,EAAE,aAAa;IAqBxC;;;;;;;;OAQG;IACU,wBAAwB,CACjC,OAAO,EAAE,iBAAiB,GAC3B,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IAyCvC;;OAEG;IACG,uBAAuB,CACzB,OAAO,EAAE,kBAAkB,GAC5B,OAAO,CAAC,oBAAoB,CAAC;IA0GhC;;;;OAIG;IACG,kBAAkB,CACpB,OAAO,EAAE,iBAAiB,GAC3B,OAAO,CAAC,oBAAoB,CAAC;IAmChC;;;;OAIG;IACG,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAkBrD;;;OAGG;IACG,cAAc,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;IAY9C;;;;OAIG;YACW,kBAAkB;CAsCnC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { AuthenticationResult,
|
|
1
|
+
import { AuthenticationResult, ClientConfiguration } from "@azure/msal-common/node";
|
|
2
2
|
import { CommonUsernamePasswordRequest } from "../request/CommonUsernamePasswordRequest.js";
|
|
3
|
+
import { BaseClient } from "./BaseClient.js";
|
|
3
4
|
/**
|
|
4
5
|
* Oauth2.0 Password grant client
|
|
5
6
|
* Note: We are only supporting public clients for password grant and for purely testing purposes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UsernamePasswordClient.d.ts","sourceRoot":"","sources":["../../../src/client/UsernamePasswordClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,oBAAoB,
|
|
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;AACjC,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;IAqCvC;;;;OAIG;YACW,mBAAmB;IAmCjC;;;OAGG;YACW,sBAAsB;CA6FvC"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
3
1
|
import { LoggerOptions, INetworkModule, ProtocolMode, ICachePlugin, AzureCloudOptions, ApplicationTelemetry, INativeBrokerPlugin, ClientAssertionCallback } from "@azure/msal-common/node";
|
|
4
|
-
import http from "http";
|
|
5
|
-
import https from "https";
|
|
6
2
|
import { ManagedIdentityId } from "./ManagedIdentityId.js";
|
|
7
3
|
/**
|
|
8
4
|
* - clientId - Client id of the application.
|
|
@@ -64,8 +60,6 @@ export type BrokerOptions = {
|
|
|
64
60
|
export type NodeSystemOptions = {
|
|
65
61
|
loggerOptions?: LoggerOptions;
|
|
66
62
|
networkClient?: INetworkModule;
|
|
67
|
-
proxyUrl?: string;
|
|
68
|
-
customAgentOptions?: http.AgentOptions | https.AgentOptions;
|
|
69
63
|
disableInternalRetries?: boolean;
|
|
70
64
|
protocolMode?: ProtocolMode;
|
|
71
65
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Configuration.d.ts","sourceRoot":"","sources":["../../../src/config/Configuration.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Configuration.d.ts","sourceRoot":"","sources":["../../../src/config/Configuration.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,aAAa,EACb,cAAc,EAEd,YAAY,EACZ,YAAY,EAEZ,iBAAiB,EACjB,oBAAoB,EACpB,mBAAmB,EACnB,uBAAuB,EAE1B,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAG3D;;;;;;;;GAQG;AACH,MAAM,MAAM,eAAe,GAAG;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,GAAG,uBAAuB,CAAC;IACnD,iBAAiB,CAAC,EAAE;QAChB;;;WAGG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,UAAU,EAAE,MAAM,CAAC;QACnB,GAAG,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,gBAAgB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kBAAkB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACnC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;CACzC,CAAC;AAEF;;;;;GAK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KAAK,EAAE,YAAY,CAAC;IACpB,MAAM,EAAE,QAAQ,CAAC,iBAAiB,CAAC,CAAC;IACpC,SAAS,EAAE,QAAQ,CAAC,oBAAoB,CAAC,CAAC;CAC7C,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,qBAAqB,CAAC,EAClC,IAAI,EACJ,MAAM,EACN,KAAK,EACL,MAAM,EACN,SAAS,GACZ,EAAE,aAAa,GAAG,iBAAiB,CAwBnC;AAED,gBAAgB;AAChB,MAAM,MAAM,gCAAgC,GAAG;IAC3C,kBAAkB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACnC,sBAAsB,EAAE,OAAO,CAAC;IAChC,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,MAAM,EAAE,QAAQ,CACZ,IAAI,CAAC,iBAAiB,EAAE,eAAe,GAAG,eAAe,CAAC,CAC7D,CAAC;CACL,CAAC;AAEF,wBAAgB,iCAAiC,CAAC,EAC9C,kBAAkB,EAClB,uBAAuB,EACvB,MAAM,GACT,EAAE,4BAA4B,GAAG,gCAAgC,CA0BjE"}
|
|
@@ -35,6 +35,10 @@ export declare const NodeAuthErrorMessage: {
|
|
|
35
35
|
code: string;
|
|
36
36
|
desc: string;
|
|
37
37
|
};
|
|
38
|
+
redirectUriNotSupported: {
|
|
39
|
+
code: string;
|
|
40
|
+
desc: string;
|
|
41
|
+
};
|
|
38
42
|
};
|
|
39
43
|
export declare class NodeAuthError extends AuthError {
|
|
40
44
|
constructor(errorCode: string, errorMessage?: string);
|
|
@@ -70,5 +74,9 @@ export declare class NodeAuthError extends AuthError {
|
|
|
70
74
|
* Creates an error thrown when client certificate was provided, but neither the SHA-1 or SHA-256 thumbprints were provided
|
|
71
75
|
*/
|
|
72
76
|
static createThumbprintMissingError(): NodeAuthError;
|
|
77
|
+
/**
|
|
78
|
+
* Creates an error thrown when redirectUri is provided in an unsupported scenario
|
|
79
|
+
*/
|
|
80
|
+
static createRedirectUriNotSupportedError(): NodeAuthError;
|
|
73
81
|
}
|
|
74
82
|
//# sourceMappingURL=NodeAuthError.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NodeAuthError.d.ts","sourceRoot":"","sources":["../../../src/error/NodeAuthError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"NodeAuthError.d.ts","sourceRoot":"","sources":["../../../src/error/NodeAuthError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqChC,CAAC;AAEF,qBAAa,aAAc,SAAQ,SAAS;gBAC5B,SAAS,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM;IAKpD;;OAEG;IACH,MAAM,CAAC,qCAAqC,IAAI,aAAa;IAO7D;;OAEG;IACH,MAAM,CAAC,kCAAkC,IAAI,aAAa;IAO1D;;OAEG;IACH,MAAM,CAAC,+BAA+B,IAAI,aAAa;IAOvD;;OAEG;IACH,MAAM,CAAC,iCAAiC,IAAI,aAAa;IAOzD;;OAEG;IACH,MAAM,CAAC,sCAAsC,IAAI,aAAa;IAO9D;;OAEG;IACH,MAAM,CAAC,gCAAgC,IAAI,aAAa;IAOxD;;OAEG;IACH,MAAM,CAAC,wBAAwB,IAAI,aAAa;IAOhD;;OAEG;IACH,MAAM,CAAC,4BAA4B,IAAI,aAAa;IAOpD;;OAEG;IACH,MAAM,CAAC,kCAAkC,IAAI,aAAa;CAM7D"}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -16,19 +16,13 @@ export { IPartitionManager } from "./cache/distributed/IPartitionManager.js";
|
|
|
16
16
|
export { ILoopbackClient } from "./network/ILoopbackClient.js";
|
|
17
17
|
export { PublicClientApplication } from "./client/PublicClientApplication.js";
|
|
18
18
|
export { ConfidentialClientApplication } from "./client/ConfidentialClientApplication.js";
|
|
19
|
-
export { ClientApplication } from "./client/ClientApplication.js";
|
|
20
|
-
export { ClientCredentialClient } from "./client/ClientCredentialClient.js";
|
|
21
|
-
export { DeviceCodeClient } from "./client/DeviceCodeClient.js";
|
|
22
|
-
export { OnBehalfOfClient } from "./client/OnBehalfOfClient.js";
|
|
23
19
|
export { ManagedIdentityApplication } from "./client/ManagedIdentityApplication.js";
|
|
24
|
-
export { UsernamePasswordClient } from "./client/UsernamePasswordClient.js";
|
|
25
20
|
export { Configuration, ManagedIdentityConfiguration, ManagedIdentityIdParams, NodeAuthOptions, NodeSystemOptions, BrokerOptions, NodeTelemetryOptions, CacheOptions, } from "./config/Configuration.js";
|
|
26
21
|
export { ClientAssertion } from "./client/ClientAssertion.js";
|
|
27
22
|
export { TokenCache } from "./cache/TokenCache.js";
|
|
28
23
|
export { CacheKVStore, JsonCache, InMemoryCache, SerializedAccountEntity, SerializedIdTokenEntity, SerializedAccessTokenEntity, SerializedAppMetadataEntity, SerializedRefreshTokenEntity, } from "./cache/serializer/SerializerTypes.js";
|
|
29
24
|
export { DistributedCachePlugin } from "./cache/distributed/DistributedCachePlugin.js";
|
|
30
25
|
export { ManagedIdentitySourceNames } from "./utils/Constants.js";
|
|
31
|
-
export { CryptoProvider } from "./crypto/CryptoProvider.js";
|
|
32
26
|
export type { AuthorizationCodeRequest } from "./request/AuthorizationCodeRequest.js";
|
|
33
27
|
export type { AuthorizationUrlRequest } from "./request/AuthorizationUrlRequest.js";
|
|
34
28
|
export type { ClientCredentialRequest } from "./request/ClientCredentialRequest.js";
|
package/lib/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAKA;;;GAGG;AAEH;;;GAGG;AACH,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAE5C,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d,eAAe,EACf,oBAAoB,EACpB,wBAAwB,EACxB,6BAA6B,EAC7B,4BAA4B,EAC5B,iCAAiC,EACjC,WAAW,EAEX,cAAc,EACd,qBAAqB,EACrB,eAAe,EAEf,MAAM,EACN,QAAQ,EAER,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,uBAAuB,EAEvB,kBAAkB,EAClB,iBAAiB,EAEjB,iBAAiB,EACjB,0BAA0B,EAC1B,sBAAsB,EACtB,mBAAmB,EACnB,uBAAuB,GAC1B,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,26 +1,66 @@
|
|
|
1
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
3
1
|
import { INetworkModule, NetworkRequestOptions, NetworkResponse } from "@azure/msal-common/node";
|
|
4
|
-
import http from "http";
|
|
5
|
-
import https from "https";
|
|
6
2
|
/**
|
|
7
|
-
*
|
|
3
|
+
* HTTP client implementation using Node.js native fetch API.
|
|
4
|
+
*
|
|
5
|
+
* This class provides a clean interface for making HTTP requests using the modern
|
|
6
|
+
* fetch API available in Node.js 18+. It replaces the previous implementation that
|
|
7
|
+
* relied on custom proxy handling and the legacy http/https modules.
|
|
8
8
|
*/
|
|
9
9
|
export declare class HttpClient implements INetworkModule {
|
|
10
|
-
private proxyUrl;
|
|
11
|
-
private customAgentOptions;
|
|
12
|
-
constructor(proxyUrl?: string, customAgentOptions?: http.AgentOptions | https.AgentOptions);
|
|
13
10
|
/**
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
11
|
+
* Sends an HTTP GET request to the specified URL.
|
|
12
|
+
*
|
|
13
|
+
* This method handles GET requests with optional timeout support. The timeout
|
|
14
|
+
* is implemented using AbortController, which provides a clean way to cancel
|
|
15
|
+
* fetch requests that take too long to complete.
|
|
16
|
+
*
|
|
17
|
+
* @param url - The target URL for the GET request
|
|
18
|
+
* @param options - Optional request configuration including headers
|
|
19
|
+
* @param timeout - Optional timeout in milliseconds. If specified, the request
|
|
20
|
+
* will be aborted if it doesn't complete within this time
|
|
21
|
+
* @returns Promise that resolves to a NetworkResponse containing headers, body, and status
|
|
22
|
+
* @throws {AuthError} When the request times out or response parsing fails
|
|
23
|
+
* @throws {NetworkError} When the network request fails
|
|
17
24
|
*/
|
|
18
25
|
sendGetRequestAsync<T>(url: string, options?: NetworkRequestOptions, timeout?: number): Promise<NetworkResponse<T>>;
|
|
19
26
|
/**
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
27
|
+
* Sends an HTTP POST request to the specified URL.
|
|
28
|
+
*
|
|
29
|
+
* This method handles POST requests with request body support. Currently,
|
|
30
|
+
* timeout functionality is not exposed for POST requests, but the underlying
|
|
31
|
+
* implementation supports it through the shared sendRequest method.
|
|
32
|
+
*
|
|
33
|
+
* @param url - The target URL for the POST request
|
|
34
|
+
* @param options - Optional request configuration including headers and body
|
|
35
|
+
* @returns Promise that resolves to a NetworkResponse containing headers, body, and status
|
|
36
|
+
* @throws {AuthError} When the request times out or response parsing fails
|
|
37
|
+
* @throws {NetworkError} When the network request fails
|
|
23
38
|
*/
|
|
24
39
|
sendPostRequestAsync<T>(url: string, options?: NetworkRequestOptions): Promise<NetworkResponse<T>>;
|
|
40
|
+
/**
|
|
41
|
+
* Core HTTP request implementation using native fetch API.
|
|
42
|
+
*
|
|
43
|
+
* This method handles GET and POST HTTP requests with comprehensive
|
|
44
|
+
* timeout support and error handling. The timeout mechanism works as follows:
|
|
45
|
+
*
|
|
46
|
+
* 1. An AbortController is created for each request
|
|
47
|
+
* 2. If a timeout is specified, setTimeout is used to call abort() after the delay
|
|
48
|
+
* 3. The abort signal is passed to fetch, which will reject the promise if aborted
|
|
49
|
+
* 4. Cleanup occurs in both success and error cases to prevent timer leaks
|
|
50
|
+
*
|
|
51
|
+
* Error handling priority:
|
|
52
|
+
* 1. Timeout errors (AbortError) are converted to "Request timeout" messages
|
|
53
|
+
* 2. Network/connection errors are wrapped with "Network request failed" prefix
|
|
54
|
+
* 3. JSON parsing errors are wrapped with "Failed to parse response" prefix
|
|
55
|
+
*
|
|
56
|
+
* @param url - The target URL for the request
|
|
57
|
+
* @param method - HTTP method (GET or POST)
|
|
58
|
+
* @param options - Optional request configuration (headers, body)
|
|
59
|
+
* @param timeout - Optional timeout in milliseconds for request cancellation
|
|
60
|
+
* @returns Promise resolving to NetworkResponse with parsed JSON body
|
|
61
|
+
* @throws {AuthError} For timeouts or JSON parsing errors
|
|
62
|
+
* @throws {NetworkError} For network failures
|
|
63
|
+
*/
|
|
64
|
+
private sendRequest;
|
|
25
65
|
}
|
|
26
66
|
//# sourceMappingURL=HttpClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpClient.d.ts","sourceRoot":"","sources":["../../../src/network/HttpClient.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HttpClient.d.ts","sourceRoot":"","sources":["../../../src/network/HttpClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAGH,cAAc,EACd,qBAAqB,EACrB,eAAe,EAGlB,MAAM,yBAAyB,CAAC;AAGjC;;;;;;GAMG;AACH,qBAAa,UAAW,YAAW,cAAc;IAC7C;;;;;;;;;;;;;;OAcG;IACG,mBAAmB,CAAC,CAAC,EACvB,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,qBAAqB,EAC/B,OAAO,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;IAI9B;;;;;;;;;;;;OAYG;IACG,oBAAoB,CAAC,CAAC,EACxB,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,qBAAqB,GAChC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;IAI9B;;;;;;;;;;;;;;;;;;;;;;;OAuBG;YACW,WAAW;CAoF5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packageMetadata.d.ts","sourceRoot":"","sources":["../../src/packageMetadata.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,IAAI,qBAAqB,CAAC;AACvC,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"packageMetadata.d.ts","sourceRoot":"","sources":["../../src/packageMetadata.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,IAAI,qBAAqB,CAAC;AACvC,eAAO,MAAM,OAAO,iBAAiB,CAAC"}
|
|
@@ -7,7 +7,8 @@ import { CommonAuthorizationCodeRequest } from "@azure/msal-common/node";
|
|
|
7
7
|
* - authority: - URL of the authority, the security token service (STS) from which MSAL will acquire tokens. If authority is set on client application object, this will override that value. Overriding the value will cause for authority validation to happen each time. If the same authority will be used for all request, set on the application object instead of the requests.
|
|
8
8
|
* - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
|
|
9
9
|
* - redirectUri - The redirect URI of your app, where the authority will redirect to after the user inputs credentials and consents. It must exactly match one of the redirect URIs you registered in the portal.
|
|
10
|
-
* -
|
|
10
|
+
* - extraQueryParameters - String to string map of custom query parameters added to outgoing token service requests
|
|
11
|
+
* - extraParameters - String to string map of custom query parameters added to outgoing token service requests
|
|
11
12
|
* - code - The authorization_code that the user acquired in the first leg of the flow.
|
|
12
13
|
* - codeVerifier - The same code_verifier that was used to obtain the authorization_code. Required if PKCE was used in the authorization code grant request.For more information, see the PKCE RFC: https://tools.ietf.org/html/rfc7636
|
|
13
14
|
* - state - 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.
|
|
@@ -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
|
|
1
|
+
{"version":3,"file":"AuthorizationCodeRequest.d.ts","sourceRoot":"","sources":["../../../src/request/AuthorizationCodeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,8BAA8B,EAAE,MAAM,yBAAyB,CAAC;AAEzE;;;;;;;;;;;;;;GAcG;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,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
|
@@ -22,8 +22,8 @@ import { CommonAuthorizationUrlRequest } from "@azure/msal-common/node";
|
|
|
22
22
|
* - loginHint - Can be used to pre-fill the username/email address field of the sign-in page for the user, if you know the username/email address ahead of time. Often apps use this parameter during re-authentication, having already extracted the username from a previous sign-in using the preferred_username claim.
|
|
23
23
|
* - sid - Session ID, unique identifier for the session. Available as an optional claim on ID tokens.
|
|
24
24
|
* - domainHint - Provides a hint about the tenant or domain that the user should use to sign in. The value of the domain hint is a registered domain for the tenant.
|
|
25
|
-
* - extraQueryParameters - String to string map of custom query parameters added to
|
|
26
|
-
* -
|
|
25
|
+
* - extraQueryParameters - String to string map of custom query parameters added to outgoing token service requests
|
|
26
|
+
* - extraParameters - String to string map of custom query parameters added to outgoing token service requests
|
|
27
27
|
* - nonce - A value included in the request that is returned in the id token. A randomly generated unique value is typically used to mitigate replay attacks.
|
|
28
28
|
* @public
|
|
29
29
|
*/
|
|
@@ -7,7 +7,6 @@ import { CommonClientCredentialRequest } from "./CommonClientCredentialRequest.j
|
|
|
7
7
|
* - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
|
|
8
8
|
* - skipCache - Skip token cache lookup and force request to authority to get a a new token. Defaults to false.
|
|
9
9
|
* - clientAssertion - An assertion string or a callback function that returns an assertion string (both are Base64Url-encoded signed JWTs) used in the Client Credential flow
|
|
10
|
-
* - tokenQueryParameters - String to string map of custom query parameters added to the /token call
|
|
11
10
|
* @public
|
|
12
11
|
*/
|
|
13
12
|
export type ClientCredentialRequest = Partial<Omit<CommonClientCredentialRequest, "resourceRequestMethod" | "resourceRequestUri" | "clientAssertion" | "storeInCache">> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientCredentialRequest.d.ts","sourceRoot":"","sources":["../../../src/request/ClientCredentialRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAEnF
|
|
1
|
+
{"version":3,"file":"ClientCredentialRequest.d.ts","sourceRoot":"","sources":["../../../src/request/ClientCredentialRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAEnF;;;;;;;;GAQG;AACH,MAAM,MAAM,uBAAuB,GAAG,OAAO,CACzC,IAAI,CACA,6BAA6B,EAC3B,uBAAuB,GACvB,oBAAoB,GACpB,iBAAiB,GACjB,cAAc,CACnB,CACJ,GAAG;IACA,eAAe,CAAC,EAAE,MAAM,GAAG,uBAAuB,CAAC;CACtD,CAAC"}
|
|
@@ -6,9 +6,10 @@ import { BaseAuthRequest, AzureRegion, ClientAssertion } from "@azure/msal-commo
|
|
|
6
6
|
* - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
|
|
7
7
|
* - skipCache - Skip token cache lookup and force request to authority to get a a new token. Defaults to false.
|
|
8
8
|
* - preferredAzureRegionOptions - Options of the user's preferred azure region
|
|
9
|
-
* -
|
|
9
|
+
* - clientAssertion - An assertion string or a callback function that returns an assertion string (both are Base64Url-encoded signed JWTs) used in the Client Credential flow
|
|
10
|
+
* - azureRegion - Azure region to be used for regional authentication
|
|
10
11
|
*/
|
|
11
|
-
export type CommonClientCredentialRequest = BaseAuthRequest & {
|
|
12
|
+
export type CommonClientCredentialRequest = Omit<BaseAuthRequest, "extraQueryParameters" | "extraParameters"> & {
|
|
12
13
|
skipCache?: boolean;
|
|
13
14
|
azureRegion?: AzureRegion;
|
|
14
15
|
clientAssertion?: ClientAssertion;
|
|
@@ -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
|
|
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;;;;;;;;;GASG;AACH,MAAM,MAAM,6BAA6B,GAAG,IAAI,CAC5C,eAAe,EACf,sBAAsB,GAAG,iBAAiB,CAC7C,GAAG;IACA,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,eAAe,CAAC,EAAE,eAAe,CAAC;CACrC,CAAC"}
|
|
@@ -9,9 +9,10 @@ import { DeviceCodeResponse, StringDict, BaseAuthRequest } from "@azure/msal-com
|
|
|
9
9
|
* - resourceRequestMethod - HTTP Request type used to request data from the resource (i.e. "GET", "POST", etc.). Used for proof-of-possession flows.
|
|
10
10
|
* - resourceRequestUri - URI that token will be used for. Used for proof-of-possession flows.
|
|
11
11
|
* - timeout - Timeout period in seconds which the user explicitly configures for the polling of the device code endpoint. At the end of this period; assuming the device code has not expired yet; the device code polling is stopped and the request cancelled. The device code expiration window will always take precedence over this set period.
|
|
12
|
-
* - extraQueryParameters - String to string map of custom query parameters added to
|
|
12
|
+
* - extraQueryParameters - String to string map of custom query parameters added to outgoing token service requests
|
|
13
|
+
* - extraParameters - String to string map of custom query parameters added to outgoing token service requests
|
|
13
14
|
*/
|
|
14
|
-
export type CommonDeviceCodeRequest =
|
|
15
|
+
export type CommonDeviceCodeRequest = BaseAuthRequest & {
|
|
15
16
|
deviceCodeCallback: (response: DeviceCodeResponse) => void;
|
|
16
17
|
cancel?: boolean;
|
|
17
18
|
timeout?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommonDeviceCodeRequest.d.ts","sourceRoot":"","sources":["../../../src/request/CommonDeviceCodeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,kBAAkB,EAClB,UAAU,EACV,eAAe,EAClB,MAAM,yBAAyB,CAAC;AAEjC
|
|
1
|
+
{"version":3,"file":"CommonDeviceCodeRequest.d.ts","sourceRoot":"","sources":["../../../src/request/CommonDeviceCodeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,kBAAkB,EAClB,UAAU,EACV,eAAe,EAClB,MAAM,yBAAyB,CAAC;AAEjC;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,uBAAuB,GAAG,eAAe,GAAG;IACpD,kBAAkB,EAAE,CAAC,QAAQ,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC3D,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oBAAoB,CAAC,EAAE,UAAU,CAAC;CACrC,CAAC"}
|
|
@@ -5,9 +5,8 @@ import { BaseAuthRequest } from "@azure/msal-common/node";
|
|
|
5
5
|
* - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
|
|
6
6
|
* - oboAssertion - The access token that was sent to the middle-tier API. This token must have an audience of the app making this OBO request.
|
|
7
7
|
* - skipCache - Skip token cache lookup and force request to authority to get a a new token. Defaults to false.
|
|
8
|
-
* - tokenQueryParameters - String to string map of custom query parameters added to the /token call
|
|
9
8
|
*/
|
|
10
|
-
export type CommonOnBehalfOfRequest = BaseAuthRequest & {
|
|
9
|
+
export type CommonOnBehalfOfRequest = Omit<BaseAuthRequest, "extraQueryParameters" | "extraParameters"> & {
|
|
11
10
|
oboAssertion: string;
|
|
12
11
|
skipCache?: boolean;
|
|
13
12
|
};
|
|
@@ -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
|
|
1
|
+
{"version":3,"file":"CommonOnBehalfOfRequest.d.ts","sourceRoot":"","sources":["../../../src/request/CommonOnBehalfOfRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D;;;;;;GAMG;AACH,MAAM,MAAM,uBAAuB,GAAG,IAAI,CACtC,eAAe,EACf,sBAAsB,GAAG,iBAAiB,CAC7C,GAAG;IACA,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC"}
|
|
@@ -9,7 +9,8 @@ import { BaseAuthRequest } from "@azure/msal-common/node";
|
|
|
9
9
|
* - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
|
|
10
10
|
* - username - username of the client
|
|
11
11
|
* - password - credentials
|
|
12
|
-
* -
|
|
12
|
+
* - extraQueryParameters - String to string map of custom query parameters added to outgoing token service requests
|
|
13
|
+
* - extraParameters - String to string map of custom query parameters added to outgoing token service requests
|
|
13
14
|
*/
|
|
14
15
|
export type CommonUsernamePasswordRequest = BaseAuthRequest & {
|
|
15
16
|
username: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommonUsernamePasswordRequest.d.ts","sourceRoot":"","sources":["../../../src/request/CommonUsernamePasswordRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D
|
|
1
|
+
{"version":3,"file":"CommonUsernamePasswordRequest.d.ts","sourceRoot":"","sources":["../../../src/request/CommonUsernamePasswordRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,6BAA6B,GAAG,eAAe,GAAG;IAC1D,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC"}
|
|
@@ -13,7 +13,7 @@ import { ILoopbackClient } from "../network/ILoopbackClient.js";
|
|
|
13
13
|
* - loopbackClient - Custom implementation for a loopback server to listen for authorization code response.
|
|
14
14
|
* @public
|
|
15
15
|
*/
|
|
16
|
-
export type InteractiveRequest = Partial<Omit<CommonAuthorizationUrlRequest, "scopes" | "
|
|
16
|
+
export type InteractiveRequest = Partial<Omit<CommonAuthorizationUrlRequest, "scopes" | "storeInCache">> & {
|
|
17
17
|
openBrowser: (url: string) => Promise<void>;
|
|
18
18
|
scopes?: Array<string>;
|
|
19
19
|
successTemplate?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InteractiveRequest.d.ts","sourceRoot":"","sources":["../../../src/request/InteractiveRequest.ts"],"names":[],"mappings":";;AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE;;;;;;;;;;GAUG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,CACpC,IAAI,
|
|
1
|
+
{"version":3,"file":"InteractiveRequest.d.ts","sourceRoot":"","sources":["../../../src/request/InteractiveRequest.ts"],"names":[],"mappings":";;AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE;;;;;;;;;;GAUG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,CACpC,IAAI,CAAC,6BAA6B,EAAE,QAAQ,GAAG,cAAc,CAAC,CACjE,GAAG;IACA,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,eAAe,CAAC;CACpC,CAAC"}
|
|
@@ -5,7 +5,6 @@ import { CommonOnBehalfOfRequest } from "./CommonOnBehalfOfRequest.js";
|
|
|
5
5
|
* - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
|
|
6
6
|
* - oboAssertion - The access token that was sent to the middle-tier API. This token must have an audience of the app making this OBO request.
|
|
7
7
|
* - skipCache - Skip token cache lookup and force request to authority to get a a new token. Defaults to false.
|
|
8
|
-
* - tokenQueryParameters - String to string map of custom query parameters added to the /token call
|
|
9
8
|
* @public
|
|
10
9
|
*/
|
|
11
10
|
export type OnBehalfOfRequest = Partial<Omit<CommonOnBehalfOfRequest, "oboAssertion" | "scopes" | "resourceRequestMethod" | "resourceRequestUri" | "storeInCache">> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OnBehalfOfRequest.d.ts","sourceRoot":"","sources":["../../../src/request/OnBehalfOfRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE
|
|
1
|
+
{"version":3,"file":"OnBehalfOfRequest.d.ts","sourceRoot":"","sources":["../../../src/request/OnBehalfOfRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE;;;;;;;GAOG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,CACnC,IAAI,CACA,uBAAuB,EACrB,cAAc,GACd,QAAQ,GACR,uBAAuB,GACvB,oBAAoB,GACpB,cAAc,CACnB,CACJ,GAAG;IACA,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzB,CAAC"}
|