@azure/msal-node 5.0.0-alpha.0 → 5.0.1

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.
Files changed (269) hide show
  1. package/dist/cache/CacheHelpers.mjs +1 -1
  2. package/dist/cache/NodeStorage.mjs +1 -1
  3. package/dist/cache/NodeStorage.mjs.map +1 -1
  4. package/dist/cache/TokenCache.mjs +1 -1
  5. package/dist/cache/TokenCache.mjs.map +1 -1
  6. package/dist/cache/distributed/DistributedCachePlugin.mjs +1 -1
  7. package/dist/cache/distributed/DistributedCachePlugin.mjs.map +1 -1
  8. package/dist/cache/serializer/Deserializer.mjs +1 -1
  9. package/dist/cache/serializer/Deserializer.mjs.map +1 -1
  10. package/dist/cache/serializer/Serializer.mjs +1 -1
  11. package/dist/cache/serializer/Serializer.mjs.map +1 -1
  12. package/dist/client/BaseClient.d.ts +42 -0
  13. package/dist/client/BaseClient.d.ts.map +1 -0
  14. package/dist/client/BaseClient.mjs +68 -0
  15. package/dist/client/BaseClient.mjs.map +1 -0
  16. package/dist/client/ClientApplication.mjs +1 -1
  17. package/dist/client/ClientApplication.mjs.map +1 -1
  18. package/dist/client/ClientAssertion.mjs +1 -1
  19. package/dist/client/ClientAssertion.mjs.map +1 -1
  20. package/dist/client/ClientCredentialClient.d.ts +2 -1
  21. package/dist/client/ClientCredentialClient.d.ts.map +1 -1
  22. package/dist/client/ClientCredentialClient.mjs +4 -3
  23. package/dist/client/ClientCredentialClient.mjs.map +1 -1
  24. package/dist/client/ConfidentialClientApplication.mjs +1 -1
  25. package/dist/client/ConfidentialClientApplication.mjs.map +1 -1
  26. package/dist/client/DeviceCodeClient.d.ts +2 -1
  27. package/dist/client/DeviceCodeClient.d.ts.map +1 -1
  28. package/dist/client/DeviceCodeClient.mjs +6 -5
  29. package/dist/client/DeviceCodeClient.mjs.map +1 -1
  30. package/dist/client/ManagedIdentityApplication.mjs +1 -1
  31. package/dist/client/ManagedIdentityApplication.mjs.map +1 -1
  32. package/dist/client/ManagedIdentityClient.mjs +1 -1
  33. package/dist/client/ManagedIdentityClient.mjs.map +1 -1
  34. package/dist/client/ManagedIdentitySources/AppService.d.ts +54 -0
  35. package/dist/client/ManagedIdentitySources/AppService.d.ts.map +1 -1
  36. package/dist/client/ManagedIdentitySources/AppService.mjs +55 -1
  37. package/dist/client/ManagedIdentitySources/AppService.mjs.map +1 -1
  38. package/dist/client/ManagedIdentitySources/AzureArc.d.ts +81 -0
  39. package/dist/client/ManagedIdentitySources/AzureArc.d.ts.map +1 -1
  40. package/dist/client/ManagedIdentitySources/AzureArc.mjs +82 -1
  41. package/dist/client/ManagedIdentitySources/AzureArc.mjs.map +1 -1
  42. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts +93 -2
  43. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +1 -1
  44. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs +81 -1
  45. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs.map +1 -1
  46. package/dist/client/ManagedIdentitySources/CloudShell.d.ts +54 -0
  47. package/dist/client/ManagedIdentitySources/CloudShell.d.ts.map +1 -1
  48. package/dist/client/ManagedIdentitySources/CloudShell.mjs +55 -1
  49. package/dist/client/ManagedIdentitySources/CloudShell.mjs.map +1 -1
  50. package/dist/client/ManagedIdentitySources/Imds.d.ts +44 -22
  51. package/dist/client/ManagedIdentitySources/Imds.d.ts.map +1 -1
  52. package/dist/client/ManagedIdentitySources/Imds.mjs +44 -22
  53. package/dist/client/ManagedIdentitySources/Imds.mjs.map +1 -1
  54. package/dist/client/ManagedIdentitySources/MachineLearning.d.ts +65 -0
  55. package/dist/client/ManagedIdentitySources/MachineLearning.d.ts.map +1 -1
  56. package/dist/client/ManagedIdentitySources/MachineLearning.mjs +66 -1
  57. package/dist/client/ManagedIdentitySources/MachineLearning.mjs.map +1 -1
  58. package/dist/client/ManagedIdentitySources/ServiceFabric.d.ts +56 -22
  59. package/dist/client/ManagedIdentitySources/ServiceFabric.d.ts.map +1 -1
  60. package/dist/client/ManagedIdentitySources/ServiceFabric.mjs +57 -23
  61. package/dist/client/ManagedIdentitySources/ServiceFabric.mjs.map +1 -1
  62. package/dist/client/OnBehalfOfClient.d.ts +2 -1
  63. package/dist/client/OnBehalfOfClient.d.ts.map +1 -1
  64. package/dist/client/OnBehalfOfClient.mjs +4 -3
  65. package/dist/client/OnBehalfOfClient.mjs.map +1 -1
  66. package/dist/client/PublicClientApplication.d.ts.map +1 -1
  67. package/dist/client/PublicClientApplication.mjs +21 -5
  68. package/dist/client/PublicClientApplication.mjs.map +1 -1
  69. package/dist/client/UsernamePasswordClient.d.ts +2 -1
  70. package/dist/client/UsernamePasswordClient.d.ts.map +1 -1
  71. package/dist/client/UsernamePasswordClient.mjs +4 -3
  72. package/dist/client/UsernamePasswordClient.mjs.map +1 -1
  73. package/dist/config/Configuration.d.ts +0 -6
  74. package/dist/config/Configuration.d.ts.map +1 -1
  75. package/dist/config/Configuration.mjs +3 -5
  76. package/dist/config/Configuration.mjs.map +1 -1
  77. package/dist/config/ManagedIdentityId.mjs +1 -1
  78. package/dist/config/ManagedIdentityId.mjs.map +1 -1
  79. package/dist/config/ManagedIdentityRequestParameters.mjs +3 -3
  80. package/dist/config/ManagedIdentityRequestParameters.mjs.map +1 -1
  81. package/dist/crypto/CryptoProvider.mjs +1 -1
  82. package/dist/crypto/CryptoProvider.mjs.map +1 -1
  83. package/dist/crypto/GuidGenerator.mjs +1 -1
  84. package/dist/crypto/GuidGenerator.mjs.map +1 -1
  85. package/dist/crypto/HashUtils.mjs +1 -1
  86. package/dist/crypto/HashUtils.mjs.map +1 -1
  87. package/dist/crypto/PkceGenerator.mjs +1 -1
  88. package/dist/crypto/PkceGenerator.mjs.map +1 -1
  89. package/dist/error/ClientAuthErrorCodes.mjs +1 -1
  90. package/dist/error/ManagedIdentityError.mjs +1 -1
  91. package/dist/error/ManagedIdentityError.mjs.map +1 -1
  92. package/dist/error/ManagedIdentityErrorCodes.mjs +1 -1
  93. package/dist/error/ManagedIdentityErrorCodes.mjs.map +1 -1
  94. package/dist/error/NodeAuthError.d.ts +8 -0
  95. package/dist/error/NodeAuthError.d.ts.map +1 -1
  96. package/dist/error/NodeAuthError.mjs +11 -1
  97. package/dist/error/NodeAuthError.mjs.map +1 -1
  98. package/dist/index.d.ts +0 -6
  99. package/dist/index.d.ts.map +1 -1
  100. package/dist/index.mjs +1 -7
  101. package/dist/index.mjs.map +1 -1
  102. package/dist/internals.mjs +1 -1
  103. package/dist/network/HttpClient.d.ts +54 -14
  104. package/dist/network/HttpClient.d.ts.map +1 -1
  105. package/dist/network/HttpClient.mjs +140 -262
  106. package/dist/network/HttpClient.mjs.map +1 -1
  107. package/dist/network/HttpClientWithRetries.mjs +1 -1
  108. package/dist/network/HttpClientWithRetries.mjs.map +1 -1
  109. package/dist/network/LoopbackClient.mjs +1 -1
  110. package/dist/network/LoopbackClient.mjs.map +1 -1
  111. package/dist/packageMetadata.d.ts +1 -1
  112. package/dist/packageMetadata.d.ts.map +1 -1
  113. package/dist/packageMetadata.mjs +2 -2
  114. package/dist/protocol/Authorize.mjs +2 -2
  115. package/dist/protocol/Authorize.mjs.map +1 -1
  116. package/dist/request/AuthorizationCodeRequest.d.ts +12 -10
  117. package/dist/request/AuthorizationCodeRequest.d.ts.map +1 -1
  118. package/dist/request/AuthorizationUrlRequest.d.ts +6 -24
  119. package/dist/request/AuthorizationUrlRequest.d.ts.map +1 -1
  120. package/dist/request/ClientCredentialRequest.d.ts +3 -6
  121. package/dist/request/ClientCredentialRequest.d.ts.map +1 -1
  122. package/dist/request/CommonClientCredentialRequest.d.ts +10 -7
  123. package/dist/request/CommonClientCredentialRequest.d.ts.map +1 -1
  124. package/dist/request/CommonDeviceCodeRequest.d.ts +13 -10
  125. package/dist/request/CommonDeviceCodeRequest.d.ts.map +1 -1
  126. package/dist/request/CommonOnBehalfOfRequest.d.ts +8 -7
  127. package/dist/request/CommonOnBehalfOfRequest.d.ts.map +1 -1
  128. package/dist/request/CommonUsernamePasswordRequest.d.ts +6 -8
  129. package/dist/request/CommonUsernamePasswordRequest.d.ts.map +1 -1
  130. package/dist/request/DeviceCodeRequest.d.ts +6 -6
  131. package/dist/request/DeviceCodeRequest.d.ts.map +1 -1
  132. package/dist/request/InteractiveRequest.d.ts +19 -8
  133. package/dist/request/InteractiveRequest.d.ts.map +1 -1
  134. package/dist/request/ManagedIdentityRequest.d.ts +6 -2
  135. package/dist/request/ManagedIdentityRequest.d.ts.map +1 -1
  136. package/dist/request/ManagedIdentityRequestParams.d.ts +9 -3
  137. package/dist/request/ManagedIdentityRequestParams.d.ts.map +1 -1
  138. package/dist/request/OnBehalfOfRequest.d.ts +7 -6
  139. package/dist/request/OnBehalfOfRequest.d.ts.map +1 -1
  140. package/dist/request/RefreshTokenRequest.d.ts +9 -7
  141. package/dist/request/RefreshTokenRequest.d.ts.map +1 -1
  142. package/dist/request/SilentFlowRequest.d.ts +6 -7
  143. package/dist/request/SilentFlowRequest.d.ts.map +1 -1
  144. package/dist/request/UsernamePasswordRequest.d.ts +9 -8
  145. package/dist/request/UsernamePasswordRequest.d.ts.map +1 -1
  146. package/dist/retry/DefaultManagedIdentityRetryPolicy.mjs +1 -1
  147. package/dist/retry/DefaultManagedIdentityRetryPolicy.mjs.map +1 -1
  148. package/dist/retry/ExponentialRetryStrategy.mjs +1 -1
  149. package/dist/retry/ExponentialRetryStrategy.mjs.map +1 -1
  150. package/dist/retry/ImdsRetryPolicy.mjs +1 -1
  151. package/dist/retry/ImdsRetryPolicy.mjs.map +1 -1
  152. package/dist/retry/LinearRetryStrategy.mjs +1 -1
  153. package/dist/retry/LinearRetryStrategy.mjs.map +1 -1
  154. package/dist/utils/Constants.d.ts +2 -9
  155. package/dist/utils/Constants.d.ts.map +1 -1
  156. package/dist/utils/Constants.mjs +4 -12
  157. package/dist/utils/Constants.mjs.map +1 -1
  158. package/dist/utils/EncodingUtils.mjs +1 -1
  159. package/dist/utils/EncodingUtils.mjs.map +1 -1
  160. package/dist/utils/TimeUtils.mjs +1 -1
  161. package/dist/utils/TimeUtils.mjs.map +1 -1
  162. package/lib/msal-node.cjs +5788 -5371
  163. package/lib/msal-node.cjs.map +1 -1
  164. package/lib/types/client/BaseClient.d.ts +42 -0
  165. package/lib/types/client/BaseClient.d.ts.map +1 -0
  166. package/lib/types/client/ClientCredentialClient.d.ts +2 -1
  167. package/lib/types/client/ClientCredentialClient.d.ts.map +1 -1
  168. package/lib/types/client/DeviceCodeClient.d.ts +2 -1
  169. package/lib/types/client/DeviceCodeClient.d.ts.map +1 -1
  170. package/lib/types/client/ManagedIdentitySources/AppService.d.ts +54 -0
  171. package/lib/types/client/ManagedIdentitySources/AppService.d.ts.map +1 -1
  172. package/lib/types/client/ManagedIdentitySources/AzureArc.d.ts +81 -0
  173. package/lib/types/client/ManagedIdentitySources/AzureArc.d.ts.map +1 -1
  174. package/lib/types/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts +93 -2
  175. package/lib/types/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +1 -1
  176. package/lib/types/client/ManagedIdentitySources/CloudShell.d.ts +54 -0
  177. package/lib/types/client/ManagedIdentitySources/CloudShell.d.ts.map +1 -1
  178. package/lib/types/client/ManagedIdentitySources/Imds.d.ts +44 -22
  179. package/lib/types/client/ManagedIdentitySources/Imds.d.ts.map +1 -1
  180. package/lib/types/client/ManagedIdentitySources/MachineLearning.d.ts +65 -0
  181. package/lib/types/client/ManagedIdentitySources/MachineLearning.d.ts.map +1 -1
  182. package/lib/types/client/ManagedIdentitySources/ServiceFabric.d.ts +56 -22
  183. package/lib/types/client/ManagedIdentitySources/ServiceFabric.d.ts.map +1 -1
  184. package/lib/types/client/OnBehalfOfClient.d.ts +2 -1
  185. package/lib/types/client/OnBehalfOfClient.d.ts.map +1 -1
  186. package/lib/types/client/PublicClientApplication.d.ts.map +1 -1
  187. package/lib/types/client/UsernamePasswordClient.d.ts +2 -1
  188. package/lib/types/client/UsernamePasswordClient.d.ts.map +1 -1
  189. package/lib/types/config/Configuration.d.ts +0 -6
  190. package/lib/types/config/Configuration.d.ts.map +1 -1
  191. package/lib/types/error/NodeAuthError.d.ts +8 -0
  192. package/lib/types/error/NodeAuthError.d.ts.map +1 -1
  193. package/lib/types/index.d.ts +0 -6
  194. package/lib/types/index.d.ts.map +1 -1
  195. package/lib/types/network/HttpClient.d.ts +54 -14
  196. package/lib/types/network/HttpClient.d.ts.map +1 -1
  197. package/lib/types/packageMetadata.d.ts +1 -1
  198. package/lib/types/packageMetadata.d.ts.map +1 -1
  199. package/lib/types/request/AuthorizationCodeRequest.d.ts +12 -10
  200. package/lib/types/request/AuthorizationCodeRequest.d.ts.map +1 -1
  201. package/lib/types/request/AuthorizationUrlRequest.d.ts +6 -24
  202. package/lib/types/request/AuthorizationUrlRequest.d.ts.map +1 -1
  203. package/lib/types/request/ClientCredentialRequest.d.ts +3 -6
  204. package/lib/types/request/ClientCredentialRequest.d.ts.map +1 -1
  205. package/lib/types/request/CommonClientCredentialRequest.d.ts +10 -7
  206. package/lib/types/request/CommonClientCredentialRequest.d.ts.map +1 -1
  207. package/lib/types/request/CommonDeviceCodeRequest.d.ts +13 -10
  208. package/lib/types/request/CommonDeviceCodeRequest.d.ts.map +1 -1
  209. package/lib/types/request/CommonOnBehalfOfRequest.d.ts +8 -7
  210. package/lib/types/request/CommonOnBehalfOfRequest.d.ts.map +1 -1
  211. package/lib/types/request/CommonUsernamePasswordRequest.d.ts +6 -8
  212. package/lib/types/request/CommonUsernamePasswordRequest.d.ts.map +1 -1
  213. package/lib/types/request/DeviceCodeRequest.d.ts +6 -6
  214. package/lib/types/request/DeviceCodeRequest.d.ts.map +1 -1
  215. package/lib/types/request/InteractiveRequest.d.ts +19 -8
  216. package/lib/types/request/InteractiveRequest.d.ts.map +1 -1
  217. package/lib/types/request/ManagedIdentityRequest.d.ts +6 -2
  218. package/lib/types/request/ManagedIdentityRequest.d.ts.map +1 -1
  219. package/lib/types/request/ManagedIdentityRequestParams.d.ts +9 -3
  220. package/lib/types/request/ManagedIdentityRequestParams.d.ts.map +1 -1
  221. package/lib/types/request/OnBehalfOfRequest.d.ts +7 -6
  222. package/lib/types/request/OnBehalfOfRequest.d.ts.map +1 -1
  223. package/lib/types/request/RefreshTokenRequest.d.ts +9 -7
  224. package/lib/types/request/RefreshTokenRequest.d.ts.map +1 -1
  225. package/lib/types/request/SilentFlowRequest.d.ts +6 -7
  226. package/lib/types/request/SilentFlowRequest.d.ts.map +1 -1
  227. package/lib/types/request/UsernamePasswordRequest.d.ts +9 -8
  228. package/lib/types/request/UsernamePasswordRequest.d.ts.map +1 -1
  229. package/lib/types/utils/Constants.d.ts +2 -9
  230. package/lib/types/utils/Constants.d.ts.map +1 -1
  231. package/package.json +88 -88
  232. package/src/client/BaseClient.ts +158 -0
  233. package/src/client/ClientCredentialClient.ts +2 -3
  234. package/src/client/DeviceCodeClient.ts +4 -5
  235. package/src/client/ManagedIdentitySources/AppService.ts +54 -0
  236. package/src/client/ManagedIdentitySources/AzureArc.ts +81 -0
  237. package/src/client/ManagedIdentitySources/BaseManagedIdentitySource.ts +92 -2
  238. package/src/client/ManagedIdentitySources/CloudShell.ts +54 -0
  239. package/src/client/ManagedIdentitySources/Imds.ts +43 -21
  240. package/src/client/ManagedIdentitySources/MachineLearning.ts +65 -0
  241. package/src/client/ManagedIdentitySources/ServiceFabric.ts +56 -22
  242. package/src/client/OnBehalfOfClient.ts +2 -3
  243. package/src/client/PublicClientApplication.ts +22 -4
  244. package/src/client/UsernamePasswordClient.ts +2 -3
  245. package/src/config/Configuration.ts +2 -14
  246. package/src/config/ManagedIdentityRequestParameters.ts +2 -2
  247. package/src/error/NodeAuthError.ts +14 -0
  248. package/src/index.ts +0 -8
  249. package/src/network/HttpClient.ts +166 -372
  250. package/src/packageMetadata.ts +1 -1
  251. package/src/protocol/Authorize.ts +1 -1
  252. package/src/request/AuthorizationCodeRequest.ts +12 -10
  253. package/src/request/AuthorizationUrlRequest.ts +6 -24
  254. package/src/request/ClientCredentialRequest.ts +3 -6
  255. package/src/request/CommonClientCredentialRequest.ts +13 -7
  256. package/src/request/CommonDeviceCodeRequest.ts +13 -14
  257. package/src/request/CommonOnBehalfOfRequest.ts +11 -7
  258. package/src/request/CommonUsernamePasswordRequest.ts +6 -8
  259. package/src/request/DeviceCodeRequest.ts +6 -6
  260. package/src/request/InteractiveRequest.ts +19 -11
  261. package/src/request/ManagedIdentityRequest.ts +6 -2
  262. package/src/request/ManagedIdentityRequestParams.ts +9 -3
  263. package/src/request/OnBehalfOfRequest.ts +7 -6
  264. package/src/request/RefreshTokenRequest.ts +9 -7
  265. package/src/request/SilentFlowRequest.ts +6 -7
  266. package/src/request/UsernamePasswordRequest.ts +9 -8
  267. package/src/utils/Constants.ts +2 -11
  268. package/dist/utils/NetworkUtils.mjs +0 -43
  269. 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,kDAAkD,CAAC;AACpG,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAIzD,eAAO,MAAM,2DAA2D,QAAsH,CAAC;AAE/L,qBAAa,eAAgB,SAAQ,yBAAyB;IAC1D,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,MAAM,CAAS;gBAGnB,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,cAAc,EAC7B,cAAc,EAAE,cAAc,EAC9B,sBAAsB,EAAE,OAAO,EAC/B,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM;WAcJ,uBAAuB,IAAI,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC;WAUpD,SAAS,CACnB,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,cAAc,EAC7B,cAAc,EAAE,cAAc,EAC9B,sBAAsB,EAAE,OAAO,GAChC,eAAe,GAAG,IAAI;IAoClB,aAAa,CAChB,QAAQ,EAAE,MAAM,EAChB,iBAAiB,EAAE,iBAAiB,GACrC,gCAAgC;CA8CtC"}
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,kDAAkD,CAAC;AACpG,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAIzD,eAAO,MAAM,2DAA2D,QAAsH,CAAC;AAE/L;;;;;;GAMG;AACH,qBAAa,eAAgB,SAAQ,yBAAyB;IAC1D,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,MAAM,CAAS;IAEvB;;;;;;;;;;OAUG;gBAEC,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,cAAc,EAC7B,cAAc,EAAE,cAAc,EAC9B,sBAAsB,EAAE,OAAO,EAC/B,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM;IAclB;;;;;;;;;OASG;WACW,uBAAuB,IAAI,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC;IAUlE;;;;;;;;;;;;;;;;OAgBG;WACW,SAAS,CACnB,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,cAAc,EAC7B,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
- * @param logger Logger instance for logging
16
- * @param nodeStorage NodeStorage instance for caching
17
- * @param networkClient Network client for HTTP requests
18
- * @param cryptoProvider Crypto provider for cryptographic operations
19
- * @param disableInternalRetries Whether to disable internal retry logic
20
- * @param identityEndpoint The Service Fabric managed identity endpoint
21
- * @param identityHeader The Service Fabric managed identity secret header
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
- * @returns An array containing the identity endpoint, identity header, and identity server thumbprint.
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 all required environment variables are present.
31
- * @param logger Logger instance for logging
32
- * @param nodeStorage NodeStorage instance for caching
33
- * @param networkClient Network client for HTTP requests
34
- * @param cryptoProvider Crypto provider for cryptographic operations
35
- * @param disableInternalRetries Whether to disable internal retry logic
36
- * @param managedIdentityId Managed identity identifier
37
- * @returns A ServiceFabric instance if environment variables are set, otherwise null
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 the request parameters for acquiring a token from the Service Fabric cluster.
42
- * @param resource - The resource URI for which the token is requested.
43
- * @param managedIdentityId - The managed identity ID (system-assigned or user-assigned).
44
- * @returns A ManagedIdentityRequestParameters object configured for Service Fabric.
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,EAAE,MAAM,kDAAkD,CAAC;AACpG,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAYhE;;GAEG;AACH,qBAAa,aAAc,SAAQ,yBAAyB;IACxD,O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,EACd,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,cAAc,EAC7B,cAAc,EAAE,cAAc,EAC9B,sBAAsB,EAAE,OAAO,EAC/B,gBAAgB,EAAE,MAAM,EACxB,cAAc,EAAE,MAAM;IAc1B;;;;;;;;;;;OAWG;WACW,uBAAuB,IAAI,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC;IAkBlE;;;;;;;;;;;;;;;;;;OAkBG;WACW,SAAS,CACnB,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,WAAW,EACxB,aAAa,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, BaseClient, ClientConfiguration } from "@azure/msal-common/node";
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,EAGpB,UAAU,EAEV,mBAAmB,EAgBtB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAEhF;;;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
+ {"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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AwB,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, BaseClient, ClientConfiguration } from "@azure/msal-common/node";
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,EAEpB,UAAU,EAGV,mBAAmB,EAatB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAC;AAE5F;;;;;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
+ {"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":";;AAKA,OAAO,EACH,aAAa,EACb,cAAc,EAEd,YAAY,EACZ,YAAY,EAEZ,iBAAiB,EACjB,oBAAoB,EACpB,mBAAmB,EACnB,uBAAuB,EAE1B,MAAM,yBAAyB,CAAC;AAEjC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,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;CAC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rorMessage: {
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiChC,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;CAMvD"}
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"}
@@ -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";
@@ -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,OAAO,EAAE,SAAS,EAAE,CAAC;AAGrB,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;AAC5F,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAG/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OA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AAM,6BAA6B,CAAC;AAClE,YAAY,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAC;AAE9F,QAAA,MAAM,WAAW;;;;;;;CAA8B,CAAC;AAChD,QAAA,MAAM,YAAY;;;;CAA+B,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,CAAC;AAGrC,OAAO,EACH,wBAAwB,EAExB,oBAAoB,EACpB,iBAAiB,EACjB,aAAa,EAEb,WAAW,EACX,cAAc,EAEd,SAAS,EACT,cAAc,EACd,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
- * This class implements the API for network requests.
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
- * Http Get request
15
- * @param url
16
- * @param options
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
- * Http Post request
21
- * @param url
22
- * @param options
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":";;AAKA,OAAO,EAEH,cAAc,EACd,qBAAqB,EACrB,eAAe,EAClB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;GAEG;AACH,qBAAa,UAAW,YAAW,cAAc;IAC7C,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,kBAAkB,CAAyC;gBAG/D,QAAQ,CAAC,EAAE,MAAM,EACjB,kBAAkB,CAAC,EAAE,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY;IAM/D;;;;OAIG;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;IAqB9B;;;;OAIG;IACG,oBAAoB,CAAC,CAAC,EACxB,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,qBAAqB,GAChC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;CAkBjC"}
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,3 +1,3 @@
1
1
  export declare const name = "@azure/msal-node";
2
- export declare const version = "5.0.0-alpha.0";
2
+ export declare const version = "5.0.1";
3
3
  //# sourceMappingURL=packageMetadata.d.ts.map
@@ -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,kBAAkB,CAAC"}
1
+ {"version":3,"file":"packageMetadata.d.ts","sourceRoot":"","sources":["../../src/packageMetadata.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,IAAI,qBAAqB,CAAC;AACvC,eAAO,MAAM,OAAO,UAAU,CAAC"}
@@ -1,22 +1,24 @@
1
1
  import { CommonAuthorizationCodeRequest } from "@azure/msal-common/node";
2
2
  /**
3
3
  * Request object passed by user to acquire a token from the server exchanging a valid authorization code (second leg of OAuth2.0 Authorization Code flow)
4
- *
5
- * - scopes - Array of scopes the application is requesting access to.
6
- * - claims - A stringified claims request which will be added to all /authorize and /token calls
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
- * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
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
- * - tokenQueryParameters - String to string map of custom query parameters added to the /token call
11
- * - code - The authorization_code that the user acquired in the first leg of the flow.
12
- * - 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
- * - 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.
14
4
  * @public
15
5
  */
16
6
  export type AuthorizationCodeRequest = Partial<Omit<CommonAuthorizationCodeRequest, "scopes" | "redirectUri" | "code" | "authenticationScheme" | "resourceRequestMethod" | "resourceRequestUri" | "storeInCache">> & {
7
+ /**
8
+ * Array of scopes the application is requesting access to.
9
+ */
17
10
  scopes: Array<string>;
11
+ /**
12
+ * 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.
13
+ */
18
14
  redirectUri: string;
15
+ /**
16
+ * The authorization_code that the user acquired in the first leg of the flow.
17
+ */
19
18
  code: string;
19
+ /**
20
+ * 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
+ */
20
22
  state?: string;
21
23
  };
22
24
  //# sourceMappingURL=AuthorizationCodeRequest.d.ts.map
@@ -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;;;;;;;;;;;;;GAaG;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"}
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,34 +1,16 @@
1
1
  import { CommonAuthorizationUrlRequest } from "@azure/msal-common/node";
2
2
  /**
3
3
  * Request object passed by user to retrieve a Code from the server (first leg of authorization code grant flow)
4
- *
5
- * - scopes - Array of scopes the application is requesting access to.
6
- * - claims - A stringified claims request which will be added to all /authorize and /token calls
7
- * - authority - Url of the authority which the application acquires tokens from.
8
- * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
9
- * - redirectUri - The redirect URI where authentication responses can be received by your application. It must exactly match one of the redirect URIs registered in the Azure portal.
10
- * - extraScopesToConsent - Scopes for a different resource when the user needs consent upfront.
11
- * - responseMode - Specifies the method that should be used to send the authentication result to your app. Can be query, form_post, or fragment. If no value is passed in, it defaults to query.
12
- * - codeChallenge - Used to secure authorization code grant via Proof of Key for Code Exchange (PKCE). For more information, see the PKCE RCF:https://tools.ietf.org/html/rfc7636
13
- * - codeChallengeMethod - The method used to encode the code verifier for the code challenge parameter. Can be "plain" or "S256". If excluded, code challenge is assumed to be plaintext. For more information, see the PKCE RCF: https://tools.ietf.org/html/rfc7636
14
- * - state - A value included in the request that is also returned in the token response. A randomly generated unique value is typically used for preventing cross site request forgery attacks. The state is also used to encode information about the user's state in the app before the authentication request occurred.
15
- * - prompt - Indicates the type of user interaction that is required.
16
- * login: will force the user to enter their credentials on that request, negating single-sign on
17
- * none: will ensure that the user isn't presented with any interactive prompt. if request can't be completed via single-sign on, the endpoint will return an interaction_required error
18
- * consent: will the trigger the OAuth consent dialog after the user signs in, asking the user to grant permissions to the app
19
- * select_account: will interrupt single sign-=on providing account selection experience listing all the accounts in session or any remembered accounts or an option to choose to use a different account
20
- * create: will direct the user to the account creation experience instead of the log in experience
21
- * - account - AccountInfo obtained from a getAccount API. Will be used in certain scenarios to generate login_hint if both loginHint and sid params are not provided.
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
- * - sid - Session ID, unique identifier for the session. Available as an optional claim on ID tokens.
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 the /authorize call
26
- * - tokenQueryParameters - String to string map of custom query parameters added to the /token call
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
4
  * @public
29
5
  */
30
6
  export type AuthorizationUrlRequest = Partial<Omit<CommonAuthorizationUrlRequest, "scopes" | "redirectUri" | "resourceRequestMethod" | "resourceRequestUri" | "authenticationScheme" | "storeInCache">> & {
7
+ /**
8
+ * Array of scopes the application is requesting access to.
9
+ */
31
10
  scopes: Array<string>;
11
+ /**
12
+ * The redirect URI where authentication responses can be received by your application. It must exactly match one of the redirect URIs registered in the Azure portal.
13
+ */
32
14
  redirectUri: string;
33
15
  };
34
16
  //# sourceMappingURL=AuthorizationUrlRequest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AuthorizationUrlRequest.d.ts","sourceRoot":"","sources":["../../../src/request/AuthorizationUrlRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AAExE;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,MAAM,uBAAuB,GAAG,OAAO,CACzC,IAAI,CACA,6BAA6B,EAC3B,QAAQ,GACR,aAAa,GACb,uBAAuB,GACvB,oBAAoB,GACpB,sBAAsB,GACtB,cAAc,CACnB,CACJ,GAAG;IACA,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC"}
1
+ {"version":3,"file":"AuthorizationUrlRequest.d.ts","sourceRoot":"","sources":["../../../src/request/AuthorizationUrlRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AAExE;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG,OAAO,CACzC,IAAI,CACA,6BAA6B,EAC3B,QAAQ,GACR,aAAa,GACb,uBAAuB,GACvB,oBAAoB,GACpB,sBAAsB,GACtB,cAAc,CACnB,CACJ,GAAG;IACA;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC"}
@@ -2,15 +2,12 @@ import { ClientAssertionCallback } from "@azure/msal-common/node";
2
2
  import { CommonClientCredentialRequest } from "./CommonClientCredentialRequest.js";
3
3
  /**
4
4
  * ClientCredentialRequest
5
- * - scopes - Array of scopes the application is requesting access to. Typically contains only the .default scope for a single resource. See: https://learn.microsoft.com/azure/active-directory/develop/scopes-oidc#the-default-scope
6
- * - authority - URL of the authority, the security token service (STS) from which MSAL will acquire tokens.
7
- * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
8
- * - skipCache - Skip token cache lookup and force request to authority to get a a new token. Defaults to false.
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
5
  * @public
12
6
  */
13
7
  export type ClientCredentialRequest = Partial<Omit<CommonClientCredentialRequest, "resourceRequestMethod" | "resourceRequestUri" | "clientAssertion" | "storeInCache">> & {
8
+ /**
9
+ * 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
+ */
14
11
  clientAssertion?: string | ClientAssertionCallback;
15
12
  };
16
13
  //# sourceMappingURL=ClientCredentialRequest.d.ts.map
@@ -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;;;;;;;;;GASG;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"}
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;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG,OAAO,CACzC,IAAI,CACA,6BAA6B,EAC3B,uBAAuB,GACvB,oBAAoB,GACpB,iBAAiB,GACjB,cAAc,CACnB,CACJ,GAAG;IACA;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,uBAAuB,CAAC;CACtD,CAAC"}
@@ -1,16 +1,19 @@
1
1
  import { BaseAuthRequest, AzureRegion, ClientAssertion } from "@azure/msal-common/node";
2
2
  /**
3
3
  * CommonClientCredentialRequest
4
- * - scopes - Array of scopes the application is requesting access to.
5
- * - authority - URL of the authority, the security token service (STS) from which MSAL will acquire tokens.
6
- * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
7
- * - skipCache - Skip token cache lookup and force request to authority to get a a new token. Defaults to false.
8
- * - preferredAzureRegionOptions - Options of the user's preferred azure region
9
- * - tokenQueryParameters - String to string map of custom query parameters added to the /token call
10
4
  */
11
- export type CommonClientCredentialRequest = BaseAuthRequest & {
5
+ export type CommonClientCredentialRequest = Omit<BaseAuthRequest, "extraQueryParameters" | "extraParameters"> & {
6
+ /**
7
+ * Skip token cache lookup and force request to authority to get a a new token. Defaults to false.
8
+ */
12
9
  skipCache?: boolean;
10
+ /**
11
+ * Azure region to be used for regional authentication.
12
+ */
13
13
  azureRegion?: AzureRegion;
14
+ /**
15
+ * An assertion string or a callback function that returns an assertion string (both are Base64Url-encoded signed JWTs) used in the Client Credential flow.
16
+ */
14
17
  clientAssertion?: ClientAssertion;
15
18
  };
16
19
  //# 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;;;;;;;;GAQG;AACH,MAAM,MAAM,6BAA6B,GAAG,eAAe,GAAG;IAC1D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,eAAe,CAAC,EAAE,eAAe,CAAC;CACrC,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;CACrC,CAAC"}