@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
@@ -3,11 +3,11 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { INetworkModule, Logger } from "@azure/msal-common";
7
- import { ManagedIdentityRequestParameters } from "../../config/ManagedIdentityRequestParameters";
8
- import { BaseManagedIdentitySource } from "./BaseManagedIdentitySource";
9
- import { NodeStorage } from "../../cache/NodeStorage";
10
- import { CryptoProvider } from "../../crypto/CryptoProvider";
6
+ import { INetworkModule, Logger } from "@azure/msal-common/node";
7
+ import { ManagedIdentityRequestParameters } from "../../config/ManagedIdentityRequestParameters.js";
8
+ import { BaseManagedIdentitySource } from "./BaseManagedIdentitySource.js";
9
+ import { NodeStorage } from "../../cache/NodeStorage.js";
10
+ import { CryptoProvider } from "../../crypto/CryptoProvider.js";
11
11
  import {
12
12
  HttpMethod,
13
13
  METADATA_HEADER_NAME,
@@ -15,12 +15,12 @@ import {
15
15
  ManagedIdentityIdType,
16
16
  ManagedIdentitySourceNames,
17
17
  RESOURCE_BODY_OR_QUERY_PARAMETER_NAME,
18
- } from "../../utils/Constants";
18
+ } from "../../utils/Constants.js";
19
19
  import {
20
20
  ManagedIdentityErrorCodes,
21
21
  createManagedIdentityError,
22
- } from "../../error/ManagedIdentityError";
23
- import { ManagedIdentityId } from "../../config/ManagedIdentityId";
22
+ } from "../../error/ManagedIdentityError.js";
23
+ import { ManagedIdentityId } from "../../config/ManagedIdentityId.js";
24
24
 
