@azure/msal-node 2.13.1 → 2.15.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 (421) hide show
  1. package/dist/cache/ITokenCache.d.ts +1 -1
  2. package/dist/cache/ITokenCache.d.ts.map +1 -1
  3. package/dist/cache/NodeStorage.d.ts +1 -1
  4. package/dist/cache/NodeStorage.d.ts.map +1 -1
  5. package/dist/cache/NodeStorage.mjs +2 -2
  6. package/dist/cache/TokenCache.d.ts +1 -1
  7. package/dist/cache/TokenCache.d.ts.map +1 -1
  8. package/dist/cache/TokenCache.mjs +2 -2
  9. package/dist/cache/distributed/DistributedCachePlugin.d.ts +1 -1
  10. package/dist/cache/distributed/DistributedCachePlugin.d.ts.map +1 -1
  11. package/dist/cache/distributed/DistributedCachePlugin.mjs +2 -2
  12. package/dist/cache/distributed/IPartitionManager.d.ts +1 -1
  13. package/dist/cache/distributed/IPartitionManager.d.ts.map +1 -1
  14. package/dist/cache/serializer/Deserializer.d.ts +1 -1
  15. package/dist/cache/serializer/Deserializer.d.ts.map +1 -1
  16. package/dist/cache/serializer/Deserializer.mjs +2 -2
  17. package/dist/cache/serializer/Serializer.d.ts +1 -1
  18. package/dist/cache/serializer/Serializer.d.ts.map +1 -1
  19. package/dist/cache/serializer/Serializer.mjs +1 -1
  20. package/dist/cache/serializer/SerializerTypes.d.ts +1 -1
  21. package/dist/cache/serializer/SerializerTypes.d.ts.map +1 -1
  22. package/dist/client/ClientApplication.d.ts +1 -1
  23. package/dist/client/ClientApplication.d.ts.map +1 -1
  24. package/dist/client/ClientApplication.mjs +2 -2
  25. package/dist/client/ClientAssertion.mjs +2 -2
  26. package/dist/client/ClientCredentialClient.d.ts +2 -2
  27. package/dist/client/ClientCredentialClient.d.ts.map +1 -1
  28. package/dist/client/ClientCredentialClient.mjs +2 -2
  29. package/dist/client/ConfidentialClientApplication.d.ts +1 -1
  30. package/dist/client/ConfidentialClientApplication.d.ts.map +1 -1
  31. package/dist/client/ConfidentialClientApplication.mjs +2 -2
  32. package/dist/client/DeviceCodeClient.d.ts +1 -1
  33. package/dist/client/DeviceCodeClient.d.ts.map +1 -1
  34. package/dist/client/DeviceCodeClient.mjs +2 -2
  35. package/dist/client/IConfidentialClientApplication.d.ts +1 -1
  36. package/dist/client/IConfidentialClientApplication.d.ts.map +1 -1
  37. package/dist/client/IPublicClientApplication.d.ts +1 -1
  38. package/dist/client/IPublicClientApplication.d.ts.map +1 -1
  39. package/dist/client/ManagedIdentityApplication.d.ts +4 -4
  40. package/dist/client/ManagedIdentityApplication.d.ts.map +1 -1
  41. package/dist/client/ManagedIdentityApplication.mjs +4 -3
  42. package/dist/client/ManagedIdentityApplication.mjs.map +1 -1
  43. package/dist/client/ManagedIdentityClient.d.ts +6 -6
  44. package/dist/client/ManagedIdentityClient.d.ts.map +1 -1
  45. package/dist/client/ManagedIdentityClient.mjs +1 -1
  46. package/dist/client/ManagedIdentitySources/AppService.d.ts +6 -6
  47. package/dist/client/ManagedIdentitySources/AppService.d.ts.map +1 -1
  48. package/dist/client/ManagedIdentitySources/AppService.mjs +1 -1
  49. package/dist/client/ManagedIdentitySources/AzureArc.d.ts +7 -7
  50. package/dist/client/ManagedIdentitySources/AzureArc.d.ts.map +1 -1
  51. package/dist/client/ManagedIdentitySources/AzureArc.mjs +2 -2
  52. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts +8 -8
  53. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +1 -1
  54. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs +2 -2
  55. package/dist/client/ManagedIdentitySources/CloudShell.d.ts +6 -6
  56. package/dist/client/ManagedIdentitySources/CloudShell.d.ts.map +1 -1
  57. package/dist/client/ManagedIdentitySources/CloudShell.mjs +1 -1
  58. package/dist/client/ManagedIdentitySources/Imds.d.ts +6 -6
  59. package/dist/client/ManagedIdentitySources/Imds.d.ts.map +1 -1
  60. package/dist/client/ManagedIdentitySources/Imds.mjs +1 -1
  61. package/dist/client/ManagedIdentitySources/ServiceFabric.d.ts +6 -6
  62. package/dist/client/ManagedIdentitySources/ServiceFabric.d.ts.map +1 -1
  63. package/dist/client/ManagedIdentitySources/ServiceFabric.mjs +1 -1
  64. package/dist/client/OnBehalfOfClient.d.ts +1 -1
  65. package/dist/client/OnBehalfOfClient.d.ts.map +1 -1
  66. package/dist/client/OnBehalfOfClient.mjs +2 -2
  67. package/dist/client/PublicClientApplication.d.ts +1 -1
  68. package/dist/client/PublicClientApplication.d.ts.map +1 -1
  69. package/dist/client/PublicClientApplication.mjs +2 -2
  70. package/dist/client/UsernamePasswordClient.d.ts +1 -1
  71. package/dist/client/UsernamePasswordClient.d.ts.map +1 -1
  72. package/dist/client/UsernamePasswordClient.mjs +2 -2
  73. package/dist/config/Configuration.d.ts +3 -3
  74. package/dist/config/Configuration.d.ts.map +1 -1
  75. package/dist/config/Configuration.mjs +2 -2
  76. package/dist/config/ManagedIdentityId.d.ts +2 -2
  77. package/dist/config/ManagedIdentityId.d.ts.map +1 -1
  78. package/dist/config/ManagedIdentityId.mjs +1 -1
  79. package/dist/config/ManagedIdentityRequestParameters.d.ts +1 -1
  80. package/dist/config/ManagedIdentityRequestParameters.d.ts.map +1 -1
  81. package/dist/config/ManagedIdentityRequestParameters.mjs +2 -2
  82. package/dist/crypto/CryptoProvider.d.ts +1 -1
  83. package/dist/crypto/CryptoProvider.d.ts.map +1 -1
  84. package/dist/crypto/CryptoProvider.mjs +1 -1
  85. package/dist/crypto/GuidGenerator.d.ts +1 -1
  86. package/dist/crypto/GuidGenerator.d.ts.map +1 -1
  87. package/dist/crypto/GuidGenerator.mjs +1 -1
  88. package/dist/crypto/HashUtils.d.ts +1 -1
  89. package/dist/crypto/HashUtils.mjs +1 -1
  90. package/dist/crypto/PkceGenerator.d.ts +1 -1
  91. package/dist/crypto/PkceGenerator.d.ts.map +1 -1
  92. package/dist/crypto/PkceGenerator.mjs +2 -2
  93. package/dist/error/ManagedIdentityError.d.ts +2 -2
  94. package/dist/error/ManagedIdentityError.d.ts.map +1 -1
  95. package/dist/error/ManagedIdentityError.mjs +2 -2
  96. package/dist/error/ManagedIdentityErrorCodes.mjs +1 -1
  97. package/dist/error/NodeAuthError.d.ts +1 -1
  98. package/dist/error/NodeAuthError.d.ts.map +1 -1
  99. package/dist/error/NodeAuthError.mjs +2 -2
  100. package/dist/index.d.ts +1 -1
  101. package/dist/index.d.ts.map +1 -1
  102. package/dist/index.mjs +2 -2
  103. package/dist/internals.mjs +1 -1
  104. package/dist/network/HttpClient.d.ts +3 -3
  105. package/dist/network/HttpClient.d.ts.map +1 -1
  106. package/dist/network/HttpClient.mjs +2 -2
  107. package/dist/network/HttpClientWithRetries.d.ts +2 -2
  108. package/dist/network/HttpClientWithRetries.d.ts.map +1 -1
  109. package/dist/network/HttpClientWithRetries.mjs +2 -2
  110. package/dist/network/ILoopbackClient.d.ts +1 -1
  111. package/dist/network/ILoopbackClient.d.ts.map +1 -1
  112. package/dist/network/LoopbackClient.d.ts +1 -1
  113. package/dist/network/LoopbackClient.d.ts.map +1 -1
  114. package/dist/network/LoopbackClient.mjs +2 -2
  115. package/dist/packageMetadata.d.ts +1 -1
  116. package/dist/packageMetadata.mjs +2 -2
  117. package/dist/request/AuthorizationCodeRequest.d.ts +1 -1
  118. package/dist/request/AuthorizationCodeRequest.d.ts.map +1 -1
  119. package/dist/request/AuthorizationUrlRequest.d.ts +1 -1
  120. package/dist/request/AuthorizationUrlRequest.d.ts.map +1 -1
  121. package/dist/request/ClientCredentialRequest.d.ts +1 -1
  122. package/dist/request/ClientCredentialRequest.d.ts.map +1 -1
  123. package/dist/request/DeviceCodeRequest.d.ts +1 -1
  124. package/dist/request/DeviceCodeRequest.d.ts.map +1 -1
  125. package/dist/request/InteractiveRequest.d.ts +3 -3
  126. package/dist/request/InteractiveRequest.d.ts.map +1 -1
  127. package/dist/request/ManagedIdentityRequest.d.ts +2 -2
  128. package/dist/request/ManagedIdentityRequest.d.ts.map +1 -1
  129. package/dist/request/ManagedIdentityRequestParams.d.ts +3 -1
  130. package/dist/request/ManagedIdentityRequestParams.d.ts.map +1 -1
  131. package/dist/request/OnBehalfOfRequest.d.ts +1 -1
  132. package/dist/request/OnBehalfOfRequest.d.ts.map +1 -1
  133. package/dist/request/RefreshTokenRequest.d.ts +1 -1
  134. package/dist/request/RefreshTokenRequest.d.ts.map +1 -1
  135. package/dist/request/SignOutRequest.d.ts +1 -1
  136. package/dist/request/SignOutRequest.d.ts.map +1 -1
  137. package/dist/request/SilentFlowRequest.d.ts +2 -2
  138. package/dist/request/SilentFlowRequest.d.ts.map +1 -1
  139. package/dist/request/UsernamePasswordRequest.d.ts +1 -1
  140. package/dist/request/UsernamePasswordRequest.d.ts.map +1 -1
  141. package/dist/response/ManagedIdentityTokenResponse.d.ts +1 -1
  142. package/dist/response/ManagedIdentityTokenResponse.d.ts.map +1 -1
  143. package/dist/retry/IHttpRetryPolicy.d.ts +1 -1
  144. package/dist/retry/LinearRetryPolicy.d.ts +2 -2
  145. package/dist/retry/LinearRetryPolicy.d.ts.map +1 -1
  146. package/dist/retry/LinearRetryPolicy.mjs +1 -1
  147. package/dist/utils/Constants.mjs +2 -2
  148. package/dist/utils/EncodingUtils.d.ts +1 -1
  149. package/dist/utils/EncodingUtils.mjs +2 -2
  150. package/dist/utils/NetworkUtils.d.ts +1 -1
  151. package/dist/utils/NetworkUtils.d.ts.map +1 -1
  152. package/dist/utils/NetworkUtils.mjs +1 -1
  153. package/dist/utils/NetworkUtils.mjs.map +1 -1
  154. package/lib/msal-node.cjs +12363 -0
  155. package/lib/msal-node.cjs.map +1 -0
  156. package/lib/package.json +1 -0
  157. package/lib/types/cache/ITokenCache.d.ts +16 -0
  158. package/lib/types/cache/ITokenCache.d.ts.map +1 -0
  159. package/lib/types/cache/NodeStorage.d.ts +194 -0
  160. package/lib/types/cache/NodeStorage.d.ts.map +1 -0
  161. package/lib/types/cache/TokenCache.d.ts +91 -0
  162. package/lib/types/cache/TokenCache.d.ts.map +1 -0
  163. package/lib/types/cache/distributed/DistributedCachePlugin.d.ts +11 -0
  164. package/lib/types/cache/distributed/DistributedCachePlugin.d.ts.map +1 -0
  165. package/lib/types/cache/distributed/ICacheClient.d.ts +18 -0
  166. package/lib/types/cache/distributed/ICacheClient.d.ts.map +1 -0
  167. package/lib/types/cache/distributed/IPartitionManager.d.ts +29 -0
  168. package/lib/types/cache/distributed/IPartitionManager.d.ts.map +1 -0
  169. package/lib/types/cache/serializer/Deserializer.d.ts +43 -0
  170. package/lib/types/cache/serializer/Deserializer.d.ts.map +1 -0
  171. package/lib/types/cache/serializer/Serializer.d.ts +40 -0
  172. package/lib/types/cache/serializer/Serializer.d.ts.map +1 -0
  173. package/lib/types/cache/serializer/SerializerTypes.d.ts +103 -0
  174. package/lib/types/cache/serializer/SerializerTypes.d.ts.map +1 -0
  175. package/lib/types/client/ClientApplication.d.ts +144 -0
  176. package/lib/types/client/ClientApplication.d.ts.map +1 -0
  177. package/lib/types/client/ClientAssertion.d.ts +56 -0
  178. package/lib/types/client/ClientAssertion.d.ts.map +1 -0
  179. package/lib/types/client/ClientCredentialClient.d.ts +34 -0
  180. package/lib/types/client/ClientCredentialClient.d.ts.map +1 -0
  181. package/lib/types/client/ConfidentialClientApplication.d.ts +59 -0
  182. package/lib/types/client/ConfidentialClientApplication.d.ts.map +1 -0
  183. package/lib/types/client/DeviceCodeClient.d.ts +54 -0
  184. package/lib/types/client/DeviceCodeClient.d.ts.map +1 -0
  185. package/lib/types/client/IConfidentialClientApplication.d.ts +40 -0
  186. package/lib/types/client/IConfidentialClientApplication.d.ts.map +1 -0
  187. package/lib/types/client/IPublicClientApplication.d.ts +43 -0
  188. package/lib/types/client/IPublicClientApplication.d.ts.map +1 -0
  189. package/lib/types/client/ManagedIdentityApplication.d.ts +31 -0
  190. package/lib/types/client/ManagedIdentityApplication.d.ts.map +1 -0
  191. package/lib/types/client/ManagedIdentityClient.d.ts +28 -0
  192. package/lib/types/client/ManagedIdentityClient.d.ts.map +1 -0
  193. package/lib/types/client/ManagedIdentitySources/AppService.d.ts +18 -0
  194. package/lib/types/client/ManagedIdentitySources/AppService.d.ts.map +1 -0
  195. package/lib/types/client/ManagedIdentitySources/AzureArc.d.ts +28 -0
  196. package/lib/types/client/ManagedIdentitySources/AzureArc.d.ts.map +1 -0
  197. package/lib/types/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts +31 -0
  198. package/lib/types/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +1 -0
  199. package/lib/types/client/ManagedIdentitySources/CloudShell.d.ts +17 -0
  200. package/lib/types/client/ManagedIdentitySources/CloudShell.d.ts.map +1 -0
  201. package/lib/types/client/ManagedIdentitySources/Imds.d.ts +13 -0
  202. package/lib/types/client/ManagedIdentitySources/Imds.d.ts.map +1 -0
  203. package/lib/types/client/ManagedIdentitySources/ServiceFabric.d.ts +18 -0
  204. package/lib/types/client/ManagedIdentitySources/ServiceFabric.d.ts.map +1 -0
  205. package/lib/types/client/OnBehalfOfClient.d.ts +48 -0
  206. package/lib/types/client/OnBehalfOfClient.d.ts.map +1 -0
  207. package/lib/types/client/PublicClientApplication.d.ts +73 -0
  208. package/lib/types/client/PublicClientApplication.d.ts.map +1 -0
  209. package/lib/types/client/UsernamePasswordClient.d.ts +26 -0
  210. package/lib/types/client/UsernamePasswordClient.d.ts.map +1 -0
  211. package/lib/types/config/Configuration.d.ts +132 -0
  212. package/lib/types/config/Configuration.d.ts.map +1 -0
  213. package/lib/types/config/ManagedIdentityId.d.ts +12 -0
  214. package/lib/types/config/ManagedIdentityId.d.ts.map +1 -0
  215. package/lib/types/config/ManagedIdentityRequestParameters.d.ts +12 -0
  216. package/lib/types/config/ManagedIdentityRequestParameters.d.ts.map +1 -0
  217. package/lib/types/crypto/CryptoProvider.d.ts +63 -0
  218. package/lib/types/crypto/CryptoProvider.d.ts.map +1 -0
  219. package/lib/types/crypto/GuidGenerator.d.ts +15 -0
  220. package/lib/types/crypto/GuidGenerator.d.ts.map +1 -0
  221. package/lib/types/crypto/HashUtils.d.ts +9 -0
  222. package/lib/types/crypto/HashUtils.d.ts.map +1 -0
  223. package/lib/types/crypto/PkceGenerator.d.ts +23 -0
  224. package/lib/types/crypto/PkceGenerator.d.ts.map +1 -0
  225. package/lib/types/error/ManagedIdentityError.d.ts +31 -0
  226. package/lib/types/error/ManagedIdentityError.d.ts.map +1 -0
  227. package/lib/types/error/ManagedIdentityErrorCodes.d.ts +23 -0
  228. package/lib/types/error/ManagedIdentityErrorCodes.d.ts.map +1 -0
  229. package/lib/types/error/NodeAuthError.d.ts +74 -0
  230. package/lib/types/error/NodeAuthError.d.ts.map +1 -0
  231. package/lib/types/index.d.ts +46 -0
  232. package/lib/types/index.d.ts.map +1 -0
  233. package/lib/types/internals.d.ts +7 -0
  234. package/lib/types/internals.d.ts.map +1 -0
  235. package/lib/types/network/HttpClient.d.ts +26 -0
  236. package/lib/types/network/HttpClient.d.ts.map +1 -0
  237. package/lib/types/network/HttpClientWithRetries.d.ts +12 -0
  238. package/lib/types/network/HttpClientWithRetries.d.ts.map +1 -0
  239. package/lib/types/network/ILoopbackClient.d.ts +11 -0
  240. package/lib/types/network/ILoopbackClient.d.ts.map +1 -0
  241. package/lib/types/network/LoopbackClient.d.ts +22 -0
  242. package/lib/types/network/LoopbackClient.d.ts.map +1 -0
  243. package/lib/types/packageMetadata.d.ts +3 -0
  244. package/lib/types/packageMetadata.d.ts.map +1 -0
  245. package/lib/types/request/AuthorizationCodeRequest.d.ts +22 -0
  246. package/lib/types/request/AuthorizationCodeRequest.d.ts.map +1 -0
  247. package/lib/types/request/AuthorizationUrlRequest.d.ts +34 -0
  248. package/lib/types/request/AuthorizationUrlRequest.d.ts.map +1 -0
  249. package/lib/types/request/ClientCredentialRequest.d.ts +15 -0
  250. package/lib/types/request/ClientCredentialRequest.d.ts.map +1 -0
  251. package/lib/types/request/DeviceCodeRequest.d.ts +16 -0
  252. package/lib/types/request/DeviceCodeRequest.d.ts.map +1 -0
  253. package/lib/types/request/InteractiveRequest.d.ts +23 -0
  254. package/lib/types/request/InteractiveRequest.d.ts.map +1 -0
  255. package/lib/types/request/ManagedIdentityRequest.d.ts +9 -0
  256. package/lib/types/request/ManagedIdentityRequest.d.ts.map +1 -0
  257. package/lib/types/request/ManagedIdentityRequestParams.d.ts +12 -0
  258. package/lib/types/request/ManagedIdentityRequestParams.d.ts.map +1 -0
  259. package/lib/types/request/OnBehalfOfRequest.d.ts +15 -0
  260. package/lib/types/request/OnBehalfOfRequest.d.ts.map +1 -0
  261. package/lib/types/request/RefreshTokenRequest.d.ts +18 -0
  262. package/lib/types/request/RefreshTokenRequest.d.ts.map +1 -0
  263. package/lib/types/request/SignOutRequest.d.ts +6 -0
  264. package/lib/types/request/SignOutRequest.d.ts.map +1 -0
  265. package/lib/types/request/SilentFlowRequest.d.ts +17 -0
  266. package/lib/types/request/SilentFlowRequest.d.ts.map +1 -0
  267. package/lib/types/request/UsernamePasswordRequest.d.ts +20 -0
  268. package/lib/types/request/UsernamePasswordRequest.d.ts.map +1 -0
  269. package/lib/types/response/ManagedIdentityTokenResponse.d.ts +35 -0
  270. package/lib/types/response/ManagedIdentityTokenResponse.d.ts.map +1 -0
  271. package/lib/types/retry/IHttpRetryPolicy.d.ts +6 -0
  272. package/lib/types/retry/IHttpRetryPolicy.d.ts.map +1 -0
  273. package/lib/types/retry/LinearRetryPolicy.d.ts +12 -0
  274. package/lib/types/retry/LinearRetryPolicy.d.ts.map +1 -0
  275. package/lib/types/utils/Constants.d.ts +142 -0
  276. package/lib/types/utils/Constants.d.ts.map +1 -0
  277. package/lib/types/utils/EncodingUtils.d.ts +27 -0
  278. package/lib/types/utils/EncodingUtils.d.ts.map +1 -0
  279. package/lib/types/utils/NetworkUtils.d.ts +6 -0
  280. package/lib/types/utils/NetworkUtils.d.ts.map +1 -0
  281. package/package.json +14 -11
  282. package/src/cache/ITokenCache.ts +1 -1
  283. package/src/cache/NodeStorage.ts +1 -1
  284. package/src/cache/TokenCache.ts +1 -1
  285. package/src/cache/distributed/DistributedCachePlugin.ts +1 -1
  286. package/src/cache/distributed/IPartitionManager.ts +1 -1
  287. package/src/cache/serializer/Deserializer.ts +1 -1
  288. package/src/cache/serializer/Serializer.ts +1 -1
  289. package/src/cache/serializer/SerializerTypes.ts +1 -1
  290. package/src/client/ClientApplication.ts +1 -1
  291. package/src/client/ClientAssertion.ts +1 -1
  292. package/src/client/ClientCredentialClient.ts +2 -2
  293. package/src/client/ConfidentialClientApplication.ts +1 -1
  294. package/src/client/DeviceCodeClient.ts +1 -1
  295. package/src/client/IConfidentialClientApplication.ts +1 -1
  296. package/src/client/IPublicClientApplication.ts +5 -1
  297. package/src/client/ManagedIdentityApplication.ts +13 -10
  298. package/src/client/ManagedIdentityClient.ts +13 -13
  299. package/src/client/ManagedIdentitySources/AppService.ts +7 -7
  300. package/src/client/ManagedIdentitySources/AzureArc.ts +9 -9
  301. package/src/client/ManagedIdentitySources/BaseManagedIdentitySource.ts +9 -9
  302. package/src/client/ManagedIdentitySources/CloudShell.ts +8 -8
  303. package/src/client/ManagedIdentitySources/Imds.ts +7 -7
  304. package/src/client/ManagedIdentitySources/ServiceFabric.ts +7 -7
  305. package/src/client/OnBehalfOfClient.ts +2 -2
  306. package/src/client/PublicClientApplication.ts +2 -2
  307. package/src/client/UsernamePasswordClient.ts +1 -1
  308. package/src/config/Configuration.ts +1 -1
  309. package/src/config/ManagedIdentityId.ts +3 -3
  310. package/src/config/ManagedIdentityRequestParameters.ts +2 -2
  311. package/src/crypto/CryptoProvider.ts +1 -1
  312. package/src/crypto/GuidGenerator.ts +1 -1
  313. package/src/crypto/PkceGenerator.ts +1 -1
  314. package/src/error/ManagedIdentityError.ts +3 -3
  315. package/src/error/ManagedIdentityErrorCodes.ts +1 -1
  316. package/src/error/NodeAuthError.ts +1 -1
  317. package/src/index.ts +1 -1
  318. package/src/network/HttpClient.ts +1 -1
  319. package/src/network/HttpClientWithRetries.ts +3 -3
  320. package/src/network/ILoopbackClient.ts +1 -1
  321. package/src/network/LoopbackClient.ts +1 -1
  322. package/src/packageMetadata.ts +1 -1
  323. package/src/request/AuthorizationCodeRequest.ts +1 -1
  324. package/src/request/AuthorizationUrlRequest.ts +1 -1
  325. package/src/request/ClientCredentialRequest.ts +1 -1
  326. package/src/request/DeviceCodeRequest.ts +1 -1
  327. package/src/request/InteractiveRequest.ts +6 -13
  328. package/src/request/ManagedIdentityRequest.ts +2 -2
  329. package/src/request/ManagedIdentityRequestParams.ts +3 -1
  330. package/src/request/OnBehalfOfRequest.ts +1 -1
  331. package/src/request/RefreshTokenRequest.ts +1 -1
  332. package/src/request/SignOutRequest.ts +1 -1
  333. package/src/request/SilentFlowRequest.ts +2 -7
  334. package/src/request/UsernamePasswordRequest.ts +1 -1
  335. package/src/response/ManagedIdentityTokenResponse.ts +1 -1
  336. package/src/retry/LinearRetryPolicy.ts +1 -1
  337. package/src/utils/Constants.ts +1 -1
  338. package/src/utils/EncodingUtils.ts +1 -1
  339. package/src/utils/NetworkUtils.ts +4 -1
  340. package/dist/cache/NodeStorage.cjs +0 -434
  341. package/dist/cache/NodeStorage.cjs.map +0 -1
  342. package/dist/cache/TokenCache.cjs +0 -276
  343. package/dist/cache/TokenCache.cjs.map +0 -1
  344. package/dist/cache/distributed/DistributedCachePlugin.cjs +0 -35
  345. package/dist/cache/distributed/DistributedCachePlugin.cjs.map +0 -1
  346. package/dist/cache/serializer/Deserializer.cjs +0 -176
  347. package/dist/cache/serializer/Deserializer.cjs.map +0 -1
  348. package/dist/cache/serializer/Serializer.cjs +0 -144
  349. package/dist/cache/serializer/Serializer.cjs.map +0 -1
  350. package/dist/client/ClientApplication.cjs +0 -352
  351. package/dist/client/ClientApplication.cjs.map +0 -1
  352. package/dist/client/ClientAssertion.cjs +0 -155
  353. package/dist/client/ClientAssertion.cjs.map +0 -1
  354. package/dist/client/ClientCredentialClient.cjs +0 -203
  355. package/dist/client/ClientCredentialClient.cjs.map +0 -1
  356. package/dist/client/ConfidentialClientApplication.cjs +0 -183
  357. package/dist/client/ConfidentialClientApplication.cjs.map +0 -1
  358. package/dist/client/DeviceCodeClient.cjs +0 -216
  359. package/dist/client/DeviceCodeClient.cjs.map +0 -1
  360. package/dist/client/ManagedIdentityApplication.cjs +0 -100
  361. package/dist/client/ManagedIdentityApplication.cjs.map +0 -1
  362. package/dist/client/ManagedIdentityClient.cjs +0 -76
  363. package/dist/client/ManagedIdentityClient.cjs.map +0 -1
  364. package/dist/client/ManagedIdentitySources/AppService.cjs +0 -56
  365. package/dist/client/ManagedIdentitySources/AppService.cjs.map +0 -1
  366. package/dist/client/ManagedIdentitySources/AzureArc.cjs +0 -173
  367. package/dist/client/ManagedIdentitySources/AzureArc.cjs.map +0 -1
  368. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.cjs +0 -135
  369. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.cjs.map +0 -1
  370. package/dist/client/ManagedIdentitySources/CloudShell.cjs +0 -51
  371. package/dist/client/ManagedIdentitySources/CloudShell.cjs.map +0 -1
  372. package/dist/client/ManagedIdentitySources/Imds.cjs +0 -54
  373. package/dist/client/ManagedIdentitySources/Imds.cjs.map +0 -1
  374. package/dist/client/ManagedIdentitySources/ServiceFabric.cjs +0 -65
  375. package/dist/client/ManagedIdentitySources/ServiceFabric.cjs.map +0 -1
  376. package/dist/client/OnBehalfOfClient.cjs +0 -212
  377. package/dist/client/OnBehalfOfClient.cjs.map +0 -1
  378. package/dist/client/PublicClientApplication.cjs +0 -252
  379. package/dist/client/PublicClientApplication.cjs.map +0 -1
  380. package/dist/client/UsernamePasswordClient.cjs +0 -104
  381. package/dist/client/UsernamePasswordClient.cjs.map +0 -1
  382. package/dist/config/Configuration.cjs +0 -122
  383. package/dist/config/Configuration.cjs.map +0 -1
  384. package/dist/config/ManagedIdentityId.cjs +0 -59
  385. package/dist/config/ManagedIdentityId.cjs.map +0 -1
  386. package/dist/config/ManagedIdentityRequestParameters.cjs +0 -37
  387. package/dist/config/ManagedIdentityRequestParameters.cjs.map +0 -1
  388. package/dist/crypto/CryptoProvider.cjs +0 -101
  389. package/dist/crypto/CryptoProvider.cjs.map +0 -1
  390. package/dist/crypto/GuidGenerator.cjs +0 -31
  391. package/dist/crypto/GuidGenerator.cjs.map +0 -1
  392. package/dist/crypto/HashUtils.cjs +0 -23
  393. package/dist/crypto/HashUtils.cjs.map +0 -1
  394. package/dist/crypto/PkceGenerator.cjs +0 -62
  395. package/dist/crypto/PkceGenerator.cjs.map +0 -1
  396. package/dist/error/ManagedIdentityError.cjs +0 -54
  397. package/dist/error/ManagedIdentityError.cjs.map +0 -1
  398. package/dist/error/ManagedIdentityErrorCodes.cjs +0 -47
  399. package/dist/error/ManagedIdentityErrorCodes.cjs.map +0 -1
  400. package/dist/error/NodeAuthError.cjs +0 -105
  401. package/dist/error/NodeAuthError.cjs.map +0 -1
  402. package/dist/index.cjs +0 -123
  403. package/dist/index.cjs.map +0 -1
  404. package/dist/internals.cjs +0 -19
  405. package/dist/internals.cjs.map +0 -1
  406. package/dist/network/HttpClient.cjs +0 -294
  407. package/dist/network/HttpClient.cjs.map +0 -1
  408. package/dist/network/HttpClientWithRetries.cjs +0 -44
  409. package/dist/network/HttpClientWithRetries.cjs.map +0 -1
  410. package/dist/network/LoopbackClient.cjs +0 -93
  411. package/dist/network/LoopbackClient.cjs.map +0 -1
  412. package/dist/packageMetadata.cjs +0 -11
  413. package/dist/packageMetadata.cjs.map +0 -1
  414. package/dist/retry/LinearRetryPolicy.cjs +0 -47
  415. package/dist/retry/LinearRetryPolicy.cjs.map +0 -1
  416. package/dist/utils/Constants.cjs +0 -170
  417. package/dist/utils/Constants.cjs.map +0 -1
  418. package/dist/utils/EncodingUtils.cjs +0 -53
  419. package/dist/utils/EncodingUtils.cjs.map +0 -1
  420. package/dist/utils/NetworkUtils.cjs +0 -45
  421. package/dist/utils/NetworkUtils.cjs.map +0 -1
