@azure/msal-node 3.7.4 → 5.0.0-alpha.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 (316) 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/ClientApplication.d.ts.map +1 -1
  23. package/dist/client/ClientApplication.mjs +33 -43
  24. package/dist/client/ClientApplication.mjs.map +1 -1
  25. package/dist/client/ClientAssertion.d.ts.map +1 -1
  26. package/dist/client/ClientAssertion.mjs +6 -5
  27. package/dist/client/ClientAssertion.mjs.map +1 -1
  28. package/dist/client/ClientCredentialClient.d.ts +3 -2
  29. package/dist/client/ClientCredentialClient.d.ts.map +1 -1
  30. package/dist/client/ClientCredentialClient.mjs +23 -22
  31. package/dist/client/ClientCredentialClient.mjs.map +1 -1
  32. package/dist/client/ConfidentialClientApplication.d.ts.map +1 -1
  33. package/dist/client/ConfidentialClientApplication.mjs +10 -9
  34. package/dist/client/ConfidentialClientApplication.mjs.map +1 -1
  35. package/dist/client/DeviceCodeClient.d.ts +2 -1
  36. package/dist/client/DeviceCodeClient.d.ts.map +1 -1
  37. package/dist/client/DeviceCodeClient.mjs +19 -18
  38. package/dist/client/DeviceCodeClient.mjs.map +1 -1
  39. package/dist/client/ManagedIdentityApplication.d.ts.map +1 -1
  40. package/dist/client/ManagedIdentityApplication.mjs +7 -6
  41. package/dist/client/ManagedIdentityApplication.mjs.map +1 -1
  42. package/dist/client/ManagedIdentityClient.mjs +1 -1
  43. package/dist/client/ManagedIdentityClient.mjs.map +1 -1
  44. package/dist/client/ManagedIdentitySources/AppService.d.ts.map +1 -1
  45. package/dist/client/ManagedIdentitySources/AppService.mjs +3 -3
  46. package/dist/client/ManagedIdentitySources/AppService.mjs.map +1 -1
  47. package/dist/client/ManagedIdentitySources/AzureArc.d.ts.map +1 -1
  48. package/dist/client/ManagedIdentitySources/AzureArc.mjs +8 -8
  49. package/dist/client/ManagedIdentitySources/AzureArc.mjs.map +1 -1
  50. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +1 -1
  51. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs +12 -11
  52. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs.map +1 -1
  53. package/dist/client/ManagedIdentitySources/CloudShell.d.ts.map +1 -1
  54. package/dist/client/ManagedIdentitySources/CloudShell.mjs +3 -3
  55. package/dist/client/ManagedIdentitySources/CloudShell.mjs.map +1 -1
  56. package/dist/client/ManagedIdentitySources/Imds.d.ts.map +1 -1
  57. package/dist/client/ManagedIdentitySources/Imds.mjs +3 -3
  58. package/dist/client/ManagedIdentitySources/Imds.mjs.map +1 -1
  59. package/dist/client/ManagedIdentitySources/MachineLearning.d.ts.map +1 -1
  60. package/dist/client/ManagedIdentitySources/MachineLearning.mjs +3 -3
  61. package/dist/client/ManagedIdentitySources/MachineLearning.mjs.map +1 -1
  62. package/dist/client/ManagedIdentitySources/ServiceFabric.d.ts.map +1 -1
  63. package/dist/client/ManagedIdentitySources/ServiceFabric.mjs +4 -4
  64. package/dist/client/ManagedIdentitySources/ServiceFabric.mjs.map +1 -1
  65. package/dist/client/OnBehalfOfClient.d.ts +2 -1
  66. package/dist/client/OnBehalfOfClient.d.ts.map +1 -1
  67. package/dist/client/OnBehalfOfClient.mjs +19 -19
  68. package/dist/client/OnBehalfOfClient.mjs.map +1 -1
  69. package/dist/client/PublicClientApplication.d.ts.map +1 -1
  70. package/dist/client/PublicClientApplication.mjs +12 -27
  71. package/dist/client/PublicClientApplication.mjs.map +1 -1
  72. package/dist/client/UsernamePasswordClient.d.ts +2 -1
  73. package/dist/client/UsernamePasswordClient.d.ts.map +1 -1
  74. package/dist/client/UsernamePasswordClient.mjs +8 -8
  75. package/dist/client/UsernamePasswordClient.mjs.map +1 -1
  76. package/dist/config/Configuration.d.ts +2 -13
  77. package/dist/config/Configuration.d.ts.map +1 -1
  78. package/dist/config/Configuration.mjs +17 -22
  79. package/dist/config/Configuration.mjs.map +1 -1
  80. package/dist/config/ManagedIdentityId.mjs +1 -1
  81. package/dist/config/ManagedIdentityId.mjs.map +1 -1
  82. package/dist/config/ManagedIdentityRequestParameters.mjs +1 -1
  83. package/dist/config/ManagedIdentityRequestParameters.mjs.map +1 -1
  84. package/dist/crypto/CryptoProvider.d.ts.map +1 -1
  85. package/dist/crypto/CryptoProvider.mjs +5 -3
  86. package/dist/crypto/CryptoProvider.mjs.map +1 -1
  87. package/dist/crypto/GuidGenerator.mjs +1 -1
  88. package/dist/crypto/GuidGenerator.mjs.map +1 -1
  89. package/dist/crypto/HashUtils.mjs +1 -1
  90. package/dist/crypto/HashUtils.mjs.map +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/ManagedIdentityError.mjs.map +1 -1
  100. package/dist/error/ManagedIdentityErrorCodes.mjs +1 -1
  101. package/dist/error/ManagedIdentityErrorCodes.mjs.map +1 -1
  102. package/dist/error/NodeAuthError.d.ts +0 -8
  103. package/dist/error/NodeAuthError.d.ts.map +1 -1
  104. package/dist/error/NodeAuthError.mjs +1 -11
  105. package/dist/error/NodeAuthError.mjs.map +1 -1
  106. package/dist/index.d.ts +15 -5
  107. package/dist/index.d.ts.map +1 -1
  108. package/dist/index.mjs +20 -2
  109. package/dist/index.mjs.map +1 -1
  110. package/dist/internals.mjs +1 -1
  111. package/dist/network/HttpClient.d.ts.map +1 -1
  112. package/dist/network/HttpClient.mjs +15 -13
  113. package/dist/network/HttpClient.mjs.map +1 -1
  114. package/dist/network/HttpClientWithRetries.mjs +3 -3
  115. package/dist/network/HttpClientWithRetries.mjs.map +1 -1
  116. package/dist/network/LoopbackClient.d.ts.map +1 -1
  117. package/dist/network/LoopbackClient.mjs +3 -3
  118. package/dist/network/LoopbackClient.mjs.map +1 -1
  119. package/dist/packageMetadata.d.ts +1 -1
  120. package/dist/packageMetadata.d.ts.map +1 -1
  121. package/dist/packageMetadata.mjs +2 -2
  122. package/dist/protocol/Authorize.d.ts.map +1 -1
  123. package/dist/protocol/Authorize.mjs +5 -5
  124. package/dist/protocol/Authorize.mjs.map +1 -1
  125. package/dist/request/AuthorizationCodeRequest.d.ts +1 -1
  126. package/dist/request/AuthorizationCodeRequest.d.ts.map +1 -1
  127. package/dist/request/AuthorizationUrlRequest.d.ts +1 -1
  128. package/dist/request/AuthorizationUrlRequest.d.ts.map +1 -1
  129. package/dist/request/ClientCredentialRequest.d.ts +4 -3
  130. package/dist/request/ClientCredentialRequest.d.ts.map +1 -1
  131. package/dist/request/CommonClientCredentialRequest.d.ts +16 -0
  132. package/dist/request/CommonClientCredentialRequest.d.ts.map +1 -0
  133. package/dist/request/CommonDeviceCodeRequest.d.ts +20 -0
  134. package/dist/request/CommonDeviceCodeRequest.d.ts.map +1 -0
  135. package/dist/request/CommonOnBehalfOfRequest.d.ts +14 -0
  136. package/dist/request/CommonOnBehalfOfRequest.d.ts.map +1 -0
  137. package/dist/request/CommonUsernamePasswordRequest.d.ts +18 -0
  138. package/dist/request/CommonUsernamePasswordRequest.d.ts.map +1 -0
  139. package/dist/request/DeviceCodeRequest.d.ts +3 -2
  140. package/dist/request/DeviceCodeRequest.d.ts.map +1 -1
  141. package/dist/request/InteractiveRequest.d.ts +1 -1
  142. package/dist/request/InteractiveRequest.d.ts.map +1 -1
  143. package/dist/request/ManagedIdentityRequest.d.ts +1 -1
  144. package/dist/request/ManagedIdentityRequest.d.ts.map +1 -1
  145. package/dist/request/OnBehalfOfRequest.d.ts +2 -2
  146. package/dist/request/OnBehalfOfRequest.d.ts.map +1 -1
  147. package/dist/request/RefreshTokenRequest.d.ts +1 -1
  148. package/dist/request/RefreshTokenRequest.d.ts.map +1 -1
  149. package/dist/request/SilentFlowRequest.d.ts +1 -1
  150. package/dist/request/SilentFlowRequest.d.ts.map +1 -1
  151. package/dist/request/UsernamePasswordRequest.d.ts +2 -2
  152. package/dist/request/UsernamePasswordRequest.d.ts.map +1 -1
  153. package/dist/response/ManagedIdentityTokenResponse.d.ts +2 -2
  154. package/dist/response/ManagedIdentityTokenResponse.d.ts.map +1 -1
  155. package/dist/retry/DefaultManagedIdentityRetryPolicy.d.ts +1 -1
  156. package/dist/retry/DefaultManagedIdentityRetryPolicy.d.ts.map +1 -1
  157. package/dist/retry/DefaultManagedIdentityRetryPolicy.mjs +9 -9
  158. package/dist/retry/DefaultManagedIdentityRetryPolicy.mjs.map +1 -1
  159. package/dist/retry/ExponentialRetryStrategy.mjs +1 -1
  160. package/dist/retry/ExponentialRetryStrategy.mjs.map +1 -1
  161. package/dist/retry/IHttpRetryPolicy.d.ts +1 -1
  162. package/dist/retry/IHttpRetryPolicy.d.ts.map +1 -1
  163. package/dist/retry/ImdsRetryPolicy.d.ts +1 -1
  164. package/dist/retry/ImdsRetryPolicy.d.ts.map +1 -1
  165. package/dist/retry/ImdsRetryPolicy.mjs +11 -11
  166. package/dist/retry/ImdsRetryPolicy.mjs.map +1 -1
  167. package/dist/retry/LinearRetryStrategy.mjs +1 -1
  168. package/dist/retry/LinearRetryStrategy.mjs.map +1 -1
  169. package/dist/utils/Constants.d.ts +4 -4
  170. package/dist/utils/Constants.mjs +5 -5
  171. package/dist/utils/Constants.mjs.map +1 -1
  172. package/dist/utils/EncodingUtils.d.ts.map +1 -1
  173. package/dist/utils/EncodingUtils.mjs +5 -5
  174. package/dist/utils/EncodingUtils.mjs.map +1 -1
  175. package/dist/utils/NetworkUtils.mjs +1 -1
  176. package/dist/utils/NetworkUtils.mjs.map +1 -1
  177. package/dist/utils/TimeUtils.mjs +1 -1
  178. package/dist/utils/TimeUtils.mjs.map +1 -1
  179. package/lib/msal-node.cjs +1397 -2244
  180. package/lib/msal-node.cjs.map +1 -1
  181. package/lib/types/cache/CacheHelpers.d.ts.map +1 -1
  182. package/lib/types/cache/NodeStorage.d.ts.map +1 -1
  183. package/lib/types/cache/TokenCache.d.ts.map +1 -1
  184. package/lib/types/cache/distributed/DistributedCachePlugin.d.ts.map +1 -1
  185. package/lib/types/cache/serializer/Deserializer.d.ts.map +1 -1
  186. package/lib/types/cache/serializer/Serializer.d.ts.map +1 -1
  187. package/lib/types/cache/serializer/SerializerTypes.d.ts +0 -2
  188. package/lib/types/cache/serializer/SerializerTypes.d.ts.map +1 -1
  189. package/lib/types/client/ClientApplication.d.ts.map +1 -1
  190. package/lib/types/client/ClientAssertion.d.ts.map +1 -1
  191. package/lib/types/client/ClientCredentialClient.d.ts +3 -2
  192. package/lib/types/client/ClientCredentialClient.d.ts.map +1 -1
  193. package/lib/types/client/ConfidentialClientApplication.d.ts.map +1 -1
  194. package/lib/types/client/DeviceCodeClient.d.ts +2 -1
  195. package/lib/types/client/DeviceCodeClient.d.ts.map +1 -1
  196. package/lib/types/client/ManagedIdentityApplication.d.ts.map +1 -1
  197. package/lib/types/client/ManagedIdentitySources/AppService.d.ts.map +1 -1
  198. package/lib/types/client/ManagedIdentitySources/AzureArc.d.ts.map +1 -1
  199. package/lib/types/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +1 -1
  200. package/lib/types/client/ManagedIdentitySources/CloudShell.d.ts.map +1 -1
  201. package/lib/types/client/ManagedIdentitySources/Imds.d.ts.map +1 -1
  202. package/lib/types/client/ManagedIdentitySources/MachineLearning.d.ts.map +1 -1
  203. package/lib/types/client/ManagedIdentitySources/ServiceFabric.d.ts.map +1 -1
  204. package/lib/types/client/OnBehalfOfClient.d.ts +2 -1
  205. package/lib/types/client/OnBehalfOfClient.d.ts.map +1 -1
  206. package/lib/types/client/PublicClientApplication.d.ts.map +1 -1
  207. package/lib/types/client/UsernamePasswordClient.d.ts +2 -1
  208. package/lib/types/client/UsernamePasswordClient.d.ts.map +1 -1
  209. package/lib/types/config/Configuration.d.ts +2 -13
  210. package/lib/types/config/Configuration.d.ts.map +1 -1
  211. package/lib/types/crypto/CryptoProvider.d.ts.map +1 -1
  212. package/lib/types/crypto/PkceGenerator.d.ts.map +1 -1
  213. package/lib/types/error/ClientAuthErrorCodes.d.ts +8 -0
  214. package/lib/types/error/ClientAuthErrorCodes.d.ts.map +1 -0
  215. package/lib/types/error/NodeAuthError.d.ts +0 -8
  216. package/lib/types/error/NodeAuthError.d.ts.map +1 -1
  217. package/lib/types/index.d.ts +15 -5
  218. package/lib/types/index.d.ts.map +1 -1
  219. package/lib/types/network/HttpClient.d.ts.map +1 -1
  220. package/lib/types/network/LoopbackClient.d.ts.map +1 -1
  221. package/lib/types/packageMetadata.d.ts +1 -1
  222. package/lib/types/packageMetadata.d.ts.map +1 -1
  223. package/lib/types/protocol/Authorize.d.ts.map +1 -1
  224. package/lib/types/request/AuthorizationCodeRequest.d.ts +1 -1
  225. package/lib/types/request/AuthorizationCodeRequest.d.ts.map +1 -1
  226. package/lib/types/request/AuthorizationUrlRequest.d.ts +1 -1
  227. package/lib/types/request/AuthorizationUrlRequest.d.ts.map +1 -1
  228. package/lib/types/request/ClientCredentialRequest.d.ts +4 -3
  229. package/lib/types/request/ClientCredentialRequest.d.ts.map +1 -1
  230. package/lib/types/request/CommonClientCredentialRequest.d.ts +16 -0
  231. package/lib/types/request/CommonClientCredentialRequest.d.ts.map +1 -0
  232. package/lib/types/request/CommonDeviceCodeRequest.d.ts +20 -0
  233. package/lib/types/request/CommonDeviceCodeRequest.d.ts.map +1 -0
  234. package/lib/types/request/CommonOnBehalfOfRequest.d.ts +14 -0
  235. package/lib/types/request/CommonOnBehalfOfRequest.d.ts.map +1 -0
  236. package/lib/types/request/CommonUsernamePasswordRequest.d.ts +18 -0
  237. package/lib/types/request/CommonUsernamePasswordRequest.d.ts.map +1 -0
  238. package/lib/types/request/DeviceCodeRequest.d.ts +3 -2
  239. package/lib/types/request/DeviceCodeRequest.d.ts.map +1 -1
  240. package/lib/types/request/InteractiveRequest.d.ts +1 -1
  241. package/lib/types/request/InteractiveRequest.d.ts.map +1 -1
  242. package/lib/types/request/ManagedIdentityRequest.d.ts +1 -1
  243. package/lib/types/request/ManagedIdentityRequest.d.ts.map +1 -1
  244. package/lib/types/request/OnBehalfOfRequest.d.ts +2 -2
  245. package/lib/types/request/OnBehalfOfRequest.d.ts.map +1 -1
  246. package/lib/types/request/RefreshTokenRequest.d.ts +1 -1
  247. package/lib/types/request/RefreshTokenRequest.d.ts.map +1 -1
  248. package/lib/types/request/SilentFlowRequest.d.ts +1 -1
  249. package/lib/types/request/SilentFlowRequest.d.ts.map +1 -1
  250. package/lib/types/request/UsernamePasswordRequest.d.ts +2 -2
  251. package/lib/types/request/UsernamePasswordRequest.d.ts.map +1 -1
  252. package/lib/types/response/ManagedIdentityTokenResponse.d.ts +2 -2
  253. package/lib/types/response/ManagedIdentityTokenResponse.d.ts.map +1 -1
  254. package/lib/types/retry/DefaultManagedIdentityRetryPolicy.d.ts +1 -1
  255. package/lib/types/retry/DefaultManagedIdentityRetryPolicy.d.ts.map +1 -1
  256. package/lib/types/retry/IHttpRetryPolicy.d.ts +1 -1
  257. package/lib/types/retry/IHttpRetryPolicy.d.ts.map +1 -1
  258. package/lib/types/retry/ImdsRetryPolicy.d.ts +1 -1
  259. package/lib/types/retry/ImdsRetryPolicy.d.ts.map +1 -1
  260. package/lib/types/utils/Constants.d.ts +4 -4
  261. package/lib/types/utils/EncodingUtils.d.ts.map +1 -1
  262. package/package.json +88 -90
  263. package/src/cache/CacheHelpers.ts +3 -5
  264. package/src/cache/NodeStorage.ts +21 -16
  265. package/src/cache/TokenCache.ts +18 -14
  266. package/src/cache/distributed/DistributedCachePlugin.ts +2 -1
  267. package/src/cache/serializer/Deserializer.ts +7 -9
  268. package/src/cache/serializer/Serializer.ts +0 -2
  269. package/src/cache/serializer/SerializerTypes.ts +0 -2
  270. package/src/client/ClientApplication.ts +50 -57
  271. package/src/client/ClientAssertion.ts +5 -6
  272. package/src/client/ClientCredentialClient.ts +33 -25
  273. package/src/client/ConfidentialClientApplication.ts +13 -13
  274. package/src/client/DeviceCodeClient.ts +32 -19
  275. package/src/client/ManagedIdentityApplication.ts +10 -7
  276. package/src/client/ManagedIdentitySources/AppService.ts +4 -2
  277. package/src/client/ManagedIdentitySources/AzureArc.ts +14 -8
  278. package/src/client/ManagedIdentitySources/BaseManagedIdentitySource.ts +18 -9
  279. package/src/client/ManagedIdentitySources/CloudShell.ts +4 -2
  280. package/src/client/ManagedIdentitySources/Imds.ts +4 -2
  281. package/src/client/ManagedIdentitySources/MachineLearning.ts +4 -2
  282. package/src/client/ManagedIdentitySources/ServiceFabric.ts +6 -3
  283. package/src/client/OnBehalfOfClient.ts +28 -21
  284. package/src/client/PublicClientApplication.ts +13 -31
  285. package/src/client/UsernamePasswordClient.ts +15 -8
  286. package/src/config/Configuration.ts +18 -35
  287. package/src/crypto/CryptoProvider.ts +5 -3
  288. package/src/crypto/PkceGenerator.ts +6 -4
  289. package/src/error/ClientAuthErrorCodes.ts +12 -0
  290. package/src/error/NodeAuthError.ts +0 -14
  291. package/src/index.ts +5 -11
  292. package/src/network/HttpClient.ts +11 -9
  293. package/src/network/HttpClientWithRetries.ts +2 -2
  294. package/src/network/LoopbackClient.ts +2 -3
  295. package/src/packageMetadata.ts +1 -1
  296. package/src/protocol/Authorize.ts +7 -9
  297. package/src/request/AuthorizationCodeRequest.ts +0 -1
  298. package/src/request/AuthorizationUrlRequest.ts +0 -1
  299. package/src/request/ClientCredentialRequest.ts +3 -6
  300. package/src/request/CommonClientCredentialRequest.ts +25 -0
  301. package/src/request/CommonDeviceCodeRequest.ts +33 -0
  302. package/src/request/CommonOnBehalfOfRequest.ts +19 -0
  303. package/src/request/CommonUsernamePasswordRequest.ts +23 -0
  304. package/src/request/DeviceCodeRequest.ts +2 -5
  305. package/src/request/InteractiveRequest.ts +1 -1
  306. package/src/request/ManagedIdentityRequest.ts +1 -1
  307. package/src/request/OnBehalfOfRequest.ts +1 -2
  308. package/src/request/RefreshTokenRequest.ts +0 -1
  309. package/src/request/SilentFlowRequest.ts +1 -4
  310. package/src/request/UsernamePasswordRequest.ts +1 -2
  311. package/src/response/ManagedIdentityTokenResponse.ts +2 -2
  312. package/src/retry/DefaultManagedIdentityRetryPolicy.ts +9 -8
  313. package/src/retry/IHttpRetryPolicy.ts +1 -1
  314. package/src/retry/ImdsRetryPolicy.ts +11 -10
  315. package/src/utils/Constants.ts +5 -5
  316. package/src/utils/EncodingUtils.ts +8 -4
