@azure/msal-node 5.1.5 → 5.2.1

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 (361) hide show
  1. package/dist/cache/CacheHelpers.mjs +1 -1
  2. package/dist/cache/NodeStorage.mjs +1 -1
  3. package/dist/cache/TokenCache.mjs +1 -1
  4. package/dist/cache/distributed/DistributedCachePlugin.mjs +1 -1
  5. package/dist/cache/serializer/Deserializer.mjs +1 -1
  6. package/dist/cache/serializer/Serializer.mjs +1 -1
  7. package/dist/client/BaseClient.mjs +1 -1
  8. package/dist/client/ClientApplication.mjs +1 -1
  9. package/dist/client/ClientAssertion.mjs +1 -1
  10. package/dist/client/ClientCredentialClient.mjs +1 -1
  11. package/dist/client/ConfidentialClientApplication.mjs +1 -1
  12. package/dist/client/DeviceCodeClient.mjs +1 -1
  13. package/dist/client/ManagedIdentityApplication.mjs +1 -1
  14. package/dist/client/ManagedIdentityClient.mjs +1 -1
  15. package/dist/client/ManagedIdentitySources/AppService.mjs +1 -1
  16. package/dist/client/ManagedIdentitySources/AzureArc.mjs +1 -1
  17. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs +9 -1
  18. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs.map +1 -1
  19. package/dist/client/ManagedIdentitySources/CloudShell.mjs +1 -1
  20. package/dist/client/ManagedIdentitySources/Imds.mjs +8 -2
  21. package/dist/client/ManagedIdentitySources/Imds.mjs.map +1 -1
  22. package/dist/client/ManagedIdentitySources/MachineLearning.mjs +1 -1
  23. package/dist/client/ManagedIdentitySources/ServiceFabric.mjs +1 -1
  24. package/dist/client/OnBehalfOfClient.mjs +1 -1
  25. package/dist/client/PublicClientApplication.mjs +1 -1
  26. package/dist/client/UsernamePasswordClient.mjs +1 -1
  27. package/dist/config/Configuration.mjs +1 -1
  28. package/dist/config/ManagedIdentityId.mjs +1 -1
  29. package/dist/config/ManagedIdentityRequestParameters.mjs +1 -1
  30. package/dist/crypto/CryptoProvider.mjs +1 -1
  31. package/dist/crypto/GuidGenerator.mjs +1 -1
  32. package/dist/crypto/HashUtils.mjs +1 -1
  33. package/dist/crypto/PkceGenerator.mjs +1 -1
  34. package/dist/error/ClientAuthErrorCodes.mjs +1 -1
  35. package/dist/error/ManagedIdentityError.mjs +1 -1
  36. package/dist/error/ManagedIdentityErrorCodes.mjs +1 -1
  37. package/dist/error/NodeAuthError.mjs +1 -1
  38. package/dist/index.mjs +1 -1
  39. package/dist/internals.mjs +1 -1
  40. package/dist/network/HttpClient.mjs +1 -1
  41. package/dist/network/HttpClientWithRetries.mjs +1 -1
  42. package/dist/network/LoopbackClient.mjs +1 -1
  43. package/dist/packageMetadata.mjs +2 -2
  44. package/dist/protocol/Authorize.mjs +1 -1
  45. package/dist/retry/DefaultManagedIdentityRetryPolicy.mjs +1 -1
  46. package/dist/retry/ExponentialRetryStrategy.mjs +1 -1
  47. package/dist/retry/ImdsRetryPolicy.mjs +1 -1
  48. package/dist/retry/LinearRetryStrategy.mjs +1 -1
  49. package/dist/utils/Constants.mjs +6 -1
  50. package/dist/utils/Constants.mjs.map +1 -1
  51. package/dist/utils/EncodingUtils.mjs +1 -1
  52. package/dist/utils/TimeUtils.mjs +1 -1
  53. package/lib/msal-node.cjs +228 -66
  54. package/lib/msal-node.cjs.map +1 -1
  55. package/package.json +9 -7
  56. package/src/client/ManagedIdentitySources/BaseManagedIdentitySource.ts +9 -0
  57. package/src/client/ManagedIdentitySources/Imds.ts +7 -0
  58. package/src/packageMetadata.ts +1 -1
  59. package/src/utils/Constants.ts +4 -0
  60. package/{dist → types}/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts +6 -0
  61. package/{dist → types}/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +1 -1
  62. package/{dist → types}/client/ManagedIdentitySources/Imds.d.ts.map +1 -1
  63. package/types/index.d.cts +1 -0
  64. package/types/packageMetadata.d.ts +3 -0
  65. package/{lib/types → types}/utils/Constants.d.ts +3 -0
  66. package/{lib/types → types}/utils/Constants.d.ts.map +1 -1
  67. package/dist/packageMetadata.d.ts +0 -3
  68. package/dist/utils/Constants.d.ts +0 -156
  69. package/dist/utils/Constants.d.ts.map +0 -1
  70. package/lib/types/cache/CacheHelpers.d.ts +0 -4
  71. package/lib/types/cache/CacheHelpers.d.ts.map +0 -1
  72. package/lib/types/cache/ITokenCache.d.ts +0 -16
  73. package/lib/types/cache/ITokenCache.d.ts.map +0 -1
  74. package/lib/types/cache/NodeStorage.d.ts +0 -191
  75. package/lib/types/cache/NodeStorage.d.ts.map +0 -1
  76. package/lib/types/cache/TokenCache.d.ts +0 -99
  77. package/lib/types/cache/TokenCache.d.ts.map +0 -1
  78. package/lib/types/cache/distributed/DistributedCachePlugin.d.ts +0 -23
  79. package/lib/types/cache/distributed/DistributedCachePlugin.d.ts.map +0 -1
  80. package/lib/types/cache/distributed/ICacheClient.d.ts +0 -22
  81. package/lib/types/cache/distributed/ICacheClient.d.ts.map +0 -1
  82. package/lib/types/cache/distributed/IPartitionManager.d.ts +0 -33
  83. package/lib/types/cache/distributed/IPartitionManager.d.ts.map +0 -1
  84. package/lib/types/cache/serializer/Deserializer.d.ts +0 -44
  85. package/lib/types/cache/serializer/Deserializer.d.ts.map +0 -1
  86. package/lib/types/cache/serializer/Serializer.d.ts +0 -44
  87. package/lib/types/cache/serializer/Serializer.d.ts.map +0 -1
  88. package/lib/types/cache/serializer/SerializerTypes.d.ts +0 -102
  89. package/lib/types/cache/serializer/SerializerTypes.d.ts.map +0 -1
  90. package/lib/types/client/BaseClient.d.ts +0 -42
  91. package/lib/types/client/BaseClient.d.ts.map +0 -1
  92. package/lib/types/client/ClientApplication.d.ts +0 -146
  93. package/lib/types/client/ClientApplication.d.ts.map +0 -1
  94. package/lib/types/client/ClientAssertion.d.ts +0 -56
  95. package/lib/types/client/ClientAssertion.d.ts.map +0 -1
  96. package/lib/types/client/ClientCredentialClient.d.ts +0 -37
  97. package/lib/types/client/ClientCredentialClient.d.ts.map +0 -1
  98. package/lib/types/client/ConfidentialClientApplication.d.ts +0 -58
  99. package/lib/types/client/ConfidentialClientApplication.d.ts.map +0 -1
  100. package/lib/types/client/DeviceCodeClient.d.ts +0 -60
  101. package/lib/types/client/DeviceCodeClient.d.ts.map +0 -1
  102. package/lib/types/client/IConfidentialClientApplication.d.ts +0 -43
  103. package/lib/types/client/IConfidentialClientApplication.d.ts.map +0 -1
  104. package/lib/types/client/IPublicClientApplication.d.ts +0 -46
  105. package/lib/types/client/IPublicClientApplication.d.ts.map +0 -1
  106. package/lib/types/client/ManagedIdentityApplication.d.ts +0 -42
  107. package/lib/types/client/ManagedIdentityApplication.d.ts.map +0 -1
  108. package/lib/types/client/ManagedIdentityClient.d.ts +0 -29
  109. package/lib/types/client/ManagedIdentityClient.d.ts.map +0 -1
  110. package/lib/types/client/ManagedIdentitySources/AppService.d.ts +0 -72
  111. package/lib/types/client/ManagedIdentitySources/AppService.d.ts.map +0 -1
  112. package/lib/types/client/ManagedIdentitySources/AzureArc.d.ts +0 -109
  113. package/lib/types/client/ManagedIdentitySources/AzureArc.d.ts.map +0 -1
  114. package/lib/types/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts +0 -125
  115. package/lib/types/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +0 -1
  116. package/lib/types/client/ManagedIdentitySources/CloudShell.d.ts +0 -71
  117. package/lib/types/client/ManagedIdentitySources/CloudShell.d.ts.map +0 -1
  118. package/lib/types/client/ManagedIdentitySources/Imds.d.ts +0 -67
  119. package/lib/types/client/ManagedIdentitySources/Imds.d.ts.map +0 -1
  120. package/lib/types/client/ManagedIdentitySources/MachineLearning.d.ts +0 -81
  121. package/lib/types/client/ManagedIdentitySources/MachineLearning.d.ts.map +0 -1
  122. package/lib/types/client/ManagedIdentitySources/ServiceFabric.d.ts +0 -82
  123. package/lib/types/client/ManagedIdentitySources/ServiceFabric.d.ts.map +0 -1
  124. package/lib/types/client/OnBehalfOfClient.d.ts +0 -50
  125. package/lib/types/client/OnBehalfOfClient.d.ts.map +0 -1
  126. package/lib/types/client/PublicClientApplication.d.ts +0 -85
  127. package/lib/types/client/PublicClientApplication.d.ts.map +0 -1
  128. package/lib/types/client/UsernamePasswordClient.d.ts +0 -30
  129. package/lib/types/client/UsernamePasswordClient.d.ts.map +0 -1
  130. package/lib/types/config/Configuration.d.ts +0 -131
  131. package/lib/types/config/Configuration.d.ts.map +0 -1
  132. package/lib/types/config/ManagedIdentityId.d.ts +0 -12
  133. package/lib/types/config/ManagedIdentityId.d.ts.map +0 -1
  134. package/lib/types/config/ManagedIdentityRequestParameters.d.ts +0 -13
  135. package/lib/types/config/ManagedIdentityRequestParameters.d.ts.map +0 -1
  136. package/lib/types/crypto/CryptoProvider.d.ts +0 -63
  137. package/lib/types/crypto/CryptoProvider.d.ts.map +0 -1
  138. package/lib/types/crypto/GuidGenerator.d.ts +0 -14
  139. package/lib/types/crypto/GuidGenerator.d.ts.map +0 -1
  140. package/lib/types/crypto/HashUtils.d.ts +0 -10
  141. package/lib/types/crypto/HashUtils.d.ts.map +0 -1
  142. package/lib/types/crypto/PkceGenerator.d.ts +0 -23
  143. package/lib/types/crypto/PkceGenerator.d.ts.map +0 -1
  144. package/lib/types/error/ClientAuthErrorCodes.d.ts +0 -8
  145. package/lib/types/error/ClientAuthErrorCodes.d.ts.map +0 -1
  146. package/lib/types/error/ManagedIdentityError.d.ts +0 -31
  147. package/lib/types/error/ManagedIdentityError.d.ts.map +0 -1
  148. package/lib/types/error/ManagedIdentityErrorCodes.d.ts +0 -23
  149. package/lib/types/error/ManagedIdentityErrorCodes.d.ts.map +0 -1
  150. package/lib/types/error/NodeAuthError.d.ts +0 -82
  151. package/lib/types/error/NodeAuthError.d.ts.map +0 -1
  152. package/lib/types/index.d.ts +0 -54
  153. package/lib/types/index.d.ts.map +0 -1
  154. package/lib/types/internals.d.ts +0 -7
  155. package/lib/types/internals.d.ts.map +0 -1
  156. package/lib/types/network/HttpClient.d.ts +0 -66
  157. package/lib/types/network/HttpClient.d.ts.map +0 -1
  158. package/lib/types/network/HttpClientWithRetries.d.ts +0 -13
  159. package/lib/types/network/HttpClientWithRetries.d.ts.map +0 -1
  160. package/lib/types/network/ILoopbackClient.d.ts +0 -11
  161. package/lib/types/network/ILoopbackClient.d.ts.map +0 -1
  162. package/lib/types/network/LoopbackClient.d.ts +0 -22
  163. package/lib/types/network/LoopbackClient.d.ts.map +0 -1
  164. package/lib/types/packageMetadata.d.ts +0 -3
  165. package/lib/types/packageMetadata.d.ts.map +0 -1
  166. package/lib/types/protocol/Authorize.d.ts +0 -12
  167. package/lib/types/protocol/Authorize.d.ts.map +0 -1
  168. package/lib/types/request/AuthorizationCodeRequest.d.ts +0 -24
  169. package/lib/types/request/AuthorizationCodeRequest.d.ts.map +0 -1
  170. package/lib/types/request/AuthorizationUrlRequest.d.ts +0 -16
  171. package/lib/types/request/AuthorizationUrlRequest.d.ts.map +0 -1
  172. package/lib/types/request/ClientCredentialRequest.d.ts +0 -13
  173. package/lib/types/request/ClientCredentialRequest.d.ts.map +0 -1
  174. package/lib/types/request/CommonClientCredentialRequest.d.ts +0 -19
  175. package/lib/types/request/CommonClientCredentialRequest.d.ts.map +0 -1
  176. package/lib/types/request/CommonDeviceCodeRequest.d.ts +0 -23
  177. package/lib/types/request/CommonDeviceCodeRequest.d.ts.map +0 -1
  178. package/lib/types/request/CommonOnBehalfOfRequest.d.ts +0 -15
  179. package/lib/types/request/CommonOnBehalfOfRequest.d.ts.map +0 -1
  180. package/lib/types/request/CommonUsernamePasswordRequest.d.ts +0 -16
  181. package/lib/types/request/CommonUsernamePasswordRequest.d.ts.map +0 -1
  182. package/lib/types/request/DeviceCodeRequest.d.ts +0 -17
  183. package/lib/types/request/DeviceCodeRequest.d.ts.map +0 -1
  184. package/lib/types/request/InteractiveRequest.d.ts +0 -35
  185. package/lib/types/request/InteractiveRequest.d.ts.map +0 -1
  186. package/lib/types/request/ManagedIdentityRequest.d.ts +0 -16
  187. package/lib/types/request/ManagedIdentityRequest.d.ts.map +0 -1
  188. package/lib/types/request/ManagedIdentityRequestParams.d.ts +0 -19
  189. package/lib/types/request/ManagedIdentityRequestParams.d.ts.map +0 -1
  190. package/lib/types/request/OnBehalfOfRequest.d.ts +0 -16
  191. package/lib/types/request/OnBehalfOfRequest.d.ts.map +0 -1
  192. package/lib/types/request/RefreshTokenRequest.d.ts +0 -20
  193. package/lib/types/request/RefreshTokenRequest.d.ts.map +0 -1
  194. package/lib/types/request/SignOutRequest.d.ts +0 -7
  195. package/lib/types/request/SignOutRequest.d.ts.map +0 -1
  196. package/lib/types/request/SilentFlowRequest.d.ts +0 -16
  197. package/lib/types/request/SilentFlowRequest.d.ts.map +0 -1
  198. package/lib/types/request/UsernamePasswordRequest.d.ts +0 -21
  199. package/lib/types/request/UsernamePasswordRequest.d.ts.map +0 -1
  200. package/lib/types/response/ManagedIdentityTokenResponse.d.ts +0 -35
  201. package/lib/types/response/ManagedIdentityTokenResponse.d.ts.map +0 -1
  202. package/lib/types/retry/DefaultManagedIdentityRetryPolicy.d.ts +0 -11
  203. package/lib/types/retry/DefaultManagedIdentityRetryPolicy.d.ts.map +0 -1
  204. package/lib/types/retry/ExponentialRetryStrategy.d.ts +0 -23
  205. package/lib/types/retry/ExponentialRetryStrategy.d.ts.map +0 -1
  206. package/lib/types/retry/IHttpRetryPolicy.d.ts +0 -16
  207. package/lib/types/retry/IHttpRetryPolicy.d.ts.map +0 -1
  208. package/lib/types/retry/ImdsRetryPolicy.d.ts +0 -22
  209. package/lib/types/retry/ImdsRetryPolicy.d.ts.map +0 -1
  210. package/lib/types/retry/LinearRetryStrategy.d.ts +0 -14
  211. package/lib/types/retry/LinearRetryStrategy.d.ts.map +0 -1
  212. package/lib/types/utils/EncodingUtils.d.ts +0 -27
  213. package/lib/types/utils/EncodingUtils.d.ts.map +0 -1
  214. package/lib/types/utils/NetworkUtils.d.ts +0 -17
  215. package/lib/types/utils/NetworkUtils.d.ts.map +0 -1
  216. package/lib/types/utils/TimeUtils.d.ts +0 -9
  217. package/lib/types/utils/TimeUtils.d.ts.map +0 -1
  218. /package/{dist → types}/cache/CacheHelpers.d.ts +0 -0
  219. /package/{dist → types}/cache/CacheHelpers.d.ts.map +0 -0
  220. /package/{dist → types}/cache/ITokenCache.d.ts +0 -0
  221. /package/{dist → types}/cache/ITokenCache.d.ts.map +0 -0
  222. /package/{dist → types}/cache/NodeStorage.d.ts +0 -0
  223. /package/{dist → types}/cache/NodeStorage.d.ts.map +0 -0
  224. /package/{dist → types}/cache/TokenCache.d.ts +0 -0
  225. /package/{dist → types}/cache/TokenCache.d.ts.map +0 -0
  226. /package/{dist → types}/cache/distributed/DistributedCachePlugin.d.ts +0 -0
  227. /package/{dist → types}/cache/distributed/DistributedCachePlugin.d.ts.map +0 -0
  228. /package/{dist → types}/cache/distributed/ICacheClient.d.ts +0 -0
  229. /package/{dist → types}/cache/distributed/ICacheClient.d.ts.map +0 -0
  230. /package/{dist → types}/cache/distributed/IPartitionManager.d.ts +0 -0
  231. /package/{dist → types}/cache/distributed/IPartitionManager.d.ts.map +0 -0
  232. /package/{dist → types}/cache/serializer/Deserializer.d.ts +0 -0
  233. /package/{dist → types}/cache/serializer/Deserializer.d.ts.map +0 -0
  234. /package/{dist → types}/cache/serializer/Serializer.d.ts +0 -0
  235. /package/{dist → types}/cache/serializer/Serializer.d.ts.map +0 -0
  236. /package/{dist → types}/cache/serializer/SerializerTypes.d.ts +0 -0
  237. /package/{dist → types}/cache/serializer/SerializerTypes.d.ts.map +0 -0
  238. /package/{dist → types}/client/BaseClient.d.ts +0 -0
  239. /package/{dist → types}/client/BaseClient.d.ts.map +0 -0
  240. /package/{dist → types}/client/ClientApplication.d.ts +0 -0
  241. /package/{dist → types}/client/ClientApplication.d.ts.map +0 -0
  242. /package/{dist → types}/client/ClientAssertion.d.ts +0 -0
  243. /package/{dist → types}/client/ClientAssertion.d.ts.map +0 -0
  244. /package/{dist → types}/client/ClientCredentialClient.d.ts +0 -0
  245. /package/{dist → types}/client/ClientCredentialClient.d.ts.map +0 -0
  246. /package/{dist → types}/client/ConfidentialClientApplication.d.ts +0 -0
  247. /package/{dist → types}/client/ConfidentialClientApplication.d.ts.map +0 -0
  248. /package/{dist → types}/client/DeviceCodeClient.d.ts +0 -0
  249. /package/{dist → types}/client/DeviceCodeClient.d.ts.map +0 -0
  250. /package/{dist → types}/client/IConfidentialClientApplication.d.ts +0 -0
  251. /package/{dist → types}/client/IConfidentialClientApplication.d.ts.map +0 -0
  252. /package/{dist → types}/client/IPublicClientApplication.d.ts +0 -0
  253. /package/{dist → types}/client/IPublicClientApplication.d.ts.map +0 -0
  254. /package/{dist → types}/client/ManagedIdentityApplication.d.ts +0 -0
  255. /package/{dist → types}/client/ManagedIdentityApplication.d.ts.map +0 -0
  256. /package/{dist → types}/client/ManagedIdentityClient.d.ts +0 -0
  257. /package/{dist → types}/client/ManagedIdentityClient.d.ts.map +0 -0
  258. /package/{dist → types}/client/ManagedIdentitySources/AppService.d.ts +0 -0
  259. /package/{dist → types}/client/ManagedIdentitySources/AppService.d.ts.map +0 -0
  260. /package/{dist → types}/client/ManagedIdentitySources/AzureArc.d.ts +0 -0
  261. /package/{dist → types}/client/ManagedIdentitySources/AzureArc.d.ts.map +0 -0
  262. /package/{dist → types}/client/ManagedIdentitySources/CloudShell.d.ts +0 -0
  263. /package/{dist → types}/client/ManagedIdentitySources/CloudShell.d.ts.map +0 -0
  264. /package/{dist → types}/client/ManagedIdentitySources/Imds.d.ts +0 -0
  265. /package/{dist → types}/client/ManagedIdentitySources/MachineLearning.d.ts +0 -0
  266. /package/{dist → types}/client/ManagedIdentitySources/MachineLearning.d.ts.map +0 -0
  267. /package/{dist → types}/client/ManagedIdentitySources/ServiceFabric.d.ts +0 -0
  268. /package/{dist → types}/client/ManagedIdentitySources/ServiceFabric.d.ts.map +0 -0
  269. /package/{dist → types}/client/OnBehalfOfClient.d.ts +0 -0
  270. /package/{dist → types}/client/OnBehalfOfClient.d.ts.map +0 -0
  271. /package/{dist → types}/client/PublicClientApplication.d.ts +0 -0
  272. /package/{dist → types}/client/PublicClientApplication.d.ts.map +0 -0
  273. /package/{dist → types}/client/UsernamePasswordClient.d.ts +0 -0
  274. /package/{dist → types}/client/UsernamePasswordClient.d.ts.map +0 -0
  275. /package/{dist → types}/config/Configuration.d.ts +0 -0
  276. /package/{dist → types}/config/Configuration.d.ts.map +0 -0
  277. /package/{dist → types}/config/ManagedIdentityId.d.ts +0 -0
  278. /package/{dist → types}/config/ManagedIdentityId.d.ts.map +0 -0
  279. /package/{dist → types}/config/ManagedIdentityRequestParameters.d.ts +0 -0
  280. /package/{dist → types}/config/ManagedIdentityRequestParameters.d.ts.map +0 -0
  281. /package/{dist → types}/crypto/CryptoProvider.d.ts +0 -0
  282. /package/{dist → types}/crypto/CryptoProvider.d.ts.map +0 -0
  283. /package/{dist → types}/crypto/GuidGenerator.d.ts +0 -0
  284. /package/{dist → types}/crypto/GuidGenerator.d.ts.map +0 -0
  285. /package/{dist → types}/crypto/HashUtils.d.ts +0 -0
  286. /package/{dist → types}/crypto/HashUtils.d.ts.map +0 -0
  287. /package/{dist → types}/crypto/PkceGenerator.d.ts +0 -0
  288. /package/{dist → types}/crypto/PkceGenerator.d.ts.map +0 -0
  289. /package/{dist → types}/error/ClientAuthErrorCodes.d.ts +0 -0
  290. /package/{dist → types}/error/ClientAuthErrorCodes.d.ts.map +0 -0
  291. /package/{dist → types}/error/ManagedIdentityError.d.ts +0 -0
  292. /package/{dist → types}/error/ManagedIdentityError.d.ts.map +0 -0
  293. /package/{dist → types}/error/ManagedIdentityErrorCodes.d.ts +0 -0
  294. /package/{dist → types}/error/ManagedIdentityErrorCodes.d.ts.map +0 -0
  295. /package/{dist → types}/error/NodeAuthError.d.ts +0 -0
  296. /package/{dist → types}/error/NodeAuthError.d.ts.map +0 -0
  297. /package/{dist → types}/index.d.ts +0 -0
  298. /package/{dist → types}/index.d.ts.map +0 -0
  299. /package/{dist → types}/internals.d.ts +0 -0
  300. /package/{dist → types}/internals.d.ts.map +0 -0
  301. /package/{dist → types}/network/HttpClient.d.ts +0 -0
  302. /package/{dist → types}/network/HttpClient.d.ts.map +0 -0
  303. /package/{dist → types}/network/HttpClientWithRetries.d.ts +0 -0
  304. /package/{dist → types}/network/HttpClientWithRetries.d.ts.map +0 -0
  305. /package/{dist → types}/network/ILoopbackClient.d.ts +0 -0
  306. /package/{dist → types}/network/ILoopbackClient.d.ts.map +0 -0
  307. /package/{dist → types}/network/LoopbackClient.d.ts +0 -0
  308. /package/{dist → types}/network/LoopbackClient.d.ts.map +0 -0
  309. /package/{dist → types}/packageMetadata.d.ts.map +0 -0
  310. /package/{dist → types}/protocol/Authorize.d.ts +0 -0
  311. /package/{dist → types}/protocol/Authorize.d.ts.map +0 -0
  312. /package/{dist → types}/request/AuthorizationCodeRequest.d.ts +0 -0
  313. /package/{dist → types}/request/AuthorizationCodeRequest.d.ts.map +0 -0
  314. /package/{dist → types}/request/AuthorizationUrlRequest.d.ts +0 -0
  315. /package/{dist → types}/request/AuthorizationUrlRequest.d.ts.map +0 -0
  316. /package/{dist → types}/request/ClientCredentialRequest.d.ts +0 -0
  317. /package/{dist → types}/request/ClientCredentialRequest.d.ts.map +0 -0
  318. /package/{dist → types}/request/CommonClientCredentialRequest.d.ts +0 -0
  319. /package/{dist → types}/request/CommonClientCredentialRequest.d.ts.map +0 -0
  320. /package/{dist → types}/request/CommonDeviceCodeRequest.d.ts +0 -0
  321. /package/{dist → types}/request/CommonDeviceCodeRequest.d.ts.map +0 -0
  322. /package/{dist → types}/request/CommonOnBehalfOfRequest.d.ts +0 -0
  323. /package/{dist → types}/request/CommonOnBehalfOfRequest.d.ts.map +0 -0
  324. /package/{dist → types}/request/CommonUsernamePasswordRequest.d.ts +0 -0
  325. /package/{dist → types}/request/CommonUsernamePasswordRequest.d.ts.map +0 -0
  326. /package/{dist → types}/request/DeviceCodeRequest.d.ts +0 -0
  327. /package/{dist → types}/request/DeviceCodeRequest.d.ts.map +0 -0
  328. /package/{dist → types}/request/InteractiveRequest.d.ts +0 -0
  329. /package/{dist → types}/request/InteractiveRequest.d.ts.map +0 -0
  330. /package/{dist → types}/request/ManagedIdentityRequest.d.ts +0 -0
  331. /package/{dist → types}/request/ManagedIdentityRequest.d.ts.map +0 -0
  332. /package/{dist → types}/request/ManagedIdentityRequestParams.d.ts +0 -0
  333. /package/{dist → types}/request/ManagedIdentityRequestParams.d.ts.map +0 -0
  334. /package/{dist → types}/request/OnBehalfOfRequest.d.ts +0 -0
  335. /package/{dist → types}/request/OnBehalfOfRequest.d.ts.map +0 -0
  336. /package/{dist → types}/request/RefreshTokenRequest.d.ts +0 -0
  337. /package/{dist → types}/request/RefreshTokenRequest.d.ts.map +0 -0
  338. /package/{dist → types}/request/SignOutRequest.d.ts +0 -0
  339. /package/{dist → types}/request/SignOutRequest.d.ts.map +0 -0
  340. /package/{dist → types}/request/SilentFlowRequest.d.ts +0 -0
  341. /package/{dist → types}/request/SilentFlowRequest.d.ts.map +0 -0
  342. /package/{dist → types}/request/UsernamePasswordRequest.d.ts +0 -0
  343. /package/{dist → types}/request/UsernamePasswordRequest.d.ts.map +0 -0
  344. /package/{dist → types}/response/ManagedIdentityTokenResponse.d.ts +0 -0
  345. /package/{dist → types}/response/ManagedIdentityTokenResponse.d.ts.map +0 -0
  346. /package/{dist → types}/retry/DefaultManagedIdentityRetryPolicy.d.ts +0 -0
  347. /package/{dist → types}/retry/DefaultManagedIdentityRetryPolicy.d.ts.map +0 -0
  348. /package/{dist → types}/retry/ExponentialRetryStrategy.d.ts +0 -0
  349. /package/{dist → types}/retry/ExponentialRetryStrategy.d.ts.map +0 -0
  350. /package/{dist → types}/retry/IHttpRetryPolicy.d.ts +0 -0
  351. /package/{dist → types}/retry/IHttpRetryPolicy.d.ts.map +0 -0
  352. /package/{dist → types}/retry/ImdsRetryPolicy.d.ts +0 -0
  353. /package/{dist → types}/retry/ImdsRetryPolicy.d.ts.map +0 -0
  354. /package/{dist → types}/retry/LinearRetryStrategy.d.ts +0 -0
  355. /package/{dist → types}/retry/LinearRetryStrategy.d.ts.map +0 -0
  356. /package/{dist → types}/utils/EncodingUtils.d.ts +0 -0
  357. /package/{dist → types}/utils/EncodingUtils.d.ts.map +0 -0
  358. /package/{dist → types}/utils/NetworkUtils.d.ts +0 -0
  359. /package/{dist → types}/utils/NetworkUtils.d.ts.map +0 -0
  360. /package/{dist → types}/utils/TimeUtils.d.ts +0 -0
  361. /package/{dist → types}/utils/TimeUtils.d.ts.map +0 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@azure/msal-node",