@@ -0,0 +1,6 @@
1
+ /// <reference types="node" resolution-mode="require"/>
2
+ import http from "http";
3
+ export interface IHttpRetryPolicy {
4
+ pauseForRetry(httpStatusCode: number, currentRetry: number, retryAfterHeader: http.IncomingHttpHeaders["retry-after"]): Promise<boolean>;
5
+ }
6
+ //# sourceMappingURL=IHttpRetryPolicy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IHttpRetryPolicy.d.ts","sourceRoot":"","sources":["../../../src/retry/IHttpRetryPolicy.ts"],"names":[],"mappings":";AAKA,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,MAAM,WAAW,gBAAgB;IAK7B,aAAa,CACT,cAAc,EAAE,MAAM,EACtB,YAAY,EAAE,MAAM,EACpB,gBAAgB,EAAE,IAAI,CAAC,mBAAmB,CAAC,aAAa,CAAC,GAC1D,OAAO,CAAC,OAAO,CAAC,CAAC;CACvB"}
@@ -0,0 +1,12 @@
1
+ /// <reference types="node" resolution-mode="require"/>
2
+ import http from "http";
3
+ import { IHttpRetryPolicy } from "./IHttpRetryPolicy.js";
4
+ export declare class LinearRetryPolicy implements IHttpRetryPolicy {
5
+ maxRetries: number;
6
+ retryDelay: number;
7
+ httpStatusCodesToRetryOn: Array<number>;
8
+ constructor(maxRetries: number, retryDelay: number, httpStatusCodesToRetryOn: Array<number>);
9
+ private retryAfterMillisecondsToSleep;
10
+ pauseForRetry(httpStatusCode: number, currentRetry: number, retryAfterHeader: http.IncomingHttpHeaders["retry-after"]): Promise<boolean>;
11
+ }
12
+ //# sourceMappingURL=LinearRetryPolicy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LinearRetryPolicy.d.ts","sourceRoot":"","sources":["../../../src/retry/LinearRetryPolicy.ts"],"names":[],"mappings":";AAKA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,qBAAa,iBAAkB,YAAW,gBAAgB;IACtD,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,wBAAwB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;gBAGpC,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,wBAAwB,EAAE,KAAK,CAAC,MAAM,CAAC;IAO3C,OAAO,CAAC,6BAA6B;IAyB/B,aAAa,CACf,cAAc,EAAE,MAAM,EACtB,YAAY,EAAE,MAAM,EACpB,gBAAgB,EAAE,IAAI,CAAC,mBAAmB,CAAC,aAAa,CAAC,GAC1D,OAAO,CAAC,OAAO,CAAC;CAkBtB"}
@@ -0,0 +1,142 @@
1
+ export declare const AUTHORIZATION_HEADER_NAME: string;
2
+ export declare const METADATA_HEADER_NAME: string;
3
+ export declare const APP_SERVICE_SECRET_HEADER_NAME: string;
4
+ export declare const SERVICE_FABRIC_SECRET_HEADER_NAME: string;
5
+ export declare const API_VERSION_QUERY_PARAMETER_NAME: string;
6
+ export declare const RESOURCE_BODY_OR_QUERY_PARAMETER_NAME: string;
7
+ export declare const DEFAULT_MANAGED_IDENTITY_ID = "system_assigned_managed_identity";
8
+ export declare const MANAGED_IDENTITY_DEFAULT_TENANT = "managed_identity";
9
+ export declare const DEFAULT_AUTHORITY_FOR_MANAGED_IDENTITY: string;
10
+ /**
11
+ * Managed Identity Environment Variable Names
12
+ */
13
+ export declare const ManagedIdentityEnvironmentVariableNames: {
14
+ readonly AZURE_POD_IDENTITY_AUTHORITY_HOST: "AZURE_POD_IDENTITY_AUTHORITY_HOST";
15
+ readonly IDENTITY_ENDPOINT: "IDENTITY_ENDPOINT";
16
+ readonly IDENTITY_HEADER: "IDENTITY_HEADER";
17
+ readonly IDENTITY_SERVER_THUMBPRINT: "IDENTITY_SERVER_THUMBPRINT";
18
+ readonly IMDS_ENDPOINT: "IMDS_ENDPOINT";
19
+ readonly MSI_ENDPOINT: "MSI_ENDPOINT";
20
+ };
21
+ export type ManagedIdentityEnvironmentVariableNames = (typeof ManagedIdentityEnvironmentVariableNames)[keyof typeof ManagedIdentityEnvironmentVariableNames];
22
+ /**
23
+ * Managed Identity Source Names
24
+ * @public
25
+ */
26
+ export declare const ManagedIdentitySourceNames: {
27
+ readonly APP_SERVICE: "AppService";
28
+ readonly AZURE_ARC: "AzureArc";
29
+ readonly CLOUD_SHELL: "CloudShell";
30
+ readonly DEFAULT_TO_IMDS: "DefaultToImds";
31
+ readonly IMDS: "Imds";
32
+ readonly SERVICE_FABRIC: "ServiceFabric";
33
+ };
34
+ /**
35
+ * The ManagedIdentitySourceNames type
36
+ * @public
37
+ */
38
+ export type ManagedIdentitySourceNames = (typeof ManagedIdentitySourceNames)[keyof typeof ManagedIdentitySourceNames];
39
+ /**
40
+ * Managed Identity Ids
41
+ */
42
+ export declare const ManagedIdentityIdType: {
43
+ readonly SYSTEM_ASSIGNED: "system-assigned";
44
+ readonly USER_ASSIGNED_CLIENT_ID: "user-assigned-client-id";
45
+ readonly USER_ASSIGNED_RESOURCE_ID: "user-assigned-resource-id";
46
+ readonly USER_ASSIGNED_OBJECT_ID: "user-assigned-object-id";
47
+ };
48
+ export type ManagedIdentityIdType = (typeof ManagedIdentityIdType)[keyof typeof ManagedIdentityIdType];
49
+ /**
50
+ * http methods
51
+ */
52
+ export declare const HttpMethod: {
53
+ readonly GET: "get";
54
+ readonly POST: "post";
55
+ };
56
+ export type HttpMethod = (typeof HttpMethod)[keyof typeof HttpMethod];
57
+ export declare const ProxyStatus: {
58
+ readonly SUCCESS: 200;
59
+ readonly SUCCESS_RANGE_START: 200;
60
+ readonly SUCCESS_RANGE_END: 299;
61
+ readonly SERVER_ERROR: 500;
62
+ };
63
+ export type ProxyStatus = (typeof ProxyStatus)[keyof typeof ProxyStatus];
64
+ /**
65
+ * Constants used for region discovery
66
+ */
67
+ export declare const REGION_ENVIRONMENT_VARIABLE = "REGION_NAME";
68
+ /**
69
+ * Constant used for PKCE
70
+ */
71
+ export declare const RANDOM_OCTET_SIZE = 32;
72
+ /**
73
+ * Constants used in PKCE
74
+ */
75
+ export declare const Hash: {
76
+ SHA256: string;
77
+ };
78
+ /**
79
+ * Constants for encoding schemes
80
+ */
81
+ export declare const CharSet: {
82
+ CV_CHARSET: string;
83
+ };
84
+ /**
85
+ * Cache Constants
86
+ */
87
+ export declare const CACHE: {
88
+ FILE_CACHE: string;
89
+ EXTENSION_LIB: string;
90
+ };
91
+ /**
92
+ * Constants
93
+ */
94
+ export declare const Constants: {
95
+ MSAL_SKU: string;
96
+ JWT_BEARER_ASSERTION_TYPE: string;
97
+ AUTHORIZATION_PENDING: string;
98
+ HTTP_PROTOCOL: string;
99
+ LOCALHOST: string;
100
+ };
101
+ /**
102
+ * API Codes for Telemetry purposes.
103
+ * Before adding a new code you must claim it in the MSAL Telemetry tracker as these number spaces are shared across all MSALs
104
+ * 0-99 Silent Flow
105
+ * 600-699 Device Code Flow
106
+ * 800-899 Auth Code Flow
107
+ */
108
+ export declare const ApiId: {
109
+ acquireTokenSilent: number;
110
+ acquireTokenByUsernamePassword: number;
111
+ acquireTokenByDeviceCode: number;
112
+ acquireTokenByClientCredential: number;
113
+ acquireTokenByCode: number;
114
+ acquireTokenByRefreshToken: number;
115
+ };
116
+ export type ApiId = (typeof ApiId)[keyof typeof ApiId];
117
+ /**
118
+ * JWT constants
119
+ */
120
+ export declare const JwtConstants: {
121
+ ALGORITHM: string;
122
+ RSA_256: string;
123
+ PSS_256: string;
124
+ X5T_256: string;
125
+ X5T: string;
126
+ X5C: string;
127
+ AUDIENCE: string;
128
+ EXPIRATION_TIME: string;
129
+ ISSUER: string;
130
+ SUBJECT: string;
131
+ NOT_BEFORE: string;
132
+ JWT_ID: string;
133
+ };
134
+ export declare const LOOPBACK_SERVER_CONSTANTS: {
135
+ INTERVAL_MS: number;
136
+ TIMEOUT_MS: number;
137
+ };
138
+ export declare const AZURE_ARC_SECRET_FILE_MAX_SIZE_BYTES = 4096;
139
+ export declare const MANAGED_IDENTITY_MAX_RETRIES = 3;
140
+ export declare const MANAGED_IDENTITY_RETRY_DELAY = 1000;
141
+ export declare const MANAGED_IDENTITY_HTTP_STATUS_CODES_TO_RETRY_ON: (500 | 404 | 408 | 429 | 503 | 504)[];
142
+ //# sourceMappingURL=Constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Constants.d.ts","sourceRoot":"","sources":["../../../src/utils/Constants.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,yBAAyB,EAAE,MAAwB,CAAC;AACjE,eAAO,MAAM,oBAAoB,EAAE,MAAmB,CAAC;AACvD,eAAO,MAAM,8BAA8B,EAAE,MAA4B,CAAC;AAC1E,eAAO,MAAM,iCAAiC,EAAE,MAAiB,CAAC;AAClE,eAAO,MAAM,gCAAgC,EAAE,MAAsB,CAAC;AACtE,eAAO,MAAM,qCAAqC,EAAE,MAAmB,CAAC;AACxE,eAAO,MAAM,2BAA2B,qCAAqC,CAAC;AAC9E,eAAO,MAAM,+BAA+B,qBAAqB,CAAC;AAClE,eAAO,MAAM,sCAAsC,QAA0E,CAAC;AAE9H;;GAEG;AACH,eAAO,MAAM,uCAAuC;;;;;;;CAO1C,CAAC;AACX,MAAM,MAAM,uCAAuC,GAC/C,CAAC,OAAO,uCAAuC,CAAC,CAAC,MAAM,OAAO,uCAAuC,CAAC,CAAC;AAE3G;;;GAGG;AACH,eAAO,MAAM,0BAA0B;;;;;;;CAO7B,CAAC;AACX;;;GAGG;AACH,MAAM,MAAM,0BAA0B,GAClC,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,OAAO,0BAA0B,CAAC,CAAC;AAEjF;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;CAKxB,CAAC;AACX,MAAM,MAAM,qBAAqB,GAC7B,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC;AAEvE;;GAEG;AACH,eAAO,MAAM,UAAU;;;CAGb,CAAC;AACX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAEtE,eAAO,MAAM,WAAW;;;;;CAKd,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAEzE;;GAEG;AACH,eAAO,MAAM,2BAA2B,gBAAgB,CAAC;AAEzD;;GAEG;AACH,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,IAAI;;CAEhB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO;;CAGnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,KAAK;;;CAGjB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;;CAOrB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,KAAK;;;;;;;CAOjB,CAAC;AACF,MAAM,MAAM,KAAK,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,OAAO,KAAK,CAAC,CAAC;AAEvD;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;CAaxB,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;CAGrC,CAAC;AAEF,eAAO,MAAM,oCAAoC,OAAO,CAAC;AAEzD,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAC9C,eAAO,MAAM,4BAA4B,OAAO,CAAC;AACjD,eAAO,MAAM,8CAA8C,uCAO1D,CAAC"}
@@ -0,0 +1,27 @@
1
+ /// <reference types="node" resolution-mode="require"/>
2
+ export declare class EncodingUtils {
3
+ /**
4
+ * 'utf8': Multibyte encoded Unicode characters. Many web pages and other document formats use UTF-8.
5
+ * 'base64': Base64 encoding.
6
+ *
7
+ * @param str text
8
+ */
9
+ static base64Encode(str: string, encoding?: BufferEncoding): string;
10
+ /**
11
+ * encode a URL
12
+ * @param str
13
+ */
14
+ static base64EncodeUrl(str: string, encoding?: BufferEncoding): string;
15
+ /**
16
+ * 'utf8': Multibyte encoded Unicode characters. Many web pages and other document formats use UTF-8.
17
+ * 'base64': Base64 encoding.
18
+ *
19
+ * @param base64Str Base64 encoded text
20
+ */
21
+ static base64Decode(base64Str: string): string;
22
+ /**
23
+ * @param base64Str Base64 encoded Url
24
+ */
25
+ static base64DecodeUrl(base64Str: string): string;
26
+ }
27
+ //# sourceMappingURL=EncodingUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EncodingUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/EncodingUtils.ts"],"names":[],"mappings":";AAOA,qBAAa,aAAa;IACtB;;;;;OAKG;IACH,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,cAAc,GAAG,MAAM;IAInE;;;OAGG;IACH,MAAM,CAAC,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,cAAc,GAAG,MAAM;IAOtE;;;;;OAKG;IACH,MAAM,CAAC,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;IAI9C;;OAEG;IACH,MAAM,CAAC,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;CAOpD"}
@@ -0,0 +1,6 @@
1
+ import { NetworkResponse, UrlToHttpRequestOptions } from "@azure/msal-common/node";
2
+ export declare class NetworkUtils {
3
+ static getNetworkResponse<T>(headers: Record<string, string>, body: T, statusCode: number): NetworkResponse<T>;
4
+ static urlToHttpOptions(url: URL): UrlToHttpRequestOptions;
5
+ }
6
+ //# sourceMappingURL=NetworkUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NetworkUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/NetworkUtils.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,eAAe,EACf,uBAAuB,EAC1B,MAAM,yBAAyB,CAAC;AAEjC,qBAAa,YAAY;IACrB,MAAM,CAAC,kBAAkB,CAAC,CAAC,EACvB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,IAAI,EAAE,CAAC,EACP,UAAU,EAAE,MAAM,GACnB,eAAe,CAAC,CAAC,CAAC;IAarB,MAAM,CAAC,gBAAgB,CAAC,GAAG,EAAE,GAAG,GAAG,uBAAuB;CAuB7D"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@azure/msal-node",
4
- "version": "2.13.1",
4
+ "version": "2.15.0",
5
5
  "author": {
6
6
  "name": "Microsoft",
7
7
  "email": "nugetaad@microsoft.com",
@@ -22,21 +22,25 @@
22
22
  "oauth"
23
23
  ],