25
25
  /**
26
26
  * Original source of code: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/src/CloudShellManagedIdentitySource.cs
@@ -3,11 +3,11 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { INetworkModule, Logger } from "@azure/msal-common";
7
- import { ManagedIdentityId } from "../../config/ManagedIdentityId";
8
- import { ManagedIdentityRequestParameters } from "../../config/ManagedIdentityRequestParameters";
9
- import { BaseManagedIdentitySource } from "./BaseManagedIdentitySource";
10
- import { CryptoProvider } from "../../crypto/CryptoProvider";
6
+ import { INetworkModule, Logger } from "@azure/msal-common/node";
7
+ import { ManagedIdentityId } from "../../config/ManagedIdentityId.js";
8
+ import { ManagedIdentityRequestParameters } from "../../config/ManagedIdentityRequestParameters.js";
9
+ import { BaseManagedIdentitySource } from "./BaseManagedIdentitySource.js";
10
+ import { CryptoProvider } from "../../crypto/CryptoProvider.js";
11
11
  import {
12
12
  API_VERSION_QUERY_PARAMETER_NAME,
13
13
  HttpMethod,
@@ -16,8 +16,8 @@ import {
16
16
  ManagedIdentityIdType,
17
17
  ManagedIdentitySourceNames,
18
18
  RESOURCE_BODY_OR_QUERY_PARAMETER_NAME,
19
- } from "../../utils/Constants";
20
- import { NodeStorage } from "../../cache/NodeStorage";
19
+ } from "../../utils/Constants.js";
20
+ import { NodeStorage } from "../../cache/NodeStorage.js";
21
21
 
22
22
  // IMDS constants. Docs for IMDS are available here https://docs.microsoft.com/azure/active-directory/managed-identities-azure-resources/how-to-use-vm-token#get-a-token-using-http
23
23
  const IMDS_TOKEN_PATH: string = "/metadata/identity/oauth2/token";
@@ -3,12 +3,12 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { INetworkModule, Logger } from "@azure/msal-common";
7
- import { ManagedIdentityId } from "../../config/ManagedIdentityId";
8
- import { ManagedIdentityRequestParameters } from "../../config/ManagedIdentityRequestParameters";
9
- import { BaseManagedIdentitySource } from "./BaseManagedIdentitySource";
10
- import { NodeStorage } from "../../cache/NodeStorage";
11
- import { CryptoProvider } from "../../crypto/CryptoProvider";
6
+ import { INetworkModule, Logger } from "@azure/msal-common/node";
7
+ import { ManagedIdentityId } from "../../config/ManagedIdentityId.js";
8
+ import { ManagedIdentityRequestParameters } from "../../config/ManagedIdentityRequestParameters.js";
9
+ import { BaseManagedIdentitySource } from "./BaseManagedIdentitySource.js";
10
+ import { NodeStorage } from "../../cache/NodeStorage.js";
11
+ import { CryptoProvider } from "../../crypto/CryptoProvider.js";
12
12
  import {
13
13
  API_VERSION_QUERY_PARAMETER_NAME,
14
14
  HttpMethod,
@@ -17,7 +17,7 @@ import {
17
17
  ManagedIdentitySourceNames,
18
18
  RESOURCE_BODY_OR_QUERY_PARAMETER_NAME,
19
19
  SERVICE_FABRIC_SECRET_HEADER_NAME,
20
- } from "../../utils/Constants";
20
+ } from "../../utils/Constants.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 SERVICE_FABRIC_MSI_API_VERSION: string = "2019-07-01-preview";
@@ -32,8 +32,8 @@ import {
32
32
  UrlString,
33
33
  ClientAssertion,
34
34
  getClientAssertion,
35
- } from "@azure/msal-common";
36
- import { EncodingUtils } from "../utils/EncodingUtils";
35
+ } from "@azure/msal-common/node";
36
+ import { EncodingUtils } from "../utils/EncodingUtils.js";
37
37
 
38
38
  /**
39
39
  * On-Behalf-Of client
@@ -24,7 +24,7 @@ import {
24
24
  ServerAuthorizationCodeResponse,
25
25
  AADServerParamKeys,
26
26
  ServerTelemetryManager,
27
- } from "@azure/msal-common";
27
+ } from "@azure/msal-common/node";
28
28
  import { Configuration } from "../config/Configuration.js";
29
29
  import { ClientApplication } from "./ClientApplication.js";
30
30
  import { IPublicClientApplication } from "./IPublicClientApplication.js";
@@ -38,7 +38,7 @@ import { SilentFlowRequest } from "../request/SilentFlowRequest.js";
38
38
  import { SignOutRequest } from "../request/SignOutRequest.js";
39
39
  import { ILoopbackClient } from "../network/ILoopbackClient.js";
40
40
  import { DeviceCodeClient } from "./DeviceCodeClient.js";
41
- import { version } from "../packageMetadata";
41
+ import { version } from "../packageMetadata.js";
42
42
 
43
43
  /**
44
44
  * This class is to be used to acquire tokens for public client applications (desktop, mobile). Public client applications
@@ -21,7 +21,7 @@ import {
21
21
  TimeUtils,
22
22
  UrlString,
23
23
  getClientAssertion,
24
- } from "@azure/msal-common";
24
+ } from "@azure/msal-common/node";
25
25
 
26
26
  /**
27
27
  * Oauth2.0 Password grant client
@@ -15,7 +15,7 @@ import {
15
15
  ApplicationTelemetry,
16
16
  INativeBrokerPlugin,
17
17
  ClientAssertionCallback,
18
- } from "@azure/msal-common";
18
+ } from "@azure/msal-common/node";
19
19
  import { HttpClient } from "../network/HttpClient.js";
20
20
  import http from "http";
21
21
  import https from "https";
@@ -6,12 +6,12 @@
6
6
  import {
7
7
  ManagedIdentityErrorCodes,
8
8
  createManagedIdentityError,
9
- } from "../error/ManagedIdentityError";
9
+ } from "../error/ManagedIdentityError.js";
10
10
  import {
11
11
  DEFAULT_MANAGED_IDENTITY_ID,
12
12
  ManagedIdentityIdType,
13
- } from "../utils/Constants";
14
- import { ManagedIdentityIdParams } from "./Configuration";
13
+ } from "../utils/Constants.js";
14
+ import { ManagedIdentityIdParams } from "./Configuration.js";
15
15
 
16
16
  export class ManagedIdentityId {
17
17
  private _id: string;
@@ -3,8 +3,8 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { RequestParameterBuilder, UrlString } from "@azure/msal-common";
7
- import { HttpMethod } from "../utils/Constants";
6
+ import { RequestParameterBuilder, UrlString } from "@azure/msal-common/node";
7
+ import { HttpMethod } from "../utils/Constants.js";
8
8
 
9
9
  export class ManagedIdentityRequestParameters {
10
10
  private _baseEndpoint: string;
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { ICrypto, PkceCodes } from "@azure/msal-common";
6
+ import { ICrypto, PkceCodes } from "@azure/msal-common/node";
7
7
  import { GuidGenerator } from "./GuidGenerator.js";
8
8
  import { EncodingUtils } from "../utils/EncodingUtils.js";
9
9
  import { PkceGenerator } from "./PkceGenerator.js";
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { IGuidGenerator } from "@azure/msal-common";
6
+ import { IGuidGenerator } from "@azure/msal-common/node";
7
7
  import { v4 as uuidv4 } from "uuid";
8
8
 
9
9
  export class GuidGenerator implements IGuidGenerator {
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { Constants, PkceCodes } from "@azure/msal-common";
6
+ import { Constants, PkceCodes } from "@azure/msal-common/node";
7
7
  import { CharSet, RANDOM_OCTET_SIZE } from "../utils/Constants.js";
8
8
  import { EncodingUtils } from "../utils/EncodingUtils.js";
9
9
  import { HashUtils } from "./HashUtils.js";
@@ -3,9 +3,9 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { AuthError } from "@azure/msal-common";
7
- import * as ManagedIdentityErrorCodes from "./ManagedIdentityErrorCodes";
8
- import { ManagedIdentityEnvironmentVariableNames } from "../utils/Constants";
6
+ import { AuthError } from "@azure/msal-common/node";
7
+ import * as ManagedIdentityErrorCodes from "./ManagedIdentityErrorCodes.js";
8
+ import { ManagedIdentityEnvironmentVariableNames } from "../utils/Constants.js";
9
9
  export { ManagedIdentityErrorCodes };
10
10
 
11
11
  /**
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { ManagedIdentityEnvironmentVariableNames } from "../utils/Constants";
6
+ import { ManagedIdentityEnvironmentVariableNames } from "../utils/Constants.js";
7
7
 
8
8
  export const invalidFileExtension = "invalid_file_extension";
9
9
  export const invalidFilePath = "invalid_file_path";
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { AuthError } from "@azure/msal-common";
6
+ import { AuthError } from "@azure/msal-common/node";
7
7
 
8
8
  /**
9
9
  * NodeAuthErrorMessage class containing string constants used by error codes and messages.
package/src/index.ts CHANGED
@@ -129,6 +129,6 @@ export {
129
129
  AppTokenProviderResult,
130
130
  INativeBrokerPlugin,
131
131
  ClientAssertionCallback,
132
- } from "@azure/msal-common";
132
+ } from "@azure/msal-common/node";
133
133
 
134
134
  export { version } from "./packageMetadata.js";
@@ -8,7 +8,7 @@ import {
8
8
  NetworkRequestOptions,
9
9
  NetworkResponse,
10
10
  HttpStatus,
11
- } from "@azure/msal-common";
11
+ } from "@azure/msal-common/node";
12
12
  import { HttpMethod, Constants, ProxyStatus } from "../utils/Constants.js";
13
13
  import { NetworkUtils } from "../utils/NetworkUtils.js";
14
14
  import http from "http";
@@ -8,9 +8,9 @@ import {
8
8
  INetworkModule,
9
9
  NetworkRequestOptions,
10
10
  NetworkResponse,
11
- } from "@azure/msal-common";
12
- import { IHttpRetryPolicy } from "../retry/IHttpRetryPolicy";
13
- import { HttpMethod } from "../utils/Constants";
11
+ } from "@azure/msal-common/node";
12
+ import { IHttpRetryPolicy } from "../retry/IHttpRetryPolicy.js";
13
+ import { HttpMethod } from "../utils/Constants.js";
14
14
 
15
15
  export class HttpClientWithRetries implements INetworkModule {
16
16
  private httpClientNoRetries: INetworkModule;
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { ServerAuthorizationCodeResponse } from "@azure/msal-common";
6
+ import { ServerAuthorizationCodeResponse } from "@azure/msal-common/node";
7
7
 
8
8
  /**
9
9
  * Interface for LoopbackClient allowing to replace the default loopback server with a custom implementation.
@@ -8,7 +8,7 @@ import {
8
8
  ServerAuthorizationCodeResponse,
9
9
  HttpStatus,
10
10
  UrlUtils,
11
- } from "@azure/msal-common";
11
+ } from "@azure/msal-common/node";
12
12
  import http from "http";
13
13
  import { NodeAuthError } from "../error/NodeAuthError.js";
14
14
  import { Constants } from "../utils/Constants.js";
@@ -1,3 +1,3 @@
1
1
  /* eslint-disable header/header */
