@azure/msal-node 2.13.0 → 2.14.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 (418) 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 +3 -2
  32. package/dist/client/ConfidentialClientApplication.mjs.map +1 -1
  33. package/dist/client/DeviceCodeClient.d.ts +1 -1
  34. package/dist/client/DeviceCodeClient.d.ts.map +1 -1
  35. package/dist/client/DeviceCodeClient.mjs +2 -2
  36. package/dist/client/IConfidentialClientApplication.d.ts +1 -1
  37. package/dist/client/IConfidentialClientApplication.d.ts.map +1 -1
  38. package/dist/client/IPublicClientApplication.d.ts +1 -1
  39. package/dist/client/IPublicClientApplication.d.ts.map +1 -1
  40. package/dist/client/ManagedIdentityApplication.d.ts +4 -4
  41. package/dist/client/ManagedIdentityApplication.d.ts.map +1 -1
  42. package/dist/client/ManagedIdentityApplication.mjs +2 -2
  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 +2 -2
  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 +2 -2
  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 +2 -2
  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 +2 -2
  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 +5 -1
  104. package/dist/internals.mjs.map +1 -1
  105. package/dist/network/HttpClient.d.ts +3 -3
  106. package/dist/network/HttpClient.d.ts.map +1 -1
  107. package/dist/network/HttpClient.mjs +2 -2
  108. package/dist/network/HttpClientWithRetries.d.ts +2 -2
  109. package/dist/network/HttpClientWithRetries.d.ts.map +1 -1
  110. package/dist/network/HttpClientWithRetries.mjs +2 -2
  111. package/dist/network/ILoopbackClient.d.ts +1 -1
  112. package/dist/network/ILoopbackClient.d.ts.map +1 -1
  113. package/dist/network/LoopbackClient.d.ts +1 -1
  114. package/dist/network/LoopbackClient.d.ts.map +1 -1
  115. package/dist/network/LoopbackClient.mjs +3 -3
  116. package/dist/network/LoopbackClient.mjs.map +1 -1
  117. package/dist/packageMetadata.d.ts +1 -1
  118. package/dist/packageMetadata.mjs +2 -2
  119. package/dist/request/AuthorizationCodeRequest.d.ts +1 -1
  120. package/dist/request/AuthorizationCodeRequest.d.ts.map +1 -1
  121. package/dist/request/AuthorizationUrlRequest.d.ts +1 -1
  122. package/dist/request/AuthorizationUrlRequest.d.ts.map +1 -1
  123. package/dist/request/ClientCredentialRequest.d.ts +1 -1
  124. package/dist/request/ClientCredentialRequest.d.ts.map +1 -1
  125. package/dist/request/DeviceCodeRequest.d.ts +1 -1
  126. package/dist/request/DeviceCodeRequest.d.ts.map +1 -1
  127. package/dist/request/InteractiveRequest.d.ts +1 -1
  128. package/dist/request/ManagedIdentityRequest.d.ts +2 -2
  129. package/dist/request/ManagedIdentityRequest.d.ts.map +1 -1
  130. package/dist/request/OnBehalfOfRequest.d.ts +1 -1
  131. package/dist/request/OnBehalfOfRequest.d.ts.map +1 -1
  132. package/dist/request/RefreshTokenRequest.d.ts +1 -1
  133. package/dist/request/RefreshTokenRequest.d.ts.map +1 -1
  134. package/dist/request/SignOutRequest.d.ts +1 -1
  135. package/dist/request/SignOutRequest.d.ts.map +1 -1
  136. package/dist/request/SilentFlowRequest.d.ts +1 -1
  137. package/dist/request/SilentFlowRequest.d.ts.map +1 -1
  138. package/dist/request/UsernamePasswordRequest.d.ts +1 -1
  139. package/dist/request/UsernamePasswordRequest.d.ts.map +1 -1
  140. package/dist/response/ManagedIdentityTokenResponse.d.ts +1 -1
  141. package/dist/response/ManagedIdentityTokenResponse.d.ts.map +1 -1
  142. package/dist/retry/IHttpRetryPolicy.d.ts +1 -1
  143. package/dist/retry/LinearRetryPolicy.d.ts +2 -2
  144. package/dist/retry/LinearRetryPolicy.d.ts.map +1 -1
  145. package/dist/retry/LinearRetryPolicy.mjs +1 -1
  146. package/dist/utils/Constants.mjs +2 -2
  147. package/dist/utils/EncodingUtils.d.ts +1 -1
  148. package/dist/utils/EncodingUtils.mjs +2 -2
  149. package/dist/utils/NetworkUtils.d.ts +1 -1
  150. package/dist/utils/NetworkUtils.d.ts.map +1 -1
  151. package/dist/utils/NetworkUtils.mjs +1 -1
  152. package/dist/utils/NetworkUtils.mjs.map +1 -1
  153. package/lib/msal-node.cjs +12362 -0
  154. package/lib/msal-node.cjs.map +1 -0
  155. package/lib/package.json +1 -0
  156. package/lib/types/cache/ITokenCache.d.ts +16 -0
  157. package/lib/types/cache/ITokenCache.d.ts.map +1 -0
  158. package/lib/types/cache/NodeStorage.d.ts +194 -0
  159. package/lib/types/cache/NodeStorage.d.ts.map +1 -0
  160. package/lib/types/cache/TokenCache.d.ts +91 -0
  161. package/lib/types/cache/TokenCache.d.ts.map +1 -0
  162. package/lib/types/cache/distributed/DistributedCachePlugin.d.ts +11 -0
  163. package/lib/types/cache/distributed/DistributedCachePlugin.d.ts.map +1 -0
  164. package/lib/types/cache/distributed/ICacheClient.d.ts +18 -0
  165. package/lib/types/cache/distributed/ICacheClient.d.ts.map +1 -0
  166. package/lib/types/cache/distributed/IPartitionManager.d.ts +29 -0
  167. package/lib/types/cache/distributed/IPartitionManager.d.ts.map +1 -0
  168. package/lib/types/cache/serializer/Deserializer.d.ts +43 -0
  169. package/lib/types/cache/serializer/Deserializer.d.ts.map +1 -0
  170. package/lib/types/cache/serializer/Serializer.d.ts +40 -0
  171. package/lib/types/cache/serializer/Serializer.d.ts.map +1 -0
  172. package/lib/types/cache/serializer/SerializerTypes.d.ts +103 -0
  173. package/lib/types/cache/serializer/SerializerTypes.d.ts.map +1 -0
  174. package/lib/types/client/ClientApplication.d.ts +144 -0
  175. package/lib/types/client/ClientApplication.d.ts.map +1 -0
  176. package/lib/types/client/ClientAssertion.d.ts +56 -0
  177. package/lib/types/client/ClientAssertion.d.ts.map +1 -0
  178. package/lib/types/client/ClientCredentialClient.d.ts +34 -0
  179. package/lib/types/client/ClientCredentialClient.d.ts.map +1 -0
  180. package/lib/types/client/ConfidentialClientApplication.d.ts +59 -0
  181. package/lib/types/client/ConfidentialClientApplication.d.ts.map +1 -0
  182. package/lib/types/client/DeviceCodeClient.d.ts +54 -0
  183. package/lib/types/client/DeviceCodeClient.d.ts.map +1 -0
  184. package/lib/types/client/IConfidentialClientApplication.d.ts +40 -0
  185. package/lib/types/client/IConfidentialClientApplication.d.ts.map +1 -0
  186. package/lib/types/client/IPublicClientApplication.d.ts +43 -0
  187. package/lib/types/client/IPublicClientApplication.d.ts.map +1 -0
  188. package/lib/types/client/ManagedIdentityApplication.d.ts +31 -0
  189. package/lib/types/client/ManagedIdentityApplication.d.ts.map +1 -0
  190. package/lib/types/client/ManagedIdentityClient.d.ts +28 -0
  191. package/lib/types/client/ManagedIdentityClient.d.ts.map +1 -0
  192. package/lib/types/client/ManagedIdentitySources/AppService.d.ts +18 -0
  193. package/lib/types/client/ManagedIdentitySources/AppService.d.ts.map +1 -0
  194. package/lib/types/client/ManagedIdentitySources/AzureArc.d.ts +28 -0
  195. package/lib/types/client/ManagedIdentitySources/AzureArc.d.ts.map +1 -0
  196. package/lib/types/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts +31 -0
  197. package/lib/types/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +1 -0
  198. package/lib/types/client/ManagedIdentitySources/CloudShell.d.ts +17 -0
  199. package/lib/types/client/ManagedIdentitySources/CloudShell.d.ts.map +1 -0
  200. package/lib/types/client/ManagedIdentitySources/Imds.d.ts +13 -0
  201. package/lib/types/client/ManagedIdentitySources/Imds.d.ts.map +1 -0
  202. package/lib/types/client/ManagedIdentitySources/ServiceFabric.d.ts +18 -0
  203. package/lib/types/client/ManagedIdentitySources/ServiceFabric.d.ts.map +1 -0
  204. package/lib/types/client/OnBehalfOfClient.d.ts +48 -0
  205. package/lib/types/client/OnBehalfOfClient.d.ts.map +1 -0
  206. package/lib/types/client/PublicClientApplication.d.ts +73 -0
  207. package/lib/types/client/PublicClientApplication.d.ts.map +1 -0
  208. package/lib/types/client/UsernamePasswordClient.d.ts +26 -0
  209. package/lib/types/client/UsernamePasswordClient.d.ts.map +1 -0
  210. package/lib/types/config/Configuration.d.ts +132 -0
  211. package/lib/types/config/Configuration.d.ts.map +1 -0
  212. package/lib/types/config/ManagedIdentityId.d.ts +12 -0
  213. package/lib/types/config/ManagedIdentityId.d.ts.map +1 -0
  214. package/lib/types/config/ManagedIdentityRequestParameters.d.ts +12 -0
  215. package/lib/types/config/ManagedIdentityRequestParameters.d.ts.map +1 -0
  216. package/lib/types/crypto/CryptoProvider.d.ts +63 -0
  217. package/lib/types/crypto/CryptoProvider.d.ts.map +1 -0
  218. package/lib/types/crypto/GuidGenerator.d.ts +15 -0
  219. package/lib/types/crypto/GuidGenerator.d.ts.map +1 -0
  220. package/lib/types/crypto/HashUtils.d.ts +9 -0
  221. package/lib/types/crypto/HashUtils.d.ts.map +1 -0
  222. package/lib/types/crypto/PkceGenerator.d.ts +23 -0
  223. package/lib/types/crypto/PkceGenerator.d.ts.map +1 -0
  224. package/lib/types/error/ManagedIdentityError.d.ts +31 -0
  225. package/lib/types/error/ManagedIdentityError.d.ts.map +1 -0
  226. package/lib/types/error/ManagedIdentityErrorCodes.d.ts +23 -0
  227. package/lib/types/error/ManagedIdentityErrorCodes.d.ts.map +1 -0
  228. package/lib/types/error/NodeAuthError.d.ts +74 -0
  229. package/lib/types/error/NodeAuthError.d.ts.map +1 -0
  230. package/lib/types/index.d.ts +46 -0
  231. package/lib/types/index.d.ts.map +1 -0
  232. package/lib/types/internals.d.ts +7 -0
  233. package/lib/types/internals.d.ts.map +1 -0
  234. package/lib/types/network/HttpClient.d.ts +26 -0
  235. package/lib/types/network/HttpClient.d.ts.map +1 -0
  236. package/lib/types/network/HttpClientWithRetries.d.ts +12 -0
  237. package/lib/types/network/HttpClientWithRetries.d.ts.map +1 -0
  238. package/lib/types/network/ILoopbackClient.d.ts +11 -0
  239. package/lib/types/network/ILoopbackClient.d.ts.map +1 -0
  240. package/lib/types/network/LoopbackClient.d.ts +22 -0
  241. package/lib/types/network/LoopbackClient.d.ts.map +1 -0
  242. package/lib/types/packageMetadata.d.ts +3 -0
  243. package/lib/types/packageMetadata.d.ts.map +1 -0
  244. package/lib/types/request/AuthorizationCodeRequest.d.ts +22 -0
  245. package/lib/types/request/AuthorizationCodeRequest.d.ts.map +1 -0
  246. package/lib/types/request/AuthorizationUrlRequest.d.ts +34 -0
  247. package/lib/types/request/AuthorizationUrlRequest.d.ts.map +1 -0
  248. package/lib/types/request/ClientCredentialRequest.d.ts +15 -0
  249. package/lib/types/request/ClientCredentialRequest.d.ts.map +1 -0
  250. package/lib/types/request/DeviceCodeRequest.d.ts +16 -0
  251. package/lib/types/request/DeviceCodeRequest.d.ts.map +1 -0
  252. package/lib/types/request/InteractiveRequest.d.ts +23 -0
  253. package/lib/types/request/InteractiveRequest.d.ts.map +1 -0
  254. package/lib/types/request/ManagedIdentityRequest.d.ts +9 -0
  255. package/lib/types/request/ManagedIdentityRequest.d.ts.map +1 -0
  256. package/lib/types/request/ManagedIdentityRequestParams.d.ts +10 -0
  257. package/lib/types/request/ManagedIdentityRequestParams.d.ts.map +1 -0
  258. package/lib/types/request/OnBehalfOfRequest.d.ts +15 -0
  259. package/lib/types/request/OnBehalfOfRequest.d.ts.map +1 -0
  260. package/lib/types/request/RefreshTokenRequest.d.ts +18 -0
  261. package/lib/types/request/RefreshTokenRequest.d.ts.map +1 -0
  262. package/lib/types/request/SignOutRequest.d.ts +6 -0
  263. package/lib/types/request/SignOutRequest.d.ts.map +1 -0
  264. package/lib/types/request/SilentFlowRequest.d.ts +17 -0
  265. package/lib/types/request/SilentFlowRequest.d.ts.map +1 -0
  266. package/lib/types/request/UsernamePasswordRequest.d.ts +20 -0
  267. package/lib/types/request/UsernamePasswordRequest.d.ts.map +1 -0
  268. package/lib/types/response/ManagedIdentityTokenResponse.d.ts +35 -0
  269. package/lib/types/response/ManagedIdentityTokenResponse.d.ts.map +1 -0
  270. package/lib/types/retry/IHttpRetryPolicy.d.ts +6 -0
  271. package/lib/types/retry/IHttpRetryPolicy.d.ts.map +1 -0
  272. package/lib/types/retry/LinearRetryPolicy.d.ts +12 -0
  273. package/lib/types/retry/LinearRetryPolicy.d.ts.map +1 -0
  274. package/lib/types/utils/Constants.d.ts +142 -0
  275. package/lib/types/utils/Constants.d.ts.map +1 -0
  276. package/lib/types/utils/EncodingUtils.d.ts +27 -0
  277. package/lib/types/utils/EncodingUtils.d.ts.map +1 -0
  278. package/lib/types/utils/NetworkUtils.d.ts +6 -0
  279. package/lib/types/utils/NetworkUtils.d.ts.map +1 -0
  280. package/package.json +13 -10
  281. package/src/cache/ITokenCache.ts +1 -1
  282. package/src/cache/NodeStorage.ts +1 -1
  283. package/src/cache/TokenCache.ts +1 -1
  284. package/src/cache/distributed/DistributedCachePlugin.ts +1 -1
  285. package/src/cache/distributed/IPartitionManager.ts +1 -1
  286. package/src/cache/serializer/Deserializer.ts +1 -1
  287. package/src/cache/serializer/Serializer.ts +1 -1
  288. package/src/cache/serializer/SerializerTypes.ts +1 -1
  289. package/src/client/ClientApplication.ts +1 -1
  290. package/src/client/ClientAssertion.ts +1 -1
  291. package/src/client/ClientCredentialClient.ts +2 -2
  292. package/src/client/ConfidentialClientApplication.ts +1 -1
  293. package/src/client/DeviceCodeClient.ts +1 -1
  294. package/src/client/IConfidentialClientApplication.ts +1 -1
  295. package/src/client/IPublicClientApplication.ts +5 -1
  296. package/src/client/ManagedIdentityApplication.ts +9 -9
  297. package/src/client/ManagedIdentityClient.ts +13 -13
  298. package/src/client/ManagedIdentitySources/AppService.ts +7 -7
  299. package/src/client/ManagedIdentitySources/AzureArc.ts +9 -9
  300. package/src/client/ManagedIdentitySources/BaseManagedIdentitySource.ts +9 -9
  301. package/src/client/ManagedIdentitySources/CloudShell.ts +8 -8
  302. package/src/client/ManagedIdentitySources/Imds.ts +7 -7
  303. package/src/client/ManagedIdentitySources/ServiceFabric.ts +7 -7
  304. package/src/client/OnBehalfOfClient.ts +2 -2
  305. package/src/client/PublicClientApplication.ts +2 -2
  306. package/src/client/UsernamePasswordClient.ts +1 -1
  307. package/src/config/Configuration.ts +1 -1
  308. package/src/config/ManagedIdentityId.ts +3 -3
  309. package/src/config/ManagedIdentityRequestParameters.ts +2 -2
  310. package/src/crypto/CryptoProvider.ts +1 -1
  311. package/src/crypto/GuidGenerator.ts +1 -1
  312. package/src/crypto/PkceGenerator.ts +1 -1
  313. package/src/error/ManagedIdentityError.ts +3 -3
  314. package/src/error/ManagedIdentityErrorCodes.ts +1 -1
  315. package/src/error/NodeAuthError.ts +1 -1
  316. package/src/index.ts +1 -1
  317. package/src/network/HttpClient.ts +1 -1
  318. package/src/network/HttpClientWithRetries.ts +3 -3
  319. package/src/network/ILoopbackClient.ts +1 -1
  320. package/src/network/LoopbackClient.ts +2 -2
  321. package/src/packageMetadata.ts +1 -1
  322. package/src/request/AuthorizationCodeRequest.ts +1 -1
  323. package/src/request/AuthorizationUrlRequest.ts +1 -1
  324. package/src/request/ClientCredentialRequest.ts +1 -1
  325. package/src/request/DeviceCodeRequest.ts +1 -1
  326. package/src/request/ManagedIdentityRequest.ts +2 -2
  327. package/src/request/OnBehalfOfRequest.ts +1 -1
  328. package/src/request/RefreshTokenRequest.ts +1 -1
  329. package/src/request/SignOutRequest.ts +1 -1
  330. package/src/request/SilentFlowRequest.ts +1 -1
  331. package/src/request/UsernamePasswordRequest.ts +1 -1
  332. package/src/response/ManagedIdentityTokenResponse.ts +1 -1
  333. package/src/retry/LinearRetryPolicy.ts +1 -1
  334. package/src/utils/Constants.ts +1 -1
  335. package/src/utils/EncodingUtils.ts +1 -1
  336. package/src/utils/NetworkUtils.ts +4 -1
  337. package/dist/cache/NodeStorage.cjs +0 -436
  338. package/dist/cache/NodeStorage.cjs.map +0 -1
  339. package/dist/cache/TokenCache.cjs +0 -278
  340. package/dist/cache/TokenCache.cjs.map +0 -1
  341. package/dist/cache/distributed/DistributedCachePlugin.cjs +0 -37
  342. package/dist/cache/distributed/DistributedCachePlugin.cjs.map +0 -1
  343. package/dist/cache/serializer/Deserializer.cjs +0 -178
  344. package/dist/cache/serializer/Deserializer.cjs.map +0 -1
  345. package/dist/cache/serializer/Serializer.cjs +0 -146
  346. package/dist/cache/serializer/Serializer.cjs.map +0 -1
  347. package/dist/client/ClientApplication.cjs +0 -354
  348. package/dist/client/ClientApplication.cjs.map +0 -1
  349. package/dist/client/ClientAssertion.cjs +0 -161
  350. package/dist/client/ClientAssertion.cjs.map +0 -1
  351. package/dist/client/ClientCredentialClient.cjs +0 -205
  352. package/dist/client/ClientCredentialClient.cjs.map +0 -1
  353. package/dist/client/ConfidentialClientApplication.cjs +0 -184
  354. package/dist/client/ConfidentialClientApplication.cjs.map +0 -1
  355. package/dist/client/DeviceCodeClient.cjs +0 -218
  356. package/dist/client/DeviceCodeClient.cjs.map +0 -1
  357. package/dist/client/ManagedIdentityApplication.cjs +0 -102
  358. package/dist/client/ManagedIdentityApplication.cjs.map +0 -1
  359. package/dist/client/ManagedIdentityClient.cjs +0 -78
  360. package/dist/client/ManagedIdentityClient.cjs.map +0 -1
  361. package/dist/client/ManagedIdentitySources/AppService.cjs +0 -58
  362. package/dist/client/ManagedIdentitySources/AppService.cjs.map +0 -1
  363. package/dist/client/ManagedIdentitySources/AzureArc.cjs +0 -179
  364. package/dist/client/ManagedIdentitySources/AzureArc.cjs.map +0 -1
  365. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.cjs +0 -137
  366. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.cjs.map +0 -1
  367. package/dist/client/ManagedIdentitySources/CloudShell.cjs +0 -53
  368. package/dist/client/ManagedIdentitySources/CloudShell.cjs.map +0 -1
  369. package/dist/client/ManagedIdentitySources/Imds.cjs +0 -56
  370. package/dist/client/ManagedIdentitySources/Imds.cjs.map +0 -1
  371. package/dist/client/ManagedIdentitySources/ServiceFabric.cjs +0 -67
  372. package/dist/client/ManagedIdentitySources/ServiceFabric.cjs.map +0 -1
  373. package/dist/client/OnBehalfOfClient.cjs +0 -214
  374. package/dist/client/OnBehalfOfClient.cjs.map +0 -1
  375. package/dist/client/PublicClientApplication.cjs +0 -254
  376. package/dist/client/PublicClientApplication.cjs.map +0 -1
  377. package/dist/client/UsernamePasswordClient.cjs +0 -106
  378. package/dist/client/UsernamePasswordClient.cjs.map +0 -1
  379. package/dist/config/Configuration.cjs +0 -124
  380. package/dist/config/Configuration.cjs.map +0 -1
  381. package/dist/config/ManagedIdentityId.cjs +0 -61
  382. package/dist/config/ManagedIdentityId.cjs.map +0 -1
  383. package/dist/config/ManagedIdentityRequestParameters.cjs +0 -39
  384. package/dist/config/ManagedIdentityRequestParameters.cjs.map +0 -1
  385. package/dist/crypto/CryptoProvider.cjs +0 -103
  386. package/dist/crypto/CryptoProvider.cjs.map +0 -1
  387. package/dist/crypto/GuidGenerator.cjs +0 -33
  388. package/dist/crypto/GuidGenerator.cjs.map +0 -1
  389. package/dist/crypto/HashUtils.cjs +0 -29
  390. package/dist/crypto/HashUtils.cjs.map +0 -1
  391. package/dist/crypto/PkceGenerator.cjs +0 -68
  392. package/dist/crypto/PkceGenerator.cjs.map +0 -1
  393. package/dist/error/ManagedIdentityError.cjs +0 -56
  394. package/dist/error/ManagedIdentityError.cjs.map +0 -1
  395. package/dist/error/ManagedIdentityErrorCodes.cjs +0 -49
  396. package/dist/error/ManagedIdentityErrorCodes.cjs.map +0 -1
  397. package/dist/error/NodeAuthError.cjs +0 -107
  398. package/dist/error/NodeAuthError.cjs.map +0 -1
  399. package/dist/index.cjs +0 -125
  400. package/dist/index.cjs.map +0 -1
  401. package/dist/internals.cjs +0 -17
  402. package/dist/internals.cjs.map +0 -1
  403. package/dist/network/HttpClient.cjs +0 -301
  404. package/dist/network/HttpClient.cjs.map +0 -1
  405. package/dist/network/HttpClientWithRetries.cjs +0 -46
  406. package/dist/network/HttpClientWithRetries.cjs.map +0 -1
  407. package/dist/network/LoopbackClient.cjs +0 -99
  408. package/dist/network/LoopbackClient.cjs.map +0 -1
  409. package/dist/packageMetadata.cjs +0 -13
  410. package/dist/packageMetadata.cjs.map +0 -1
  411. package/dist/retry/LinearRetryPolicy.cjs +0 -49
  412. package/dist/retry/LinearRetryPolicy.cjs.map +0 -1
  413. package/dist/utils/Constants.cjs +0 -172
  414. package/dist/utils/Constants.cjs.map +0 -1
  415. package/dist/utils/EncodingUtils.cjs +0 -55
  416. package/dist/utils/EncodingUtils.cjs.map +0 -1
  417. package/dist/utils/NetworkUtils.cjs +0 -47
  418. package/dist/utils/NetworkUtils.cjs.map +0 -1
