@azure/msal-node 5.1.5 → 5.2.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.
Files changed (361) hide show
  1. package/dist/cache/CacheHelpers.mjs +1 -1
  2. package/dist/cache/NodeStorage.mjs +1 -1
  3. package/dist/cache/TokenCache.mjs +1 -1
  4. package/dist/cache/distributed/DistributedCachePlugin.mjs +1 -1
  5. package/dist/cache/serializer/Deserializer.mjs +1 -1
  6. package/dist/cache/serializer/Serializer.mjs +1 -1
  7. package/dist/client/BaseClient.mjs +1 -1
  8. package/dist/client/ClientApplication.mjs +1 -1
  9. package/dist/client/ClientAssertion.mjs +1 -1
  10. package/dist/client/ClientCredentialClient.mjs +1 -1
  11. package/dist/client/ConfidentialClientApplication.mjs +1 -1
  12. package/dist/client/DeviceCodeClient.mjs +1 -1
  13. package/dist/client/ManagedIdentityApplication.mjs +1 -1
  14. package/dist/client/ManagedIdentityClient.mjs +1 -1
  15. package/dist/client/ManagedIdentitySources/AppService.mjs +1 -1
  16. package/dist/client/ManagedIdentitySources/AzureArc.mjs +1 -1
  17. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs +9 -1
  18. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs.map +1 -1
  19. package/dist/client/ManagedIdentitySources/CloudShell.mjs +1 -1
  20. package/dist/client/ManagedIdentitySources/Imds.mjs +8 -2
  21. package/dist/client/ManagedIdentitySources/Imds.mjs.map +1 -1
  22. package/dist/client/ManagedIdentitySources/MachineLearning.mjs +1 -1
  23. package/dist/client/ManagedIdentitySources/ServiceFabric.mjs +1 -1
  24. package/dist/client/OnBehalfOfClient.mjs +1 -1
  25. package/dist/client/PublicClientApplication.mjs +1 -1
  26. package/dist/client/UsernamePasswordClient.mjs +1 -1
  27. package/dist/config/Configuration.mjs +1 -1
  28. package/dist/config/ManagedIdentityId.mjs +1 -1
  29. package/dist/config/ManagedIdentityRequestParameters.mjs +1 -1
  30. package/dist/crypto/CryptoProvider.mjs +1 -1
  31. package/dist/crypto/GuidGenerator.mjs +1 -1
  32. package/dist/crypto/HashUtils.mjs +1 -1
  33. package/dist/crypto/PkceGenerator.mjs +1 -1
  34. package/dist/error/ClientAuthErrorCodes.mjs +1 -1
  35. package/dist/error/ManagedIdentityError.mjs +1 -1
  36. package/dist/error/ManagedIdentityErrorCodes.mjs +1 -1
  37. package/dist/error/NodeAuthError.mjs +1 -1
  38. package/dist/index.mjs +1 -1
  39. package/dist/internals.mjs +1 -1
  40. package/dist/network/HttpClient.mjs +1 -1
  41. package/dist/network/HttpClientWithRetries.mjs +1 -1
  42. package/dist/network/LoopbackClient.mjs +1 -1
  43. package/dist/packageMetadata.mjs +2 -2
  44. package/dist/protocol/Authorize.mjs +1 -1
  45. package/dist/retry/DefaultManagedIdentityRetryPolicy.mjs +1 -1
  46. package/dist/retry/ExponentialRetryStrategy.mjs +1 -1
  47. package/dist/retry/ImdsRetryPolicy.mjs +1 -1
  48. package/dist/retry/LinearRetryStrategy.mjs +1 -1
  49. package/dist/utils/Constants.mjs +6 -1
  50. package/dist/utils/Constants.mjs.map +1 -1
  51. package/dist/utils/EncodingUtils.mjs +1 -1
  52. package/dist/utils/TimeUtils.mjs +1 -1
  53. package/lib/msal-node.cjs +79 -63
  54. package/lib/msal-node.cjs.map +1 -1
  55. package/package.json +9 -7
  56. package/src/client/ManagedIdentitySources/BaseManagedIdentitySource.ts +9 -0
  57. package/src/client/ManagedIdentitySources/Imds.ts +7 -0
  58. package/src/packageMetadata.ts +1 -1
  59. package/src/utils/Constants.ts +4 -0
  60. package/{dist → types}/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts +6 -0
  61. package/{dist → types}/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +1 -1
  62. package/{dist → types}/client/ManagedIdentitySources/Imds.d.ts.map +1 -1
  63. package/types/index.d.cts +1 -0
  64. package/types/packageMetadata.d.ts +3 -0
  65. package/{lib/types → types}/utils/Constants.d.ts +3 -0
  66. package/{lib/types → types}/utils/Constants.d.ts.map +1 -1
  67. package/dist/packageMetadata.d.ts +0 -3
  68. package/dist/utils/Constants.d.ts +0 -156
  69. package/dist/utils/Constants.d.ts.map +0 -1
  70. package/lib/types/cache/CacheHelpers.d.ts +0 -4
  71. package/lib/types/cache/CacheHelpers.d.ts.map +0 -1
  72. package/lib/types/cache/ITokenCache.d.ts +0 -16
  73. package/lib/types/cache/ITokenCache.d.ts.map +0 -1
  74. package/lib/types/cache/NodeStorage.d.ts +0 -191
  75. package/lib/types/cache/NodeStorage.d.ts.map +0 -1
  76. package/lib/types/cache/TokenCache.d.ts +0 -99
  77. package/lib/types/cache/TokenCache.d.ts.map +0 -1
  78. package/lib/types/cache/distributed/DistributedCachePlugin.d.ts +0 -23
  79. package/lib/types/cache/distributed/DistributedCachePlugin.d.ts.map +0 -1
  80. package/lib/types/cache/distributed/ICacheClient.d.ts +0 -22
  81. package/lib/types/cache/distributed/ICacheClient.d.ts.map +0 -1
  82. package/lib/types/cache/distributed/IPartitionManager.d.ts +0 -33
  83. package/lib/types/cache/distributed/IPartitionManager.d.ts.map +0 -1
  84. package/lib/types/cache/serializer/Deserializer.d.ts +0 -44
  85. package/lib/types/cache/serializer/Deserializer.d.ts.map +0 -1
  86. package/lib/types/cache/serializer/Serializer.d.ts +0 -44
  87. package/lib/types/cache/serializer/Serializer.d.ts.map +0 -1
  88. package/lib/types/cache/serializer/SerializerTypes.d.ts +0 -102
  89. package/lib/types/cache/serializer/SerializerTypes.d.ts.map +0 -1
  90. package/lib/types/client/BaseClient.d.ts +0 -42
  91. package/lib/types/client/BaseClient.d.ts.map +0 -1
  92. package/lib/types/client/ClientApplication.d.ts +0 -146
  93. package/lib/types/client/ClientApplication.d.ts.map +0 -1
  94. package/lib/types/client/ClientAssertion.d.ts +0 -56
  95. package/lib/types/client/ClientAssertion.d.ts.map +0 -1
  96. package/lib/types/client/ClientCredentialClient.d.ts +0 -37
  97. package/lib/types/client/ClientCredentialClient.d.ts.map +0 -1
  98. package/lib/types/client/ConfidentialClientApplication.d.ts +0 -58
  99. package/lib/types/client/ConfidentialClientApplication.d.ts.map +0 -1
  100. package/lib/types/client/DeviceCodeClient.d.ts +0 -60
  101. package/lib/types/client/DeviceCodeClient.d.ts.map +0 -1
  102. package/lib/types/client/IConfidentialClientApplication.d.ts +0 -43
  103. package/lib/types/client/IConfidentialClientApplication.d.ts.map +0 -1
  104. package/lib/types/client/IPublicClientApplication.d.ts +0 -46
  105. package/lib/types/client/IPublicClientApplication.d.ts.map +0 -1
  106. package/lib/types/client/ManagedIdentityApplication.d.ts +0 -42
  107. package/lib/types/client/ManagedIdentityApplication.d.ts.map +0 -1
  108. package/lib/types/client/ManagedIdentityClient.d.ts +0 -29
  109. package/lib/types/client/ManagedIdentityClient.d.ts.map +0 -1
  110. package/lib/types/client/ManagedIdentitySources/AppService.d.ts +0 -72
  111. package/lib/types/client/ManagedIdentitySources/AppService.d.ts.map +0 -1
  112. package/lib/types/client/ManagedIdentitySources/AzureArc.d.ts +0 -109
  113. package/lib/types/client/ManagedIdentitySources/AzureArc.d.ts.map +0 -1
  114. package/lib/types/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts +0 -125
  115. package/lib/types/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +0 -1
  116. package/lib/types/client/ManagedIdentitySources/CloudShell.d.ts +0 -71
  117. package/lib/types/client/ManagedIdentitySources/CloudShell.d.ts.map +0 -1
  118. package/lib/types/client/ManagedIdentitySources/Imds.d.ts +0 -67
  119. package/lib/types/client/ManagedIdentitySources/Imds.d.ts.map +0 -1
  120. package/lib/types/client/ManagedIdentitySources/MachineLearning.d.ts +0 -81
  121. package/lib/types/client/ManagedIdentitySources/MachineLearning.d.ts.map +0 -1
  122. package/lib/types/client/ManagedIdentitySources/ServiceFabric.d.ts +0 -82
  123. package/lib/types/client/ManagedIdentitySources/ServiceFabric.d.ts.map +0 -1
  124. package/lib/types/client/OnBehalfOfClient.d.ts +0 -50
  125. package/lib/types/client/OnBehalfOfClient.d.ts.map +0 -1
  126. package/lib/types/client/PublicClientApplication.d.ts +0 -85
  127. package/lib/types/client/PublicClientApplication.d.ts.map +0 -1
  128. package/lib/types/client/UsernamePasswordClient.d.ts +0 -30
  129. package/lib/types/client/UsernamePasswordClient.d.ts.map +0 -1
  130. package/lib/types/config/Configuration.d.ts +0 -131
  131. package/lib/types/config/Configuration.d.ts.map +0 -1
  132. package/lib/types/config/ManagedIdentityId.d.ts +0 -12
  133. package/lib/types/config/ManagedIdentityId.d.ts.map +0 -1
  134. package/lib/types/config/ManagedIdentityRequestParameters.d.ts +0 -13
  135. package/lib/types/config/ManagedIdentityRequestParameters.d.ts.map +0 -1
  136. package/lib/types/crypto/CryptoProvider.d.ts +0 -63
  137. package/lib/types/crypto/CryptoProvider.d.ts.map +0 -1
  138. package/lib/types/crypto/GuidGenerator.d.ts +0 -14
  139. package/lib/types/crypto/GuidGenerator.d.ts.map +0 -1
  140. package/lib/types/crypto/HashUtils.d.ts +0 -10
  141. package/lib/types/crypto/HashUtils.d.ts.map +0 -1
  142. package/lib/types/crypto/PkceGenerator.d.ts +0 -23
  143. package/lib/types/crypto/PkceGenerator.d.ts.map +0 -1
  144. package/lib/types/error/ClientAuthErrorCodes.d.ts +0 -8
  145. package/lib/types/error/ClientAuthErrorCodes.d.ts.map +0 -1
  146. package/lib/types/error/ManagedIdentityError.d.ts +0 -31
  147. package/lib/types/error/ManagedIdentityError.d.ts.map +0 -1
  148. package/lib/types/error/ManagedIdentityErrorCodes.d.ts +0 -23
  149. package/lib/types/error/ManagedIdentityErrorCodes.d.ts.map +0 -1
  150. package/lib/types/error/NodeAuthError.d.ts +0 -82
  151. package/lib/types/error/NodeAuthError.d.ts.map +0 -1
  152. package/lib/types/index.d.ts +0 -54
  153. package/lib/types/index.d.ts.map +0 -1
  154. package/lib/types/internals.d.ts +0 -7
  155. package/lib/types/internals.d.ts.map +0 -1
  156. package/lib/types/network/HttpClient.d.ts +0 -66
  157. package/lib/types/network/HttpClient.d.ts.map +0 -1
  158. package/lib/types/network/HttpClientWithRetries.d.ts +0 -13
  159. package/lib/types/network/HttpClientWithRetries.d.ts.map +0 -1
  160. package/lib/types/network/ILoopbackClient.d.ts +0 -11
  161. package/lib/types/network/ILoopbackClient.d.ts.map +0 -1
  162. package/lib/types/network/LoopbackClient.d.ts +0 -22
  163. package/lib/types/network/LoopbackClient.d.ts.map +0 -1
  164. package/lib/types/packageMetadata.d.ts +0 -3
  165. package/lib/types/packageMetadata.d.ts.map +0 -1
  166. package/lib/types/protocol/Authorize.d.ts +0 -12
  167. package/lib/types/protocol/Authorize.d.ts.map +0 -1
  168. package/lib/types/request/AuthorizationCodeRequest.d.ts +0 -24
  169. package/lib/types/request/AuthorizationCodeRequest.d.ts.map +0 -1
  170. package/lib/types/request/AuthorizationUrlRequest.d.ts +0 -16
  171. package/lib/types/request/AuthorizationUrlRequest.d.ts.map +0 -1
  172. package/lib/types/request/ClientCredentialRequest.d.ts +0 -13
  173. package/lib/types/request/ClientCredentialRequest.d.ts.map +0 -1
  174. package/lib/types/request/CommonClientCredentialRequest.d.ts +0 -19
  175. package/lib/types/request/CommonClientCredentialRequest.d.ts.map +0 -1
  176. package/lib/types/request/CommonDeviceCodeRequest.d.ts +0 -23
  177. package/lib/types/request/CommonDeviceCodeRequest.d.ts.map +0 -1
  178. package/lib/types/request/CommonOnBehalfOfRequest.d.ts +0 -15
  179. package/lib/types/request/CommonOnBehalfOfRequest.d.ts.map +0 -1
  180. package/lib/types/request/CommonUsernamePasswordRequest.d.ts +0 -16
  181. package/lib/types/request/CommonUsernamePasswordRequest.d.ts.map +0 -1
  182. package/lib/types/request/DeviceCodeRequest.d.ts +0 -17
  183. package/lib/types/request/DeviceCodeRequest.d.ts.map +0 -1
  184. package/lib/types/request/InteractiveRequest.d.ts +0 -35
  185. package/lib/types/request/InteractiveRequest.d.ts.map +0 -1
  186. package/lib/types/request/ManagedIdentityRequest.d.ts +0 -16
  187. package/lib/types/request/ManagedIdentityRequest.d.ts.map +0 -1
  188. package/lib/types/request/ManagedIdentityRequestParams.d.ts +0 -19
  189. package/lib/types/request/ManagedIdentityRequestParams.d.ts.map +0 -1
  190. package/lib/types/request/OnBehalfOfRequest.d.ts +0 -16
  191. package/lib/types/request/OnBehalfOfRequest.d.ts.map +0 -1
  192. package/lib/types/request/RefreshTokenRequest.d.ts +0 -20
  193. package/lib/types/request/RefreshTokenRequest.d.ts.map +0 -1
  194. package/lib/types/request/SignOutRequest.d.ts +0 -7
  195. package/lib/types/request/SignOutRequest.d.ts.map +0 -1
  196. package/lib/types/request/SilentFlowRequest.d.ts +0 -16
  197. package/lib/types/request/SilentFlowRequest.d.ts.map +0 -1
  198. package/lib/types/request/UsernamePasswordRequest.d.ts +0 -21
  199. package/lib/types/request/UsernamePasswordRequest.d.ts.map +0 -1
  200. package/lib/types/response/ManagedIdentityTokenResponse.d.ts +0 -35
  201. package/lib/types/response/ManagedIdentityTokenResponse.d.ts.map +0 -1
  202. package/lib/types/retry/DefaultManagedIdentityRetryPolicy.d.ts +0 -11
  203. package/lib/types/retry/DefaultManagedIdentityRetryPolicy.d.ts.map +0 -1
  204. package/lib/types/retry/ExponentialRetryStrategy.d.ts +0 -23
  205. package/lib/types/retry/ExponentialRetryStrategy.d.ts.map +0 -1
  206. package/lib/types/retry/IHttpRetryPolicy.d.ts +0 -16
  207. package/lib/types/retry/IHttpRetryPolicy.d.ts.map +0 -1
  208. package/lib/types/retry/ImdsRetryPolicy.d.ts +0 -22
  209. package/lib/types/retry/ImdsRetryPolicy.d.ts.map +0 -1
  210. package/lib/types/retry/LinearRetryStrategy.d.ts +0 -14
  211. package/lib/types/retry/LinearRetryStrategy.d.ts.map +0 -1
  212. package/lib/types/utils/EncodingUtils.d.ts +0 -27
  213. package/lib/types/utils/EncodingUtils.d.ts.map +0 -1
  214. package/lib/types/utils/NetworkUtils.d.ts +0 -17
  215. package/lib/types/utils/NetworkUtils.d.ts.map +0 -1
  216. package/lib/types/utils/TimeUtils.d.ts +0 -9
  217. package/lib/types/utils/TimeUtils.d.ts.map +0 -1
  218. /package/{dist → types}/cache/CacheHelpers.d.ts +0 -0
  219. /package/{dist → types}/cache/CacheHelpers.d.ts.map +0 -0
  220. /package/{dist → types}/cache/ITokenCache.d.ts +0 -0
  221. /package/{dist → types}/cache/ITokenCache.d.ts.map +0 -0
  222. /package/{dist → types}/cache/NodeStorage.d.ts +0 -0
  223. /package/{dist → types}/cache/NodeStorage.d.ts.map +0 -0
  224. /package/{dist → types}/cache/TokenCache.d.ts +0 -0
  225. /package/{dist → types}/cache/TokenCache.d.ts.map +0 -0
  226. /package/{dist → types}/cache/distributed/DistributedCachePlugin.d.ts +0 -0
  227. /package/{dist → types}/cache/distributed/DistributedCachePlugin.d.ts.map +0 -0
  228. /package/{dist → types}/cache/distributed/ICacheClient.d.ts +0 -0
  229. /package/{dist → types}/cache/distributed/ICacheClient.d.ts.map +0 -0
  230. /package/{dist → types}/cache/distributed/IPartitionManager.d.ts +0 -0
  231. /package/{dist → types}/cache/distributed/IPartitionManager.d.ts.map +0 -0
  232. /package/{dist → types}/cache/serializer/Deserializer.d.ts +0 -0
  233. /package/{dist → types}/cache/serializer/Deserializer.d.ts.map +0 -0
  234. /package/{dist → types}/cache/serializer/Serializer.d.ts +0 -0
  235. /package/{dist → types}/cache/serializer/Serializer.d.ts.map +0 -0
  236. /package/{dist → types}/cache/serializer/SerializerTypes.d.ts +0 -0
  237. /package/{dist → types}/cache/serializer/SerializerTypes.d.ts.map +0 -0
  238. /package/{dist → types}/client/BaseClient.d.ts +0 -0
  239. /package/{dist → types}/client/BaseClient.d.ts.map +0 -0
  240. /package/{dist → types}/client/ClientApplication.d.ts +0 -0
  241. /package/{dist → types}/client/ClientApplication.d.ts.map +0 -0
  242. /package/{dist → types}/client/ClientAssertion.d.ts +0 -0
  243. /package/{dist → types}/client/ClientAssertion.d.ts.map +0 -0
  244. /package/{dist → types}/client/ClientCredentialClient.d.ts +0 -0
  245. /package/{dist → types}/client/ClientCredentialClient.d.ts.map +0 -0
  246. /package/{dist → types}/client/ConfidentialClientApplication.d.ts +0 -0
  247. /package/{dist → types}/client/ConfidentialClientApplication.d.ts.map +0 -0
  248. /package/{dist → types}/client/DeviceCodeClient.d.ts +0 -0
  249. /package/{dist → types}/client/DeviceCodeClient.d.ts.map +0 -0
  250. /package/{dist → types}/client/IConfidentialClientApplication.d.ts +0 -0
  251. /package/{dist → types}/client/IConfidentialClientApplication.d.ts.map +0 -0
  252. /package/{dist → types}/client/IPublicClientApplication.d.ts +0 -0
  253. /package/{dist → types}/client/IPublicClientApplication.d.ts.map +0 -0
  254. /package/{dist → types}/client/ManagedIdentityApplication.d.ts +0 -0
  255. /package/{dist → types}/client/ManagedIdentityApplication.d.ts.map +0 -0
  256. /package/{dist → types}/client/ManagedIdentityClient.d.ts +0 -0
  257. /package/{dist → types}/client/ManagedIdentityClient.d.ts.map +0 -0
  258. /package/{dist → types}/client/ManagedIdentitySources/AppService.d.ts +0 -0
  259. /package/{dist → types}/client/ManagedIdentitySources/AppService.d.ts.map +0 -0
  260. /package/{dist → types}/client/ManagedIdentitySources/AzureArc.d.ts +0 -0
  261. /package/{dist → types}/client/ManagedIdentitySources/AzureArc.d.ts.map +0 -0
  262. /package/{dist → types}/client/ManagedIdentitySources/CloudShell.d.ts +0 -0
  263. /package/{dist → types}/client/ManagedIdentitySources/CloudShell.d.ts.map +0 -0
  264. /package/{dist → types}/client/ManagedIdentitySources/Imds.d.ts +0 -0
  265. /package/{dist → types}/client/ManagedIdentitySources/MachineLearning.d.ts +0 -0
  266. /package/{dist → types}/client/ManagedIdentitySources/MachineLearning.d.ts.map +0 -0
  267. /package/{dist → types}/client/ManagedIdentitySources/ServiceFabric.d.ts +0 -0
  268. /package/{dist → types}/client/ManagedIdentitySources/ServiceFabric.d.ts.map +0 -0
  269. /package/{dist → types}/client/OnBehalfOfClient.d.ts +0 -0
  270. /package/{dist → types}/client/OnBehalfOfClient.d.ts.map +0 -0
  271. /package/{dist → types}/client/PublicClientApplication.d.ts +0 -0
  272. /package/{dist → types}/client/PublicClientApplication.d.ts.map +0 -0
  273. /package/{dist → types}/client/UsernamePasswordClient.d.ts +0 -0
  274. /package/{dist → types}/client/UsernamePasswordClient.d.ts.map +0 -0
  275. /package/{dist → types}/config/Configuration.d.ts +0 -0
  276. /package/{dist → types}/config/Configuration.d.ts.map +0 -0
  277. /package/{dist → types}/config/ManagedIdentityId.d.ts +0 -0
  278. /package/{dist → types}/config/ManagedIdentityId.d.ts.map +0 -0
  279. /package/{dist → types}/config/ManagedIdentityRequestParameters.d.ts +0 -0
  280. /package/{dist → types}/config/ManagedIdentityRequestParameters.d.ts.map +0 -0
  281. /package/{dist → types}/crypto/CryptoProvider.d.ts +0 -0
  282. /package/{dist → types}/crypto/CryptoProvider.d.ts.map +0 -0
  283. /package/{dist → types}/crypto/GuidGenerator.d.ts +0 -0
  284. /package/{dist → types}/crypto/GuidGenerator.d.ts.map +0 -0
  285. /package/{dist → types}/crypto/HashUtils.d.ts +0 -0
  286. /package/{dist → types}/crypto/HashUtils.d.ts.map +0 -0
  287. /package/{dist → types}/crypto/PkceGenerator.d.ts +0 -0
  288. /package/{dist → types}/crypto/PkceGenerator.d.ts.map +0 -0
  289. /package/{dist → types}/error/ClientAuthErrorCodes.d.ts +0 -0
  290. /package/{dist → types}/error/ClientAuthErrorCodes.d.ts.map +0 -0
  291. /package/{dist → types}/error/ManagedIdentityError.d.ts +0 -0
  292. /package/{dist → types}/error/ManagedIdentityError.d.ts.map +0 -0
  293. /package/{dist → types}/error/ManagedIdentityErrorCodes.d.ts +0 -0
  294. /package/{dist → types}/error/ManagedIdentityErrorCodes.d.ts.map +0 -0
  295. /package/{dist → types}/error/NodeAuthError.d.ts +0 -0
  296. /package/{dist → types}/error/NodeAuthError.d.ts.map +0 -0
  297. /package/{dist → types}/index.d.ts +0 -0
  298. /package/{dist → types}/index.d.ts.map +0 -0
  299. /package/{dist → types}/internals.d.ts +0 -0
  300. /package/{dist → types}/internals.d.ts.map +0 -0
  301. /package/{dist → types}/network/HttpClient.d.ts +0 -0
  302. /package/{dist → types}/network/HttpClient.d.ts.map +0 -0
  303. /package/{dist → types}/network/HttpClientWithRetries.d.ts +0 -0
  304. /package/{dist → types}/network/HttpClientWithRetries.d.ts.map +0 -0
  305. /package/{dist → types}/network/ILoopbackClient.d.ts +0 -0
  306. /package/{dist → types}/network/ILoopbackClient.d.ts.map +0 -0
  307. /package/{dist → types}/network/LoopbackClient.d.ts +0 -0
  308. /package/{dist → types}/network/LoopbackClient.d.ts.map +0 -0
  309. /package/{dist → types}/packageMetadata.d.ts.map +0 -0
  310. /package/{dist → types}/protocol/Authorize.d.ts +0 -0
  311. /package/{dist → types}/protocol/Authorize.d.ts.map +0 -0
  312. /package/{dist → types}/request/AuthorizationCodeRequest.d.ts +0 -0
  313. /package/{dist → types}/request/AuthorizationCodeRequest.d.ts.map +0 -0
  314. /package/{dist → types}/request/AuthorizationUrlRequest.d.ts +0 -0
  315. /package/{dist → types}/request/AuthorizationUrlRequest.d.ts.map +0 -0
  316. /package/{dist → types}/request/ClientCredentialRequest.d.ts +0 -0
  317. /package/{dist → types}/request/ClientCredentialRequest.d.ts.map +0 -0
  318. /package/{dist → types}/request/CommonClientCredentialRequest.d.ts +0 -0
  319. /package/{dist → types}/request/CommonClientCredentialRequest.d.ts.map +0 -0
  320. /package/{dist → types}/request/CommonDeviceCodeRequest.d.ts +0 -0
  321. /package/{dist → types}/request/CommonDeviceCodeRequest.d.ts.map +0 -0
  322. /package/{dist → types}/request/CommonOnBehalfOfRequest.d.ts +0 -0
  323. /package/{dist → types}/request/CommonOnBehalfOfRequest.d.ts.map +0 -0
  324. /package/{dist → types}/request/CommonUsernamePasswordRequest.d.ts +0 -0
  325. /package/{dist → types}/request/CommonUsernamePasswordRequest.d.ts.map +0 -0
  326. /package/{dist → types}/request/DeviceCodeRequest.d.ts +0 -0
  327. /package/{dist → types}/request/DeviceCodeRequest.d.ts.map +0 -0
  328. /package/{dist → types}/request/InteractiveRequest.d.ts +0 -0
  329. /package/{dist → types}/request/InteractiveRequest.d.ts.map +0 -0
  330. /package/{dist → types}/request/ManagedIdentityRequest.d.ts +0 -0
  331. /package/{dist → types}/request/ManagedIdentityRequest.d.ts.map +0 -0
  332. /package/{dist → types}/request/ManagedIdentityRequestParams.d.ts +0 -0
  333. /package/{dist → types}/request/ManagedIdentityRequestParams.d.ts.map +0 -0
  334. /package/{dist → types}/request/OnBehalfOfRequest.d.ts +0 -0
  335. /package/{dist → types}/request/OnBehalfOfRequest.d.ts.map +0 -0
  336. /package/{dist → types}/request/RefreshTokenRequest.d.ts +0 -0
  337. /package/{dist → types}/request/RefreshTokenRequest.d.ts.map +0 -0
  338. /package/{dist → types}/request/SignOutRequest.d.ts +0 -0
  339. /package/{dist → types}/request/SignOutRequest.d.ts.map +0 -0
  340. /package/{dist → types}/request/SilentFlowRequest.d.ts +0 -0
  341. /package/{dist → types}/request/SilentFlowRequest.d.ts.map +0 -0
  342. /package/{dist → types}/request/UsernamePasswordRequest.d.ts +0 -0
  343. /package/{dist → types}/request/UsernamePasswordRequest.d.ts.map +0 -0
  344. /package/{dist → types}/response/ManagedIdentityTokenResponse.d.ts +0 -0
  345. /package/{dist → types}/response/ManagedIdentityTokenResponse.d.ts.map +0 -0
  346. /package/{dist → types}/retry/DefaultManagedIdentityRetryPolicy.d.ts +0 -0
  347. /package/{dist → types}/retry/DefaultManagedIdentityRetryPolicy.d.ts.map +0 -0
  348. /package/{dist → types}/retry/ExponentialRetryStrategy.d.ts +0 -0
  349. /package/{dist → types}/retry/ExponentialRetryStrategy.d.ts.map +0 -0
  350. /package/{dist → types}/retry/IHttpRetryPolicy.d.ts +0 -0
  351. /package/{dist → types}/retry/IHttpRetryPolicy.d.ts.map +0 -0
  352. /package/{dist → types}/retry/ImdsRetryPolicy.d.ts +0 -0
  353. /package/{dist → types}/retry/ImdsRetryPolicy.d.ts.map +0 -0
  354. /package/{dist → types}/retry/LinearRetryStrategy.d.ts +0 -0
  355. /package/{dist → types}/retry/LinearRetryStrategy.d.ts.map +0 -0
  356. /package/{dist → types}/utils/EncodingUtils.d.ts +0 -0
  357. /package/{dist → types}/utils/EncodingUtils.d.ts.map +0 -0
  358. /package/{dist → types}/utils/NetworkUtils.d.ts +0 -0
  359. /package/{dist → types}/utils/NetworkUtils.d.ts.map +0 -0
  360. /package/{dist → types}/utils/TimeUtils.d.ts +0 -0
  361. /package/{dist → types}/utils/TimeUtils.d.ts.map +0 -0