2
2
  export const name = "@azure/msal-node";
3
- export const version = "2.13.1";
3
+ export const version = "2.15.0";
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { CommonAuthorizationCodeRequest } from "@azure/msal-common";
6
+ import { CommonAuthorizationCodeRequest } from "@azure/msal-common/node";
7
7
 
8
8
  /**
9
9
  * Request object passed by user to acquire a token from the server exchanging a valid authorization code (second leg of OAuth2.0 Authorization Code flow)
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { CommonAuthorizationUrlRequest } from "@azure/msal-common";
6
+ import { CommonAuthorizationUrlRequest } from "@azure/msal-common/node";
7
7
 
8
8
  /**
9
9
  * Request object passed by user to retrieve a Code from the server (first leg of authorization code grant flow)
@@ -6,7 +6,7 @@
6
6
  import {
7
7
  ClientAssertionCallback,
8
8
  CommonClientCredentialRequest,
9
- } from "@azure/msal-common";
9
+ } from "@azure/msal-common/node";
10
10
 
11
11
  /**
12
12
  * CommonClientCredentialRequest
@@ -6,7 +6,7 @@
6
6
  import {
7
7
  CommonDeviceCodeRequest,
8
8
  DeviceCodeResponse,
9
- } from "@azure/msal-common";
9
+ } from "@azure/msal-common/node";
10
10
 
11
11
  /**
12
12
  * Parameters for Oauth2 device code flow.
@@ -3,8 +3,8 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
+ import { CommonAuthorizationUrlRequest } from "@azure/msal-common/node";
6
7
  import { ILoopbackClient } from "../network/ILoopbackClient.js";
7
- import { AuthorizationUrlRequest } from "./AuthorizationUrlRequest.js";
8
8
 
9
9
  /**
10
10
  * Request object passed by user to configure acquireTokenInteractive API
@@ -17,18 +17,11 @@ import { AuthorizationUrlRequest } from "./AuthorizationUrlRequest.js";
17
17
  * - loopbackClient - Custom implementation for a loopback server to listen for authorization code response.
18
18
  * @public
19
19
  */
