@azure/msal-node 3.8.4 → 5.0.0-beta.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 (313) hide show
  1. package/README.md +2 -1
  2. package/dist/cache/CacheHelpers.d.ts.map +1 -1
  3. package/dist/cache/CacheHelpers.mjs +4 -5
  4. package/dist/cache/CacheHelpers.mjs.map +1 -1
  5. package/dist/cache/NodeStorage.d.ts.map +1 -1
  6. package/dist/cache/NodeStorage.mjs +17 -18
  7. package/dist/cache/NodeStorage.mjs.map +1 -1
  8. package/dist/cache/TokenCache.d.ts.map +1 -1
  9. package/dist/cache/TokenCache.mjs +15 -15
  10. package/dist/cache/TokenCache.mjs.map +1 -1
  11. package/dist/cache/distributed/DistributedCachePlugin.d.ts.map +1 -1
  12. package/dist/cache/distributed/DistributedCachePlugin.mjs +3 -3
  13. package/dist/cache/distributed/DistributedCachePlugin.mjs.map +1 -1
  14. package/dist/cache/serializer/Deserializer.d.ts.map +1 -1
  15. package/dist/cache/serializer/Deserializer.mjs +3 -5
  16. package/dist/cache/serializer/Deserializer.mjs.map +1 -1
  17. package/dist/cache/serializer/Serializer.d.ts.map +1 -1
  18. package/dist/cache/serializer/Serializer.mjs +1 -3
  19. package/dist/cache/serializer/Serializer.mjs.map +1 -1
  20. package/dist/cache/serializer/SerializerTypes.d.ts +0 -2
  21. package/dist/cache/serializer/SerializerTypes.d.ts.map +1 -1
  22. package/dist/client/BaseClient.d.ts +42 -0
  23. package/dist/client/BaseClient.d.ts.map +1 -0
  24. package/dist/client/BaseClient.mjs +68 -0
  25. package/dist/client/BaseClient.mjs.map +1 -0
  26. package/dist/client/ClientApplication.d.ts.map +1 -1
  27. package/dist/client/ClientApplication.mjs +33 -43
  28. package/dist/client/ClientApplication.mjs.map +1 -1
  29. package/dist/client/ClientAssertion.d.ts.map +1 -1
  30. package/dist/client/ClientAssertion.mjs +6 -5
  31. package/dist/client/ClientAssertion.mjs.map +1 -1
  32. package/dist/client/ClientCredentialClient.d.ts +4 -2
  33. package/dist/client/ClientCredentialClient.d.ts.map +1 -1
  34. package/dist/client/ClientCredentialClient.mjs +23 -21
  35. package/dist/client/ClientCredentialClient.mjs.map +1 -1
  36. package/dist/client/ConfidentialClientApplication.d.ts.map +1 -1
  37. package/dist/client/ConfidentialClientApplication.mjs +10 -9
  38. package/dist/client/ConfidentialClientApplication.mjs.map +1 -1
  39. package/dist/client/DeviceCodeClient.d.ts +3 -1
  40. package/dist/client/DeviceCodeClient.d.ts.map +1 -1
  41. package/dist/client/DeviceCodeClient.mjs +21 -19
  42. package/dist/client/DeviceCodeClient.mjs.map +1 -1
  43. package/dist/client/ManagedIdentityApplication.d.ts.map +1 -1
  44. package/dist/client/ManagedIdentityApplication.mjs +7 -6
  45. package/dist/client/ManagedIdentityApplication.mjs.map +1 -1
  46. package/dist/client/ManagedIdentityClient.mjs +1 -1
  47. package/dist/client/ManagedIdentitySources/AppService.d.ts.map +1 -1
  48. package/dist/client/ManagedIdentitySources/AppService.mjs +3 -3
  49. package/dist/client/ManagedIdentitySources/AppService.mjs.map +1 -1
  50. package/dist/client/ManagedIdentitySources/AzureArc.d.ts.map +1 -1
  51. package/dist/client/ManagedIdentitySources/AzureArc.mjs +8 -8
  52. package/dist/client/ManagedIdentitySources/AzureArc.mjs.map +1 -1
  53. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +1 -1
  54. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs +12 -11
  55. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs.map +1 -1
  56. package/dist/client/ManagedIdentitySources/CloudShell.d.ts.map +1 -1
  57. package/dist/client/ManagedIdentitySources/CloudShell.mjs +3 -3
  58. package/dist/client/ManagedIdentitySources/CloudShell.mjs.map +1 -1
  59. package/dist/client/ManagedIdentitySources/Imds.d.ts.map +1 -1
  60. package/dist/client/ManagedIdentitySources/Imds.mjs +3 -3
  61. package/dist/client/ManagedIdentitySources/Imds.mjs.map +1 -1
  62. package/dist/client/ManagedIdentitySources/MachineLearning.d.ts.map +1 -1
  63. package/dist/client/ManagedIdentitySources/MachineLearning.mjs +3 -3
  64. package/dist/client/ManagedIdentitySources/MachineLearning.mjs.map +1 -1
  65. package/dist/client/ManagedIdentitySources/ServiceFabric.d.ts.map +1 -1
  66. package/dist/client/ManagedIdentitySources/ServiceFabric.mjs +4 -4
  67. package/dist/client/ManagedIdentitySources/ServiceFabric.mjs.map +1 -1
  68. package/dist/client/OnBehalfOfClient.d.ts +3 -1
  69. package/dist/client/OnBehalfOfClient.d.ts.map +1 -1
  70. package/dist/client/OnBehalfOfClient.mjs +19 -18
  71. package/dist/client/OnBehalfOfClient.mjs.map +1 -1
  72. package/dist/client/PublicClientApplication.d.ts.map +1 -1
  73. package/dist/client/PublicClientApplication.mjs +15 -14
  74. package/dist/client/PublicClientApplication.mjs.map +1 -1
  75. package/dist/client/UsernamePasswordClient.d.ts +3 -1
  76. package/dist/client/UsernamePasswordClient.d.ts.map +1 -1
  77. package/dist/client/UsernamePasswordClient.mjs +8 -7
  78. package/dist/client/UsernamePasswordClient.mjs.map +1 -1
  79. package/dist/config/Configuration.d.ts +2 -19
  80. package/dist/config/Configuration.d.ts.map +1 -1
  81. package/dist/config/Configuration.mjs +18 -25
  82. package/dist/config/Configuration.mjs.map +1 -1
  83. package/dist/config/ManagedIdentityId.mjs +1 -1
  84. package/dist/config/ManagedIdentityRequestParameters.mjs +3 -3
  85. package/dist/config/ManagedIdentityRequestParameters.mjs.map +1 -1
  86. package/dist/crypto/CryptoProvider.d.ts.map +1 -1
  87. package/dist/crypto/CryptoProvider.mjs +5 -3
  88. package/dist/crypto/CryptoProvider.mjs.map +1 -1
  89. package/dist/crypto/GuidGenerator.mjs +1 -1
  90. package/dist/crypto/HashUtils.mjs +1 -1
  91. package/dist/crypto/PkceGenerator.d.ts.map +1 -1
  92. package/dist/crypto/PkceGenerator.mjs +6 -4
  93. package/dist/crypto/PkceGenerator.mjs.map +1 -1
  94. package/dist/error/ClientAuthErrorCodes.d.ts +8 -0
  95. package/dist/error/ClientAuthErrorCodes.d.ts.map +1 -0
  96. package/dist/error/ClientAuthErrorCodes.mjs +16 -0
  97. package/dist/error/ClientAuthErrorCodes.mjs.map +1 -0
  98. package/dist/error/ManagedIdentityError.mjs +1 -1
  99. package/dist/error/ManagedIdentityErrorCodes.mjs +1 -1
  100. package/dist/error/NodeAuthError.mjs +1 -1
  101. package/dist/index.d.ts +15 -11
  102. package/dist/index.d.ts.map +1 -1
  103. package/dist/index.mjs +20 -8
  104. package/dist/index.mjs.map +1 -1
  105. package/dist/internals.mjs +1 -1
  106. package/dist/network/HttpClient.d.ts +53 -40
  107. package/dist/network/HttpClient.d.ts.map +1 -1
  108. package/dist/network/HttpClient.mjs +149 -315
  109. package/dist/network/HttpClient.mjs.map +1 -1
  110. package/dist/network/HttpClientWithRetries.mjs +3 -3
  111. package/dist/network/HttpClientWithRetries.mjs.map +1 -1
  112. package/dist/network/LoopbackClient.d.ts.map +1 -1
  113. package/dist/network/LoopbackClient.mjs +3 -3
  114. package/dist/network/LoopbackClient.mjs.map +1 -1
  115. package/dist/packageMetadata.d.ts +1 -1
  116. package/dist/packageMetadata.d.ts.map +1 -1
  117. package/dist/packageMetadata.mjs +2 -2
  118. package/dist/protocol/Authorize.d.ts.map +1 -1
  119. package/dist/protocol/Authorize.mjs +6 -6
  120. package/dist/protocol/Authorize.mjs.map +1 -1
  121. package/dist/request/AuthorizationCodeRequest.d.ts +3 -2
  122. package/dist/request/AuthorizationCodeRequest.d.ts.map +1 -1
  123. package/dist/request/AuthorizationUrlRequest.d.ts +3 -3
  124. package/dist/request/AuthorizationUrlRequest.d.ts.map +1 -1
  125. package/dist/request/ClientCredentialRequest.d.ts +4 -4
  126. package/dist/request/ClientCredentialRequest.d.ts.map +1 -1
  127. package/dist/request/CommonClientCredentialRequest.d.ts +17 -0
  128. package/dist/request/CommonClientCredentialRequest.d.ts.map +1 -0
  129. package/dist/request/CommonDeviceCodeRequest.d.ts +21 -0
  130. package/dist/request/CommonDeviceCodeRequest.d.ts.map +1 -0
  131. package/dist/request/CommonOnBehalfOfRequest.d.ts +13 -0
  132. package/dist/request/CommonOnBehalfOfRequest.d.ts.map +1 -0
  133. package/dist/request/CommonUsernamePasswordRequest.d.ts +19 -0
  134. package/dist/request/CommonUsernamePasswordRequest.d.ts.map +1 -0
  135. package/dist/request/DeviceCodeRequest.d.ts +3 -2
  136. package/dist/request/DeviceCodeRequest.d.ts.map +1 -1
  137. package/dist/request/InteractiveRequest.d.ts +1 -1
  138. package/dist/request/InteractiveRequest.d.ts.map +1 -1
  139. package/dist/request/ManagedIdentityRequest.d.ts +1 -1
  140. package/dist/request/ManagedIdentityRequest.d.ts.map +1 -1
  141. package/dist/request/OnBehalfOfRequest.d.ts +2 -3
  142. package/dist/request/OnBehalfOfRequest.d.ts.map +1 -1
  143. package/dist/request/RefreshTokenRequest.d.ts +3 -2
  144. package/dist/request/RefreshTokenRequest.d.ts.map +1 -1
  145. package/dist/request/SilentFlowRequest.d.ts +3 -2
  146. package/dist/request/SilentFlowRequest.d.ts.map +1 -1
  147. package/dist/request/UsernamePasswordRequest.d.ts +4 -3
  148. package/dist/request/UsernamePasswordRequest.d.ts.map +1 -1
  149. package/dist/response/ManagedIdentityTokenResponse.d.ts +2 -2
  150. package/dist/response/ManagedIdentityTokenResponse.d.ts.map +1 -1
  151. package/dist/retry/DefaultManagedIdentityRetryPolicy.d.ts +1 -1
  152. package/dist/retry/DefaultManagedIdentityRetryPolicy.d.ts.map +1 -1
  153. package/dist/retry/DefaultManagedIdentityRetryPolicy.mjs +9 -9
  154. package/dist/retry/DefaultManagedIdentityRetryPolicy.mjs.map +1 -1
  155. package/dist/retry/ExponentialRetryStrategy.mjs +1 -1
  156. package/dist/retry/IHttpRetryPolicy.d.ts +1 -1
  157. package/dist/retry/IHttpRetryPolicy.d.ts.map +1 -1
  158. package/dist/retry/ImdsRetryPolicy.d.ts +1 -1
  159. package/dist/retry/ImdsRetryPolicy.d.ts.map +1 -1
  160. package/dist/retry/ImdsRetryPolicy.mjs +11 -11
  161. package/dist/retry/ImdsRetryPolicy.mjs.map +1 -1
  162. package/dist/retry/LinearRetryStrategy.mjs +1 -1
  163. package/dist/utils/Constants.d.ts +2 -9
  164. package/dist/utils/Constants.d.ts.map +1 -1
  165. package/dist/utils/Constants.mjs +4 -12
  166. package/dist/utils/Constants.mjs.map +1 -1
  167. package/dist/utils/EncodingUtils.d.ts.map +1 -1
  168. package/dist/utils/EncodingUtils.mjs +5 -5
  169. package/dist/utils/EncodingUtils.mjs.map +1 -1
  170. package/dist/utils/TimeUtils.mjs +1 -1
  171. package/lib/msal-node.cjs +5378 -6289
  172. package/lib/msal-node.cjs.map +1 -1
  173. package/lib/types/cache/CacheHelpers.d.ts.map +1 -1
  174. package/lib/types/cache/NodeStorage.d.ts.map +1 -1
  175. package/lib/types/cache/TokenCache.d.ts.map +1 -1
  176. package/lib/types/cache/distributed/DistributedCachePlugin.d.ts.map +1 -1
  177. package/lib/types/cache/serializer/Deserializer.d.ts.map +1 -1
  178. package/lib/types/cache/serializer/Serializer.d.ts.map +1 -1
  179. package/lib/types/cache/serializer/SerializerTypes.d.ts +0 -2
  180. package/lib/types/cache/serializer/SerializerTypes.d.ts.map +1 -1
  181. package/lib/types/client/BaseClient.d.ts +42 -0
  182. package/lib/types/client/BaseClient.d.ts.map +1 -0
  183. package/lib/types/client/ClientApplication.d.ts.map +1 -1
  184. package/lib/types/client/ClientAssertion.d.ts.map +1 -1
  185. package/lib/types/client/ClientCredentialClient.d.ts +4 -2
  186. package/lib/types/client/ClientCredentialClient.d.ts.map +1 -1
  187. package/lib/types/client/ConfidentialClientApplication.d.ts.map +1 -1
  188. package/lib/types/client/DeviceCodeClient.d.ts +3 -1
  189. package/lib/types/client/DeviceCodeClient.d.ts.map +1 -1
  190. package/lib/types/client/ManagedIdentityApplication.d.ts.map +1 -1
  191. package/lib/types/client/ManagedIdentitySources/AppService.d.ts.map +1 -1
  192. package/lib/types/client/ManagedIdentitySources/AzureArc.d.ts.map +1 -1
  193. package/lib/types/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +1 -1
  194. package/lib/types/client/ManagedIdentitySources/CloudShell.d.ts.map +1 -1
  195. package/lib/types/client/ManagedIdentitySources/Imds.d.ts.map +1 -1
  196. package/lib/types/client/ManagedIdentitySources/MachineLearning.d.ts.map +1 -1
  197. package/lib/types/client/ManagedIdentitySources/ServiceFabric.d.ts.map +1 -1
  198. package/lib/types/client/OnBehalfOfClient.d.ts +3 -1
  199. package/lib/types/client/OnBehalfOfClient.d.ts.map +1 -1
  200. package/lib/types/client/PublicClientApplication.d.ts.map +1 -1
  201. package/lib/types/client/UsernamePasswordClient.d.ts +3 -1
  202. package/lib/types/client/UsernamePasswordClient.d.ts.map +1 -1
  203. package/lib/types/config/Configuration.d.ts +2 -19
  204. package/lib/types/config/Configuration.d.ts.map +1 -1
  205. package/lib/types/crypto/CryptoProvider.d.ts.map +1 -1
  206. package/lib/types/crypto/PkceGenerator.d.ts.map +1 -1
  207. package/lib/types/error/ClientAuthErrorCodes.d.ts +8 -0
  208. package/lib/types/error/ClientAuthErrorCodes.d.ts.map +1 -0
  209. package/lib/types/index.d.ts +15 -11
  210. package/lib/types/index.d.ts.map +1 -1
  211. package/lib/types/network/HttpClient.d.ts +53 -40
  212. package/lib/types/network/HttpClient.d.ts.map +1 -1
  213. package/lib/types/network/LoopbackClient.d.ts.map +1 -1
  214. package/lib/types/packageMetadata.d.ts +1 -1
  215. package/lib/types/packageMetadata.d.ts.map +1 -1
  216. package/lib/types/protocol/Authorize.d.ts.map +1 -1
  217. package/lib/types/request/AuthorizationCodeRequest.d.ts +3 -2
  218. package/lib/types/request/AuthorizationCodeRequest.d.ts.map +1 -1
  219. package/lib/types/request/AuthorizationUrlRequest.d.ts +3 -3
  220. package/lib/types/request/AuthorizationUrlRequest.d.ts.map +1 -1
  221. package/lib/types/request/ClientCredentialRequest.d.ts +4 -4
  222. package/lib/types/request/ClientCredentialRequest.d.ts.map +1 -1
  223. package/lib/types/request/CommonClientCredentialRequest.d.ts +17 -0
  224. package/lib/types/request/CommonClientCredentialRequest.d.ts.map +1 -0
  225. package/lib/types/request/CommonDeviceCodeRequest.d.ts +21 -0
  226. package/lib/types/request/CommonDeviceCodeRequest.d.ts.map +1 -0
  227. package/lib/types/request/CommonOnBehalfOfRequest.d.ts +13 -0
  228. package/lib/types/request/CommonOnBehalfOfRequest.d.ts.map +1 -0
  229. package/lib/types/request/CommonUsernamePasswordRequest.d.ts +19 -0
  230. package/lib/types/request/CommonUsernamePasswordRequest.d.ts.map +1 -0
  231. package/lib/types/request/DeviceCodeRequest.d.ts +3 -2
  232. package/lib/types/request/DeviceCodeRequest.d.ts.map +1 -1
  233. package/lib/types/request/InteractiveRequest.d.ts +1 -1
  234. package/lib/types/request/InteractiveRequest.d.ts.map +1 -1
  235. package/lib/types/request/ManagedIdentityRequest.d.ts +1 -1
  236. package/lib/types/request/ManagedIdentityRequest.d.ts.map +1 -1
  237. package/lib/types/request/OnBehalfOfRequest.d.ts +2 -3
  238. package/lib/types/request/OnBehalfOfRequest.d.ts.map +1 -1
  239. package/lib/types/request/RefreshTokenRequest.d.ts +3 -2
  240. package/lib/types/request/RefreshTokenRequest.d.ts.map +1 -1
  241. package/lib/types/request/SilentFlowRequest.d.ts +3 -2
  242. package/lib/types/request/SilentFlowRequest.d.ts.map +1 -1
  243. package/lib/types/request/UsernamePasswordRequest.d.ts +4 -3
  244. package/lib/types/request/UsernamePasswordRequest.d.ts.map +1 -1
  245. package/lib/types/response/ManagedIdentityTokenResponse.d.ts +2 -2
  246. package/lib/types/response/ManagedIdentityTokenResponse.d.ts.map +1 -1
  247. package/lib/types/retry/DefaultManagedIdentityRetryPolicy.d.ts +1 -1
  248. package/lib/types/retry/DefaultManagedIdentityRetryPolicy.d.ts.map +1 -1
  249. package/lib/types/retry/IHttpRetryPolicy.d.ts +1 -1
  250. package/lib/types/retry/IHttpRetryPolicy.d.ts.map +1 -1
  251. package/lib/types/retry/ImdsRetryPolicy.d.ts +1 -1
  252. package/lib/types/retry/ImdsRetryPolicy.d.ts.map +1 -1
  253. package/lib/types/utils/Constants.d.ts +2 -9
  254. package/lib/types/utils/Constants.d.ts.map +1 -1
  255. package/lib/types/utils/EncodingUtils.d.ts.map +1 -1
  256. package/package.json +4 -6
  257. package/src/cache/CacheHelpers.ts +3 -5
  258. package/src/cache/NodeStorage.ts +19 -16
  259. package/src/cache/TokenCache.ts +18 -14
  260. package/src/cache/distributed/DistributedCachePlugin.ts +2 -1
  261. package/src/cache/serializer/Deserializer.ts +7 -9
  262. package/src/cache/serializer/Serializer.ts +0 -2
  263. package/src/cache/serializer/SerializerTypes.ts +0 -2
  264. package/src/client/BaseClient.ts +158 -0
  265. package/src/client/ClientApplication.ts +50 -57
  266. package/src/client/ClientAssertion.ts +5 -6
  267. package/src/client/ClientCredentialClient.ts +32 -25
  268. package/src/client/ConfidentialClientApplication.ts +13 -13
  269. package/src/client/DeviceCodeClient.ts +33 -21
  270. package/src/client/ManagedIdentityApplication.ts +10 -7
  271. package/src/client/ManagedIdentitySources/AppService.ts +4 -2
  272. package/src/client/ManagedIdentitySources/AzureArc.ts +14 -8
  273. package/src/client/ManagedIdentitySources/BaseManagedIdentitySource.ts +18 -9
  274. package/src/client/ManagedIdentitySources/CloudShell.ts +4 -2
  275. package/src/client/ManagedIdentitySources/Imds.ts +4 -2
  276. package/src/client/ManagedIdentitySources/MachineLearning.ts +4 -2
  277. package/src/client/ManagedIdentitySources/ServiceFabric.ts +6 -3
  278. package/src/client/OnBehalfOfClient.ts +27 -21
  279. package/src/client/PublicClientApplication.ts +16 -16
  280. package/src/client/UsernamePasswordClient.ts +14 -8
  281. package/src/config/Configuration.ts +19 -48
  282. package/src/config/ManagedIdentityRequestParameters.ts +2 -2
  283. package/src/crypto/CryptoProvider.ts +5 -3
  284. package/src/crypto/PkceGenerator.ts +6 -4
  285. package/src/error/ClientAuthErrorCodes.ts +12 -0
  286. package/src/index.ts +5 -19
  287. package/src/network/HttpClient.ts +168 -457
  288. package/src/network/HttpClientWithRetries.ts +2 -2
  289. package/src/network/LoopbackClient.ts +2 -3
  290. package/src/packageMetadata.ts +1 -1
  291. package/src/protocol/Authorize.ts +8 -10
  292. package/src/request/AuthorizationCodeRequest.ts +2 -2
  293. package/src/request/AuthorizationUrlRequest.ts +2 -3
  294. package/src/request/ClientCredentialRequest.ts +3 -7
  295. package/src/request/CommonClientCredentialRequest.ts +29 -0
  296. package/src/request/CommonDeviceCodeRequest.ts +30 -0
  297. package/src/request/CommonOnBehalfOfRequest.ts +21 -0
  298. package/src/request/CommonUsernamePasswordRequest.ts +24 -0
  299. package/src/request/DeviceCodeRequest.ts +2 -5
  300. package/src/request/InteractiveRequest.ts +1 -4
  301. package/src/request/ManagedIdentityRequest.ts +1 -1
  302. package/src/request/OnBehalfOfRequest.ts +1 -3
  303. package/src/request/RefreshTokenRequest.ts +2 -2
  304. package/src/request/SilentFlowRequest.ts +3 -5
  305. package/src/request/UsernamePasswordRequest.ts +3 -3
  306. package/src/response/ManagedIdentityTokenResponse.ts +2 -2
  307. package/src/retry/DefaultManagedIdentityRetryPolicy.ts +9 -8
  308. package/src/retry/IHttpRetryPolicy.ts +1 -1
  309. package/src/retry/ImdsRetryPolicy.ts +11 -10
  310. package/src/utils/Constants.ts +2 -11
  311. package/src/utils/EncodingUtils.ts +8 -4
  312. package/dist/utils/NetworkUtils.mjs +0 -43
  313. package/dist/utils/NetworkUtils.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"HttpClientWithRetries.mjs","sources":["../../src/network/HttpClientWithRetries.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAAA;;;AAGG;MAYU,qBAAqB,CAAA;AAK9B,IAAA,WAAA,CACI,mBAAmC,EACnC,WAA6B,EAC7B,MAAc,EAAA;AAEd,QAAA,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;AAC/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AAY,GAAW,CAAC,CAAC;AAC7B,QAAA,OACI,MAAM,IAAI,CAAC,WAAW,CAAC,aAAa,CAChC,QAAQ,CAAC,MAAM,EACf,YAAY,EACZ,IAAI,CAAC,MAAM,EACX,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,WAAW,CAAC,WAAW,CAAC,CACtD,EACH;AACE,YAAA,QAAQ,GAAG,MAAM,IAAI,CAAC,6BAA6B,CAC/C,UAAU,EACV,GAAG,EACH,OAAO,CACV,CAAC;AACF,YAAA,YAAY,EAAE,CAAC;AAClB,SAAA;AAED,QAAA,OAAO,QAAQ,CAAC;KACnB;AAEM,IAAA,MAAM,mBAAmB,CAC5B,GAAW,EACX,OAA+B,EAAA;AAE/B,QAAA,OAAO,IAAI,CAAC,uBAAuB,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;KACrE;AAEM,IAAA,MAAM,oBAAoB,CAC7B,GAAW,EACX,OAA+B,EAAA;AAE/B,QAAA,OAAO,IAAI,CAAC,uBAAuB,CAAC,UAAU,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;KACtE;AACJ;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"LoopbackClient.d.ts","sourceRoot":"","sources":["../../src/network/LoopbackClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,iBAAiB,EAGpB,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,iBAAiB,CAAC;IAkD7B;;;OAGG;IACH,cAAc,IAAI,MAAM;IAgBxB;;OAEG;IACH,WAAW,IAAI,IAAI;CAetB"}
1
+ {"version":3,"file":"LoopbackClient.d.ts","sourceRoot":"","sources":["../../src/network/LoopbackClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,iBAAiB,EAGpB,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,iBAAiB,CAAC;IAkD7B;;;OAGG;IACH,cAAc,IAAI,MAAM;IAgBxB;;OAEG;IACH,WAAW,IAAI,IAAI;CAetB"}
@@ -1,6 +1,6 @@
1
- /*! @azure/msal-node v3.8.4 2025-12-04 */
1
+ /*! @azure/msal-node v5.0.0-beta.0 2025-12-05 */
2
2
  'use strict';
3
- import { Constants, UrlUtils, HttpStatus } from '@azure/msal-common/node';
3
+ import { Constants, UrlUtils } from '@azure/msal-common/node';
4
4
  import http from 'http';
5
5
  import { NodeAuthError } from '../error/NodeAuthError.mjs';
6
6
  import { Constants as Constants$1 } from '../utils/Constants.mjs';
@@ -39,7 +39,7 @@ class LoopbackClient {
39
39
  const authCodeResponse = UrlUtils.getDeserializedResponse(parsedUrl.search) ||
40
40
  {};
41
41
  if (authCodeResponse.code) {
42
- res.writeHead(HttpStatus.REDIRECT, {
42
+ res.writeHead(Constants.HTTP_REDIRECT, {
43
43
  location: redirectUri,
44
44
  }); // Prevent auth code from being saved in the browser history
45
45
  res.end();
@@ -1 +1 @@
1
- {"version":3,"file":"LoopbackClient.mjs","sources":["../../src/network/LoopbackClient.ts"],"sourcesContent":[null],"names":["CommonConstants","Constants"],"mappings":";;;;;;;AAAA;;;AAGG;MAaU,cAAc,CAAA;AAGvB;;;;;AAKG;AACH,IAAA,MAAM,iBAAiB,CACnB,eAAwB,EACxB,aAAsB,EAAA;QAEtB,IAAI,IAAI,CAAC,MAAM,EAAE;AACb,YA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ACD,YAAA,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;AACpB,YAAA,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;AAC3B,SAAA;KACJ;AACJ;;;;"}
@@ -1,3 +1,3 @@
1
1
  export declare const name = "@azure/msal-node";
2
- export declare const version = "3.8.4";
2
+ export declare const version = "5.0.0-beta.0";
3
3
  //# sourceMappingURL=packageMetadata.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageMetadata.d.ts","sourceRoot":"","sources":["../src/packageMetadata.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,IAAI,qBAAqB,CAAC;AACvC,eAAO,MAAM,OAAO,UAAU,CAAC"}
1
+ {"version":3,"file":"packageMetadata.d.ts","sourceRoot":"","sources":["../src/packageMetadata.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,IAAI,qBAAqB,CAAC;AACvC,eAAO,MAAM,OAAO,iBAAiB,CAAC"}
@@ -1,8 +1,8 @@
1
- /*! @azure/msal-node v3.8.4 2025-12-04 */
1
+ /*! @azure/msal-node v5.0.0-beta.0 2025-12-05 */
2
2
  'use strict';
3
3
  /* eslint-disable header/header */
4
4
  const name = "@azure/msal-node";
5
- const version = "3.8.4";
5
+ const version = "5.0.0-beta.0";
6
6
 
7
7
  export { name, version };
8
8
  //# sourceMappingURL=packageMetadata.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Authorize.d.ts","sourceRoot":"","sources":["../../src/protocol/Authorize.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,SAAS,EAET,6BAA6B,EAC7B,MAAM,EAIT,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAI/D;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACjC,MAAM,EAAE,iBAAiB,EACzB,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,6BAA6B,EACtC,MAAM,EAAE,MAAM,GACf,MAAM,CA0CR"}
1
+ {"version":3,"file":"Authorize.d.ts","sourceRoot":"","sources":["../../src/protocol/Authorize.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,SAAS,EAET,6BAA6B,EAC7B,MAAM,EAIT,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAI/D;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACjC,MAAM,EAAE,iBAAiB,EACzB,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,6BAA6B,EACtC,MAAM,EAAE,MAAM,GACf,MAAM,CAwCR"}
@@ -1,6 +1,6 @@
1
- /*! @azure/msal-node v3.8.4 2025-12-04 */
1
+ /*! @azure/msal-node v5.0.0-beta.0 2025-12-05 */
2
2
  'use strict';
3
- import { AuthorizeProtocol, RequestParameterBuilder, ProtocolMode, OAuthResponseType } from '@azure/msal-common/node';
3
+ import { AuthorizeProtocol, RequestParameterBuilder, ProtocolMode, Constants as Constants$1 } from '@azure/msal-common/node';
4
4
  import { Constants } from '../utils/Constants.mjs';
5
5
  import { version } from '../packageMetadata.mjs';
6
6
 
@@ -28,15 +28,15 @@ function getAuthCodeRequestUrl(config, authority, request, logger) {
28
28
  cpu: process.arch || "",
29
29
  os: process.platform || "",
30
30
  });
31
- if (config.auth.protocolMode !== ProtocolMode.OIDC) {
31
+ if (config.system.protocolMode !== ProtocolMode.OIDC) {
32
32
  RequestParameterBuilder.addApplicationTelemetry(parameters, config.telemetry.application);
33
33
  }
34
- RequestParameterBuilder.addResponseType(parameters, OAuthResponseType.CODE);
34
+ RequestParameterBuilder.addResponseType(parameters, Constants$1.OAuthResponseType.CODE);
35
35
  if (request.codeChallenge && request.codeChallengeMethod) {
36
36
  RequestParameterBuilder.addCodeChallengeParams(parameters, request.codeChallenge, request.codeChallengeMethod);
37
37
  }
38
- RequestParameterBuilder.addExtraQueryParameters(parameters, request.extraQueryParameters || {});
39
- return AuthorizeProtocol.getAuthorizeUrl(authority, parameters, config.auth.encodeExtraQueryParams, request.extraQueryParameters);
38
+ RequestParameterBuilder.addExtraParameters(parameters, request.extraQueryParameters || {});
39
+ return AuthorizeProtocol.getAuthorizeUrl(authority, parameters);
40
40
  }
41
41
 
42
42
  export { getAuthCodeRequestUrl };
@@ -1 +1 @@
1
- {"version":3,"file":"Authorize.mjs","sources":["../../src/protocol/Authorize.ts"],"sourcesContent":[null],"names":["NodeConstants"],"mappings":";;;;;;AAAA;;;AAGG;AAeH;;;;;;;AAOG;AACG,SAAU,qBAAqB,CACjC,MAAyB,EACzB,SAAoB,EACpB,OAAsC,EACtC,MAAc,EAAA;AAEd,IAAA,MAAM,UAAU,GAAG,iBAAiB,CAAC,qCAAqC,CACtE;QACI,GAAG,MAAM,CAAC,IAAI;AACd,QAAA,SAAS,EAAE,SAAS;AACpB,QAAA,WAAW,EAAE,OAAO,CAAC,WAAW,IAAI,EAAE;AACzC,KAAA,EACD,OAAO,EACP,MAAM,CACT,CAAC;AACF,IAAA,uBAAuB,CAAC,cAAc,CAAC,UAAU,EAAE;QAC/C,GAAG,EAAEA,SAAa,CAAC,QAAQ;AAC3B,QAAA,OAAO,EAAE,OAAO;AAChB,QAAA,GAAG,EAAE,OAAO,CAAC,IAAI,IAAI,EAAE;AACvB,QAAA,EAAE,EAAE,OAAO,CAAC,QAAQ,IAAI,EAAE;AAC7B,KAAA,CAAC,CAAC;IACH,IAAI,MAAM,CAAC,IAAI,CAAC,YAAY,KAAK,YAAY,CAAC,IAAI,EAAE;QAChD,uBAAuB,CAAC,uBAAuB,CAC3C,UAAU,EACV,MAAM,CAAC,SAAS,CAAC,WAAW,CAC/B,CAAC;AACL,KAAA;IACD,uBAAuB,CAAC,eAAe,CAAC,UAAU,EAAE,iBAAiB,CAAC,IAAI,CAAC,CAAC;AAC5E,IAAA,IAAI,OAAO,CAAC,aAAa,IAAI,OAAO,CAAC,mBAAmB,EAAE;AACtD,QAAA,uBAAuB,CAAC,sBAAsB,CAC1C,UAAU,EACV,OAAO,CAAC,aAAa,EACrB,OAAO,CAAC,mBAAmB,CAC9B,CAAC;AACL,KAAA;IAED,uBAAuB,CAAC,uBAAuB,CAC3C,UAAU,EACV,OAAO,CAAC,oBAAoB,IAAI,EAAE,CACrC,CAAC;AAEF,IAAA,OAAO,iBAAiB,CAAC,eAAe,CACpC,SAAS,EACT,UAAU,EACV,MAAM,CAAC,IAAI,CAAC,sBAAsB,EAClC,OAAO,CAAC,oBAAoB,CAC/B,CAAC;AACN;;;;"}
1
+ {"version":3,"file":"Authorize.mjs","sources":["../../src/protocol/Authorize.ts"],"sourcesContent":[null],"names":["NodeConstants","Constants"],"mappings":";;;;;;AAAA;;;AAGG;AAeH;;;;;;;AAOG;AACG,SAAU,qBAAqB,CACjC,MAAyB,EACzB,SAAoB,EACpB,OAAsC,EACtC,MAAc,EAAA;AAEd,IAAA,MAAM,UAAU,GAAG,iBAAiB,CAAC,qCAAqC,CACtE;QACI,GAAG,MAAM,CAAC,IAAI;AACd,QAAA,SAAS,EAAE,SAAS;AACpB,QAAA,WAAW,EAAE,OAAO,CAAC,WAAW,IAAI,EAAE;AACzC,KAAA,EACD,OAAO,EACP,MAAM,CACT,CAAC;AACF,IAAA,uBAAuB,CAAC,cAAc,CAAC,UAAU,EAAE;QAC/C,GAAG,EAAEA,SAAa,CAAC,QAAQ;AAC3B,QAAA,OAAO,EAAE,OAAO;AAChB,QAAA,GAAG,EAAE,OAAO,CAAC,IAAI,IAAI,EAAE;AACvB,QAAA,EAAE,EAAE,OAAO,CAAC,QAAQ,IAAI,EAAE;AAC7B,KAAA,CAAC,CAAC;IACH,IAAI,MAAM,CAAC,MAAM,CAAC,YAAY,KAAK,YAAY,CAAC,IAAI,EAAE;QAClD,uBAAuB,CAAC,uBAAuB,CAC3C,UAAU,EACV,MAAM,CAAC,SAAS,CAAC,WAAW,CAC/B,CAAC;AACL,KAAA;IACD,uBAAuB,CAAC,eAAe,CACnC,UAAU,EACVC,WAAS,CAAC,iBAAiB,CAAC,IAAI,CACnC,CAAC;AACF,IAAA,IAAI,OAAO,CAAC,aAAa,IAAI,OAAO,CAAC,mBAAmB,EAAE;AACtD,QAAA,uBAAuB,CAAC,sBAAsB,CAC1C,UAAU,EACV,OAAO,CAAC,aAAa,EACrB,OAAO,CAAC,mBAAmB,CAC9B,CAAC;AACL,KAAA;IAED,uBAAuB,CAAC,kBAAkB,CACtC,UAAU,EACV,OAAO,CAAC,oBAAoB,IAAI,EAAE,CACrC,CAAC;IAEF,OAAO,iBAAiB,CAAC,eAAe,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;AACpE;;;;"}
@@ -7,13 +7,14 @@ import { CommonAuthorizationCodeRequest } from "@azure/msal-common/node";
7
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
8
  * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
9
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
10
+ * - extraQueryParameters - String to string map of custom query parameters added to outgoing token service requests
11
+ * - extraParameters - String to string map of custom query parameters added to outgoing token service requests
11
12
  * - code - The authorization_code that the user acquired in the first leg of the flow.
12
13
  * - 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
14
  * - 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
15
  * @public
15
16
  */
16
- export type AuthorizationCodeRequest = Partial<Omit<CommonAuthorizationCodeRequest, "scopes" | "redirectUri" | "code" | "authenticationScheme" | "resourceRequestMethod" | "resourceRequestUri" | "requestedClaimsHash" | "storeInCache">> & {
17
+ export type AuthorizationCodeRequest = Partial<Omit<CommonAuthorizationCodeRequest, "scopes" | "redirectUri" | "code" | "authenticationScheme" | "resourceRequestMethod" | "resourceRequestUri" | "storeInCache">> & {
17
18
  scopes: Array<string>;
18
19
  redirectUri: string;
19
20
  code: string;
@@ -1 +1 @@
1
- {"version":3,"file":"AuthorizationCodeRequest.d.ts","sourceRoot":"","sources":["../../src/request/AuthorizationCodeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,8BAA8B,EAAE,MAAM,yBAAyB,CAAC;AAEzE;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAC1C,IAAI,CACA,8BAA8B,EAC5B,QAAQ,GACR,aAAa,GACb,MAAM,GACN,sBAAsB,GACtB,uBAAuB,GACvB,oBAAoB,GACpB,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"}
1
+ {"version":3,"file":"AuthorizationCodeRequest.d.ts","sourceRoot":"","sources":["../../src/request/AuthorizationCodeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,8BAA8B,EAAE,MAAM,yBAAyB,CAAC;AAEzE;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAC1C,IAAI,CACA,8BAA8B,EAC5B,QAAQ,GACR,aAAa,GACb,MAAM,GACN,sBAAsB,GACtB,uBAAuB,GACvB,oBAAoB,GACpB,cAAc,CACnB,CACJ,GAAG;IACA,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -22,12 +22,12 @@ import { CommonAuthorizationUrlRequest } from "@azure/msal-common/node";
22
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
23
  * - sid - Session ID, unique identifier for the session. Available as an optional claim on ID tokens.
24
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
25
+ * - extraQueryParameters - String to string map of custom query parameters added to outgoing token service requests
26
+ * - extraParameters - String to string map of custom query parameters added to outgoing token service requests
27
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
28
  * @public
29
29
  */
30
- export type AuthorizationUrlRequest = Partial<Omit<CommonAuthorizationUrlRequest, "scopes" | "redirectUri" | "resourceRequestMethod" | "resourceRequestUri" | "authenticationScheme" | "requestedClaimsHash" | "storeInCache">> & {
30
+ export type AuthorizationUrlRequest = Partial<Omit<CommonAuthorizationUrlRequest, "scopes" | "redirectUri" | "resourceRequestMethod" | "resourceRequestUri" | "authenticationScheme" | "storeInCache">> & {
31
31
  scopes: Array<string>;
32
32
  redirectUri: string;
33
33
  };
@@ -1 +1 @@
1
- {"version":3,"file":"AuthorizationUrlRequest.d.ts","sourceRoot":"","sources":["../../src/request/AuthorizationUrlRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AAExE;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,MAAM,uBAAuB,GAAG,OAAO,CACzC,IAAI,CACA,6BAA6B,EAC3B,QAAQ,GACR,aAAa,GACb,uBAAuB,GACvB,oBAAoB,GACpB,sBAAsB,GACtB,qBAAqB,GACrB,cAAc,CACnB,CACJ,GAAG;IACA,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC"}
1
+ {"version":3,"file":"AuthorizationUrlRequest.d.ts","sourceRoot":"","sources":["../../src/request/AuthorizationUrlRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AAExE;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,MAAM,uBAAuB,GAAG,OAAO,CACzC,IAAI,CACA,6BAA6B,EAC3B,QAAQ,GACR,aAAa,GACb,uBAAuB,GACvB,oBAAoB,GACpB,sBAAsB,GACtB,cAAc,CACnB,CACJ,GAAG;IACA,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC"}
@@ -1,15 +1,15 @@
1
- import { ClientAssertionCallback, CommonClientCredentialRequest } from "@azure/msal-common/node";
1
+ import { ClientAssertionCallback } from "@azure/msal-common/node";
2
+ import { CommonClientCredentialRequest } from "./CommonClientCredentialRequest.js";
2
3
  /**
3
- * CommonClientCredentialRequest
4
+ * ClientCredentialRequest
4
5
  * - scopes - Array of scopes the application is requesting access to. Typically contains only the .default scope for a single resource. See: https://learn.microsoft.com/azure/active-directory/develop/scopes-oidc#the-default-scope
5
6
  * - authority - URL of the authority, the security token service (STS) from which MSAL will acquire tokens.
6
7
  * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
7
8
  * - skipCache - Skip token cache lookup and force request to authority to get a a new token. Defaults to false.
8
9
  * - clientAssertion - An assertion string or a callback function that returns an assertion string (both are Base64Url-encoded signed JWTs) used in the Client Credential flow
9
- * - tokenQueryParameters - String to string map of custom query parameters added to the /token call
10
10
  * @public
11
11
  */
12
- export type ClientCredentialRequest = Partial<Omit<CommonClientCredentialRequest, "resourceRequestMethod" | "resourceRequestUri" | "requestedClaimsHash" | "clientAssertion" | "storeInCache">> & {
12
+ export type ClientCredentialRequest = Partial<Omit<CommonClientCredentialRequest, "resourceRequestMethod" | "resourceRequestUri" | "clientAssertion" | "storeInCache">> & {
13
13
  clientAssertion?: string | ClientAssertionCallback;
14
14
  };
15
15
  //# sourceMappingURL=ClientCredentialRequest.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"ClientCredentialRequest.d.ts","sourceRoot":"","sources":["../../src/request/ClientCredentialRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAEnF;;;;;;;;GAQG;AACH,MAAM,MAAM,uBAAuB,GAAG,OAAO,CACzC,IAAI,CACA,6BAA6B,EAC3B,uBAAuB,GACvB,oBAAoB,GACpB,iBAAiB,GACjB,cAAc,CACnB,CACJ,GAAG;IACA,eAAe,CAAC,EAAE,MAAM,GAAG,uBAAuB,CAAC;CACtD,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { BaseAuthRequest, AzureRegion, ClientAssertion } from "@azure/msal-common/node";
2
+ /**
3
+ * CommonClientCredentialRequest
4
+ * - scopes - Array of scopes the application is requesting access to.
5
+ * - authority - URL of the authority, the security token service (STS) from which MSAL will acquire tokens.
6
+ * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
7
+ * - skipCache - Skip token cache lookup and force request to authority to get a a new token. Defaults to false.
8
+ * - preferredAzureRegionOptions - Options of the user's preferred azure region
9
+ * - clientAssertion - An assertion string or a callback function that returns an assertion string (both are Base64Url-encoded signed JWTs) used in the Client Credential flow
10
+ * - azureRegion - Azure region to be used for regional authentication
11
+ */
12
+ export type CommonClientCredentialRequest = Omit<BaseAuthRequest, "extraQueryParameters" | "extraParameters"> & {
13
+ skipCache?: boolean;
14
+ azureRegion?: AzureRegion;
15
+ clientAssertion?: ClientAssertion;
16
+ };
17
+ //# sourceMappingURL=CommonClientCredentialRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommonClientCredentialRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonClientCredentialRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,eAAe,EACf,WAAW,EACX,eAAe,EAClB,MAAM,yBAAyB,CAAC;AAEjC;;;;;;;;;GASG;AACH,MAAM,MAAM,6BAA6B,GAAG,IAAI,CAC5C,eAAe,EACf,sBAAsB,GAAG,iBAAiB,CAC7C,GAAG;IACA,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,eAAe,CAAC,EAAE,eAAe,CAAC;CACrC,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { DeviceCodeResponse, StringDict, BaseAuthRequest } 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
+ * - resourceRequestMethod - HTTP Request type used to request data from the resource (i.e. "GET", "POST", etc.). Used for proof-of-possession flows.
10
+ * - resourceRequestUri - URI that token will be used for. Used for proof-of-possession flows.
11
+ * - timeout - Timeout period in seconds which the user explicitly configures for the polling of the device code endpoint. At the end of this period; assuming the device code has not expired yet; the device code polling is stopped and the request cancelled. The device code expiration window will always take precedence over this set period.
12
+ * - extraQueryParameters - String to string map of custom query parameters added to outgoing token service requests
13
+ * - extraParameters - String to string map of custom query parameters added to outgoing token service requests
14
+ */
15
+ export type CommonDeviceCodeRequest = BaseAuthRequest & {
16
+ deviceCodeCallback: (response: DeviceCodeResponse) => void;
17
+ cancel?: boolean;
18
+ timeout?: number;
19
+ extraQueryParameters?: StringDict;
20
+ };
21
+ //# sourceMappingURL=CommonDeviceCodeRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommonDeviceCodeRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonDeviceCodeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,kBAAkB,EAClB,UAAU,EACV,eAAe,EAClB,MAAM,yBAAyB,CAAC;AAEjC;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,uBAAuB,GAAG,eAAe,GAAG;IACpD,kBAAkB,EAAE,CAAC,QAAQ,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC3D,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oBAAoB,CAAC,EAAE,UAAU,CAAC;CACrC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { BaseAuthRequest } 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
+ */
9
+ export type CommonOnBehalfOfRequest = Omit<BaseAuthRequest, "extraQueryParameters" | "extraParameters"> & {
10
+ oboAssertion: string;
11
+ skipCache?: boolean;
12
+ };
13
+ //# sourceMappingURL=CommonOnBehalfOfRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommonOnBehalfOfRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonOnBehalfOfRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D;;;;;;GAMG;AACH,MAAM,MAAM,uBAAuB,GAAG,IAAI,CACtC,eAAe,EACf,sBAAsB,GAAG,iBAAiB,CAC7C,GAAG;IACA,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { BaseAuthRequest } from "@azure/msal-common/node";
2
+ /**
3
+ * CommonUsernamePassword 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
+ * - extraQueryParameters - String to string map of custom query parameters added to outgoing token service requests
13
+ * - extraParameters - String to string map of custom query parameters added to outgoing token service requests
14
+ */
15
+ export type CommonUsernamePasswordRequest = BaseAuthRequest & {
16
+ username: string;
17
+ password: string;
18
+ };
19
+ //# sourceMappingURL=CommonUsernamePasswordRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommonUsernamePasswordRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonUsernamePasswordRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,6BAA6B,GAAG,eAAe,GAAG;IAC1D,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC"}
@@ -1,4 +1,5 @@
1
- import { CommonDeviceCodeRequest, DeviceCodeResponse } from "@azure/msal-common/node";
1
+ import { DeviceCodeResponse } from "@azure/msal-common/node";
2
+ import { CommonDeviceCodeRequest } from "./CommonDeviceCodeRequest.js";
2
3
  /**
3
4
  * Parameters for Oauth2 device code flow.
4
5
  * - scopes - Array of scopes the application is requesting access to.
@@ -9,7 +10,7 @@ import { CommonDeviceCodeRequest, DeviceCodeResponse } from "@azure/msal-common/
9
10
  * - extraQueryParameters - String to string map of custom query parameters added to the query string
10
11
  * @public
11
12
  */
12
- export type DeviceCodeRequest = Partial<Omit<CommonDeviceCodeRequest, "scopes" | "deviceCodeCallback" | "resourceRequestMethod" | "resourceRequestUri" | "requestedClaimsHash" | "storeInCache">> & {
13
+ export type DeviceCodeRequest = Partial<Omit<CommonDeviceCodeRequest, "scopes" | "deviceCodeCallback" | "resourceRequestMethod" | "resourceRequestUri" | "storeInCache">> & {
13
14
  scopes: Array<string>;
14
15
  deviceCodeCallback: (response: DeviceCodeResponse) => void;
15
16
  };
@@ -1 +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"}
1
+ {"version":3,"file":"DeviceCodeRequest.d.ts","sourceRoot":"","sources":["../../src/request/DeviceCodeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE;;;;;;;;;GASG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,CACnC,IAAI,CACA,uBAAuB,EACrB,QAAQ,GACR,oBAAoB,GACpB,uBAAuB,GACvB,oBAAoB,GACpB,cAAc,CACnB,CACJ,GAAG;IACA,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,kBAAkB,EAAE,CAAC,QAAQ,EAAE,kBAAkB,KAAK,IAAI,CAAC;CAC9D,CAAC"}
@@ -13,7 +13,7 @@ import { ILoopbackClient } from "../network/ILoopbackClient.js";
13
13
  * - loopbackClient - Custom implementation for a loopback server to listen for authorization code response.
14
14
  * @public
15
15
  */
16
- export type InteractiveRequest = Partial<Omit<CommonAuthorizationUrlRequest, "scopes" | "requestedClaimsHash" | "storeInCache">> & {
16
+ export type InteractiveRequest = Partial<Omit<CommonAuthorizationUrlRequest, "scopes" | "storeInCache">> & {
17
17
  openBrowser: (url: string) => Promise<void>;
18
18
  scopes?: Array<string>;
19
19
  successTemplate?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"InteractiveRequest.d.ts","sourceRoot":"","sources":["../../src/request/InteractiveRequest.ts"],"names":[],"mappings":";;AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE;;;;;;;;;;GAUG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,CACpC,IAAI,CACA,6BAA6B,EAC7B,QAAQ,GAAG,qBAAqB,GAAG,cAAc,CACpD,CACJ,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"}
1
+ {"version":3,"file":"InteractiveRequest.d.ts","sourceRoot":"","sources":["../../src/request/InteractiveRequest.ts"],"names":[],"mappings":";;AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE;;;;;;;;;;GAUG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,CACpC,IAAI,CAAC,6BAA6B,EAAE,QAAQ,GAAG,cAAc,CAAC,CACjE,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"}
@@ -1,4 +1,4 @@
1
- import { CommonClientCredentialRequest } from "@azure/msal-common/node";
1
+ import { CommonClientCredentialRequest } from "./CommonClientCredentialRequest.js";
2
2
  import { ManagedIdentityRequestParams } from "./ManagedIdentityRequestParams.js";
3
3
  /**
4
4
  * ManagedIdentityRequest
@@ -1 +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,GAAG;IAC5B,kBAAkB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACnC,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACnC,CAAC"}
1
+ {"version":3,"file":"ManagedIdentityRequest.d.ts","sourceRoot":"","sources":["../../src/request/ManagedIdentityRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAEjF;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG,4BAA4B,GAC7D,6BAA6B,GAAG;IAC5B,kBAAkB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACnC,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACnC,CAAC"}
@@ -1,14 +1,13 @@
1
- import { CommonOnBehalfOfRequest } from "@azure/msal-common/node";
1
+ import { CommonOnBehalfOfRequest } from "./CommonOnBehalfOfRequest.js";
2
2
  /**
3
3
  * - scopes - Array of scopes the application is requesting access to.
4
4
  * - authority - URL of the authority, the security token service (STS) from which MSAL will acquire tokens.
5
5
  * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
6
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
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
8
  * @public
10
9
  */
11
- export type OnBehalfOfRequest = Partial<Omit<CommonOnBehalfOfRequest, "oboAssertion" | "scopes" | "resourceRequestMethod" | "resourceRequestUri" | "requestedClaimsHash" | "storeInCache">> & {
10
+ export type OnBehalfOfRequest = Partial<Omit<CommonOnBehalfOfRequest, "oboAssertion" | "scopes" | "resourceRequestMethod" | "resourceRequestUri" | "storeInCache">> & {
12
11
  oboAssertion: string;
13
12
  scopes: Array<string>;
14
13
  };
@@ -1 +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"}
1
+ {"version":3,"file":"OnBehalfOfRequest.d.ts","sourceRoot":"","sources":["../../src/request/OnBehalfOfRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE;;;;;;;GAOG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,CACnC,IAAI,CACA,uBAAuB,EACrB,cAAc,GACd,QAAQ,GACR,uBAAuB,GACvB,oBAAoB,GACpB,cAAc,CACnB,CACJ,GAAG;IACA,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzB,CAAC"}
@@ -6,11 +6,12 @@ import { CommonRefreshTokenRequest } from "@azure/msal-common/node";
6
6
  * - authority - URL of the authority, the security token service (STS) from which MSAL will acquire tokens.
7
7
  * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
8
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
9
+ * - extraQueryParameters - String to string map of custom query parameters added to outgoing token service requests
10
+ * - extraParameters - String to string map of custom query parameters added to outgoing token service requests
10
11
  * - forceCache - Force MSAL to cache a refresh token flow response when there is no account in the cache. Used for migration scenarios.
11
12
  * @public
12
13
  */
13
- export type RefreshTokenRequest = Partial<Omit<CommonRefreshTokenRequest, "scopes" | "refreshToken" | "authenticationScheme" | "resourceRequestMethod" | "resourceRequestUri" | "requestedClaimsHash" | "storeInCache">> & {
14
+ export type RefreshTokenRequest = Partial<Omit<CommonRefreshTokenRequest, "scopes" | "refreshToken" | "authenticationScheme" | "resourceRequestMethod" | "resourceRequestUri" | "storeInCache">> & {
14
15
  scopes: Array<string>;
15
16
  refreshToken: string;
16
17
  forceCache?: boolean;
@@ -1 +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"}
1
+ {"version":3,"file":"RefreshTokenRequest.d.ts","sourceRoot":"","sources":["../../src/request/RefreshTokenRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEpE;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,mBAAmB,GAAG,OAAO,CACrC,IAAI,CACA,yBAAyB,EACvB,QAAQ,GACR,cAAc,GACd,sBAAsB,GACtB,uBAAuB,GACvB,oBAAoB,GACpB,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"}
@@ -5,12 +5,13 @@ import { AccountInfo, CommonSilentFlowRequest } from "@azure/msal-common/node";
5
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
6
  * - authority - Url of the authority which the application acquires tokens from.
7
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
8
+ * - extraQueryParameters - String to string map of custom query parameters added to outgoing token service requests
9
+ * - extraParameters - String to string map of custom query parameters added to outgoing token service requests
9
10
  * - account - Account entity to lookup the credentials.
10
11
  * - forceRefresh - Forces silent requests to make network calls if true.
11
12
  * @public
12
13
  */
13
- export type SilentFlowRequest = Partial<Omit<CommonSilentFlowRequest, "account" | "scopes" | "requestedClaimsHash" | "storeInCache">> & {
14
+ export type SilentFlowRequest = Partial<Omit<CommonSilentFlowRequest, "account" | "scopes" | "storeInCache">> & {
14
15
  account: AccountInfo;
15
16
  scopes: Array<string>;
16
17
  };
@@ -1 +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,EACvB,SAAS,GAAG,QAAQ,GAAG,qBAAqB,GAAG,cAAc,CAChE,CACJ,GAAG;IACA,OAAO,EAAE,WAAW,CAAC;IACrB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzB,CAAC"}
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;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,CACnC,IAAI,CAAC,uBAAuB,EAAE,SAAS,GAAG,QAAQ,GAAG,cAAc,CAAC,CACvE,GAAG;IACA,OAAO,EAAE,WAAW,CAAC;IACrB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { CommonUsernamePasswordRequest } from "@azure/msal-common/node";
1
+ import { CommonUsernamePasswordRequest } from "./CommonUsernamePasswordRequest.js";
2
2
  /**
3
3
  * UsernamePassword parameters passed by the user to retrieve credentials
4
4
  * Note: The latest OAuth 2.0 Security Best Current Practice disallows the password grant entirely. This flow is added for internal testing.
@@ -9,10 +9,11 @@ import { CommonUsernamePasswordRequest } from "@azure/msal-common/node";
9
9
  * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
10
10
  * - username - username of the client
11
11
  * - password - credentials
12
- * - tokenQueryParameters - String to string map of custom query parameters added to the /token call
12
+ * - extraQueryParameters - String to string map of custom query parameters added to outgoing token service requests
13
+ * - extraParameters - String to string map of custom query parameters added to outgoing token service requests
13
14
  * @public
14
15
  */
15
- export type UsernamePasswordRequest = Partial<Omit<CommonUsernamePasswordRequest, "scopes" | "resourceRequestMethod" | "resourceRequestUri" | "username" | "password" | "requestedClaimsHash" | "storeInCache">> & {
16
+ export type UsernamePasswordRequest = Partial<Omit<CommonUsernamePasswordRequest, "scopes" | "resourceRequestMethod" | "resourceRequestUri" | "username" | "password" | "storeInCache">> & {
16
17
  scopes: Array<string>;
17
18
  username: string;
18
19
  password: string;
@@ -1 +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"}
1
+ {"version":3,"file":"UsernamePasswordRequest.d.ts","sourceRoot":"","sources":["../../src/request/UsernamePasswordRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAEnF;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,uBAAuB,GAAG,OAAO,CACzC,IAAI,CACA,6BAA6B,EAC3B,QAAQ,GACR,uBAAuB,GACvB,oBAAoB,GACpB,UAAU,GACV,UAAU,GACV,cAAc,CACnB,CACJ,GAAG;IACA,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { AuthenticationScheme } from "@azure/msal-common/node";
1
+ import { Constants } from "@azure/msal-common/node";
2
2
  /**
3
3
  * Deserialized response object from server managed identity request.
4
4
  *
@@ -18,7 +18,7 @@ export type ManagedIdentityTokenResponse = {
18
18
  client_id?: string;
19
19
  expires_on?: number;
20
20
  resource?: string;
21
- token_type?: AuthenticationScheme;
21
+ token_type?: Constants.AuthenticationScheme;
22
22
  message?: string;
23
23
  correlationId?: string;
24
24
  error?: string | ErrorObject;
@@ -1 +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"}
1
+ {"version":3,"file":"ManagedIdentityTokenResponse.d.ts","sourceRoot":"","sources":["../../src/response/ManagedIdentityTokenResponse.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD;;;;;;;;;;;;;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,SAAS,CAAC,oBAAoB,CAAC;IAQ5C,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"}
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" resolution-mode="require"/>
2
2
  import { IncomingHttpHeaders } from "http";
3
- import { Logger } from "@azure/msal-common";
3
+ import { Logger } from "@azure/msal-common/node";
4
4
  import { IHttpRetryPolicy } from "./IHttpRetryPolicy.js";
5
5
  export declare const DEFAULT_MANAGED_IDENTITY_MAX_RETRIES: number;
6
6
  export declare class DefaultManagedIdentityRetryPolicy implements IHttpRetryPolicy {
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultManagedIdentityRetryPolicy.d.ts","sourceRoot":"","sources":["../../src/retry/DefaultManagedIdentityRetryPolicy.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAc,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAGzD,eAAO,MAAM,oCAAoC,EAAE,MAAU,CAAC;AAW9D,qBAAa,iCAAkC,YAAW,gBAAgB;IAKtE,MAAM,KAAK,uCAAuC,IAAI,MAAM,CAE3D;IAED,OAAO,CAAC,mBAAmB,CACG;IAExB,aAAa,CACf,cAAc,EAAE,MAAM,EACtB,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,MAAM,EACd,gBAAgB,EAAE,mBAAmB,CAAC,aAAa,CAAC,GACrD,OAAO,CAAC,OAAO,CAAC;CA+BtB"}
1
+ {"version":3,"file":"DefaultManagedIdentityRetryPolicy.d.ts","sourceRoot":"","sources":["../../src/retry/DefaultManagedIdentityRetryPolicy.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAa,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAGzD,eAAO,MAAM,oCAAoC,EAAE,MAAU,CAAC;AAW9D,qBAAa,iCAAkC,YAAW,gBAAgB;IAKtE,MAAM,KAAK,uCAAuC,IAAI,MAAM,CAE3D;IAED,OAAO,CAAC,mBAAmB,CACG;IAExB,aAAa,CACf,cAAc,EAAE,MAAM,EACtB,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,MAAM,EACd,gBAAgB,EAAE,mBAAmB,CAAC,aAAa,CAAC,GACrD,OAAO,CAAC,OAAO,CAAC;CAgCtB"}
@@ -1,6 +1,6 @@
1
- /*! @azure/msal-node v3.8.4 2025-12-04 */
1
+ /*! @azure/msal-node v5.0.0-beta.0 2025-12-05 */
2
2
  'use strict';
3
- import { HttpStatus } from '@azure/msal-common';
3
+ import { Constants } from '@azure/msal-common/node';
4
4
  import { LinearRetryStrategy } from './LinearRetryStrategy.mjs';
5
5
 
6
6
  /*
@@ -10,12 +10,12 @@ import { LinearRetryStrategy } from './LinearRetryStrategy.mjs';
10
10
  const DEFAULT_MANAGED_IDENTITY_MAX_RETRIES = 3; // referenced in unit test
11
11
  const DEFAULT_MANAGED_IDENTITY_RETRY_DELAY_MS = 1000;
12
12
  const DEFAULT_MANAGED_IDENTITY_HTTP_STATUS_CODES_TO_RETRY_ON = [
13
- HttpStatus.NOT_FOUND,
14
- HttpStatus.REQUEST_TIMEOUT,
15
- HttpStatus.TOO_MANY_REQUESTS,
16
- HttpStatus.SERVER_ERROR,
17
- HttpStatus.SERVICE_UNAVAILABLE,
18
- HttpStatus.GATEWAY_TIMEOUT,
13
+ Constants.HTTP_NOT_FOUND,
14
+ Constants.HTTP_REQUEST_TIMEOUT,
15
+ Constants.HTTP_TOO_MANY_REQUESTS,
16
+ Constants.HTTP_SERVER_ERROR,
17
+ Constants.HTTP_SERVICE_UNAVAILABLE,
18
+ Constants.HTTP_GATEWAY_TIMEOUT,
19
19
  ];
20
20
  class DefaultManagedIdentityRetryPolicy {
21
21
  constructor() {
@@ -32,7 +32,7 @@ class DefaultManagedIdentityRetryPolicy {
32
32
  if (DEFAULT_MANAGED_IDENTITY_HTTP_STATUS_CODES_TO_RETRY_ON.includes(httpStatusCode) &&
33
33
  currentRetry < DEFAULT_MANAGED_IDENTITY_MAX_RETRIES) {
34
34
  const retryAfterDelay = this.linearRetryStrategy.calculateDelay(retryAfterHeader, DefaultManagedIdentityRetryPolicy.DEFAULT_MANAGED_IDENTITY_RETRY_DELAY_MS);
35
- logger.verbose(`Retrying request in ${retryAfterDelay}ms (retry attempt: ${currentRetry + 1})`);
35
+ logger.verbose(`Retrying request in ${retryAfterDelay}ms (retry attempt: ${currentRetry + 1})`, "");
36
36
  // pause execution for the calculated delay
37
37
  await new Promise((resolve) => {
38
38
  // retryAfterHeader value of 0 evaluates to false, and DEFAULT_MANAGED_IDENTITY_RETRY_DELAY_MS will be used
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultManagedIdentityRetryPolicy.mjs","sources":["../../src/retry/DefaultManagedIdentityRetryPolicy.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAAA;;;AAGG;AAOU,MAAA,oCAAoC,GAAW,EAAE;AAC9D,MAAM,uCAAuC,GAAW,IAAI,CAAC;AAC7D,MAAM,sDAAsD,GAAkB;AAC1E,IAAA,UAAU,CAAC,SAAS;AACpB,IAAA,UAAU,CAAC,eAAe;AAC1B,IAAA,UAAU,CAAC,iBAAiB;AAC5B,IAAA,UAAU,CAAC,YAAY;AACvB,IAAA,UAAU,CAAC,mBAAmB;AAC9B,IAAA,UAAU,CAAC,eAAe;CAC7B,CAAC;MAEW,iCAAiC,CAAA;AAA9C,IAAA,WAAA,GAAA;AASY,QAAA,IAAA,CAAA,mBAAmB,GACvB,IAAI,mBAAmB,EAAE,CAAC;KAsCjC;AA/CG;;;AAGG;AACH,IAAA,WAAW,uCAAuC,GAAA;AAC9C,QAAA,OAAO,uCAAuC,CAAC;KAClD;IAKD,MAAM,aAAa,CACf,cAAsB,EACtB,YAAoB,EACpB,MAAc,EACd,gBAAoD,EAAA;AAEpD,QAAA,IACI,sDAAsD,CAAC,QAAQ,CAC3D,cAAc,CACjB;YACD,YAAY,GAAG,oCAAoC,EACrD;AACE,YAAA,MAAM,eAAe,GACjB,IAAI,CAAC,mBAAmB,CAAC,cAAc,CACnC,gBAAgB,EAChB,iCAAiC,CAAC,uCAAuC,CAC5E,CAAC;YAEN,MAAM,CAAC,OAAO,CACV,CAAuB,oBAAA,EAAA,eAAe,CAClC,mBAAA,EAAA,YAAY,GAAG,CACnB,CAAG,CAAA,CAAA,CACN,CAAC;;AAGF,YAAA,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,KAAI;;AAE1B,gBAAA,OAAO,UAAU,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC;AAChD,aAAC,CAAC,CAAC;AAEH,YAAA,OAAO,IAAI,CAAC;AACf,SAAA;;AAGD,QAAA,OAAO,KAAK,CAAC;KAChB;AACJ;;;;"}
1
+ {"version":3,"file":"DefaultManagedIdentityRetryPolicy.mjs","sources":["../../src/retry/DefaultManagedIdentityRetryPolicy.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAAA;;;AAGG;AAOU,MAAA,oCAAoC,GAAW,EAAE;AAC9D,MAAM,uCAAuC,GAAW,IAAI,CAAC;AAC7D,MAAM,sDAAsD,GAAkB;AAC1E,IAAA,SAAS,CAAC,cAAc;AACxB,IAAA,SAAS,CAAC,oBAAoB;AAC9B,IAAA,SAAS,CAAC,sBAAsB;AAChC,IAAA,SAAS,CAAC,iBAAiB;AAC3B,IAAA,SAAS,CAAC,wBAAwB;AAClC,IAAA,SAAS,CAAC,oBAAoB;CACjC,CAAC;MAEW,iCAAiC,CAAA;AAA9C,IAAA,WAAA,GAAA;AASY,QAAA,IAAA,CAAA,mBAAmB,GACvB,IAAI,mBAAmB,EAAE,CAAC;KAuCjC;AAhDG;;;AAGG;AACH,IAAA,WAAW,uCAAuC,GAAA;AAC9C,QAAA,OAAO,uCAAuC,CAAC;KAClD;IAKD,MAAM,aAAa,CACf,cAAsB,EACtB,YAAoB,EACpB,MAAc,EACd,gBAAoD,EAAA;AAEpD,QAAA,IACI,sDAAsD,CAAC,QAAQ,CAC3D,cAAc,CACjB;YACD,YAAY,GAAG,oCAAoC,EACrD;AACE,YAAA,MAAM,eAAe,GACjB,IAAI,CAAC,mBAAmB,CAAC,cAAc,CACnC,gBAAgB,EAChB,iCAAiC,CAAC,uCAAuC,CAC5E,CAAC;AAEN,YAAA,MAAM,CAAC,OAAO,CACV,CAAA,oBAAA,EAAuB,eAAe,CAAA,mBAAA,EAClC,YAAY,GAAG,CACnB,CAAA,CAAA,CAAG,EACH,EAAE,CACL,CAAC;;AAGF,YAAA,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,KAAI;;AAE1B,gBAAA,OAAO,UAAU,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC;AAChD,aAAC,CAAC,CAAC;AAEH,YAAA,OAAO,IAAI,CAAC;AACf,SAAA;;AAGD,QAAA,OAAO,KAAK,CAAC;KAChB;AACJ;;;;"}
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v3.8.4 2025-12-04 */
1
+ /*! @azure/msal-node v5.0.0-beta.0 2025-12-05 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" resolution-mode="require"/>
2
2
  import { IncomingHttpHeaders } from "http";
3
- import { Logger } from "@azure/msal-common";
3
+ import { Logger } from "@azure/msal-common/node";
4
4
  export interface IHttpRetryPolicy {
5
5
  _isNewRequest?: boolean;
6
6
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"IHttpRetryPolicy.d.ts","sourceRoot":"","sources":["../../src/retry/IHttpRetryPolicy.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C,MAAM,WAAW,gBAAgB;IAC7B,aAAa,CAAC,EAAE,OAAO,CAAC;IAGxB;;;;;;;OAOG;IACH,aAAa,CACT,cAAc,EAAE,MAAM,EACtB,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,MAAM,EACd,gBAAgB,CAAC,EAAE,mBAAmB,CAAC,aAAa,CAAC,GACtD,OAAO,CAAC,OAAO,CAAC,CAAC;CACvB"}
1
+ {"version":3,"file":"IHttpRetryPolicy.d.ts","sourceRoot":"","sources":["../../src/retry/IHttpRetryPolicy.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEjD,MAAM,WAAW,gBAAgB;IAC7B,aAAa,CAAC,EAAE,OAAO,CAAC;IAGxB;;;;;;;OAOG;IACH,aAAa,CACT,cAAc,EAAE,MAAM,EACtB,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,MAAM,EACd,gBAAgB,CAAC,EAAE,mBAAmB,CAAC,aAAa,CAAC,GACtD,OAAO,CAAC,OAAO,CAAC,CAAC;CACvB"}
@@ -1,4 +1,4 @@
1
- import { Logger } from "@azure/msal-common";
1
+ import { Logger } from "@azure/msal-common/node";
2
2
  import { IHttpRetryPolicy } from "./IHttpRetryPolicy.js";
3
3
  export declare class ImdsRetryPolicy implements IHttpRetryPolicy {
4
4
  static get MIN_EXPONENTIAL_BACKOFF_MS(): number;
@@ -1 +1 @@
1
- {"version":3,"file":"ImdsRetryPolicy.d.ts","sourceRoot":"","sources":["../../src/retry/ImdsRetryPolicy.ts"],"names":[],"mappings":"AAKA,OAAO,EAAc,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAExD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAkBzD,qBAAa,eAAgB,YAAW,gBAAgB;IAKpD,MAAM,KAAK,0BAA0B,IAAI,MAAM,CAE9C;IACD,MAAM,KAAK,0BAA0B,IAAI,MAAM,CAE9C;IACD,MAAM,KAAK,4BAA4B,IAAI,MAAM,CAEhD;IACD,MAAM,KAAK,+BAA+B,IAAI,MAAM,CAEnD;IAEM,aAAa,EAAE,OAAO,CAAC;IAC9B,IAAI,YAAY,CAAC,KAAK,EAAE,OAAO,EAE9B;IAED,OAAO,CAAC,UAAU,CAAS;IAE3B,OAAO,CAAC,wBAAwB,CAK1B;IAEN;;;;;;;OAOG;IACG,aAAa,CACf,cAAc,EAAE,MAAM,EACtB,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,MAAM,GACf,OAAO,CAAC,OAAO,CAAC;CAmDtB"}
1
+ {"version":3,"file":"ImdsRetryPolicy.d.ts","sourceRoot":"","sources":["../../src/retry/ImdsRetryPolicy.ts"],"names":[],"mappings":"AAKA,OAAO,EAAa,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAE5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAkBzD,qBAAa,eAAgB,YAAW,gBAAgB;IAKpD,MAAM,KAAK,0BAA0B,IAAI,MAAM,CAE9C;IACD,MAAM,KAAK,0BAA0B,IAAI,MAAM,CAE9C;IACD,MAAM,KAAK,4BAA4B,IAAI,MAAM,CAEhD;IACD,MAAM,KAAK,+BAA+B,IAAI,MAAM,CAEnD;IAEM,aAAa,EAAE,OAAO,CAAC;IAC9B,IAAI,YAAY,CA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