@@ -1,131 +0,0 @@
1
- import { LoggerOptions, INetworkModule, ProtocolMode, ICachePlugin, AzureCloudOptions, ApplicationTelemetry, INativeBrokerPlugin, ClientAssertionCallback } from "@azure/msal-common/node";
2
- import { ManagedIdentityId } from "./ManagedIdentityId.js";
3
- /**
4
- * - clientId - Client id of the application.
5
- * - authority - Url of the authority. If no value is set, defaults to https://login.microsoftonline.com/common.
6
- * - knownAuthorities - Needed for Azure B2C and ADFS. All authorities that will be used in the client application. Only the host of the authority should be passed in.
7
- * - clientSecret - Secret string that the application uses when requesting a token. Only used in confidential client applications. Can be created in the Azure app registration portal.
8
- * - clientAssertion - A ClientAssertion object containing an assertion string or a callback function that returns an assertion string that the application uses when requesting a token, as well as the assertion's type (urn:ietf:params:oauth:client-assertion-type:jwt-bearer). Only used in confidential client applications.
9
- * - clientCertificate - Certificate that the application uses when requesting a token. Only used in confidential client applications. Requires hex encoded X.509 SHA-1 or SHA-256 thumbprint of the certificate, and the PEM encoded private key (string should contain -----BEGIN PRIVATE KEY----- ... -----END PRIVATE KEY----- )
10
- * @public
11
- */
12
- export type NodeAuthOptions = {
13
- clientId: string;
14
- authority?: string;
15
- clientSecret?: string;
16
- clientAssertion?: string | ClientAssertionCallback;
17
- clientCertificate?: {
18
- /**
19
- * @deprecated Use thumbprintSha2 property instead. Thumbprint needs to be computed with SHA-256 algorithm.
20
- * SHA-1 is only needed for backwards compatibility with older versions of ADFS.
21
- */
22
- thumbprint?: string;
23
- thumbprintSha256?: string;
24
- privateKey: string;
25
- x5c?: string;
26
- };
27
- knownAuthorities?: Array<string>;
28
- cloudDiscoveryMetadata?: string;
29
- authorityMetadata?: string;
30
- clientCapabilities?: Array<string>;
31
- azureCloudOptions?: AzureCloudOptions;
32
- /**
33
- * Flag on whether a resource parameter is required for token requests. Used for MCP flows.
34
- */
35
- isMcp?: boolean;
36
- };
37
- /**
38
- * Use this to configure the below cache configuration options:
39
- *
40
- * - cachePlugin - Plugin for reading and writing token cache to disk.
41
- * @public
42
- */
43
- export type CacheOptions = {
44
- cachePlugin?: ICachePlugin;
45
- };
46
- /**
47
- * Use this to configure the below broker options:
48
- * - nativeBrokerPlugin - Native broker implementation (should be imported from msal-node-extensions)
49
- *
50
- * Note: These options are only available for PublicClientApplications using the Authorization Code Flow
51
- * @public
52
- */
53
- export type BrokerOptions = {
54
- nativeBrokerPlugin?: INativeBrokerPlugin;
55
- };
56
- /**
57
- * Type for configuring logger and http client options
58
- *
59
- * - logger - Used to initialize the Logger object; TODO: Expand on logger details or link to the documentation on logger
60
- * - networkClient - Http client used for all http get and post calls. Defaults to using MSAL's default http client.
61
- * - protocolMode - Enum that represents the protocol that msal follows. Used for configuring proper endpoints.
62
- * @public
63
- */
64
- export type NodeSystemOptions = {
65
- loggerOptions?: LoggerOptions;
66
- networkClient?: INetworkModule;
67
- disableInternalRetries?: boolean;
68
- protocolMode?: ProtocolMode;
69
- };
70
- /** @public */
71
- export type NodeTelemetryOptions = {
72
- application?: ApplicationTelemetry;
73
- };
74
- /**
75
- * Use the configuration object to configure MSAL and initialize the client application object
76
- *
77
- * - auth: this is where you configure auth elements like clientID, authority used for authenticating against the Microsoft Identity Platform
78
- * - broker: this is where you configure broker options
79
- * - cache: this is where you configure cache location
80
- * - system: this is where you can configure the network client, logger
81
- * - telemetry: this is where you can configure telemetry options
82
- * @public
83
- */
84
- export type Configuration = {
85
- auth: NodeAuthOptions;
86
- broker?: BrokerOptions;
87
- cache?: CacheOptions;
88
- system?: NodeSystemOptions;
89
- telemetry?: NodeTelemetryOptions;
90
- };
91
- /** @public */
92
- export type ManagedIdentityIdParams = {
93
- userAssignedClientId?: string;
94
- userAssignedResourceId?: string;
95
- userAssignedObjectId?: string;
96
- };
97
- /** @public */
98
- export type ManagedIdentityConfiguration = {
99
- clientCapabilities?: Array<string>;
100
- managedIdentityIdParams?: ManagedIdentityIdParams;
101
- system?: NodeSystemOptions;
102
- };
103
- /** @internal */
104
- export type NodeConfiguration = {
105
- auth: Required<NodeAuthOptions>;
106
- broker: BrokerOptions;
107
- cache: CacheOptions;
108
- system: Required<NodeSystemOptions>;
109
- telemetry: Required<NodeTelemetryOptions>;
110
- };
111
- /**
112
- * Sets the default options when not explicitly configured from app developer
113
- *
114
- * @param auth - Authentication options
115
- * @param cache - Cache options
116
- * @param system - System options
117
- * @param telemetry - Telemetry options
118
- *
119
- * @returns Configuration
120
- * @internal
121
- */
122
- export declare function buildAppConfiguration({ auth, broker, cache, system, telemetry, }: Configuration): NodeConfiguration;
123
- /** @internal */
124
- export type ManagedIdentityNodeConfiguration = {
125
- clientCapabilities?: Array<string>;
126
- disableInternalRetries: boolean;
127
- managedIdentityId: ManagedIdentityId;
128
- system: Required<Pick<NodeSystemOptions, "loggerOptions" | "networkClient">>;
129
- };
130
- export declare function buildManagedIdentityConfiguration({ clientCapabilities, managedIdentityIdParams, system, }: ManagedIdentityConfiguration): ManagedIdentityNodeConfiguration;
131
- //# sourceMappingURL=Configuration.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Configuration.d.ts","sourceRoot":"","sources":["../../../src/config/Configuration.ts"],"names":[],"mappings":"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"}
@@ -1,12 +0,0 @@
1
- import { ManagedIdentityIdType } from "../utils/Constants.js";
2
- import type { ManagedIdentityIdParams } from "./Configuration.js";
3
- export declare class ManagedIdentityId {
4
- private _id;
5
- get id(): string;
6
- private set id(value);
7
- private _idType;
8
- get idType(): ManagedIdentityIdType;
9
- private set idType(value);
10
- constructor(managedIdentityIdParams?: ManagedIdentityIdParams);
11
- }
12
- //# sourceMappingURL=ManagedIdentityId.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ManagedIdentityId.d.ts","sourceRoot":"","sources":["../../../src/config/ManagedIdentityId.ts"],"names":[],"mappings":"AASA,OAAO,EAEH,qBAAqB,EACxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAElE,qBAAa,iBAAiB;IAC1B,OAAO,CAAC,GAAG,CAAS;IACpB,IAAW,EAAE,IAAI,MAAM,CAEtB;IACD,OAAO,KAAK,EAAE,QAEb;IAED,OAAO,CAAC,OAAO,CAAwB;IACvC,IAAW,MAAM,IAAI,qBAAqB,CAEzC;IACD,OAAO,KAAK,MAAM,QAEjB;gBAEW,uBAAuB,CAAC,EAAE,uBAAuB;CAwChE"}
@@ -1,13 +0,0 @@
1
- import { HttpMethod, RetryPolicies } from "../utils/Constants.js";
2
- export declare class ManagedIdentityRequestParameters {
3
- private _baseEndpoint;
4
- httpMethod: HttpMethod;
5
- headers: Record<string, string>;
6
- bodyParameters: Record<string, string>;
7
- queryParameters: Record<string, string>;
8
- retryPolicy: RetryPolicies;
9
- constructor(httpMethod: HttpMethod, endpoint: string, retryPolicy?: RetryPolicies);
10
- computeUri(): string;
11
- computeParametersBodyString(): string;
12
- }
13
- //# sourceMappingURL=ManagedIdentityRequestParameters.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ManagedIdentityRequestParameters.d.ts","sourceRoot":"","sources":["../../../src/config/ManagedIdentityRequestParameters.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAElE,qBAAa,gCAAgC;IACzC,OAAO,CAAC,aAAa,CAAS;IACvB,UAAU,EAAE,UAAU,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACvC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,WAAW,EAAE,aAAa,CAAC;gBAG9B,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,aAAa;IAYxB,UAAU,IAAI,MAAM;IAkBpB,2BAA2B,IAAI,MAAM;CAY/C"}
@@ -1,63 +0,0 @@
1
- import { ICrypto, PkceCodes } from "@azure/msal-common/node";
2
- /**
3
- * This class implements MSAL node's crypto interface, which allows it to perform base64 encoding and decoding, generating cryptographically random GUIDs and
4
- * implementing Proof Key for Code Exchange specs for the OAuth Authorization Code Flow using PKCE (rfc here: https://tools.ietf.org/html/rfc7636).
5
- * @public
6
- */
7
- export declare class CryptoProvider implements ICrypto {
8
- private pkceGenerator;
9
- private guidGenerator;
10
- private hashUtils;
11
- constructor();
12
- /**
13
- * base64 URL safe encoded string
14
- */
15
- base64UrlEncode(): string;
16
- /**
17
- * Stringifies and base64Url encodes input public key
18
- * @param inputKid - public key id
19
- * @returns Base64Url encoded public key
20
- */
21
- encodeKid(): string;
22
- /**
23
- * Creates a new random GUID - used to populate state and nonce.
24
- * @returns string (GUID)
25
- */
26
- createNewGuid(): string;
27
- /**
28
- * Encodes input string to base64.
29
- * @param input - string to be encoded
30
- */
31
- base64Encode(input: string): string;
32
- /**
33
- * Decodes input string from base64.
34
- * @param input - string to be decoded
35
- */
36
- base64Decode(input: string): string;
37
- /**
38
- * Generates PKCE codes used in Authorization Code Flow.
39
- */
40
- generatePkceCodes(): Promise<PkceCodes>;
41
- /**
42
- * Generates a keypair, stores it and returns a thumbprint - not yet implemented for node
43
- */
44
- getPublicKeyThumbprint(): Promise<string>;
45
- /**
46
- * Removes cryptographic keypair from key store matching the keyId passed in
47
- * @param kid - public key id
48
- */
49
- removeTokenBindingKey(): Promise<void>;
50
- /**
51
- * Removes all cryptographic keys from Keystore
52
- */
53
- clearKeystore(): Promise<boolean>;
54
- /**
55
- * Signs the given object as a jwt payload with private key retrieved by given kid - currently not implemented for node
56
- */
57
- signJwt(): Promise<string>;
58
- /**
59
- * Returns the SHA-256 hash of an input string
60
- */
61
- hashString(plainText: string): Promise<string>;
62
- }
63
- //# sourceMappingURL=CryptoProvider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CryptoProvider.d.ts","sourceRoot":"","sources":["../../../src/crypto/CryptoProvider.ts"],"names":[],"mappings":"AAKA,OAAO,EAAa,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAMxE;;;;GAIG;AACH,qBAAa,cAAe,YAAW,OAAO;IAC1C,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,SAAS,CAAY;;IAS7B;;OAEG;IACH,eAAe,IAAI,MAAM;IAGzB;;;;OAIG;IACH,SAAS,IAAI,MAAM;IAInB;;;OAGG;IACH,aAAa,IAAI,MAAM;IAIvB;;;OAGG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAInC;;;OAGG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAInC;;OAEG;IACH,iBAAiB,IAAI,OAAO,CAAC,SAAS,CAAC;IAIvC;;OAEG;IACH,sBAAsB,IAAI,OAAO,CAAC,MAAM,CAAC;IAIzC;;;OAGG;IACH,qBAAqB,IAAI,OAAO,CAAC,IAAI,CAAC;IAItC;;OAEG;IACH,aAAa,IAAI,OAAO,CAAC,OAAO,CAAC;IAIjC;;OAEG;IACH,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC;IAI1B;;OAEG;IACG,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAQvD"}
@@ -1,14 +0,0 @@
1
- import { IGuidGenerator } from "@azure/msal-common/node";
2
- export declare class GuidGenerator implements IGuidGenerator {
3
- /**
4
- * Generates a random [RFC 4122](https://www.rfc-editor.org/rfc/rfc4122.txt) version 4 UUID. The UUID is generated using a
5
- * cryptographic pseudorandom number generator.
6
- */
7
- generateGuid(): string;
8
- /**
9
- * verifies if a string is GUID
10
- * @param guid
11
- */
12
- isGuid(guid: string): boolean;
13
- }
14
- //# sourceMappingURL=GuidGenerator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GuidGenerator.d.ts","sourceRoot":"","sources":["../../../src/crypto/GuidGenerator.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAGzD,qBAAa,aAAc,YAAW,cAAc;IAChD;;;OAGG;IACH,YAAY,IAAI,MAAM;IAItB;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;CAKhC"}
@@ -1,10 +0,0 @@
1
- /// <reference types="node" resolution-mode="require"/>
2
- /// <reference types="node" resolution-mode="require"/>
3
- export declare class HashUtils {
4
- /**
5
- * generate 'SHA256' hash
6
- * @param buffer
7
- */
8
- sha256(buffer: string): Buffer;
9
- }
10
- //# sourceMappingURL=HashUtils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HashUtils.d.ts","sourceRoot":"","sources":["../../../src/crypto/HashUtils.ts"],"names":[],"mappings":";;AAQA,qBAAa,SAAS;IAClB;;;OAGG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;CAGjC"}
@@ -1,23 +0,0 @@
1
- import { PkceCodes } from "@azure/msal-common/node";
2
- /**
3
- * https://tools.ietf.org/html/rfc7636#page-8
4
- */
5
- export declare class PkceGenerator {
6
- private hashUtils;
7
- constructor();
8
- /**
9
- * generates the codeVerfier and the challenge from the codeVerfier
10
- * reference: https://tools.ietf.org/html/rfc7636#section-4.1 and https://tools.ietf.org/html/rfc7636#section-4.2
11
- */
12
- generatePkceCodes(): Promise<PkceCodes>;
13
- /**
14
- * generates the codeVerfier; reference: https://tools.ietf.org/html/rfc7636#section-4.1
15
- */
16
- private generateCodeVerifier;
17
- /**
18
- * generate the challenge from the codeVerfier; reference: https://tools.ietf.org/html/rfc7636#section-4.2
19
- * @param codeVerifier
20
- */
21
- private generateCodeChallengeFromVerifier;
22
- }
23
- //# sourceMappingURL=PkceGenerator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PkceGenerator.d.ts","sourceRoot":"","sources":["../../../src/crypto/PkceGenerator.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAa,MAAM,yBAAyB,CAAC;AAM/D;;GAEG;AACH,qBAAa,aAAa;IACtB,OAAO,CAAC,SAAS,CAAY;;IAK7B;;;OAGG;IACG,iBAAiB,IAAI,OAAO,CAAC,SAAS,CAAC;IAM7C;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAmB5B;;;OAGG;IACH,OAAO,CAAC,iCAAiC;CAQ5C"}
@@ -1,8 +0,0 @@
1
- export declare const missingTenantIdError = "missing_tenant_id_error";
2
- export declare const userTimeoutReached = "user_timeout_reached";
3
- export declare const invalidAssertion = "invalid_assertion";
4
- export declare const invalidClientCredential = "invalid_client_credential";
5
- export declare const deviceCodePollingCancelled = "device_code_polling_cancelled";
6
- export declare const deviceCodeExpired = "device_code_expired";
7
- export declare const deviceCodeUnknownError = "device_code_unknown_error";
8
- //# sourceMappingURL=ClientAuthErrorCodes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ClientAuthErrorCodes.d.ts","sourceRoot":"","sources":["../../../src/error/ClientAuthErrorCodes.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,oBAAoB,4BAA4B,CAAC;AAC9D,eAAO,MAAM,kBAAkB,yBAAyB,CAAC;AACzD,eAAO,MAAM,gBAAgB,sBAAsB,CAAC;AACpD,eAAO,MAAM,uBAAuB,8BAA8B,CAAC;AACnE,eAAO,MAAM,0BAA0B,kCAAkC,CAAC;AAC1E,eAAO,MAAM,iBAAiB,wBAAwB,CAAC;AACvD,eAAO,MAAM,sBAAsB,8BAA8B,CAAC"}
@@ -1,31 +0,0 @@
1
- import { AuthError } from "@azure/msal-common/node";
2
- import * as ManagedIdentityErrorCodes from "./ManagedIdentityErrorCodes.js";
3
- export { ManagedIdentityErrorCodes };
4
- /**
5
- * ManagedIdentityErrorMessage class containing string constants used by error codes and messages.
6
- */
7
- export declare const ManagedIdentityErrorMessages: {
8
- invalid_file_extension: string;
9
- invalid_file_path: string;
10
- invalid_managed_identity_id_type: string;
11
- invalid_secret: string;
12
- platform_not_supported: string;
13
- missing_client_id: string;
14
- azure_pod_identity_authority_host_url_malformed: string;
15
- identity_endpoint_url_malformed: string;
16
- imds_endpoint_url_malformed: string;
17
- msi_endpoint_url_malformed: string;
18
- network_unavailable: string;
19
- unable_to_create_azure_arc: string;
20
- unable_to_create_cloud_shell: string;
21
- unable_to_create_source: string;
22
- unable_to_read_secret_file: string;
23
- user_assigned_not_available_at_runtime: string;
24
- www_authenticate_header_missing: string;
25
- www_authenticate_header_unsupported_format: string;
26
- };
27
- export declare class ManagedIdentityError extends AuthError {
28
- constructor(errorCode: string);
29
- }
30
- export declare function createManagedIdentityError(errorCode: string): ManagedIdentityError;
31
- //# sourceMappingURL=ManagedIdentityError.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ManagedIdentityError.d.ts","sourceRoot":"","sources":["../../../src/error/ManagedIdentityError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,yBAAyB,MAAM,gCAAgC,CAAC;AAE5E,OAAO,EAAE,yBAAyB,EAAE,CAAC;AAErC;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;CAqCxC,CAAC;AAEF,qBAAa,oBAAqB,SAAQ,SAAS;gBACnC,SAAS,EAAE,MAAM;CAKhC;AAED,wBAAgB,0BAA0B,CACtC,SAAS,EAAE,MAAM,GAClB,oBAAoB,CAEtB"}
@@ -1,23 +0,0 @@
1
- export declare const invalidFileExtension = "invalid_file_extension";
2
- export declare const invalidFilePath = "invalid_file_path";
3
- export declare const invalidManagedIdentityIdType = "invalid_managed_identity_id_type";
4
- export declare const invalidSecret = "invalid_secret";
5
- export declare const missingId = "missing_client_id";
6
- export declare const networkUnavailable = "network_unavailable";
7
- export declare const platformNotSupported = "platform_not_supported";
8
- export declare const unableToCreateAzureArc = "unable_to_create_azure_arc";
9
- export declare const unableToCreateCloudShell = "unable_to_create_cloud_shell";
10
- export declare const unableToCreateSource = "unable_to_create_source";
11
- export declare const unableToReadSecretFile = "unable_to_read_secret_file";
12
- export declare const urlParseError = "url_parse_error";
13
- export declare const userAssignedNotAvailableAtRuntime = "user_assigned_not_available_at_runtime";
14
- export declare const wwwAuthenticateHeaderMissing = "www_authenticate_header_missing";
15
- export declare const wwwAuthenticateHeaderUnsupportedFormat = "www_authenticate_header_unsupported_format";
16
- export declare const MsiEnvironmentVariableUrlMalformedErrorCodes: {
17
- readonly AZURE_POD_IDENTITY_AUTHORITY_HOST: "azure_pod_identity_authority_host_url_malformed";
18
- readonly IDENTITY_ENDPOINT: "identity_endpoint_url_malformed";
19
- readonly IMDS_ENDPOINT: "imds_endpoint_url_malformed";
20
- readonly MSI_ENDPOINT: "msi_endpoint_url_malformed";
21
- };
22
- export type MsiEnvironmentVariableErrorCodes = (typeof MsiEnvironmentVariableUrlMalformedErrorCodes)[keyof typeof MsiEnvironmentVariableUrlMalformedErrorCodes];
23
- //# sourceMappingURL=ManagedIdentityErrorCodes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ManagedIdentityErrorCodes.d.ts","sourceRoot":"","sources":["../../../src/error/ManagedIdentityErrorCodes.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAC7D,eAAO,MAAM,eAAe,sBAAsB,CAAC;AACnD,eAAO,MAAM,4BAA4B,qCAAqC,CAAC;AAC/E,eAAO,MAAM,aAAa,mBAAmB,CAAC;AAC9C,eAAO,MAAM,SAAS,sBAAsB,CAAC;AAC7C,eAAO,MAAM,kBAAkB,wBAAwB,CAAC;AACxD,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAC7D,eAAO,MAAM,sBAAsB,+BAA+B,CAAC;AACnE,eAAO,MAAM,wBAAwB,iCAAiC,CAAC;AACvE,eAAO,MAAM,oBAAoB,4BAA4B,CAAC;AAC9D,eAAO,MAAM,sBAAsB,+BAA+B,CAAC;AACnE,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAC/C,eAAO,MAAM,iCAAiC,2CACF,CAAC;AAC7C,eAAO,MAAM,4BAA4B,oCAAoC,CAAC;AAC9E,eAAO,MAAM,sCAAsC,+CACH,CAAC;AAEjD,eAAO,MAAM,4CAA4C;;;;;CAS/C,CAAC;AACX,MAAM,MAAM,gCAAgC,GACxC,CAAC,OAAO,4CAA4C,CAAC,CAAC,MAAM,OAAO,4CAA4C,CAAC,CAAC"}
@@ -1,82 +0,0 @@
1
- import { AuthError } from "@azure/msal-common/node";
2
- /**
3
- * NodeAuthErrorMessage class containing string constants used by error codes and messages.
4
- */
5
- export declare const NodeAuthErrorMessage: {
6
- invalidLoopbackAddressType: {
7
- code: string;
8
- desc: string;
9
- };
10
- unableToLoadRedirectUri: {
11
- code: string;
12
- desc: string;
13
- };
14
- noAuthCodeInResponse: {
15
- code: string;
16
- desc: string;
17
- };
18
- noLoopbackServerExists: {
19
- code: string;
20
- desc: string;
21
- };
22
- loopbackServerAlreadyExists: {
23
- code: string;
24
- desc: string;
25
- };
26
- loopbackServerTimeout: {
27
- code: string;
28
- desc: string;
29
- };
30
- stateNotFoundError: {
31
- code: string;
32
- desc: string;
33
- };
34
- thumbprintMissing: {
35
- code: string;
36
- desc: string;
37
- };
38
- redirectUriNotSupported: {
39
- code: string;
40
- desc: string;
41
- };
42
- };
43
- export declare class NodeAuthError extends AuthError {
44
- constructor(errorCode: string, errorMessage?: string);
45
- /**
46
- * Creates an error thrown if loopback server address is of type string.
47
- */
48
- static createInvalidLoopbackAddressTypeError(): NodeAuthError;
49
- /**
50
- * Creates an error thrown if the loopback server is unable to get a url.
51
- */
52
- static createUnableToLoadRedirectUrlError(): NodeAuthError;
53
- /**
54
- * Creates an error thrown if the server response does not contain an auth code.
55
- */
56
- static createNoAuthCodeInResponseError(): NodeAuthError;
57
- /**
58
- * Creates an error thrown if the loopback server has not been spun up yet.
59
- */
60
- static createNoLoopbackServerExistsError(): NodeAuthError;
61
- /**
62
- * Creates an error thrown if a loopback server already exists when attempting to create another one.
63
- */
64
- static createLoopbackServerAlreadyExistsError(): NodeAuthError;
65
- /**
66
- * Creates an error thrown if the loopback server times out registering the auth code listener.
67
- */
68
- static createLoopbackServerTimeoutError(): NodeAuthError;
69
- /**
70
- * Creates an error thrown when the state is not present.
71
- */
72
- static createStateNotFoundError(): NodeAuthError;
73
- /**
74
- * Creates an error thrown when client certificate was provided, but neither the SHA-1 or SHA-256 thumbprints were provided
75
- */
76
- static createThumbprintMissingError(): NodeAuthError;
77
- /**
78
- * Creates an error thrown when redirectUri is provided in an unsupported scenario
79
- */
80
- static createRedirectUriNotSupportedError(): NodeAuthError;
81
- }
82
- //# sourceMappingURL=NodeAuthError.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,54 +0,0 @@
1
- /**
2
- * @packageDocumentation
3
- * @module @azure/msal-node
4
- */
5
- /**
6
- * Warning: This set of exports is purely intended to be used by other MSAL libraries, and should be considered potentially unstable. We strongly discourage using them directly, you do so at your own risk.
7
- * Breaking changes to these APIs will be shipped under a minor version, instead of a major version.
8
- */
9
- import * as internals from "./internals.js";
10
- export { internals };
11
- export { IPublicClientApplication } from "./client/IPublicClientApplication.js";
12
- export { IConfidentialClientApplication } from "./client/IConfidentialClientApplication.js";
13
- export { ITokenCache } from "./cache/ITokenCache.js";
14
- export { ICacheClient } from "./cache/distributed/ICacheClient.js";
15
- export { IPartitionManager } from "./cache/distributed/IPartitionManager.js";
16
- export { ILoopbackClient } from "./network/ILoopbackClient.js";
17
- export { PublicClientApplication } from "./client/PublicClientApplication.js";
18
- export { ConfidentialClientApplication } from "./client/ConfidentialClientApplication.js";
19
- export { ManagedIdentityApplication } from "./client/ManagedIdentityApplication.js";
20
- export { Configuration, ManagedIdentityConfiguration, ManagedIdentityIdParams, NodeAuthOptions, NodeSystemOptions, BrokerOptions, NodeTelemetryOptions, CacheOptions, } from "./config/Configuration.js";
21
- export { ClientAssertion } from "./client/ClientAssertion.js";
22
- export { TokenCache } from "./cache/TokenCache.js";
23
- export { CacheKVStore, JsonCache, InMemoryCache, SerializedAccountEntity, SerializedIdTokenEntity, SerializedAccessTokenEntity, SerializedAppMetadataEntity, SerializedRefreshTokenEntity, } from "./cache/serializer/SerializerTypes.js";
24
- export { DistributedCachePlugin } from "./cache/distributed/DistributedCachePlugin.js";
25
- export { ManagedIdentitySourceNames } from "./utils/Constants.js";
26
- export type { AuthorizationCodeRequest } from "./request/AuthorizationCodeRequest.js";
27
- export type { AuthorizationUrlRequest } from "./request/AuthorizationUrlRequest.js";
28
- export type { ClientCredentialRequest } from "./request/ClientCredentialRequest.js";
29
- export type { DeviceCodeRequest } from "./request/DeviceCodeRequest.js";
30
- export type { OnBehalfOfRequest } from "./request/OnBehalfOfRequest.js";
31
- export type { UsernamePasswordRequest } from "./request/UsernamePasswordRequest.js";
32
- export type { RefreshTokenRequest } from "./request/RefreshTokenRequest.js";
33
- export type { SilentFlowRequest } from "./request/SilentFlowRequest.js";
34
- export type { InteractiveRequest } from "./request/InteractiveRequest.js";
35
- export type { SignOutRequest } from "./request/SignOutRequest.js";
36
- export type { ManagedIdentityRequestParams } from "./request/ManagedIdentityRequestParams.js";
37
- declare const PromptValue: {
38
- LOGIN: string;
39
- SELECT_ACCOUNT: string;
40
- CONSENT: string;
41
- NONE: string;
42
- CREATE: string;
43
- NO_SESSION: string;
44
- };
45
- declare const ResponseMode: {
46
- readonly QUERY: "query";
47
- readonly FRAGMENT: "fragment";
48
- readonly FORM_POST: "form_post";
49
- };
50
- export { PromptValue, ResponseMode };
51
- export { CryptoProvider } from "./crypto/CryptoProvider.js";
52
- export { AuthorizationCodePayload, AuthenticationResult, AuthorizeResponse, IdTokenClaims, AccountInfo, ValidCacheType, AuthError, AuthErrorCodes, ClientAuthError, ClientAuthErrorCodes, ClientConfigurationError, ClientConfigurationErrorCodes, InteractionRequiredAuthError, InteractionRequiredAuthErrorCodes, ServerError, INetworkModule, NetworkRequestOptions, NetworkResponse, Logger, LogLevel, ProtocolMode, ICachePlugin, TokenCacheContext, ISerializableTokenCache, AzureCloudInstance, AzureCloudOptions, IAppTokenProvider, AppTokenProviderParameters, AppTokenProviderResult, INativeBrokerPlugin, ClientAssertionCallback, } from "@azure/msal-common/node";
53
- export { version } from "./packageMetadata.js";
54
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"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"}
@@ -1,7 +0,0 @@
1
- /**
2
- * Warning: This set of exports is purely intended to be used by other MSAL libraries, and should be considered potentially unstable. We strongly discourage using them directly, you do so at your own risk.
3
- * Breaking changes to these APIs will be shipped under a minor version, instead of a major version.
4
- */
5
- export { Serializer } from "./cache/serializer/Serializer.js";
6
- export { Deserializer } from "./cache/serializer/Deserializer.js";
7
- //# sourceMappingURL=internals.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"internals.d.ts","sourceRoot":"","sources":["../../src/internals.ts"],"names":[],"mappings":"AAKA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC"}
@@ -1,66 +0,0 @@
1
- import { INetworkModule, NetworkRequestOptions, NetworkResponse } from "@azure/msal-common/node";
2
- /**
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
- */
9
- export declare class HttpClient implements INetworkModule {
10
- /**
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
24
- */
25
- sendGetRequestAsync<T>(url: string, options?: NetworkRequestOptions, timeout?: number): Promise<NetworkResponse<T>>;
26
- /**
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
38
- */
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;
65
- }
66
- //# sourceMappingURL=HttpClient.d.ts.map
@@ -1 +0,0 @@
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,13 +0,0 @@
1
- import { INetworkModule, Logger, NetworkRequestOptions, NetworkResponse } from "@azure/msal-common/node";
2
- import { IHttpRetryPolicy } from "../retry/IHttpRetryPolicy.js";
3
- export declare class HttpClientWithRetries implements INetworkModule {
4
- private httpClientNoRetries;
5
- private retryPolicy;
6
- private logger;
7
- constructor(httpClientNoRetries: INetworkModule, retryPolicy: IHttpRetryPolicy, logger: Logger);
8
- private sendNetworkRequestAsyncHelper;
9
- private sendNetworkRequestAsync;
10
- sendGetRequestAsync<T>(url: string, options?: NetworkRequestOptions): Promise<NetworkResponse<T>>;
11
- sendPostRequestAsync<T>(url: string, options?: NetworkRequestOptions): Promise<NetworkResponse<T>>;
12
- }
13
- //# sourceMappingURL=HttpClientWithRetries.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HttpClientWithRetries.d.ts","sourceRoot":"","sources":["../../../src/network/HttpClientWithRetries.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,cAAc,EACd,MAAM,EACN,qBAAqB,EACrB,eAAe,EAClB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAGhE,qBAAa,qBAAsB,YAAW,cAAc;IACxD,OAAO,CAAC,mBAAmB,CAAiB;IAC5C,OAAO,CAAC,WAAW,CAAmB;IACtC,OAAO,CAAC,MAAM,CAAS;gBAGnB,mBAAmB,EAAE,cAAc,EACnC,WAAW,EAAE,gBAAgB,EAC7B,MAAM,EAAE,MAAM;YAOJ,6BAA6B;YAY7B,uBAAuB;IAiCxB,mBAAmB,CAAC,CAAC,EAC9B,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,qBAAqB,GAChC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;IAIjB,oBAAoB,CAAC,CAAC,EAC/B,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,qBAAqB,GAChC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;CAGjC"}