20
- export type InteractiveRequest = Pick<
21
- AuthorizationUrlRequest,
22
- | "authority"
23
- | "correlationId"
24
- | "claims"
25
- | "azureCloudOptions"
26
- | "account"
27
- | "extraQueryParameters"
28
- | "tokenQueryParameters"
29
- | "extraScopesToConsent"
30
- | "loginHint"
31
- | "prompt"
20
+ export type InteractiveRequest = Partial<
21
+ Omit<
22
+ CommonAuthorizationUrlRequest,
23
+ "scopes" | "redirectUri" | "requestedClaimsHash" | "storeInCache"
24
+ >
32
25
  > & {
33
26
  openBrowser: (url: string) => Promise<void>;
34
27
  scopes?: Array<string>;
@@ -3,8 +3,8 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { CommonClientCredentialRequest } from "@azure/msal-common";
7
- import { ManagedIdentityRequestParams } from "./ManagedIdentityRequestParams";
6
+ import { CommonClientCredentialRequest } from "@azure/msal-common/node";
7
+ import { ManagedIdentityRequestParams } from "./ManagedIdentityRequestParams.js";
8
8
 
9
9
  /**
10
10
  * ManagedIdentityRequest
@@ -5,10 +5,12 @@
5
5
 
6
6
  /**
7
7
  * ManagedIdentityRequest
8
+ * - claims - a stringified claims request which will be used to determine whether or not the cache should be skipped
8
9
  * - forceRefresh - forces managed identity requests to skip the cache and make network calls if true
9
- * - resource - resource requested to access the protected API. It should be of the form "{ResourceIdUri}" or {ResourceIdUri/.default}. For instance https://management.azure.net or, for Microsoft Graph, https://graph.microsoft.com/.default
10
+ * - resource - resource requested to access the protected API. It should be of the form "{ResourceIdUri}" or {ResourceIdUri/.default}. For instance https://management.azure.net or, for Microsoft Graph, https://graph.microsoft.com/.default
10
11
  */
11
12
  export type ManagedIdentityRequestParams = {
13
+ claims?: string;
12
14
  forceRefresh?: boolean;
13
15
  resource: string;
14
16
  };
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { CommonOnBehalfOfRequest } from "@azure/msal-common";
6
+ import { CommonOnBehalfOfRequest } from "@azure/msal-common/node";
7
7
 
8
8
  /**
9
9
  * - scopes - Array of scopes the application is requesting access to.
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { CommonRefreshTokenRequest } from "@azure/msal-common";
6
+ import { CommonRefreshTokenRequest } from "@azure/msal-common/node";
7
7
 
8
8
  /**
9
9
  * CommonRefreshTokenRequest
@@ -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
  export type SignOutRequest = {
9
9
  account: AccountInfo;
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { AccountInfo, CommonSilentFlowRequest } from "@azure/msal-common";
6
+ import { AccountInfo, CommonSilentFlowRequest } from "@azure/msal-common/node";
7
7
 
8
8
  /**
9
9
  * SilentFlow parameters passed by the user to retrieve credentials silently
@@ -19,12 +19,7 @@ import { AccountInfo, CommonSilentFlowRequest } from "@azure/msal-common";
19
19
  export type SilentFlowRequest = Partial<
20
20
  Omit<
21
21
  CommonSilentFlowRequest,
22
- | "account"
23
- | "scopes"
24
- | "resourceRequestMethod"
25
- | "resourceRequestUri"
26
- | "requestedClaimsHash"
27
- | "storeInCache"
22
+ "account" | "scopes" | "requestedClaimsHash" | "storeInCache"
28
23
  >
29
24
  > & {
30
25
  account: AccountInfo;
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { CommonUsernamePasswordRequest } from "@azure/msal-common";
6
+ import { CommonUsernamePasswordRequest } from "@azure/msal-common/node";
7
7
 
8
8
  /**
9
9
  * UsernamePassword parameters passed by the user to retrieve credentials
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { AuthenticationScheme } from "@azure/msal-common";
6
+ import { AuthenticationScheme } from "@azure/msal-common/node";
7
7
 
8
8
  /**
9
9
  * Deserialized response object from server managed identity request.
@@ -4,7 +4,7 @@
4
4
  */
5
5
 
6
6
  import http from "http";
7
- import { IHttpRetryPolicy } from "./IHttpRetryPolicy";
7
+ import { IHttpRetryPolicy } from "./IHttpRetryPolicy.js";
8
8
 
9
9
  export class LinearRetryPolicy implements IHttpRetryPolicy {
10
10
  maxRetries: number;
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { HttpStatus } from "@azure/msal-common";
6
+ import { HttpStatus } from "@azure/msal-common/node";
7
7
 
8
8
  // MSI Constants. Docs for MSI are available here https://docs.microsoft.com/azure/app-service/overview-managed-identity
9
9
  export const AUTHORIZATION_HEADER_NAME: string = "Authorization";
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { Constants } from "@azure/msal-common";
6
+ import { Constants } from "@azure/msal-common/node";
7
7
 
8
8
  export class EncodingUtils {
9
9
  /**
@@ -3,7 +3,10 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { NetworkResponse, UrlToHttpRequestOptions } from "@azure/msal-common";
6
+ import {
7
+ NetworkResponse,
8
+ UrlToHttpRequestOptions,
9
+ } from "@azure/msal-common/node";
7
10
 
8
11
  export class NetworkUtils {
9
12
  static getNetworkResponse<T>(