@@ -0,0 +1,23 @@
1
+ export declare const invalidFileExtension = "invalid_file_extension";
2
+ export declare const invalidFilePath = "invalid_file_path";
3
+ export declare const invalidManagedIdentityIdType = "invalid_managed_identity_id_type";
4
+ export declare const invalidSecret = "invalid_secret";
5
+ export declare const missingId = "missing_client_id";
6
+ export declare const networkUnavailable = "network_unavailable";
7
+ export declare const platformNotSupported = "platform_not_supported";
8
+ export declare const unableToCreateAzureArc = "unable_to_create_azure_arc";
9
+ export declare const unableToCreateCloudShell = "unable_to_create_cloud_shell";
10
+ export declare const unableToCreateSource = "unable_to_create_source";
11
+ export declare const unableToReadSecretFile = "unable_to_read_secret_file";
12
+ export declare const urlParseError = "url_parse_error";
13
+ export declare const userAssignedNotAvailableAtRuntime = "user_assigned_not_available_at_runtime";
14
+ export declare const wwwAuthenticateHeaderMissing = "www_authenticate_header_missing";
15
+ export declare const wwwAuthenticateHeaderUnsupportedFormat = "www_authenticate_header_unsupported_format";
16
+ export declare const MsiEnvironmentVariableUrlMalformedErrorCodes: {
17
+ readonly AZURE_POD_IDENTITY_AUTHORITY_HOST: "azure_pod_identity_authority_host_url_malformed";
18
+ readonly IDENTITY_ENDPOINT: "identity_endpoint_url_malformed";
19
+ readonly IMDS_ENDPOINT: "imds_endpoint_url_malformed";
20
+ readonly MSI_ENDPOINT: "msi_endpoint_url_malformed";
21
+ };
22
+ export type MsiEnvironmentVariableErrorCodes = (typeof MsiEnvironmentVariableUrlMalformedErrorCodes)[keyof typeof MsiEnvironmentVariableUrlMalformedErrorCodes];
23
+ //# sourceMappingURL=ManagedIdentityErrorCodes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ManagedIdentityErrorCodes.d.ts","sourceRoot":"","sources":["../../../src/error/ManagedIdentityErrorCodes.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAC7D,eAAO,MAAM,eAAe,sBAAsB,CAAC;AACnD,eAAO,MAAM,4BAA4B,qCAAqC,CAAC;AAC/E,eAAO,MAAM,aAAa,mBAAmB,CAAC;AAC9C,eAAO,MAAM,SAAS,sBAAsB,CAAC;AAC7C,eAAO,MAAM,kBAAkB,wBAAwB,CAAC;AACxD,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAC7D,eAAO,MAAM,sBAAsB,+BAA+B,CAAC;AACnE,eAAO,MAAM,wBAAwB,iCAAiC,CAAC;AACvE,eAAO,MAAM,oBAAoB,4BAA4B,CAAC;AAC9D,eAAO,MAAM,sBAAsB,+BAA+B,CAAC;AACnE,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAC/C,eAAO,MAAM,iCAAiC,2CACF,CAAC;AAC7C,eAAO,MAAM,4BAA4B,oCAAoC,CAAC;AAC9E,eAAO,MAAM,sCAAsC,+CACH,CAAC;AAEjD,eAAO,MAAM,4CAA4C;;;;;CAS/C,CAAC;AACX,MAAM,MAAM,gCAAgC,GACxC,CAAC,OAAO,4CAA4C,CAAC,CAAC,MAAM,OAAO,4CAA4C,CAAC,CAAC"}
@@ -0,0 +1,74 @@
1
+ import { AuthError } from "@azure/msal-common/node";
2
+ /**
3
+ * NodeAuthErrorMessage class containing string constants used by error codes and messages.
4
+ */
5
+ export declare const NodeAuthErrorMessage: {
6
+ invalidLoopbackAddressType: {
7
+ code: string;
8
+ desc: string;
9
+ };
10
+ unableToLoadRedirectUri: {
11
+ code: string;
12
+ desc: string;
13
+ };
14
+ noAuthCodeInResponse: {
15
+ code: string;
16
+ desc: string;
17
+ };
18
+ noLoopbackServerExists: {
19
+ code: string;
20
+ desc: string;
21
+ };
22
+ loopbackServerAlreadyExists: {
23
+ code: string;
24
+ desc: string;
25
+ };
26
+ loopbackServerTimeout: {
27
+ code: string;
28
+ desc: string;
29
+ };
30
+ stateNotFoundError: {
31
+ code: string;
32
+ desc: string;
33
+ };
34
+ thumbprintMissing: {
35
+ code: string;
36
+ desc: string;
37
+ };
38
+ };
39
+ export declare class NodeAuthError extends AuthError {
40
+ constructor(errorCode: string, errorMessage?: string);
41
+ /**
42
+ * Creates an error thrown if loopback server address is of type string.
43
+ */
44
+ static createInvalidLoopbackAddressTypeError(): NodeAuthError;
45
+ /**
46
+ * Creates an error thrown if the loopback server is unable to get a url.
47
+ */
48
+ static createUnableToLoadRedirectUrlError(): NodeAuthError;
49
+ /**
50
+ * Creates an error thrown if the server response does not contain an auth code.
51
+ */
52
+ static createNoAuthCodeInResponseError(): NodeAuthError;
53
+ /**
54
+ * Creates an error thrown if the loopback server has not been spun up yet.
55
+ */
56
+ static createNoLoopbackServerExistsError(): NodeAuthError;
57
+ /**
58
+ * Creates an error thrown if a loopback server already exists when attempting to create another one.
59
+ */
60
+ static createLoopbackServerAlreadyExistsError(): NodeAuthError;
61
+ /**
62
+ * Creates an error thrown if the loopback server times out registering the auth code listener.
63
+ */
64
+ static createLoopbackServerTimeoutError(): NodeAuthError;
65
+ /**
66
+ * Creates an error thrown when the state is not present.
67
+ */
68
+ static createStateNotFoundError(): NodeAuthError;
69
+ /**
70
+ * Creates an error thrown when client certificate was provided, but neither the SHA-1 or SHA-256 thumbprints were provided
71
+ */
72
+ static createThumbprintMissingError(): NodeAuthError;
73
+ }
74
+ //# sourceMappingURL=NodeAuthError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NodeAuthError.d.ts","sourceRoot":"","sources":["../../../src/error/NodeAuthError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiChC,CAAC;AAEF,qBAAa,aAAc,SAAQ,SAAS;gBAC5B,SAAS,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM;IAKpD;;OAEG;IACH,MAAM,CAAC,qCAAqC,IAAI,aAAa;IAO7D;;OAEG;IACH,MAAM,CAAC,kCAAkC,IAAI,aAAa;IAO1D;;OAEG;IACH,MAAM,CAAC,+BAA+B,IAAI,aAAa;IAOvD;;OAEG;IACH,MAAM,CAAC,iCAAiC,IAAI,aAAa;IAOzD;;OAEG;IACH,MAAM,CAAC,sCAAsC,IAAI,aAAa;IAO9D;;OAEG;IACH,MAAM,CAAC,gCAAgC,IAAI,aAAa;IAOxD;;OAEG;IACH,MAAM,CAAC,wBAAwB,IAAI,aAAa;IAOhD;;OAEG;IACH,MAAM,CAAC,4BAA4B,IAAI,aAAa;CAMvD"}
@@ -0,0 +1,46 @@
1
+ /**
2
+ * @packageDocumentation
3
+ * @module @azure/msal-node
4
+ */
5
+ /**
6
+ * Warning: This set of exports is purely intended to be used by other MSAL libraries, and should be considered potentially unstable. We strongly discourage using them directly, you do so at your own risk.
7
+ * Breaking changes to these APIs will be shipped under a minor version, instead of a major version.
8
+ */
9
+ import * as internals from "./internals.js";
10
+ export { internals };
11
+ export { IPublicClientApplication } from "./client/IPublicClientApplication.js";
12
+ export { IConfidentialClientApplication } from "./client/IConfidentialClientApplication.js";
13
+ export { ITokenCache } from "./cache/ITokenCache.js";
14
+ export { ICacheClient } from "./cache/distributed/ICacheClient.js";
15
+ export { IPartitionManager } from "./cache/distributed/IPartitionManager.js";
16
+ export { ILoopbackClient } from "./network/ILoopbackClient.js";
17
+ export { PublicClientApplication } from "./client/PublicClientApplication.js";
18
+ export { ConfidentialClientApplication } from "./client/ConfidentialClientApplication.js";
19
+ export { ClientApplication } from "./client/ClientApplication.js";
20
+ export { ClientCredentialClient } from "./client/ClientCredentialClient.js";
21
+ export { DeviceCodeClient } from "./client/DeviceCodeClient.js";
22
+ export { OnBehalfOfClient } from "./client/OnBehalfOfClient.js";
23
+ export { ManagedIdentityApplication } from "./client/ManagedIdentityApplication.js";
24
+ export { UsernamePasswordClient } from "./client/UsernamePasswordClient.js";
25
+ export { Configuration, ManagedIdentityConfiguration, ManagedIdentityIdParams, buildAppConfiguration, NodeAuthOptions, NodeSystemOptions, BrokerOptions, NodeTelemetryOptions, CacheOptions, } from "./config/Configuration.js";
26
+ export { ClientAssertion } from "./client/ClientAssertion.js";
27
+ export { TokenCache } from "./cache/TokenCache.js";
28
+ export { NodeStorage } from "./cache/NodeStorage.js";
29
+ export { CacheKVStore, JsonCache, InMemoryCache, SerializedAccountEntity, SerializedIdTokenEntity, SerializedAccessTokenEntity, SerializedAppMetadataEntity, SerializedRefreshTokenEntity, } from "./cache/serializer/SerializerTypes.js";
30
+ export { DistributedCachePlugin } from "./cache/distributed/DistributedCachePlugin.js";
31
+ export { ManagedIdentitySourceNames } from "./utils/Constants.js";
32
+ export { CryptoProvider } from "./crypto/CryptoProvider.js";
33
+ export type { AuthorizationCodeRequest } from "./request/AuthorizationCodeRequest.js";
34
+ export type { AuthorizationUrlRequest } from "./request/AuthorizationUrlRequest.js";
35
+ export type { ClientCredentialRequest } from "./request/ClientCredentialRequest.js";
36
+ export type { DeviceCodeRequest } from "./request/DeviceCodeRequest.js";
37
+ export type { OnBehalfOfRequest } from "./request/OnBehalfOfRequest.js";
38
+ export type { UsernamePasswordRequest } from "./request/UsernamePasswordRequest.js";
39
+ export type { RefreshTokenRequest } from "./request/RefreshTokenRequest.js";
40
+ export type { SilentFlowRequest } from "./request/SilentFlowRequest.js";
41
+ export type { InteractiveRequest } from "./request/InteractiveRequest.js";
42
+ export type { SignOutRequest } from "./request/SignOutRequest.js";
43
+ export type { ManagedIdentityRequestParams } from "./request/ManagedIdentityRequestParams.js";
44
+ export { PromptValue, ResponseMode, AuthorizationCodePayload, AuthenticationResult, ServerAuthorizationCodeResponse, IdTokenClaims, AccountInfo, ValidCacheType, AuthError, AuthErrorMessage, AuthErrorCodes, ClientAuthError, ClientAuthErrorCodes, ClientAuthErrorMessage, ClientConfigurationError, ClientConfigurationErrorCodes, ClientConfigurationErrorMessage, InteractionRequiredAuthError, InteractionRequiredAuthErrorCodes, InteractionRequiredAuthErrorMessage, ServerError, INetworkModule, NetworkRequestOptions, NetworkResponse, Logger, LogLevel, ProtocolMode, ICachePlugin, TokenCacheContext, ISerializableTokenCache, AzureCloudInstance, AzureCloudOptions, IAppTokenProvider, AppTokenProviderParameters, AppTokenProviderResult, INativeBrokerPlugin, ClientAssertionCallback, } from "@azure/msal-common/node";
45
+ export { version } from "./packageMetadata.js";
46
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAKA;;;GAGG;AAEH;;;GAGG;AAEH,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,CAAC;AAGrB,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;AAC5F,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAG/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAE5E,OAAO,EACH,aAAa,EACb,4BAA4B,EAC5B,uBAAuB,EACvB,qBAAqB,EACrB,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,oBAAoB,EACpB,YAAY,GACf,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAG9D,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EACH,YAAY,EACZ,SAAS,EACT,aAAa,EACb,uBAAuB,EACvB,uBAAuB,EACvB,2BAA2B,EAC3B,2BAA2B,EAC3B,4BAA4B,GAC/B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AAGvF,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAGlE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAG5D,YAAY,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACtF,YAAY,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AACpF,YAAY,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AACpF,YAAY,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACxE,YAAY,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACxE,YAAY,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AACpF,YAAY,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,YAAY,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACxE,YAAY,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,YAAY,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAClE,YAAY,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAC;AAG9F,OAAO,EAEH,WAAW,EACX,YAAY,EACZ,wBAAwB,EAExB,oBAAoB,EACpB,+BAA+B,EAC/B,aAAa,EAEb,WAAW,EACX,cAAc,EAEd,SAAS,EACT,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,6BAA6B,EAC7B,+BAA+B,EAC/B,4BAA4B,EAC5B,iCAAiC,EACjC,mCAAmC,EACnC,WAAW,EAEX,cAAc,EACd,qBAAqB,EACrB,eAAe,EAEf,MAAM,EACN,QAAQ,EAER,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,uBAAuB,EAEvB,kBAAkB,EAClB,iBAAiB,EAEjB,iBAAiB,EACjB,0BAA0B,EAC1B,sBAAsB,EACtB,mBAAmB,EACnB,uBAAuB,GAC1B,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Warning: This set of exports is purely intended to be used by other MSAL libraries, and should be considered potentially unstable. We strongly discourage using them directly, you do so at your own risk.
3
+ * Breaking changes to these APIs will be shipped under a minor version, instead of a major version.
4
+ */
5
+ export { Serializer } from "./cache/serializer/Serializer.js";
6
+ export { Deserializer } from "./cache/serializer/Deserializer.js";
7
+ //# sourceMappingURL=internals.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internals.d.ts","sourceRoot":"","sources":["../../src/internals.ts"],"names":[],"mappings":"AAKA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC"}
@@ -0,0 +1,26 @@
1
+ /// <reference types="node" resolution-mode="require"/>
2
+ /// <reference types="node" resolution-mode="require"/>
3
+ import { INetworkModule, NetworkRequestOptions, NetworkResponse } from "@azure/msal-common/node";
4
+ import http from "http";
5
+ import https from "https";
6
+ /**
7
+ * This class implements the API for network requests.
8
+ */
9
+ export declare class HttpClient implements INetworkModule {
10
+ private proxyUrl;
11
+ private customAgentOptions;
12
+ constructor(proxyUrl?: string, customAgentOptions?: http.AgentOptions | https.AgentOptions);
13
+ /**
14
+ * Http Get request
15
+ * @param url
16
+ * @param options
17
+ */
18
+ sendGetRequestAsync<T>(url: string, options?: NetworkRequestOptions, timeout?: number): Promise<NetworkResponse<T>>;
19
+ /**
20
+ * Http Post request
21
+ * @param url
22
+ * @param options
23
+ */
24
+ sendPostRequestAsync<T>(url: string, options?: NetworkRequestOptions): Promise<NetworkResponse<T>>;
25
+ }
26
+ //# sourceMappingURL=HttpClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HttpClient.d.ts","sourceRoot":"","sources":["../../../src/network/HttpClient.ts"],"names":[],"mappings":";;AAKA,OAAO,EACH,cAAc,EACd,qBAAqB,EACrB,eAAe,EAElB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;GAEG;AACH,qBAAa,UAAW,YAAW,cAAc;IAC7C,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,kBAAkB,CAAyC;gBAG/D,QAAQ,CAAC,EAAE,MAAM,EACjB,kBAAkB,CAAC,EAAE,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY;IAM/D;;;;OAIG;IACG,mBAAmB,CAAC,CAAC,EACvB,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,qBAAqB,EAC/B,OAAO,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;IAqB9B;;;;OAIG;IACG,oBAAoB,CAAC,CAAC,EACxB,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,qBAAqB,GAChC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;CAkBjC"}
@@ -0,0 +1,12 @@
1
+ import { INetworkModule, NetworkRequestOptions, NetworkResponse } from "@azure/msal-common/node";
2
+ import { IHttpRetryPolicy } from "../retry/IHttpRetryPolicy.js";
3
+ export declare class HttpClientWithRetries implements INetworkModule {
4
+ private httpClientNoRetries;
5
+ private retryPolicy;
6
+ constructor(httpClientNoRetries: INetworkModule, retryPolicy: IHttpRetryPolicy);
7
+ private sendNetworkRequestAsyncHelper;
8
+ private sendNetworkRequestAsync;
9
+ sendGetRequestAsync<T>(url: string, options?: NetworkRequestOptions): Promise<NetworkResponse<T>>;
10
+ sendPostRequestAsync<T>(url: string, options?: NetworkRequestOptions): Promise<NetworkResponse<T>>;
11
+ }
12
+ //# sourceMappingURL=HttpClientWithRetries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HttpClientWithRetries.d.ts","sourceRoot":"","sources":["../../../src/network/HttpClientWithRetries.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,cAAc,EACd,qBAAqB,EACrB,eAAe,EAClB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAGhE,qBAAa,qBAAsB,YAAW,cAAc;IACxD,OAAO,CAAC,mBAAmB,CAAiB;IAC5C,OAAO,CAAC,WAAW,CAAmB;gBAGlC,mBAAmB,EAAE,cAAc,EACnC,WAAW,EAAE,gBAAgB;YAMnB,6BAA6B;YAY7B,uBAAuB;IA4BxB,mBAAmB,CAAC,CAAC,EAC9B,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,qBAAqB,GAChC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;IAIjB,oBAAoB,CAAC,CAAC,EAC/B,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,qBAAqB,GAChC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;CAGjC"}
@@ -0,0 +1,11 @@
1
+ import { ServerAuthorizationCodeResponse } from "@azure/msal-common/node";
2
+ /**
3
+ * Interface for LoopbackClient allowing to replace the default loopback server with a custom implementation.
4
+ * @public
5
+ */
6
+ export interface ILoopbackClient {
7
+ listenForAuthCode(successTemplate?: string, errorTemplate?: string): Promise<ServerAuthorizationCodeResponse>;
8
+ getRedirectUri(): string;
9
+ closeServer(): void;
10
+ }
11
+ //# sourceMappingURL=ILoopbackClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ILoopbackClient.d.ts","sourceRoot":"","sources":["../../../src/network/ILoopbackClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,+BAA+B,EAAE,MAAM,yBAAyB,CAAC;AAE1E;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC5B,iBAAiB,CACb,eAAe,CAAC,EAAE,MAAM,EACxB,aAAa,CAAC,EAAE,MAAM,GACvB,OAAO,CAAC,+BAA+B,CAAC,CAAC;IAC5C,cAAc,IAAI,MAAM,CAAC;IACzB,WAAW,IAAI,IAAI,CAAC;CACvB"}
@@ -0,0 +1,22 @@
1
+ import { ServerAuthorizationCodeResponse } from "@azure/msal-common/node";
2
+ import { ILoopbackClient } from "./ILoopbackClient.js";
3
+ export declare class LoopbackClient implements ILoopbackClient {
4
+ private server;
5
+ /**
6
+ * Spins up a loopback server which returns the server response when the localhost redirectUri is hit
7
+ * @param successTemplate
8
+ * @param errorTemplate
9
+ * @returns
10
+ */
11
+ listenForAuthCode(successTemplate?: string, errorTemplate?: string): Promise<ServerAuthorizationCodeResponse>;
12
+ /**
13
+ * Get the port that the loopback server is running on
14
+ * @returns
15
+ */
16
+ getRedirectUri(): string;
17
+ /**
18
+ * Close the loopback server
19
+ */
20
+ closeServer(): void;
21
+ }
22
+ //# sourceMappingURL=LoopbackClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoopbackClient.d.ts","sourceRoot":"","sources":["../../../src/network/LoopbackClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,+BAA+B,EAGlC,MAAM,yBAAyB,CAAC;AAIjC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,qBAAa,cAAe,YAAW,eAAe;IAClD,OAAO,CAAC,MAAM,CAA0B;IAExC;;;;;OAKG;IACG,iBAAiB,CACnB,eAAe,CAAC,EAAE,MAAM,EACxB,aAAa,CAAC,EAAE,MAAM,GACvB,OAAO,CAAC,+BAA+B,CAAC;IAqD3C;;;OAGG;IACH,cAAc,IAAI,MAAM;IAgBxB;;OAEG;IACH,WAAW,IAAI,IAAI;CAetB"}
@@ -0,0 +1,3 @@
1
+ export declare const name = "@azure/msal-node";
2
+ export declare const version = "2.14.0";
3
+ //# sourceMappingURL=packageMetadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"packageMetadata.d.ts","sourceRoot":"","sources":["../../src/packageMetadata.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,IAAI,qBAAqB,CAAC;AACvC,eAAO,MAAM,OAAO,WAAW,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { CommonAuthorizationCodeRequest } from "@azure/msal-common/node";
2
+ /**
3
+ * Request object passed by user to acquire a token from the server exchanging a valid authorization code (second leg of OAuth2.0 Authorization Code flow)
4
+ *
5
+ * - scopes - Array of scopes the application is requesting access to.
6
+ * - claims - A stringified claims request which will be added to all /authorize and /token calls
7
+ * - authority: - URL of the authority, the security token service (STS) from which MSAL will acquire tokens. If authority is set on client application object, this will override that value. Overriding the value will cause for authority validation to happen each time. If the same authority will be used for all request, set on the application object instead of the requests.
8
+ * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
9
+ * - redirectUri - The redirect URI of your app, where the authority will redirect to after the user inputs credentials and consents. It must exactly match one of the redirect URIs you registered in the portal.
10
+ * - tokenQueryParameters - String to string map of custom query parameters added to the /token call
11
+ * - code - The authorization_code that the user acquired in the first leg of the flow.
12
+ * - codeVerifier - The same code_verifier that was used to obtain the authorization_code. Required if PKCE was used in the authorization code grant request.For more information, see the PKCE RFC: https://tools.ietf.org/html/rfc7636
13
+ * - state - Unique GUID generated by the user that is cached by the user and sent to the server during the first leg of the flow. This string is sent back by the server with the authorization code. The user cached state is then compared with the state received from the server to mitigate the risk of CSRF attacks. See https://datatracker.ietf.org/doc/html/rfc6819#section-3.6.
14
+ * @public
15
+ */
16
+ export type AuthorizationCodeRequest = Partial<Omit<CommonAuthorizationCodeRequest, "scopes" | "redirectUri" | "code" | "authenticationScheme" | "resourceRequestMethod" | "resourceRequestUri" | "requestedClaimsHash" | "storeInCache">> & {
17
+ scopes: Array<string>;
18
+ redirectUri: string;
19
+ code: string;
20
+ state?: string;
21
+ };
22
+ //# sourceMappingURL=AuthorizationCodeRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthorizationCodeRequest.d.ts","sourceRoot":"","sources":["../../../src/request/AuthorizationCodeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,8BAA8B,EAAE,MAAM,yBAAyB,CAAC;AAEzE;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAC1C,IAAI,CACA,8BAA8B,EAC5B,QAAQ,GACR,aAAa,GACb,MAAM,GACN,sBAAsB,GACtB,uBAAuB,GACvB,oBAAoB,GACpB,qBAAqB,GACrB,cAAc,CACnB,CACJ,GAAG;IACA,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -0,0 +1,34 @@
1
+ import { CommonAuthorizationUrlRequest } from "@azure/msal-common/node";
2
+ /**
3
+ * Request object passed by user to retrieve a Code from the server (first leg of authorization code grant flow)
4
+ *
5
+ * - scopes - Array of scopes the application is requesting access to.
6
+ * - claims - A stringified claims request which will be added to all /authorize and /token calls
7
+ * - authority - Url of the authority which the application acquires tokens from.
8
+ * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
9
+ * - redirectUri - The redirect URI where authentication responses can be received by your application. It must exactly match one of the redirect URIs registered in the Azure portal.
10
+ * - extraScopesToConsent - Scopes for a different resource when the user needs consent upfront.
11
+ * - responseMode - Specifies the method that should be used to send the authentication result to your app. Can be query, form_post, or fragment. If no value is passed in, it defaults to query.
12
+ * - codeChallenge - Used to secure authorization code grant via Proof of Key for Code Exchange (PKCE). For more information, see the PKCE RCF:https://tools.ietf.org/html/rfc7636
13
+ * - codeChallengeMethod - The method used to encode the code verifier for the code challenge parameter. Can be "plain" or "S256". If excluded, code challenge is assumed to be plaintext. For more information, see the PKCE RCF: https://tools.ietf.org/html/rfc7636
14
+ * - state - A value included in the request that is also returned in the token response. A randomly generated unique value is typically used for preventing cross site request forgery attacks. The state is also used to encode information about the user's state in the app before the authentication request occurred.
15
+ * - prompt - Indicates the type of user interaction that is required.
16
+ * login: will force the user to enter their credentials on that request, negating single-sign on
17
+ * none: will ensure that the user isn't presented with any interactive prompt. if request can't be completed via single-sign on, the endpoint will return an interaction_required error
18
+ * consent: will the trigger the OAuth consent dialog after the user signs in, asking the user to grant permissions to the app
19
+ * select_account: will interrupt single sign-=on providing account selection experience listing all the accounts in session or any remembered accounts or an option to choose to use a different account
20
+ * create: will direct the user to the account creation experience instead of the log in experience
21
+ * - account - AccountInfo obtained from a getAccount API. Will be used in certain scenarios to generate login_hint if both loginHint and sid params are not provided.
22
+ * - loginHint - Can be used to pre-fill the username/email address field of the sign-in page for the user, if you know the username/email address ahead of time. Often apps use this parameter during re-authentication, having already extracted the username from a previous sign-in using the preferred_username claim.
23
+ * - sid - Session ID, unique identifier for the session. Available as an optional claim on ID tokens.
24
+ * - domainHint - Provides a hint about the tenant or domain that the user should use to sign in. The value of the domain hint is a registered domain for the tenant.
25
+ * - extraQueryParameters - String to string map of custom query parameters added to the /authorize call
26
+ * - tokenQueryParameters - String to string map of custom query parameters added to the /token call
27
+ * - nonce - A value included in the request that is returned in the id token. A randomly generated unique value is typically used to mitigate replay attacks.
28
+ * @public
29
+ */
30
+ export type AuthorizationUrlRequest = Partial<Omit<CommonAuthorizationUrlRequest, "scopes" | "redirectUri" | "resourceRequestMethod" | "resourceRequestUri" | "authenticationScheme" | "requestedClaimsHash" | "storeInCache">> & {
31
+ scopes: Array<string>;
32
+ redirectUri: string;
33
+ };
34
+ //# sourceMappingURL=AuthorizationUrlRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthorizationUrlRequest.d.ts","sourceRoot":"","sources":["../../../src/request/AuthorizationUrlRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AAExE;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,MAAM,uBAAuB,GAAG,OAAO,CACzC,IAAI,CACA,6BAA6B,EAC3B,QAAQ,GACR,aAAa,GACb,uBAAuB,GACvB,oBAAoB,GACpB,sBAAsB,GACtB,qBAAqB,GACrB,cAAc,CACnB,CACJ,GAAG;IACA,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { ClientAssertionCallback, CommonClientCredentialRequest } from "@azure/msal-common/node";
2
+ /**
3
+ * CommonClientCredentialRequest
4
+ * - scopes - Array of scopes the application is requesting access to. Typically contains only the .default scope for a single resource. See: https://learn.microsoft.com/azure/active-directory/develop/scopes-oidc#the-default-scope
5
+ * - authority - URL of the authority, the security token service (STS) from which MSAL will acquire tokens.
6
+ * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
7
+ * - skipCache - Skip token cache lookup and force request to authority to get a a new token. Defaults to false.
8
+ * - clientAssertion - An assertion string or a callback function that returns an assertion string (both are Base64Url-encoded signed JWTs) used in the Client Credential flow
9
+ * - tokenQueryParameters - String to string map of custom query parameters added to the /token call
10
+ * @public
11
+ */
12
+ export type ClientCredentialRequest = Partial<Omit<CommonClientCredentialRequest, "resourceRequestMethod" | "resourceRequestUri" | "requestedClaimsHash" | "clientAssertion" | "storeInCache">> & {
13
+ clientAssertion?: string | ClientAssertionCallback;
14
+ };
15
+ //# sourceMappingURL=ClientCredentialRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClientCredentialRequest.d.ts","sourceRoot":"","sources":["../../../src/request/ClientCredentialRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,uBAAuB,EACvB,6BAA6B,EAChC,MAAM,yBAAyB,CAAC;AAEjC;;;;;;;;;GASG;AACH,MAAM,MAAM,uBAAuB,GAAG,OAAO,CACzC,IAAI,CACA,6BAA6B,EAC3B,uBAAuB,GACvB,oBAAoB,GACpB,qBAAqB,GACrB,iBAAiB,GACjB,cAAc,CACnB,CACJ,GAAG;IACA,eAAe,CAAC,EAAE,MAAM,GAAG,uBAAuB,CAAC;CACtD,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { CommonDeviceCodeRequest, DeviceCodeResponse } from "@azure/msal-common/node";
2
+ /**
3
+ * Parameters for Oauth2 device code flow.
4
+ * - scopes - Array of scopes the application is requesting access to.
5
+ * - authority: - URL of the authority, the security token service (STS) from which MSAL will acquire tokens. If authority is set on client application object, this will override that value. Overriding the value will cause for authority validation to happen each time. If the same authority will be used for all request, set on the application object instead of the requests.
6
+ * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
7
+ * - deviceCodeCallback - Callback containing device code response. Message should be shown to end user. End user can then navigate to the verification_uri, input the user_code, and input credentials.
8
+ * - cancel - Boolean to cancel polling of device code endpoint. While the user authenticates on a separate device, MSAL polls the the token endpoint of security token service for the interval specified in the device code response (usually 15 minutes). To stop polling and cancel the request, set cancel=true.
9
+ * - extraQueryParameters - String to string map of custom query parameters added to the query string
10
+ * @public
11
+ */
12
+ export type DeviceCodeRequest = Partial<Omit<CommonDeviceCodeRequest, "scopes" | "deviceCodeCallback" | "resourceRequestMethod" | "resourceRequestUri" | "requestedClaimsHash" | "storeInCache">> & {
13
+ scopes: Array<string>;
14
+ deviceCodeCallback: (response: DeviceCodeResponse) => void;
15
+ };
16
+ //# sourceMappingURL=DeviceCodeRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeviceCodeRequest.d.ts","sourceRoot":"","sources":["../../../src/request/DeviceCodeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,uBAAuB,EACvB,kBAAkB,EACrB,MAAM,yBAAyB,CAAC;AAEjC;;;;;;;;;GASG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,CACnC,IAAI,CACA,uBAAuB,EACrB,QAAQ,GACR,oBAAoB,GACpB,uBAAuB,GACvB,oBAAoB,GACpB,qBAAqB,GACrB,cAAc,CACnB,CACJ,GAAG;IACA,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,kBAAkB,EAAE,CAAC,QAAQ,EAAE,kBAAkB,KAAK,IAAI,CAAC;CAC9D,CAAC"}
@@ -0,0 +1,23 @@
1
+ /// <reference types="node" resolution-mode="require"/>
2
+ import { ILoopbackClient } from "../network/ILoopbackClient.js";
3
+ import { AuthorizationUrlRequest } from "./AuthorizationUrlRequest.js";
4
+ /**
5
+ * Request object passed by user to configure acquireTokenInteractive API
6
+ *
7
+ * - openBrowser - Function to open a browser instance on user's system.
8
+ * - scopes - Array of scopes the application is requesting access to.
9
+ * - successTemplate: - Template to be displayed on the opened browser instance upon successful token acquisition.
10
+ * - errorTemplate - Template to be displayed on the opened browser instance upon token acquisition failure.
11
+ * - windowHandle - Used in native broker flows to properly parent the native broker window
12
+ * - loopbackClient - Custom implementation for a loopback server to listen for authorization code response.
13
+ * @public
14
+ */
15
+ export type InteractiveRequest = Pick<AuthorizationUrlRequest, "authority" | "correlationId" | "claims" | "azureCloudOptions" | "account" | "extraQueryParameters" | "tokenQueryParameters" | "extraScopesToConsent" | "loginHint" | "prompt"> & {
16
+ openBrowser: (url: string) => Promise<void>;
17
+ scopes?: Array<string>;
18
+ successTemplate?: string;
19
+ errorTemplate?: string;
20
+ windowHandle?: Buffer;
21
+ loopbackClient?: ILoopbackClient;
22
+ };
23
+ //# sourceMappingURL=InteractiveRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InteractiveRequest.d.ts","sourceRoot":"","sources":["../../../src/request/InteractiveRequest.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE;;;;;;;;;;GAUG;AACH,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACjC,uBAAuB,EACrB,WAAW,GACX,eAAe,GACf,QAAQ,GACR,mBAAmB,GACnB,SAAS,GACT,sBAAsB,GACtB,sBAAsB,GACtB,sBAAsB,GACtB,WAAW,GACX,QAAQ,CACb,GAAG;IACA,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,eAAe,CAAC;CACpC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { CommonClientCredentialRequest } from "@azure/msal-common/node";
2
+ import { ManagedIdentityRequestParams } from "./ManagedIdentityRequestParams.js";
3
+ /**
4
+ * ManagedIdentityRequest
5
+ * - forceRefresh - forces managed identity requests to skip the cache and make network calls if true
6
+ * - 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
7
+ */
8
+ export type ManagedIdentityRequest = ManagedIdentityRequestParams & CommonClientCredentialRequest;
9
+ //# sourceMappingURL=ManagedIdentityRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ManagedIdentityRequest.d.ts","sourceRoot":"","sources":["../../../src/request/ManagedIdentityRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAEjF;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG,4BAA4B,GAC7D,6BAA6B,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * ManagedIdentityRequest
3
+ * - forceRefresh - forces managed identity requests to skip the cache and make network calls if true
4
+ * - 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
5
+ */
6
+ export type ManagedIdentityRequestParams = {
7
+ forceRefresh?: boolean;
8
+ resource: string;
9
+ };
10
+ //# sourceMappingURL=ManagedIdentityRequestParams.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ManagedIdentityRequestParams.d.ts","sourceRoot":"","sources":["../../../src/request/ManagedIdentityRequestParams.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACvC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { CommonOnBehalfOfRequest } from "@azure/msal-common/node";
2
+ /**
3
+ * - scopes - Array of scopes the application is requesting access to.
4
+ * - authority - URL of the authority, the security token service (STS) from which MSAL will acquire tokens.
5
+ * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
6
+ * - oboAssertion - The access token that was sent to the middle-tier API. This token must have an audience of the app making this OBO request.
7
+ * - skipCache - Skip token cache lookup and force request to authority to get a a new token. Defaults to false.
8
+ * - tokenQueryParameters - String to string map of custom query parameters added to the /token call
9
+ * @public
10
+ */
11
+ export type OnBehalfOfRequest = Partial<Omit<CommonOnBehalfOfRequest, "oboAssertion" | "scopes" | "resourceRequestMethod" | "resourceRequestUri" | "requestedClaimsHash" | "storeInCache">> & {
12
+ oboAssertion: string;
13
+ scopes: Array<string>;
14
+ };
15
+ //# sourceMappingURL=OnBehalfOfRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OnBehalfOfRequest.d.ts","sourceRoot":"","sources":["../../../src/request/OnBehalfOfRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAElE;;;;;;;;GAQG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,CACnC,IAAI,CACA,uBAAuB,EACrB,cAAc,GACd,QAAQ,GACR,uBAAuB,GACvB,oBAAoB,GACpB,qBAAqB,GACrB,cAAc,CACnB,CACJ,GAAG;IACA,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzB,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { CommonRefreshTokenRequest } from "@azure/msal-common/node";
2
+ /**
3
+ * CommonRefreshTokenRequest
4
+ * - scopes - Array of scopes the application is requesting access to.
5
+ * - claims - A stringified claims request which will be added to all /authorize and /token calls
6
+ * - authority - URL of the authority, the security token service (STS) from which MSAL will acquire tokens.
7
+ * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
8
+ * - refreshToken - A refresh token returned from a previous request to the Identity provider.
9
+ * - tokenQueryParameters - String to string map of custom query parameters added to the /token call
10
+ * - forceCache - Force MSAL to cache a refresh token flow response when there is no account in the cache. Used for migration scenarios.
11
+ * @public
12
+ */
13
+ export type RefreshTokenRequest = Partial<Omit<CommonRefreshTokenRequest, "scopes" | "refreshToken" | "authenticationScheme" | "resourceRequestMethod" | "resourceRequestUri" | "requestedClaimsHash" | "storeInCache">> & {
14
+ scopes: Array<string>;
15
+ refreshToken: string;
16
+ forceCache?: boolean;
17
+ };
18
+ //# sourceMappingURL=RefreshTokenRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RefreshTokenRequest.d.ts","sourceRoot":"","sources":["../../../src/request/RefreshTokenRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEpE;;;;;;;;;;GAUG;AACH,MAAM,MAAM,mBAAmB,GAAG,OAAO,CACrC,IAAI,CACA,yBAAyB,EACvB,QAAQ,GACR,cAAc,GACd,sBAAsB,GACtB,uBAAuB,GACvB,oBAAoB,GACpB,qBAAqB,GACrB,cAAc,CACnB,CACJ,GAAG;IACA,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { AccountInfo } from "@azure/msal-common/node";
2
+ export type SignOutRequest = {
3
+ account: AccountInfo;
4
+ correlationId?: string;
5
+ };
6
+ //# sourceMappingURL=SignOutRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SignOutRequest.d.ts","sourceRoot":"","sources":["../../../src/request/SignOutRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,MAAM,MAAM,cAAc,GAAG;IACzB,OAAO,EAAE,WAAW,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { AccountInfo, CommonSilentFlowRequest } from "@azure/msal-common/node";
2
+ /**
3
+ * SilentFlow parameters passed by the user to retrieve credentials silently
4
+ * - scopes - Array of scopes the application is requesting access to.
5
+ * - claims - A stringified claims request which will be added to all /authorize and /token calls. When included on a silent request, cache lookup will be skipped and token will be refreshed.
6
+ * - authority - Url of the authority which the application acquires tokens from.
7
+ * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
8
+ * - tokenQueryParameters - String to string map of custom query parameters added to the /token call
9
+ * - account - Account entity to lookup the credentials.
10
+ * - forceRefresh - Forces silent requests to make network calls if true.
11
+ * @public
12
+ */
13
+ export type SilentFlowRequest = Partial<Omit<CommonSilentFlowRequest, "account" | "scopes" | "resourceRequestMethod" | "resourceRequestUri" | "requestedClaimsHash" | "storeInCache">> & {
14
+ account: AccountInfo;
15
+ scopes: Array<string>;
16
+ };
17
+ //# sourceMappingURL=SilentFlowRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SilentFlowRequest.d.ts","sourceRoot":"","sources":["../../../src/request/SilentFlowRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAE/E;;;;;;;;;;GAUG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,CACnC,IAAI,CACA,uBAAuB,EACrB,SAAS,GACT,QAAQ,GACR,uBAAuB,GACvB,oBAAoB,GACpB,qBAAqB,GACrB,cAAc,CACnB,CACJ,GAAG;IACA,OAAO,EAAE,WAAW,CAAC;IACrB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { CommonUsernamePasswordRequest } from "@azure/msal-common/node";
2
+ /**
3
+ * UsernamePassword parameters passed by the user to retrieve credentials
4
+ * Note: The latest OAuth 2.0 Security Best Current Practice disallows the password grant entirely. This flow is added for internal testing.
5
+ *
6
+ * - scopes - Array of scopes the application is requesting access to.
7
+ * - claims - A stringified claims request which will be added to all /authorize and /token calls. When included on a silent request, cache lookup will be skipped and token will be refreshed.
8
+ * - authority - Url of the authority which the application acquires tokens from.
9
+ * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
10
+ * - username - username of the client
11
+ * - password - credentials
12
+ * - tokenQueryParameters - String to string map of custom query parameters added to the /token call
13
+ * @public
14
+ */
15
+ export type UsernamePasswordRequest = Partial<Omit<CommonUsernamePasswordRequest, "scopes" | "resourceRequestMethod" | "resourceRequestUri" | "username" | "password" | "requestedClaimsHash" | "storeInCache">> & {
16
+ scopes: Array<string>;
17
+ username: string;
18
+ password: string;
19
+ };
20
+ //# sourceMappingURL=UsernamePasswordRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UsernamePasswordRequest.d.ts","sourceRoot":"","sources":["../../../src/request/UsernamePasswordRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AAExE;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,uBAAuB,GAAG,OAAO,CACzC,IAAI,CACA,6BAA6B,EAC3B,QAAQ,GACR,uBAAuB,GACvB,oBAAoB,GACpB,UAAU,GACV,UAAU,GACV,qBAAqB,GACrB,cAAc,CACnB,CACJ,GAAG;IACA,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { AuthenticationScheme } from "@azure/msal-common/node";
2
+ /**
3
+ * Deserialized response object from server managed identity request.
4
+ *
5
+ * In case of success:
6
+ * - access_token - The requested access token. When called via a secured REST API, the token is embedded in the Authorization request header field as a "bearer" token, allowing the API to authenticate the caller
7
+ * - client_id - A unique identifier generated by Azure AD for the Azure Resource. The Client ID is a GUID value that uniquely identifies the application and its configuration within the identity platform
8
+ * - expires_on - The timespan when the access token expires. The date is represented as the number of seconds from "1970-01-01T0:0:0Z UTC" (corresponds to the token's exp claim)
9
+ * - resource - The resource the access token was requested for. It matches the resource query string parameter of the request
10
+ * - token_type - The type of token returned by the Managed Identity endpoint. It's a "Bearer" access token, which means the resource can give access to the bearer of this token
11
+ *
12
+ * In case of error:
13
+ * - message: A specific error message that can help a developer identify the root cause of an authentication error.
14
+ * - correlationId: A unique identifier for the request that can help in diagnostics across components.
15
+ */
16
+ export type ManagedIdentityTokenResponse = {
17
+ access_token?: string;
18
+ client_id?: string;
19
+ expires_on?: number;
20
+ resource?: string;
21
+ token_type?: AuthenticationScheme;
22
+ message?: string;
23
+ correlationId?: string;
24
+ error?: string | ErrorObject;
25
+ error_description?: string;
26
+ error_codes?: Array<string>;
27
+ correlation_id?: string;
28
+ timestamp?: string;
29
+ trace_id?: string;
30
+ };
31
+ export type ErrorObject = {
32
+ code: string;
33
+ message: string;
34
+ };
35
+ //# sourceMappingURL=ManagedIdentityTokenResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ManagedIdentityTokenResponse.d.ts","sourceRoot":"","sources":["../../../src/response/ManagedIdentityTokenResponse.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAE/D;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,4BAA4B,GAAG;IAEvC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAQlC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IAGvB,KAAK,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;IAC7B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAMF,MAAM,MAAM,WAAW,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACnB,CAAC"}