24
24
  "type": "module",
25
- "main": "dist/index.cjs",
25
+ "main": "lib/msal-node.cjs",
26
26
  "module": "dist/index.mjs",
27
27
  "types": "dist/index.d.ts",
28
28
  "exports": {
29
29
  ".": {
30
- "types": "./dist/index.d.ts",
31
- "module": "./dist/index.mjs",
32
- "import": "./dist/index.mjs",
33
- "require": "./dist/index.cjs",
34
- "default": "./dist/index.mjs"
30
+ "import": {
31
+ "types": "./dist/index.d.ts",
32
+ "default": "./dist/index.mjs"
33
+ },
34
+ "require": {
35
+ "types": "./lib/types/index.d.ts",
36
+ "default": "./lib/msal-node.cjs"
37
+ }
35
38
  },
36
39
  "./package.json": "./package.json"
37
40
  },
38
41
  "files": [
39
42
  "dist",
43
+ "lib",
40
44
  "src"
41
45
  ],
42
46
  "scripts": {
@@ -66,20 +70,19 @@
66
70
  "@types/jest": "^29.5.0",
67
71
  "@types/jsonwebtoken": "^9.0.1",
68
72
  "@types/node": "^20.3.1",
69
- "@types/sinon": "^7.5.0",
70
73
  "@types/uuid": "^7.0.0",
71
74
  "eslint-config-msal": "file:../../shared-configs/eslint-config-msal",
72
75
  "jest": "^29.5.0",
73
76
  "prettier": "2.8.7",
74
- "rollup": "^3.20.1",
75
- "sinon": "^7.5.0",
77
+ "rollup": "^3.29.5",
78
+ "rollup-msal": "file:../../shared-configs/rollup-msal",
76
79
  "ts-jest": "^29.1.0",
77
80
  "tslib": "^1.10.0",
78
81
  "typescript": "^4.9.5",
79
82
  "yargs": "^17.3.1"
80
83
  },