@@ -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;;;;;;;;;;;GAWG;AAEH,MAAM,MAAM,uBAAuB,GAAG,IAAI,CACtC,eAAe,EACf,sBAAsB,GAAG,qBAAqB,CACjD,GAAG;IACA,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,14 @@
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
+ * - tokenQueryParameters - String to string map of custom query parameters added to the /token call
9
+ */
10
+ export type CommonOnBehalfOfRequest = BaseAuthRequest & {
11
+ oboAssertion: string;
12
+ skipCache?: boolean;
13
+ };
14
+ //# 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;;;;;;;GAOG;AACH,MAAM,MAAM,uBAAuB,GAAG,eAAe,GAAG;IACpD,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC"}
@@ -0,0 +1,18 @@
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
+ * - tokenQueryParameters - String to string map of custom query parameters added to the /token call
13
+ */
14
+ export type CommonUsernamePasswordRequest = BaseAuthRequest & {
15
+ username: string;
16
+ password: string;
17
+ };
18
+ //# 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;;;;;;;;;;;GAWG;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" | "redirectUri" | "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,CACA,6BAA6B,EAC7B,QAAQ,GAAG,aAAa,GAAG,cAAc,CAC5C,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,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,4 +1,4 @@
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.
@@ -8,7 +8,7 @@ import { CommonOnBehalfOfRequest } from "@azure/msal-common/node";
8
8
  * - tokenQueryParameters - String to string map of custom query parameters added to the /token call