4
- "version": "5.1.5",
4
+ "version": "5.2.1",
5
5
  "author": {
6
6
  "name": "Microsoft",
7
7
  "email": "nugetaad@microsoft.com",
@@ -24,15 +24,15 @@
24
24
  "type": "module",
25
25
  "main": "lib/msal-node.cjs",
26
26
  "module": "dist/index.mjs",
27
- "types": "dist/index.d.ts",
27
+ "types": "types/index.d.ts",
28
28
  "exports": {
29
29
  ".": {
30
30
  "import": {
31
- "types": "./dist/index.d.ts",
31
+ "types": "./types/index.d.ts",
32
32
  "default": "./dist/index.mjs"
33
33
  },
34
34
  "require": {
35
- "types": "./lib/types/index.d.ts",
35
+ "types": "./types/index.d.cts",
36
36
  "default": "./lib/msal-node.cjs"
37
37
  }
38
38
  },
@@ -40,13 +40,15 @@
40
40
  },
41
41
  "files": [
42
42
  "dist",
43
+ "types",
43
44
  "lib",
44
45
  "src"
45
46
  ],
46
47
  "scripts": {
47
- "build": "npm run clean && rollup -c --strictDeprecations --bundleConfigAsCjs",
48
+ "build": "npm run clean && rollup -c --strictDeprecations --bundleConfigAsCjs && npm run build:types",
49
+ "build:types": "tsc -p tsconfig.build.types.json",
48
50
  "build:watch": "rollup -c --watch --strictDeprecations --bundleConfigAsCjs",
49
- "clean": "shx rm -rf dist lib",
51
+ "clean": "shx rm -rf dist types lib",
50
52
  "test": "jest",
51
53
  "test:watch": "jest --watch",
52
54
  "test:coverage": "jest --coverage",
@@ -82,7 +84,7 @@
82
84
  "yargs": "^17.3.1"
83
85
  },
84
86
  "dependencies": {
85
- "@azure/msal-common": "16.5.2",
87
+ "@azure/msal-common": "16.6.1",
86
88
  "jsonwebtoken": "^9.0.0"
87
89
  },
88
90
  "engines": {
@@ -90,6 +90,15 @@ export abstract class BaseManagedIdentitySource {
90
90
  this.disableInternalRetries = disableInternalRetries;
91
91
  }
92
92
 
93
+ /**
94
+ * Generates a new correlation ID for request tracing.
95
+ *
96
+ * @returns A new GUID string for use as a correlation or request ID
97
+ */
98
+ protected createCorrelationId(): string {
99
+ return this.cryptoProvider.createNewGuid();
100
+ }
101
+
93
102
  /**
94
103
  * Creates a managed identity request with source-specific parameters.
95
104
  * This method must be implemented by concrete managed identity sources to define
@@ -9,6 +9,7 @@ import { ManagedIdentityRequestParameters } from "../../config/ManagedIdentityRe
9
9
  import { BaseManagedIdentitySource } from "./BaseManagedIdentitySource.js";
10
10
  import { CryptoProvider } from "../../crypto/CryptoProvider.js";
11
11
  import {
12
+ Constants as NodeConstants,
12
13
  HttpMethod,
13
14
  ManagedIdentityEnvironmentVariableNames,
14
15
  ManagedIdentityHeaders,
@@ -18,6 +19,7 @@ import {
18
19
  } from "../../utils/Constants.js";
19
20
  import { NodeStorage } from "../../cache/NodeStorage.js";
20
21
  import { ImdsRetryPolicy } from "../../retry/ImdsRetryPolicy.js";
22
+ import { version as packageVersion } from "../../packageMetadata.js";
21
23
 
22
24
  // Documentation for IMDS is available at https://docs.microsoft.com/azure/active-directory/managed-identities-azure-resources/how-to-use-vm-token#get-a-token-using-http
23
25
 
@@ -167,6 +169,11 @@ export class Imds extends BaseManagedIdentitySource {
167
169
  );
168
170
 
169
171
  request.headers[ManagedIdentityHeaders.METADATA_HEADER_NAME] = "true";
172
+ request.headers[ManagedIdentityHeaders.CLIENT_SKU] =
173
+ NodeConstants.MSAL_SKU;
174
+ request.headers[ManagedIdentityHeaders.CLIENT_VER] = packageVersion;
175
+ request.headers[ManagedIdentityHeaders.CLIENT_REQUEST_ID] =
176
+ this.createCorrelationId();
170
177
 
171
178
  request.queryParameters[ManagedIdentityQueryParameters.API_VERSION] =
172
179
  IMDS_API_VERSION;
@@ -1,3 +1,3 @@
1
1
  /* eslint-disable header/header */
2
2
  export const name = "@azure/msal-node";
3
- export const version = "5.1.5";
3
+ export const version = "5.2.1";
@@ -3,6 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
+ import { AADServerParamKeys } from "@azure/msal-common/node";
6
7
  import { DefaultManagedIdentityRetryPolicy } from "../retry/DefaultManagedIdentityRetryPolicy.js";
7
8
  import { ImdsRetryPolicy } from "../retry/ImdsRetryPolicy.js";
8
9
 
@@ -19,6 +20,9 @@ export const ManagedIdentityHeaders = {
19
20
  METADATA_HEADER_NAME: "Metadata",
20
21
  APP_SERVICE_SECRET_HEADER_NAME: "X-IDENTITY-HEADER",
21
22
  ML_AND_SF_SECRET_HEADER_NAME: "secret",
23
+ CLIENT_SKU: AADServerParamKeys.X_CLIENT_SKU,
24
+ CLIENT_VER: AADServerParamKeys.X_CLIENT_VER,
25
+ CLIENT_REQUEST_ID: "x-ms-client-request-id",
22
26
  } as const;
23
27
  export type ManagedIdentityHeaders =
24
28
  (typeof ManagedIdentityHeaders)[keyof typeof ManagedIdentityHeaders];
@@ -42,6 +42,12 @@ export declare abstract class BaseManagedIdentitySource {
42
42
  * @param disableInternalRetries - Whether to disable automatic retry logic
43
43
  */
44
44
  constructor(logger: Logger, nodeStorage: NodeStorage, networkClient: INetworkModule, cryptoProvider: CryptoProvider, disableInternalRetries: boolean);
45
+ /**
46
+ * Generates a new correlation ID for request tracing.
47
+ *
48
+ * @returns A new GUID string for use as a correlation or request ID
49
+ */
50
+ protected createCorrelationId(): string;
45
51
  /**
46
52
  * Creates a managed identity request with source-specific parameters.
47
53
  * This method must be implemented by concrete managed identity sources to define
@@ -1 +1 @@
1
- {"version":3,"file":"BaseManagedIdentitySource.d.ts","sourceRoot":"","sources":["../../../src/client/ManagedIdentitySources/BaseManagedIdentitySource.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,SAAS,EAET,cAAc,EACd,MAAM,EACN,qBAAqB,EACrB,eAAe,EAEf,gCAAgC,EAGhC,oBAAoB,EAIvB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,gCAAgC,EAAE,MAAM,kDAAkD,CAAC;AACpG,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AACjF,OAAO,EAGH,qBAAqB,EAExB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,4BAA4B,EAAE,MAAM,gDAAgD,CAAC;AAC9F,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EACH,yBAAyB,EAE5B,MAAM,qCAAqC,CAAC;AAI7C;;GAEG;AACH,eAAO,MAAM,gDAAgD;;;;;;CAMnD,CAAC;AACX,MAAM,MAAM,gDAAgD,GACxD,CAAC,OAAO,gDAAgD,CAAC,CAAC,MAAM,OAAO,gDAAgD,CAAC,CAAC;AAE7H;;;;;;;GAOG;AACH,8BAAsB,yBAAyB;IAC3C,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,aAAa,CAAiB;IACtC,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,sBAAsB,CAAU;IAExC;;;;;;;;OAQG;gBAEC,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,cAAc,EAC7B,cAAc,EAAE,cAAc,EAC9B,sBAAsB,EAAE,OAAO;IASnC;;;;;;;;;OASG;IACH,QAAQ,CAAC,aAAa,CAClB,QAAQ,EAAE,MAAM,EAChB,iBAAiB,EAAE,iBAAiB,GACrC,gCAAgC;IAEnC;;;;;;;;;;;OAWG;IACU,2BAA2B,CACpC,QAAQ,EAAE,eAAe,CAAC,4BAA4B,CAAC,EAEvD,cAAc,EAAE,cAAc,EAE9B,eAAe,EAAE,gCAAgC,EAEjD,sBAAsB,EAAE,qBAAqB,GAC9C,OAAO,CAAC,gCAAgC,CAAC;IAI5C;;;;;;;;OAQG;IACI,sBAAsB,CACzB,QAAQ,EAAE,eAAe,CAAC,4BAA4B,CAAC,GACxD,gCAAgC;IA+CnC;;;;;;;;;;;;;;OAcG;IACU,+BAA+B,CACxC,sBAAsB,EAAE,sBAAsB,EAC9C,iBAAiB,EAAE,iBAAiB,EACpC,aAAa,EAAE,SAAS,EACxB,kBAAkB,CAAC,EAAE,OAAO,GAC7B,OAAO,CAAC,oBAAoB,CAAC;IAoHhC;;;;;;;;;;;;OAYG;IACI,iDAAiD,CACpD,qBAAqB,EAAE,qBAAqB,EAC5C,MAAM,CAAC,EAAE,OAAO,EAChB,WAAW,CAAC,EAAE,OAAO,GACtB,MAAM;IAoCT;;;;;;;;;;;;;OAaG;IACH,OAAc,gCAAgC,0BACnB,MAAM,OAAO,0BAA0B,4CAA4C,eAC7F,MAAM,cACP,MAAM,UACV,MAAM,KACf,MAAM,CAgBP;CACL"}
1
+ {"version":3,"file":"BaseManagedIdentitySource.d.ts","sourceRoot":"","sources":["../../../src/client/ManagedIdentitySources/BaseManagedIdentitySource.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,SAAS,EAET,cAAc,EACd,MAAM,EACN,qBAAqB,EACrB,eAAe,EAEf,gCAAgC,EAGhC,oBAAoB,EAIvB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,gCAAgC,EAAE,MAAM,kDAAkD,CAAC;AACpG,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,sBAAsB,E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EACxB,aAAa,EAAE,cAAc,EAC7B,cAAc,EAAE,cAAc,EAC9B,sBAAsB,EAAE,OAAO,GAChC,IAAI;IAiDP;;;;;;;;;;;;;;;;;;OAkBG;IACI,aAAa,CAChB,QAAQ,EAAE,MAAM,EAChB,iBAAiB,EAAE,iBAAiB,GACrC,gCAAgC;CA+BtC"}
1
+ {"version":3,"file":"Imds.d.ts","sourceRoot":"","sources":["../../../src/client/ManagedIdentitySources/Imds.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,gCAAgC,EAAE,MAAM,kDAAkD,CAAC;AACpG,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAUhE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAUzD;;;;;;;;GAQG;AACH,qBAAa,IAAK,SAAQ,yBAAyB;IAC/C,OAAO,CAAC,gBAAgB,CAAS;IAEjC;;;;;;;;;OASG;gBAEC,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,cAAc,EAC7B,cAAc,EAAE,cAAc,EAC9B,sBAAsB,EAAE,OAAO,EAC/B,gBAAgB,EAAE,MAAM;IAa5B;;;;;;;;;;;;;;;OAeG;WACW,SAAS,CACnB,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,cAAc,EAC7B,cAAc,EAAE,cAAc,EAC9B,sBAAsB,EAAE,OAAO,GAChC,IAAI;IAiDP;;;;;;;;;;;;;;;;;;OAkBG;IACI,aAAa,CAChB,QAAQ,EAAE,MAAM,EAChB,iBAAiB,EAAE,iBAAiB,GACrC,gCAAgC;CAoCtC"}
@@ -0,0 +1 @@
1
+ export * from "./index.js";
@@ -0,0 +1,3 @@
1
+ export declare const name = "@azure/msal-node";
2
+ export declare const version = "5.2.1";
3
+ //# sourceMappingURL=packageMetadata.d.ts.map
@@ -11,6 +11,9 @@ export declare const ManagedIdentityHeaders: {
11
11
  readonly METADATA_HEADER_NAME: "Metadata";
12
12
  readonly APP_SERVICE_SECRET_HEADER_NAME: "X-IDENTITY-HEADER";
13
13
  readonly ML_AND_SF_SECRET_HEADER_NAME: "secret";
14
+ readonly CLIENT_SKU: "x-client-SKU";
15
+ readonly CLIENT_VER: "x-client-VER";
16
+ readonly CLIENT_REQUEST_ID: "x-ms-client-request-id";
14
17
  };
15
18
  export type ManagedIdentityHeaders = (typeof ManagedIdentityHeaders)[keyof typeof ManagedIdentityHeaders];
16
19
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"Constants.d.ts","sourceRoot":"","sources":["../../../src/utils/Constants.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iCAAiC,EAAE,MAAM,+CAA+C,CAAC;AAClG,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAG9D,eAAO,MAAM,2BAA2B,qCAAqC,CAAC;AAC9E,eAAO,MAAM,+BAA+B,qBAAqB,CAAC;AAClE,eAAO,MAAM,sCAAsC,QAA0E,CAAC;AAE9H;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;CAKzB,CAAC;AACX,MAAM,MAAM,sBAAsB,GAC9B,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,OAAO,sBAAsB,CAAC,CAAC;AAEzE;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;;;CAKjC,CAAC;AACX,MAAM,MAAM,8BAA8B,GACtC,CAAC,OAAO,8BAA8B,CAAC,CAAC,MAAM,OAAO,8BAA8B,CAAC,CAAC;AAEzF;;GAEG;AACH,eAAO,MAAM,uCAAuC;;;;;;;;;CAS1C,CAAC;AACX,MAAM,MAAM,uCAAuC,GAC/C,CAAC,OAAO,uCAAuC,CAAC,CAAC,MAAM,OAAO,uC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;AACH,eAAO,MAAM,2BAA2B,gBAAgB,CAAC;AACzD,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AAErD;;GAEG;AACH,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,IAAI;;CAEhB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO;;CAGnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,KAAK;;;;CAIjB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;;CAOrB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,KAAK;;;;;;;;;CASjB,CAAC;AACF,MAAM,MAAM,KAAK,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,OAAO,KAAK,CAAC,CAAC;AAEvD;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;CAaxB,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;CAGrC,CAAC;AAEF,eAAO,MAAM,oCAAoC,EAAE,MAAa,CAAC;AAEjE,MAAM,MAAM,aAAa,GAAG,iCAAiC,GAAG,eAAe,CAAC"}
@@ -1,3 +0,0 @@
1
- export declare const name = "@azure/msal-node";
2
- export declare const version = "5.1.5";
3
- //# sourceMappingURL=packageMetadata.d.ts.map
@@ -1,156 +0,0 @@
1
- import { DefaultManagedIdentityRetryPolicy } from "../retry/DefaultManagedIdentityRetryPolicy.js";
2
- import { ImdsRetryPolicy } from "../retry/ImdsRetryPolicy.js";
3
- export declare const DEFAULT_MANAGED_IDENTITY_ID = "system_assigned_managed_identity";
4
- export declare const MANAGED_IDENTITY_DEFAULT_TENANT = "managed_identity";
5
- export declare const DEFAULT_AUTHORITY_FOR_MANAGED_IDENTITY: string;
6
- /**
7
- * Managed Identity Headers - used in network requests
8
- */
9
- export declare const ManagedIdentityHeaders: {
10
- readonly AUTHORIZATION_HEADER_NAME: "Authorization";
11
- readonly METADATA_HEADER_NAME: "Metadata";
12
- readonly APP_SERVICE_SECRET_HEADER_NAME: "X-IDENTITY-HEADER";
13
- readonly ML_AND_SF_SECRET_HEADER_NAME: "secret";
14
- };
15
- export type ManagedIdentityHeaders = (typeof ManagedIdentityHeaders)[keyof typeof ManagedIdentityHeaders];
16
- /**
17
- * Managed Identity Query Parameters - used in network requests
18
- */
19
- export declare const ManagedIdentityQueryParameters: {
20
- readonly API_VERSION: "api-version";
21
- readonly RESOURCE: "resource";
22
- readonly SHA256_TOKEN_TO_REFRESH: "token_sha256_to_refresh";
23
- readonly XMS_CC: "xms_cc";
24
- };
25
- export type ManagedIdentityQueryParameters = (typeof ManagedIdentityQueryParameters)[keyof typeof ManagedIdentityQueryParameters];
26
- /**
27
- * Managed Identity Environment Variable Names
28
- */
29
- export declare const ManagedIdentityEnvironmentVariableNames: {
30
- readonly AZURE_POD_IDENTITY_AUTHORITY_HOST: "AZURE_POD_IDENTITY_AUTHORITY_HOST";
31
- readonly DEFAULT_IDENTITY_CLIENT_ID: "DEFAULT_IDENTITY_CLIENT_ID";
32
- readonly IDENTITY_ENDPOINT: "IDENTITY_ENDPOINT";
33
- readonly IDENTITY_HEADER: "IDENTITY_HEADER";
34
- readonly IDENTITY_SERVER_THUMBPRINT: "IDENTITY_SERVER_THUMBPRINT";
35
- readonly IMDS_ENDPOINT: "IMDS_ENDPOINT";
36
- readonly MSI_ENDPOINT: "MSI_ENDPOINT";
37
- readonly MSI_SECRET: "MSI_SECRET";
38
- };
39
- export type ManagedIdentityEnvironmentVariableNames = (typeof ManagedIdentityEnvironmentVariableNames)[keyof typeof ManagedIdentityEnvironmentVariableNames];
40
- /**
41
- * Managed Identity Source Names
42
- * @public
43
- */
44
- export declare const ManagedIdentitySourceNames: {
45
- readonly APP_SERVICE: "AppService";
46
- readonly AZURE_ARC: "AzureArc";
47
- readonly CLOUD_SHELL: "CloudShell";
48
- readonly DEFAULT_TO_IMDS: "DefaultToImds";
49
- readonly IMDS: "Imds";
50
- readonly MACHINE_LEARNING: "MachineLearning";
51
- readonly SERVICE_FABRIC: "ServiceFabric";
52
- };
53
- /**
54
- * The ManagedIdentitySourceNames type
55
- * @public
56
- */
57
- export type ManagedIdentitySourceNames = (typeof ManagedIdentitySourceNames)[keyof typeof ManagedIdentitySourceNames];
58
- /**
59
- * Managed Identity Ids
60
- */
61
- export declare const ManagedIdentityIdType: {
62
- readonly SYSTEM_ASSIGNED: "system-assigned";
63
- readonly USER_ASSIGNED_CLIENT_ID: "user-assigned-client-id";
64
- readonly USER_ASSIGNED_RESOURCE_ID: "user-assigned-resource-id";
65
- readonly USER_ASSIGNED_OBJECT_ID: "user-assigned-object-id";
66
- };
67
- export type ManagedIdentityIdType = (typeof ManagedIdentityIdType)[keyof typeof ManagedIdentityIdType];
68
- /**
69
- * http methods
70
- */
71
- export declare const HttpMethod: {
72
- readonly GET: "GET";
73
- readonly POST: "POST";
74
- };
75
- export type HttpMethod = (typeof HttpMethod)[keyof typeof HttpMethod];
76
- /**
77
- * Constants used for region discovery
78
- */
79
- export declare const REGION_ENVIRONMENT_VARIABLE = "REGION_NAME";
80
- export declare const MSAL_FORCE_REGION = "MSAL_FORCE_REGION";
81
- /**
82
- * Constant used for PKCE
83
- */
84
- export declare const RANDOM_OCTET_SIZE = 32;
85
- /**
86
- * Constants used in PKCE
87
- */
88
- export declare const Hash: {
89
- SHA256: string;
90
- };
91
- /**
92
- * Constants for encoding schemes
93
- */
94
- export declare const CharSet: {
95
- CV_CHARSET: string;
96
- };
97
- /**
98
- * Cache Constants
99
- */
100
- export declare const CACHE: {
101
- FILE_CACHE: string;
102
- EXTENSION_LIB: string;
103
- KEY_SEPARATOR: string;
104
- };
105
- /**
106
- * Constants
107
- */
108
- export declare const Constants: {
109
- MSAL_SKU: string;
110
- JWT_BEARER_ASSERTION_TYPE: string;
111
- AUTHORIZATION_PENDING: string;
112
- HTTP_PROTOCOL: string;
113
- LOCALHOST: string;
114
- };
115
- /**
116
- * API Codes for Telemetry purposes.
117
- * Before adding a new code you must claim it in the MSAL Telemetry tracker as these number spaces are shared across all MSALs
118
- * 0-99 Silent Flow
119
- * 600-699 Device Code Flow
120
- * 800-899 Auth Code Flow
121
- */
122
- export declare const ApiId: {
123
- acquireTokenSilent: number;
124
- acquireTokenByUsernamePassword: number;
125
- acquireTokenByDeviceCode: number;
126
- acquireTokenByClientCredential: number;
127
- acquireTokenByOBO: number;
128
- acquireTokenWithManagedIdentity: number;
129
- acquireTokenByCode: number;
130
- acquireTokenByRefreshToken: number;
131
- };
132
- export type ApiId = (typeof ApiId)[keyof typeof ApiId];
133
- /**
134
- * JWT constants
135
- */
136
- export declare const JwtConstants: {
137
- ALGORITHM: string;
138
- RSA_256: string;
139
- PSS_256: string;
140
- X5T_256: string;
141
- X5T: string;
142
- X5C: string;
143
- AUDIENCE: string;
144
- EXPIRATION_TIME: string;
145
- ISSUER: string;
146
- SUBJECT: string;
147
- NOT_BEFORE: string;
148
- JWT_ID: string;
149
- };
150
- export declare const LOOPBACK_SERVER_CONSTANTS: {
151
- INTERVAL_MS: number;
152
- TIMEOUT_MS: number;
153
- };
154
- export declare const AZURE_ARC_SECRET_FILE_MAX_SIZE_BYTES: number;
155
- export type RetryPolicies = DefaultManagedIdentityRetryPolicy | ImdsRetryPolicy;
156
- //# sourceMappingURL=Constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Constants.d.ts","sourceRoot":"","sources":["../../src/utils/Constants.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iCAAiC,EAAE,MAAM,+CAA+C,CAAC;AAClG,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAG9D,eAAO,MAAM,2BAA2B,qCAAqC,CAAC;AAC9E,eAAO,MAAM,+BAA+B,qBAAqB,CAAC;AAClE,eAAO,MAAM,sCAAsC,QAA0E,CAAC;AAE9H;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;CAKzB,CAAC;AACX,MAAM,MAAM,sBAAsB,GAC9B,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM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F,MAAM,MAAM,KAAK,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,OAAO,KAAK,CAAC,CAAC;AAEvD;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;CAaxB,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;CAGrC,CAAC;AAEF,eAAO,MAAM,oCAAoC,EAAE,MAAa,CAAC;AAEjE,MAAM,MAAM,aAAa,GAAG,iCAAiC,GAAG,eAAe,CAAC"}
@@ -1,4 +0,0 @@
1
- import { AccountInfo, CredentialEntity } from "@azure/msal-common/node";
2
- export declare function generateCredentialKey(credential: CredentialEntity): string;
3
- export declare function generateAccountKey(account: AccountInfo): string;
4
- //# sourceMappingURL=CacheHelpers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CacheHelpers.d.ts","sourceRoot":"","sources":["../../../src/cache/CacheHelpers.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,WAAW,EAEX,gBAAgB,EACnB,MAAM,yBAAyB,CAAC;AAGjC,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,gBAAgB,GAAG,MAAM,CAsB1E;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,CAS/D"}
@@ -1,16 +0,0 @@
1
- import { AccountInfo } from "@azure/msal-common/node";
2
- /**
3
- * Token cache interface for the client, giving access to cache APIs
4
- * @public
5
- */
6
- export interface ITokenCache {
7
- /** API that retrieves all accounts currently in cache to the user */
8
- getAllAccounts(): Promise<AccountInfo[]>;
9
- /** Returns the signed in account matching homeAccountId */
10
- getAccountByHomeId(homeAccountId: string): Promise<AccountInfo | null>;
11
- /** Returns the signed in account matching localAccountId */
12
- getAccountByLocalId(localAccountId: string): Promise<AccountInfo | null>;
13
- /** API to remove a specific account and the relevant data from cache */
14
- removeAccount(account: AccountInfo): Promise<void>;
15
- }
16
- //# sourceMappingURL=ITokenCache.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ITokenCache.d.ts","sourceRoot":"","sources":["../../../src/cache/ITokenCache.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD;;;GAGG;AACH,MAAM,WAAW,WAAW;IACxB,qEAAqE;IACrE,cAAc,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;IAEzC,2DAA2D;IAC3D,kBAAkB,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAEvE,4DAA4D;IAC5D,mBAAmB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAEzE,wEAAwE;IACxE,aAAa,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACtD"}
@@ -1,191 +0,0 @@
1
- import { TokenKeys, AccountEntity, IdTokenEntity, AccessTokenEntity, RefreshTokenEntity, AppMetadataEntity, ServerTelemetryEntity, ThrottlingEntity, CacheManager, Logger, ValidCacheType, ICrypto, AuthorityMetadataEntity, ValidCredentialType, StaticAuthorityOptions, CredentialEntity, AccountInfo } from "@azure/msal-common/node";
2
- import { InMemoryCache, JsonCache, CacheKVStore } from "./serializer/SerializerTypes.js";
3
- /**
4
- * This class implements Storage for node, reading cache from user specified storage location or an extension library
5
- * @public
6
- */
7
- export declare class NodeStorage extends CacheManager {
8
- private logger;
9
- private cache;
10
- private changeEmitters;
11
- constructor(logger: Logger, clientId: string, cryptoImpl: ICrypto, staticAuthorityOptions?: StaticAuthorityOptions);
12
- /**
13
- * Queue up callbacks
14
- * @param func - a callback function for cache change indication
15
- */
16
- registerChangeEmitter(func: () => void): void;
17
- /**
18
- * Invoke the callback when cache changes
19
- */
20
- emitChange(): void;
21
- /**
22
- * Converts cacheKVStore to InMemoryCache
23
- * @param cache - key value store
24
- */
25
- cacheToInMemoryCache(cache: CacheKVStore): InMemoryCache;
26
- /**
27
- * converts inMemoryCache to CacheKVStore
28
- * @param inMemoryCache - kvstore map for inmemory
29
- */
30
- inMemoryCacheToCache(inMemoryCache: InMemoryCache): CacheKVStore;
31
- /**
32
- * gets the current in memory cache for the client
33
- */
34
- getInMemoryCache(): InMemoryCache;
35
- /**
36
- * sets the current in memory cache for the client
37
- * @param inMemoryCache - key value map in memory
38
- */
39
- setInMemoryCache(inMemoryCache: InMemoryCache): void;
40
- /**
41
- * get the current cache key-value store
42
- */
43
- getCache(): CacheKVStore;
44
- /**
45
- * sets the current cache (key value store)
46
- * @param cacheMap - key value map
47
- */
48
- setCache(cache: CacheKVStore): void;
49
- /**
50
- * Gets cache item with given key.
51
- * @param key - lookup key for the cache entry
52
- */
53
- getItem(key: string): ValidCacheType;
54
- /**
55
- * Gets cache item with given key-value
56
- * @param key - lookup key for the cache entry
57
- * @param value - value of the cache entry
58
- */
59
- setItem(key: string, value: ValidCacheType): void;
60
- generateCredentialKey(credential: CredentialEntity): string;
61
- generateAccountKey(account: AccountInfo): string;
62
- getAccountKeys(): string[];
63
- getTokenKeys(): TokenKeys;
64
- /**
65
- * Reads account from cache, builds it into an account entity and returns it.
66
- * @param accountKey - lookup key to fetch cache type AccountEntity
67
- * @returns
68
- */
69
- getAccount(accountKey: string): AccountEntity | null;
70
- /**
71
- * set account entity
72
- * @param account - cache value to be set of type AccountEntity
73
- */
74
- setAccount(account: AccountEntity): Promise<void>;
75
- /**
76
- * fetch the idToken credential
77
- * @param idTokenKey - lookup key to fetch cache type IdTokenEntity
78
- */
79
- getIdTokenCredential(idTokenKey: string): IdTokenEntity | null;
80
- /**
81
- * set idToken credential
82
- * @param idToken - cache value to be set of type IdTokenEntity
83
- */
84
- setIdTokenCredential(idToken: IdTokenEntity): Promise<void>;
85
- /**
86
- * fetch the accessToken credential
87
- * @param accessTokenKey - lookup key to fetch cache type AccessTokenEntity
88
- */
89
- getAccessTokenCredential(accessTokenKey: string): AccessTokenEntity | null;
90
- /**
91
- * set accessToken credential
92
- * @param accessToken - cache value to be set of type AccessTokenEntity
93
- */
94
- setAccessTokenCredential(accessToken: AccessTokenEntity): Promise<void>;
95
- /**
96
- * fetch the refreshToken credential
97
- * @param refreshTokenKey - lookup key to fetch cache type RefreshTokenEntity
98
- */
99
- getRefreshTokenCredential(refreshTokenKey: string): RefreshTokenEntity | null;
100
- /**
101
- * set refreshToken credential
102
- * @param refreshToken - cache value to be set of type RefreshTokenEntity
103
- */
104
- setRefreshTokenCredential(refreshToken: RefreshTokenEntity): Promise<void>;
105
- /**
106
- * fetch appMetadata entity from the platform cache
107
- * @param appMetadataKey - lookup key to fetch cache type AppMetadataEntity
108
- */
109
- getAppMetadata(appMetadataKey: string): AppMetadataEntity | null;
110
- /**
111
- * set appMetadata entity to the platform cache
112
- * @param appMetadata - cache value to be set of type AppMetadataEntity
113
- */
114
- setAppMetadata(appMetadata: AppMetadataEntity): void;
115
- /**
116
- * fetch server telemetry entity from the platform cache
117
- * @param serverTelemetrykey - lookup key to fetch cache type ServerTelemetryEntity
118
- */
119
- getServerTelemetry(serverTelemetrykey: string): ServerTelemetryEntity | null;
120
- /**
121
- * set server telemetry entity to the platform cache
122
- * @param serverTelemetryKey - lookup key to fetch cache type ServerTelemetryEntity
123
- * @param serverTelemetry - cache value to be set of type ServerTelemetryEntity
124
- */
125
- setServerTelemetry(serverTelemetryKey: string, serverTelemetry: ServerTelemetryEntity): void;
126
- /**
127
- * fetch authority metadata entity from the platform cache
128
- * @param key - lookup key to fetch cache type AuthorityMetadataEntity
129
- */
130
- getAuthorityMetadata(key: string): AuthorityMetadataEntity | null;
131
- /**
132
- * Get all authority metadata keys
133
- */
134
- getAuthorityMetadataKeys(): Array<string>;
135
- /**
136
- * set authority metadata entity to the platform cache
137
- * @param key - lookup key to fetch cache type AuthorityMetadataEntity
138
- * @param metadata - cache value to be set of type AuthorityMetadataEntity
139
- */
140
- setAuthorityMetadata(key: string, metadata: AuthorityMetadataEntity): void;
141
- /**
142
- * fetch throttling entity from the platform cache
143
- * @param throttlingCacheKey - lookup key to fetch cache type ThrottlingEntity
144
- */
145
- getThrottlingCache(throttlingCacheKey: string): ThrottlingEntity | null;
146
- /**
147
- * set throttling entity to the platform cache
148
- * @param throttlingCacheKey - lookup key to fetch cache type ThrottlingEntity
149
- * @param throttlingCache - cache value to be set of type ThrottlingEntity
150
- */
151
- setThrottlingCache(throttlingCacheKey: string, throttlingCache: ThrottlingEntity): void;
152
- /**
153
- * Removes the cache item from memory with the given key.
154
- * @param key - lookup key to remove a cache entity
155
- * @param inMemory - key value map of the cache
156
- */
157
- removeItem(key: string): boolean;
158
- /**
159
- * Remove account entity from the platform cache if it's outdated
160
- * @param accountKey - lookup key to fetch cache type AccountEntity
161
- */
162
- removeOutdatedAccount(accountKey: string): void;
163
- /**
164
- * Checks whether key is in cache.
165
- * @param key - look up key for a cache entity
166
- */
167
- containsKey(key: string): boolean;
168
- /**
169
- * Gets all keys in window.
170
- */
171
- getKeys(): string[];
172
- /**
173
- * Clears all cache entries created by MSAL except authority metadata..
174
- */
175
- clear(): void;
176
- /**
177
- * Initialize in memory cache from an exisiting cache vault
178
- * @param cache - blob formatted cache (JSON)
179
- */
180
- static generateInMemoryCache(cache: string): InMemoryCache;
181
- /**
182
- * retrieves the final JSON
183
- * @param inMemoryCache - itemised cache read from the JSON
184
- */
185
- static generateJsonCache(inMemoryCache: InMemoryCache): JsonCache;
186
- /**
187
- * Updates a credential's cache key if the current cache key is outdated
188
- */
189
- updateCredentialCacheKey(currentCacheKey: string, credential: ValidCredentialType): string;
190
- }
191
- //# sourceMappingURL=NodeStorage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NodeStorage.d.ts","sourceRoot":"","sources":["../../../src/cache/NodeStorage.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,SAAS,EACT,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,gBAAgB,EAChB,YAAY,EACZ,MAAM,EACN,cAAc,EACd,OAAO,EACP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