81
84
  "dependencies": {
82
- "@azure/msal-common": "14.14.2",
85
+ "@azure/msal-common": "14.15.0",
83
86
  "jsonwebtoken": "^9.0.0",
84
87
  "uuid": "^8.3.0"
85
88
  },
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { AccountInfo } from "@azure/msal-common";
6
+ import { AccountInfo } from "@azure/msal-common/node";
7
7
 
8
8
  /**
9
9
  * Token cache interface for the client, giving access to cache APIs
@@ -20,7 +20,7 @@ import {
20
20
  ValidCredentialType,
21
21
  StaticAuthorityOptions,
22
22
  CacheHelpers,
23
- } from "@azure/msal-common";
23
+ } from "@azure/msal-common/node";
24
24
 
25
25
  import { Deserializer } from "./serializer/Deserializer.js";
26
26
  import { Serializer } from "./serializer/Serializer.js";
@@ -11,7 +11,7 @@ import {
11
11
  ISerializableTokenCache,
12
12
  ICachePlugin,
13
13
  TokenCacheContext,
14
- } from "@azure/msal-common";
14
+ } from "@azure/msal-common/node";
15
15
  import {
16
16
  InMemoryCache,
17
17
  JsonCache,
@@ -7,7 +7,7 @@ import {
7
7
  AccountEntity,
8
8
  ICachePlugin,
9
9
  TokenCacheContext,
10
- } from "@azure/msal-common";
10
+ } from "@azure/msal-common/node";
11
11
  import { TokenCache } from "../TokenCache.js";
12
12
  import { IPartitionManager } from "./IPartitionManager.js";
13
13
  import { ICacheClient } from "./ICacheClient.js";
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { AccountEntity } from "@azure/msal-common";
6
+ import { AccountEntity } from "@azure/msal-common/node";
7
7
 
8
8
  export interface IPartitionManager {
9
9
  /**
@@ -16,7 +16,7 @@ import {
16
16
  CacheManager,
17
17
  CredentialType,
18
18
  AuthenticationScheme,
19
- } from "@azure/msal-common";
19
+ } from "@azure/msal-common/node";
20
20
  import {
21
21
  JsonCache,
22
22
  InMemoryCache,
@@ -9,7 +9,7 @@ import {
9
9
  AccessTokenCache,
10
10
  RefreshTokenCache,
11
11
  AppMetadataCache,
12
- } from "@azure/msal-common";
12
+ } from "@azure/msal-common/node";
13
13
  import {
14
14
  InMemoryCache,
15
15
  JsonCache,
@@ -10,7 +10,7 @@ import {
10
10
  RefreshTokenCache,
11
11
  AppMetadataCache,
12
12
  ValidCacheType,
13
- } from "@azure/msal-common";
13
+ } from "@azure/msal-common/node";
14
14
 
15
15
  /**
16
16
  * Key value store for in-memory cache
@@ -36,7 +36,7 @@ import {
36
36
  ClientAssertion as ClientAssertionType,
37
37
  getClientAssertion,
38
38
  ClientAssertionCallback,
39
- } from "@azure/msal-common";
39
+ } from "@azure/msal-common/node";
40
40
  import {
41
41
  Configuration,
42
42
  buildAppConfiguration,
@@ -9,7 +9,7 @@ import {
9
9
  Constants,
10
10
  createClientAuthError,
11
11
  ClientAuthErrorCodes,
12
- } from "@azure/msal-common";
12
+ } from "@azure/msal-common/node";
13
13
  import { CryptoProvider } from "../crypto/CryptoProvider.js";
14
14
  import { EncodingUtils } from "../utils/EncodingUtils.js";
15
15
  import { JwtConstants } from "../utils/Constants.js";
@@ -34,11 +34,11 @@ import {
34
34
  createClientAuthError,
35
35
  ClientAssertion,
36
36
  getClientAssertion,
37
- } from "@azure/msal-common";
37
+ } from "@azure/msal-common/node";
38
38
  import {
39
39
  ManagedIdentityConfiguration,
40
40
  ManagedIdentityNodeConfiguration,
41
- } from "../config/Configuration";
41
+ } from "../config/Configuration.js";
42
42
 
43
43
  /**
44
44
  * OAuth2.0 client credential grant
@@ -27,7 +27,7 @@ import {
27
27
  ClientAuthErrorCodes,
28
28
  ClientAssertion as ClientAssertionType,
29
29
  getClientAssertion,
30
- } from "@azure/msal-common";
30
+ } from "@azure/msal-common/node";
31
31
  import { IConfidentialClientApplication } from "./IConfidentialClientApplication.js";
32
32
  import { OnBehalfOfRequest } from "../request/OnBehalfOfRequest.js";
33
33
  import { ClientCredentialRequest } from "../request/ClientCredentialRequest.js";
@@ -23,7 +23,7 @@ import {
23
23
  UrlString,
24
24
  createAuthError,
25
25
  createClientAuthError,
26
- } from "@azure/msal-common";
26
+ } from "@azure/msal-common/node";
27
27
 
28
28
  /**
29
29
  * OAuth2.0 Device code client
@@ -7,7 +7,7 @@ import {
7
7
  AuthenticationResult,
8
8
  IAppTokenProvider,
9
9
  Logger,
10
- } from "@azure/msal-common";
10
+ } from "@azure/msal-common/node";
11
11
  import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest.js";
12
12
  import { AuthorizationUrlRequest } from "../request/AuthorizationUrlRequest.js";
13
13
  import { ClientCredentialRequest } from "../request/ClientCredentialRequest.js";
@@ -3,7 +3,11 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { AccountInfo, AuthenticationResult, Logger } from "@azure/msal-common";
6
+ import {
7
+ AccountInfo,
8
+ AuthenticationResult,
9
+ Logger,
10
+ } from "@azure/msal-common/node";
7
11
  import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest.js";
8
12
  import { AuthorizationUrlRequest } from "../request/AuthorizationUrlRequest.js";
9
13
  import { DeviceCodeRequest } from "../request/DeviceCodeRequest.js";
@@ -18,23 +18,23 @@ import {
18
18
  AuthenticationResult,
19
19
  createClientConfigurationError,
20
20
  ClientConfigurationErrorCodes,
21
- } from "@azure/msal-common";
21
+ } from "@azure/msal-common/node";
22
22
  import {
23
23
  ManagedIdentityConfiguration,
24
24
  ManagedIdentityNodeConfiguration,
25
25
  buildManagedIdentityConfiguration,
26
- } from "../config/Configuration";
26
+ } from "../config/Configuration.js";
27
27
  import { version, name } from "../packageMetadata.js";
28
- import { ManagedIdentityRequest } from "../request/ManagedIdentityRequest";
29
- import { CryptoProvider } from "../crypto/CryptoProvider";
30
- import { ClientCredentialClient } from "./ClientCredentialClient";
31
- import { ManagedIdentityClient } from "./ManagedIdentityClient";
32
- import { ManagedIdentityRequestParams } from "../request/ManagedIdentityRequestParams";
33
- import { NodeStorage } from "../cache/NodeStorage";
28
+ import { ManagedIdentityRequest } from "../request/ManagedIdentityRequest.js";
29
+ import { CryptoProvider } from "../crypto/CryptoProvider.js";
30
+ import { ClientCredentialClient } from "./ClientCredentialClient.js";
31
+ import { ManagedIdentityClient } from "./ManagedIdentityClient.js";
32
+ import { ManagedIdentityRequestParams } from "../request/ManagedIdentityRequestParams.js";
33
+ import { NodeStorage } from "../cache/NodeStorage.js";
34
34
  import {
35
35
  DEFAULT_AUTHORITY_FOR_MANAGED_IDENTITY,
36
36
  ManagedIdentitySourceNames,
37
- } from "../utils/Constants";
37
+ } from "../utils/Constants.js";
38
38
 
39
39
  /**
40
40
  * Class to initialize a managed identity and identify the service
@@ -142,7 +142,10 @@ export class ManagedIdentityApplication {
142
142
  correlationId: this.cryptoProvider.createNewGuid(),
143
143
  };
144
144
 
145
- if (managedIdentityRequest.forceRefresh) {
145
+ if (
146
+ managedIdentityRequestParams.claims ||
147
+ managedIdentityRequest.forceRefresh
148
+ ) {
146
149
  // make a network call to the managed identity source
147
150
  return this.managedIdentityClient.sendManagedIdentityTokenRequest(
148
151
  managedIdentityRequest,
@@ -8,22 +8,22 @@ import {
8
8
  INetworkModule,
9
9
  Logger,
10
10
  AuthenticationResult,
11
- } from "@azure/msal-common";
12
- import { AppService } from "./ManagedIdentitySources/AppService";
13
- import { AzureArc } from "./ManagedIdentitySources/AzureArc";
14
- import { CloudShell } from "./ManagedIdentitySources/CloudShell";
15
- import { Imds } from "./ManagedIdentitySources/Imds";
16
- import { ServiceFabric } from "./ManagedIdentitySources/ServiceFabric";
17
- import { CryptoProvider } from "../crypto/CryptoProvider";
11
+ } from "@azure/msal-common/node";
12
+ import { AppService } from "./ManagedIdentitySources/AppService.js";
13
+ import { AzureArc } from "./ManagedIdentitySources/AzureArc.js";
14
+ import { CloudShell } from "./ManagedIdentitySources/CloudShell.js";
15
+ import { Imds } from "./ManagedIdentitySources/Imds.js";
16
+ import { ServiceFabric } from "./ManagedIdentitySources/ServiceFabric.js";
17
+ import { CryptoProvider } from "../crypto/CryptoProvider.js";
18
18
  import {
19
19
  ManagedIdentityErrorCodes,
20
20
  createManagedIdentityError,
21
- } from "../error/ManagedIdentityError";
22
- import { ManagedIdentityRequest } from "../request/ManagedIdentityRequest";
23
- import { ManagedIdentityId } from "../config/ManagedIdentityId";
24
- import { NodeStorage } from "../cache/NodeStorage";
25
- import { BaseManagedIdentitySource } from "./ManagedIdentitySources/BaseManagedIdentitySource";
26
- import { ManagedIdentitySourceNames } from "../utils/Constants";
21
+ } from "../error/ManagedIdentityError.js";
22
+ import { ManagedIdentityRequest } from "../request/ManagedIdentityRequest.js";
23
+ import { ManagedIdentityId } from "../config/ManagedIdentityId.js";
24
+ import { NodeStorage } from "../cache/NodeStorage.js";
25
+ import { BaseManagedIdentitySource } from "./ManagedIdentitySources/BaseManagedIdentitySource.js";
26
+ import { ManagedIdentitySourceNames } from "../utils/Constants.js";
27
27
 
28
28
  /*
29
29
  * Class to initialize a managed identity and identify the service.
@@ -3,8 +3,8 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { INetworkModule, Logger } from "@azure/msal-common";
7
- import { BaseManagedIdentitySource } from "./BaseManagedIdentitySource";
6
+ import { INetworkModule, Logger } from "@azure/msal-common/node";
7
+ import { BaseManagedIdentitySource } from "./BaseManagedIdentitySource.js";
8
8
  import {
9
9
  HttpMethod,
10
10
  APP_SERVICE_SECRET_HEADER_NAME,
@@ -13,11 +13,11 @@ import {
13
13
  ManagedIdentityEnvironmentVariableNames,
14
14
  ManagedIdentitySourceNames,
15
15
  ManagedIdentityIdType,
16
- } from "../../utils/Constants";
17
- import { CryptoProvider } from "../../crypto/CryptoProvider";
18
- import { ManagedIdentityRequestParameters } from "../../config/ManagedIdentityRequestParameters";
19
- import { ManagedIdentityId } from "../../config/ManagedIdentityId";
20
- import { NodeStorage } from "../../cache/NodeStorage";
16
+ } from "../../utils/Constants.js";
17
+ import { CryptoProvider } from "../../crypto/CryptoProvider.js";
18
+ import { ManagedIdentityRequestParameters } from "../../config/ManagedIdentityRequestParameters.js";
19
+ import { ManagedIdentityId } from "../../config/ManagedIdentityId.js";
20
+ import { NodeStorage } from "../../cache/NodeStorage.js";
21
21
 
22
22
  // MSI Constants. Docs for MSI are available here https://docs.microsoft.com/azure/app-service/overview-managed-identity
23
23
  const APP_SERVICE_MSI_API_VERSION: string = "2019-08-01";
@@ -13,14 +13,14 @@ import {
13
13
  NetworkRequestOptions,
14
14
  Logger,
15
15
  ServerAuthorizationTokenResponse,
16
- } from "@azure/msal-common";
17
- import { ManagedIdentityRequestParameters } from "../../config/ManagedIdentityRequestParameters";
18
- import { BaseManagedIdentitySource } from "./BaseManagedIdentitySource";
19
- import { CryptoProvider } from "../../crypto/CryptoProvider";
16
+ } from "@azure/msal-common/node";
17
+ import { ManagedIdentityRequestParameters } from "../../config/ManagedIdentityRequestParameters.js";
18
+ import { BaseManagedIdentitySource } from "./BaseManagedIdentitySource.js";
19
+ import { CryptoProvider } from "../../crypto/CryptoProvider.js";
20
20
  import {
21
21
  ManagedIdentityErrorCodes,
22
22
  createManagedIdentityError,
23
- } from "../../error/ManagedIdentityError";
23
+ } from "../../error/ManagedIdentityError.js";
24
24
  import {
25
25
  API_VERSION_QUERY_PARAMETER_NAME,
26
26
  AUTHORIZATION_HEADER_NAME,
@@ -31,16 +31,16 @@ import {
31
31
  ManagedIdentityIdType,
32
32
  ManagedIdentitySourceNames,
33
33
  RESOURCE_BODY_OR_QUERY_PARAMETER_NAME,
34
- } from "../../utils/Constants";
35
- import { NodeStorage } from "../../cache/NodeStorage";
34
+ } from "../../utils/Constants.js";
35
+ import { NodeStorage } from "../../cache/NodeStorage.js";
36
36
  import {
37
37
  accessSync,
38
38
  constants as fsConstants,
39
39
  readFileSync,
40
40
  statSync,
41
41
  } from "fs";
42
- import { ManagedIdentityTokenResponse } from "../../response/ManagedIdentityTokenResponse";
43
- import { ManagedIdentityId } from "../../config/ManagedIdentityId";
42
+ import { ManagedIdentityTokenResponse } from "../../response/ManagedIdentityTokenResponse.js";
43
+ import { ManagedIdentityId } from "../../config/ManagedIdentityId.js";
44
44
  import path from "path";
45
45
 
46
46
  export const ARC_API_VERSION: string = "2019-11-01";
@@ -19,18 +19,18 @@ import {
19
19
  createClientAuthError,
20
20
  AuthenticationResult,
21
21
  UrlString,
22
- } from "@azure/msal-common";
23
- import { ManagedIdentityId } from "../../config/ManagedIdentityId";
24
- import { ManagedIdentityRequestParameters } from "../../config/ManagedIdentityRequestParameters";
25
- import { CryptoProvider } from "../../crypto/CryptoProvider";
26
- import { ManagedIdentityRequest } from "../../request/ManagedIdentityRequest";
27
- import { HttpMethod, ManagedIdentityIdType } from "../../utils/Constants";
28
- import { ManagedIdentityTokenResponse } from "../../response/ManagedIdentityTokenResponse";
29
- import { NodeStorage } from "../../cache/NodeStorage";
22
+ } from "@azure/msal-common/node";
23
+ import { ManagedIdentityId } from "../../config/ManagedIdentityId.js";
24
+ import { ManagedIdentityRequestParameters } from "../../config/ManagedIdentityRequestParameters.js";
25
+ import { CryptoProvider } from "../../crypto/CryptoProvider.js";
26
+ import { ManagedIdentityRequest } from "../../request/ManagedIdentityRequest.js";
27
+ import { HttpMethod, ManagedIdentityIdType } from "../../utils/Constants.js";
28
+ import { ManagedIdentityTokenResponse } from "../../response/ManagedIdentityTokenResponse.js";
29
+ import { NodeStorage } from "../../cache/NodeStorage.js";
30
30
  import {
31
31
  ManagedIdentityErrorCodes,
32
32
  createManagedIdentityError,
33
- } from "../../error/ManagedIdentityError";
33
+ } from "../../error/ManagedIdentityError.js";
34
34
 
35
35
  /**
36
36
  * Managed Identity User Assigned Id Query Parameter Names