9
9
  * @public
10
10
  */
11
- export type OnBehalfOfRequest = Partial<Omit<CommonOnBehalfOfRequest, "oboAssertion" | "scopes" | "resourceRequestMethod" | "resourceRequestUri" | "requestedClaimsHash" | "storeInCache">> & {
11
+ export type OnBehalfOfRequest = Partial<Omit<CommonOnBehalfOfRequest, "oboAssertion" | "scopes" | "resourceRequestMethod" | "resourceRequestUri" | "storeInCache">> & {
12
12
  oboAssertion: string;
13
13
  scopes: Array<string>;
14
14
  };
@@ -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;;;;;;;;GAQG;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"}
@@ -10,7 +10,7 @@ import { CommonRefreshTokenRequest } from "@azure/msal-common/node";
10
10
  * - forceCache - Force MSAL to cache a refresh token flow response when there is no account in the cache. Used for migration scenarios.
11
11
  * @public
12
12
  */
13
- export type RefreshTokenRequest = Partial<Omit<CommonRefreshTokenRequest, "scopes" | "refreshToken" | "authenticationScheme" | "resourceRequestMethod" | "resourceRequestUri" | "requestedClaimsHash" | "storeInCache">> & {
13
+ export type RefreshTokenRequest = Partial<Omit<CommonRefreshTokenRequest, "scopes" | "refreshToken" | "authenticationScheme" | "resourceRequestMethod" | "resourceRequestUri" | "storeInCache">> & {
14
14
  scopes: Array<string>;
15
15
  refreshToken: string;
16
16
  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;;;;;;;;;;GAUG;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"}
@@ -10,7 +10,7 @@ import { AccountInfo, CommonSilentFlowRequest } from "@azure/msal-common/node";
10
10
  * - forceRefresh - Forces silent requests to make network calls if true.
11
11
  * @public
12
12
  */
13
- export type SilentFlowRequest = Partial<Omit<CommonSilentFlowRequest, "account" | "scopes" | "requestedClaimsHash" | "storeInCache">> & {
13
+ export type SilentFlowRequest = Partial<Omit<CommonSilentFlowRequest, "account" | "scopes" | "storeInCache">> & {
14
14
  account: AccountInfo;
15
15
  scopes: Array<string>;
16
16
  };
@@ -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;;;;;;;;;;GAUG;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.
@@ -12,7 +12,7 @@ import { CommonUsernamePasswordRequest } from "@azure/msal-common/node";
12
12
  * - tokenQueryParameters - String to string map of custom query parameters added to the /token call
13
13
  * @public
14
14
  */
15
- export type UsernamePasswordRequest = Partial<Omit<CommonUsernamePasswordRequest, "scopes" | "resourceRequestMethod" | "resourceRequestUri" | "username" | "password" | "requestedClaimsHash" | "storeInCache">> & {
15
+ export type UsernamePasswordRequest = Partial<Omit<CommonUsernamePasswordRequest, "scopes" | "resourceRequestMethod" | "resourceRequestUri" | "username" | "password" | "storeInCache">> & {
16
16
  scopes: Array<string>;
17
17
  username: string;
18
18
  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;;;;;;;;;;;;GAYG;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
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,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;CAoDtB"}
@@ -74,10 +74,10 @@ export declare const HttpMethod: {
74
74
  };
75
75
  export type HttpMethod = (typeof HttpMethod)[keyof typeof HttpMethod];
76
76
  export declare const ProxyStatus: {
77
- readonly SUCCESS: 200;
78
- readonly SUCCESS_RANGE_START: 200;
79
- readonly SUCCESS_RANGE_END: 299;
80
- readonly SERVER_ERROR: 500;
77
+ readonly SUCCESS: number;
78
+ readonly SUCCESS_RANGE_START: number;
79
+ readonly SUCCESS_RANGE_END: number;
80
+ readonly SERVER_ERROR: number;
81
81
  };
82
82
  export type ProxyStatus = (typeof ProxyStatus)[keyof typeof ProxyStatus];
83
83
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"EncodingUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/EncodingUtils.ts"],"names":[],"mappings":";AAOA,qBAAa,aAAa;IACtB;;;;;OAKG;IACH,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,cAAc,GAAG,MAAM;IAInE;;;OAGG;IACH,MAAM,CAAC,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,cAAc,GAAG,MAAM;IAOtE;;;;;OAKG;IACH,MAAM,CAAC,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;IAI9C;;OAEG;IACH,MAAM,CAAC,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;CAOpD"}
1
+ {"version":3,"file":"EncodingUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/EncodingUtils.ts"],"names":[],"mappings":";AAOA,qBAAa,aAAa;IACtB;;;;;OAKG;IACH,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,cAAc,GAAG,MAAM;IAMnE;;;OAGG;IACH,MAAM,CAAC,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,cAAc,GAAG,MAAM;IAOtE;;;;;OAKG;IACH,MAAM,CAAC,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;IAM9C;;OAEG;IACH,MAAM,CAAC,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;CAOpD"}
package/package.json CHANGED
@@ -1,93 +1,91 @@
1
1
  {
2
- "$schema": "https://json.schemastore.org/package.json",
3
- "name": "@azure/msal-node",
4
- "version": "3.7.4",
5
- "author": {
6
- "name": "Microsoft",
7
- "email": "nugetaad@microsoft.com",
8
- "url": "https://www.microsoft.com"
9
- },
10
- "license": "MIT",
11
- "repository": {
12
- "type": "git",
13
- "url": "https://github.com/AzureAD/microsoft-authentication-library-for-js.git"
14
- },
15
- "description": "Microsoft Authentication Library for Node",
16
- "keywords": [
17
- "js",
18
- "ts",
19
- "node",
20
- "AAD",
21
- "msal",
22
- "oauth"
23
- ],
24
- "type": "module",
25
- "main": "lib/msal-node.cjs",
26
- "module": "dist/index.mjs",
27
- "types": "dist/index.d.ts",
28
- "exports": {
29
- ".": {
30
- "import": {
31
- "types": "./dist/index.d.ts",
32
- "default": "./dist/index.mjs"
33
- },
34
- "require": {
35
- "types": "./lib/types/index.d.ts",
36
- "default": "./lib/msal-node.cjs"
37
- }
2
+ "$schema": "https://json.schemastore.org/package.json",
3
+ "name": "@azure/msal-node",
4
+ "version": "5.0.0-alpha.0",
5
+ "author": {
6
+ "name": "Microsoft",
7
+ "email": "nugetaad@microsoft.com",
8
+ "url": "https://www.microsoft.com"
38
9
  },
39
- "./package.json": "./package.json"
40
- },
41
- "files": [
42
- "dist",
43
- "lib",
44
- "src"
45
- ],
46
- "scripts": {
47
- "build": "npm run clean && rollup -c --strictDeprecations --bundleConfigAsCjs",
48
- "build:watch": "rollup -c --watch --strictDeprecations --bundleConfigAsCjs",
49
- "clean": "shx rm -rf dist lib",
50
- "test": "jest",
51
- "test:watch": "jest --watch",
52
- "test:coverage": "jest --coverage",
53
- "lint": "eslint src --ext .ts",
54
- "lint:fix": "npm run lint -- --fix",
55
- "build:all": "cd ../.. && npm run build --workspace=@azure/msal-common --workspace=@azure/msal-node",
56
- "prepack": "npm run build:all",
57
- "format:check": "prettier --ignore-path .gitignore --check src test",
58
- "format:fix": "prettier --ignore-path .gitignore --write src test",
59
- "apiExtractor": "api-extractor run"
60
- },
61
- "beachball": {
62
- "disallowedChangeTypes": [
63
- "major"
64
- ]
65
- },
66
- "devDependencies": {
67
- "@microsoft/api-extractor": "^7.43.4",
68
- "@rollup/plugin-node-resolve": "^15.0.1",
69
- "@rollup/plugin-typescript": "^11.0.0",
70
- "@types/jest": "^29.5.0",
71
- "@types/jsonwebtoken": "^9.0.1",
72
- "@types/node": "^20.3.1",
73
- "@types/uuid": "^7.0.0",
74
- "eslint-config-msal": "file:../../shared-configs/eslint-config-msal",
75
- "jest": "^29.5.0",
76
- "jest-junit": "^16.0.0",
77
- "prettier": "2.8.7",
78
- "rollup": "^4.22.4",
79
- "rollup-msal": "file:../../shared-configs/rollup-msal",
80
- "ts-jest": "^29.1.0",
81
- "tslib": "^1.10.0",
82
- "typescript": "^4.9.5",
83
- "yargs": "^17.3.1"
84
- },
85
- "dependencies": {
86
- "@azure/msal-common": "15.12.0",
87
- "jsonwebtoken": "^9.0.0",
88
- "uuid": "^8.3.0"
89
- },
90
- "engines": {
91
- "node": ">=16"
92
- }
10
+ "license": "MIT",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/AzureAD/microsoft-authentication-library-for-js.git"
14
+ },
15
+ "description": "Microsoft Authentication Library for Node",
16
+ "keywords": [
17
+ "js",
18
+ "ts",
19
+ "node",
20
+ "AAD",
21
+ "msal",
22
+ "oauth"
23
+ ],
24
+ "type": "module",
25
+ "main": "lib/msal-node.cjs",
26
+ "module": "dist/index.mjs",
27
+ "types": "dist/index.d.ts",
28
+ "exports": {
29
+ ".": {
30
+ "import": {
31
+ "types": "./dist/index.d.ts",
32
+ "default": "./dist/index.mjs"
33
+ },
34
+ "require": {
35
+ "types": "./lib/types/index.d.ts",
36
+ "default": "./lib/msal-node.cjs"
37
+ }
38
+ },
39
+ "./package.json": "./package.json"
40
+ },
41
+ "files": [
42
+ "dist",
43
+ "lib",
44
+ "src"
45
+ ],
46
+ "scripts": {
47
+ "build": "npm run clean && rollup -c --strictDeprecations --bundleConfigAsCjs",
48
+ "build:watch": "rollup -c --watch --strictDeprecations --bundleConfigAsCjs",
49
+ "clean": "shx rm -rf dist lib",
50
+ "test": "jest",
51
+ "test:watch": "jest --watch",
52
+ "test:coverage": "jest --coverage",
53
+ "lint": "eslint src --ext .ts",
54
+ "lint:fix": "npm run lint -- --fix",
55
+ "build:all": "cd ../.. && npm run build --workspace=@azure/msal-common --workspace=@azure/msal-node",
56
+ "prepack": "npm run build:all",
57
+ "format:check": "prettier --ignore-path .gitignore --check src test",
58
+ "format:fix": "prettier --ignore-path .gitignore --write src test",
59
+ "apiExtractor": "api-extractor run"
60
+ },
61
+ "beachball": {
62
+ "disallowedChangeTypes": []
63
+ },
64
+ "devDependencies": {
65
+ "@microsoft/api-extractor": "^7.43.4",
66
+ "@rollup/plugin-node-resolve": "^15.0.1",
67
+ "@rollup/plugin-typescript": "^11.0.0",
68
+ "@types/jest": "^29.5.0",
69
+ "@types/jsonwebtoken": "^9.0.1",
70
+ "@types/node": "^20.3.1",
71
+ "@types/uuid": "^7.0.0",
72
+ "eslint-config-msal": "file:../../shared-configs/eslint-config-msal",
73
+ "jest": "^29.5.0",
74
+ "jest-junit": "^16.0.0",
75
+ "prettier": "2.8.7",
76
+ "rollup": "^4.22.4",
77
+ "rollup-msal": "file:../../shared-configs/rollup-msal",
78
+ "ts-jest": "^29.1.0",
79
+ "tslib": "^1.10.0",
80
+ "typescript": "^4.9.5",
81
+ "yargs": "^17.3.1"
82
+ },
83
+ "dependencies": {
84
+ "@azure/msal-common": "16.0.0-alpha.0",
85
+ "jsonwebtoken": "^9.0.0",
86
+ "uuid": "^8.3.0"
87
+ },
88
+ "engines": {
89
+ "node": ">=20"
90
+ }
93
91
  }
@@ -5,21 +5,20 @@
5
5
 
6
6
  import {
7
7
  AccountInfo,
8
- AuthenticationScheme,
8
+ Constants,
9
9
  CredentialEntity,
10
- CredentialType,
11
10
  } from "@azure/msal-common/node";
12
11
  import { CACHE } from "../utils/Constants.js";
13
12
 
14
13
  export function generateCredentialKey(credential: CredentialEntity): string {
15
14
  const familyId =
16
- (credential.credentialType === CredentialType.REFRESH_TOKEN &&
15
+ (credential.credentialType === Constants.CredentialType.REFRESH_TOKEN &&
17
16
  credential.familyId) ||
18
17
  credential.clientId;
19
18
  const scheme =
20
19
  credential.tokenType &&
21
20
  credential.tokenType.toLowerCase() !==
22
- AuthenticationScheme.BEARER.toLowerCase()
21
+ Constants.AuthenticationScheme.BEARER.toLowerCase()
23
22
  ? credential.tokenType.toLowerCase()
24
23
  : "";
25
24
  const credentialKey = [
@@ -29,7 +28,6 @@ export function generateCredentialKey(credential: CredentialEntity): string {
29
28
  familyId,
30
29
  credential.realm || "",
31
30
  credential.target || "",
32
- credential.requestedClaimsHash || "",
33
31
  scheme,
34
32
  ];
35
33