@azure/msal-node 2.13.1 → 2.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (415) hide show
  1. package/dist/cache/ITokenCache.d.ts +1 -1
  2. package/dist/cache/ITokenCache.d.ts.map +1 -1
  3. package/dist/cache/NodeStorage.d.ts +1 -1
  4. package/dist/cache/NodeStorage.d.ts.map +1 -1
  5. package/dist/cache/NodeStorage.mjs +2 -2
  6. package/dist/cache/TokenCache.d.ts +1 -1
  7. package/dist/cache/TokenCache.d.ts.map +1 -1
  8. package/dist/cache/TokenCache.mjs +2 -2
  9. package/dist/cache/distributed/DistributedCachePlugin.d.ts +1 -1
  10. package/dist/cache/distributed/DistributedCachePlugin.d.ts.map +1 -1
  11. package/dist/cache/distributed/DistributedCachePlugin.mjs +2 -2
  12. package/dist/cache/distributed/IPartitionManager.d.ts +1 -1
  13. package/dist/cache/distributed/IPartitionManager.d.ts.map +1 -1
  14. package/dist/cache/serializer/Deserializer.d.ts +1 -1
  15. package/dist/cache/serializer/Deserializer.d.ts.map +1 -1
  16. package/dist/cache/serializer/Deserializer.mjs +2 -2
  17. package/dist/cache/serializer/Serializer.d.ts +1 -1
  18. package/dist/cache/serializer/Serializer.d.ts.map +1 -1
  19. package/dist/cache/serializer/Serializer.mjs +1 -1
  20. package/dist/cache/serializer/SerializerTypes.d.ts +1 -1
  21. package/dist/cache/serializer/SerializerTypes.d.ts.map +1 -1
  22. package/dist/client/ClientApplication.d.ts +1 -1
  23. package/dist/client/ClientApplication.d.ts.map +1 -1
  24. package/dist/client/ClientApplication.mjs +2 -2
  25. package/dist/client/ClientAssertion.mjs +2 -2
  26. package/dist/client/ClientCredentialClient.d.ts +2 -2
  27. package/dist/client/ClientCredentialClient.d.ts.map +1 -1
  28. package/dist/client/ClientCredentialClient.mjs +2 -2
  29. package/dist/client/ConfidentialClientApplication.d.ts +1 -1
  30. package/dist/client/ConfidentialClientApplication.d.ts.map +1 -1
  31. package/dist/client/ConfidentialClientApplication.mjs +2 -2
  32. package/dist/client/DeviceCodeClient.d.ts +1 -1
  33. package/dist/client/DeviceCodeClient.d.ts.map +1 -1
  34. package/dist/client/DeviceCodeClient.mjs +2 -2
  35. package/dist/client/IConfidentialClientApplication.d.ts +1 -1
  36. package/dist/client/IConfidentialClientApplication.d.ts.map +1 -1
  37. package/dist/client/IPublicClientApplication.d.ts +1 -1
  38. package/dist/client/IPublicClientApplication.d.ts.map +1 -1
  39. package/dist/client/ManagedIdentityApplication.d.ts +4 -4
  40. package/dist/client/ManagedIdentityApplication.d.ts.map +1 -1
  41. package/dist/client/ManagedIdentityApplication.mjs +2 -2
  42. package/dist/client/ManagedIdentityClient.d.ts +6 -6
  43. package/dist/client/ManagedIdentityClient.d.ts.map +1 -1
  44. package/dist/client/ManagedIdentityClient.mjs +1 -1
  45. package/dist/client/ManagedIdentitySources/AppService.d.ts +6 -6
  46. package/dist/client/ManagedIdentitySources/AppService.d.ts.map +1 -1
  47. package/dist/client/ManagedIdentitySources/AppService.mjs +1 -1
  48. package/dist/client/ManagedIdentitySources/AzureArc.d.ts +7 -7
  49. package/dist/client/ManagedIdentitySources/AzureArc.d.ts.map +1 -1
  50. package/dist/client/ManagedIdentitySources/AzureArc.mjs +2 -2
  51. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts +8 -8
  52. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +1 -1
  53. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs +2 -2
  54. package/dist/client/ManagedIdentitySources/CloudShell.d.ts +6 -6
  55. package/dist/client/ManagedIdentitySources/CloudShell.d.ts.map +1 -1
  56. package/dist/client/ManagedIdentitySources/CloudShell.mjs +1 -1
  57. package/dist/client/ManagedIdentitySources/Imds.d.ts +6 -6
  58. package/dist/client/ManagedIdentitySources/Imds.d.ts.map +1 -1
  59. package/dist/client/ManagedIdentitySources/Imds.mjs +1 -1
  60. package/dist/client/ManagedIdentitySources/ServiceFabric.d.ts +6 -6
  61. package/dist/client/ManagedIdentitySources/ServiceFabric.d.ts.map +1 -1
  62. package/dist/client/ManagedIdentitySources/ServiceFabric.mjs +1 -1
  63. package/dist/client/OnBehalfOfClient.d.ts +1 -1
  64. package/dist/client/OnBehalfOfClient.d.ts.map +1 -1
  65. package/dist/client/OnBehalfOfClient.mjs +2 -2
  66. package/dist/client/PublicClientApplication.d.ts +1 -1
  67. package/dist/client/PublicClientApplication.d.ts.map +1 -1
  68. package/dist/client/PublicClientApplication.mjs +2 -2
  69. package/dist/client/UsernamePasswordClient.d.ts +1 -1
  70. package/dist/client/UsernamePasswordClient.d.ts.map +1 -1
  71. package/dist/client/UsernamePasswordClient.mjs +2 -2
  72. package/dist/config/Configuration.d.ts +3 -3
  73. package/dist/config/Configuration.d.ts.map +1 -1
  74. package/dist/config/Configuration.mjs +2 -2
  75. package/dist/config/ManagedIdentityId.d.ts +2 -2
  76. package/dist/config/ManagedIdentityId.d.ts.map +1 -1
  77. package/dist/config/ManagedIdentityId.mjs +1 -1
  78. package/dist/config/ManagedIdentityRequestParameters.d.ts +1 -1
  79. package/dist/config/ManagedIdentityRequestParameters.d.ts.map +1 -1
  80. package/dist/config/ManagedIdentityRequestParameters.mjs +2 -2
  81. package/dist/crypto/CryptoProvider.d.ts +1 -1
  82. package/dist/crypto/CryptoProvider.d.ts.map +1 -1
  83. package/dist/crypto/CryptoProvider.mjs +1 -1
  84. package/dist/crypto/GuidGenerator.d.ts +1 -1
  85. package/dist/crypto/GuidGenerator.d.ts.map +1 -1
  86. package/dist/crypto/GuidGenerator.mjs +1 -1
  87. package/dist/crypto/HashUtils.d.ts +1 -1
  88. package/dist/crypto/HashUtils.mjs +1 -1
  89. package/dist/crypto/PkceGenerator.d.ts +1 -1
  90. package/dist/crypto/PkceGenerator.d.ts.map +1 -1
  91. package/dist/crypto/PkceGenerator.mjs +2 -2
  92. package/dist/error/ManagedIdentityError.d.ts +2 -2
  93. package/dist/error/ManagedIdentityError.d.ts.map +1 -1
  94. package/dist/error/ManagedIdentityError.mjs +2 -2
  95. package/dist/error/ManagedIdentityErrorCodes.mjs +1 -1
  96. package/dist/error/NodeAuthError.d.ts +1 -1
  97. package/dist/error/NodeAuthError.d.ts.map +1 -1
  98. package/dist/error/NodeAuthError.mjs +2 -2
  99. package/dist/index.d.ts +1 -1
  100. package/dist/index.d.ts.map +1 -1
  101. package/dist/index.mjs +2 -2
  102. package/dist/internals.mjs +1 -1
  103. package/dist/network/HttpClient.d.ts +3 -3
  104. package/dist/network/HttpClient.d.ts.map +1 -1
  105. package/dist/network/HttpClient.mjs +2 -2
  106. package/dist/network/HttpClientWithRetries.d.ts +2 -2
  107. package/dist/network/HttpClientWithRetries.d.ts.map +1 -1
  108. package/dist/network/HttpClientWithRetries.mjs +2 -2
  109. package/dist/network/ILoopbackClient.d.ts +1 -1
  110. package/dist/network/ILoopbackClient.d.ts.map +1 -1
  111. package/dist/network/LoopbackClient.d.ts +1 -1
  112. package/dist/network/LoopbackClient.d.ts.map +1 -1
  113. package/dist/network/LoopbackClient.mjs +2 -2
  114. package/dist/packageMetadata.d.ts +1 -1
  115. package/dist/packageMetadata.mjs +2 -2
  116. package/dist/request/AuthorizationCodeRequest.d.ts +1 -1
  117. package/dist/request/AuthorizationCodeRequest.d.ts.map +1 -1
  118. package/dist/request/AuthorizationUrlRequest.d.ts +1 -1
  119. package/dist/request/AuthorizationUrlRequest.d.ts.map +1 -1
  120. package/dist/request/ClientCredentialRequest.d.ts +1 -1
  121. package/dist/request/ClientCredentialRequest.d.ts.map +1 -1
  122. package/dist/request/DeviceCodeRequest.d.ts +1 -1
  123. package/dist/request/DeviceCodeRequest.d.ts.map +1 -1
  124. package/dist/request/InteractiveRequest.d.ts +1 -1
  125. package/dist/request/ManagedIdentityRequest.d.ts +2 -2
  126. package/dist/request/ManagedIdentityRequest.d.ts.map +1 -1
  127. package/dist/request/OnBehalfOfRequest.d.ts +1 -1
  128. package/dist/request/OnBehalfOfRequest.d.ts.map +1 -1
  129. package/dist/request/RefreshTokenRequest.d.ts +1 -1
  130. package/dist/request/RefreshTokenRequest.d.ts.map +1 -1
  131. package/dist/request/SignOutRequest.d.ts +1 -1
  132. package/dist/request/SignOutRequest.d.ts.map +1 -1
  133. package/dist/request/SilentFlowRequest.d.ts +1 -1
  134. package/dist/request/SilentFlowRequest.d.ts.map +1 -1
  135. package/dist/request/UsernamePasswordRequest.d.ts +1 -1
  136. package/dist/request/UsernamePasswordRequest.d.ts.map +1 -1
  137. package/dist/response/ManagedIdentityTokenResponse.d.ts +1 -1
  138. package/dist/response/ManagedIdentityTokenResponse.d.ts.map +1 -1
  139. package/dist/retry/IHttpRetryPolicy.d.ts +1 -1
  140. package/dist/retry/LinearRetryPolicy.d.ts +2 -2
  141. package/dist/retry/LinearRetryPolicy.d.ts.map +1 -1
  142. package/dist/retry/LinearRetryPolicy.mjs +1 -1
  143. package/dist/utils/Constants.mjs +2 -2
  144. package/dist/utils/EncodingUtils.d.ts +1 -1
  145. package/dist/utils/EncodingUtils.mjs +2 -2
  146. package/dist/utils/NetworkUtils.d.ts +1 -1
  147. package/dist/utils/NetworkUtils.d.ts.map +1 -1
  148. package/dist/utils/NetworkUtils.mjs +1 -1
  149. package/dist/utils/NetworkUtils.mjs.map +1 -1
  150. package/lib/msal-node.cjs +12362 -0
  151. package/lib/msal-node.cjs.map +1 -0
  152. package/lib/package.json +1 -0
  153. package/lib/types/cache/ITokenCache.d.ts +16 -0
  154. package/lib/types/cache/ITokenCache.d.ts.map +1 -0
  155. package/lib/types/cache/NodeStorage.d.ts +194 -0
  156. package/lib/types/cache/NodeStorage.d.ts.map +1 -0
  157. package/lib/types/cache/TokenCache.d.ts +91 -0
  158. package/lib/types/cache/TokenCache.d.ts.map +1 -0
  159. package/lib/types/cache/distributed/DistributedCachePlugin.d.ts +11 -0
  160. package/lib/types/cache/distributed/DistributedCachePlugin.d.ts.map +1 -0
  161. package/lib/types/cache/distributed/ICacheClient.d.ts +18 -0
  162. package/lib/types/cache/distributed/ICacheClient.d.ts.map +1 -0
  163. package/lib/types/cache/distributed/IPartitionManager.d.ts +29 -0
  164. package/lib/types/cache/distributed/IPartitionManager.d.ts.map +1 -0
  165. package/lib/types/cache/serializer/Deserializer.d.ts +43 -0
  166. package/lib/types/cache/serializer/Deserializer.d.ts.map +1 -0
  167. package/lib/types/cache/serializer/Serializer.d.ts +40 -0
  168. package/lib/types/cache/serializer/Serializer.d.ts.map +1 -0
  169. package/lib/types/cache/serializer/SerializerTypes.d.ts +103 -0
  170. package/lib/types/cache/serializer/SerializerTypes.d.ts.map +1 -0
  171. package/lib/types/client/ClientApplication.d.ts +144 -0
  172. package/lib/types/client/ClientApplication.d.ts.map +1 -0
  173. package/lib/types/client/ClientAssertion.d.ts +56 -0
  174. package/lib/types/client/ClientAssertion.d.ts.map +1 -0
  175. package/lib/types/client/ClientCredentialClient.d.ts +34 -0
  176. package/lib/types/client/ClientCredentialClient.d.ts.map +1 -0
  177. package/lib/types/client/ConfidentialClientApplication.d.ts +59 -0
  178. package/lib/types/client/ConfidentialClientApplication.d.ts.map +1 -0
  179. package/lib/types/client/DeviceCodeClient.d.ts +54 -0
  180. package/lib/types/client/DeviceCodeClient.d.ts.map +1 -0
  181. package/lib/types/client/IConfidentialClientApplication.d.ts +40 -0
  182. package/lib/types/client/IConfidentialClientApplication.d.ts.map +1 -0
  183. package/lib/types/client/IPublicClientApplication.d.ts +43 -0
  184. package/lib/types/client/IPublicClientApplication.d.ts.map +1 -0
  185. package/lib/types/client/ManagedIdentityApplication.d.ts +31 -0
  186. package/lib/types/client/ManagedIdentityApplication.d.ts.map +1 -0
  187. package/lib/types/client/ManagedIdentityClient.d.ts +28 -0
  188. package/lib/types/client/ManagedIdentityClient.d.ts.map +1 -0
  189. package/lib/types/client/ManagedIdentitySources/AppService.d.ts +18 -0
  190. package/lib/types/client/ManagedIdentitySources/AppService.d.ts.map +1 -0
  191. package/lib/types/client/ManagedIdentitySources/AzureArc.d.ts +28 -0
  192. package/lib/types/client/ManagedIdentitySources/AzureArc.d.ts.map +1 -0
  193. package/lib/types/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts +31 -0
  194. package/lib/types/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +1 -0
  195. package/lib/types/client/ManagedIdentitySources/CloudShell.d.ts +17 -0
  196. package/lib/types/client/ManagedIdentitySources/CloudShell.d.ts.map +1 -0
  197. package/lib/types/client/ManagedIdentitySources/Imds.d.ts +13 -0
  198. package/lib/types/client/ManagedIdentitySources/Imds.d.ts.map +1 -0
  199. package/lib/types/client/ManagedIdentitySources/ServiceFabric.d.ts +18 -0
  200. package/lib/types/client/ManagedIdentitySources/ServiceFabric.d.ts.map +1 -0
  201. package/lib/types/client/OnBehalfOfClient.d.ts +48 -0
  202. package/lib/types/client/OnBehalfOfClient.d.ts.map +1 -0
  203. package/lib/types/client/PublicClientApplication.d.ts +73 -0
  204. package/lib/types/client/PublicClientApplication.d.ts.map +1 -0
  205. package/lib/types/client/UsernamePasswordClient.d.ts +26 -0
  206. package/lib/types/client/UsernamePasswordClient.d.ts.map +1 -0
  207. package/lib/types/config/Configuration.d.ts +132 -0
  208. package/lib/types/config/Configuration.d.ts.map +1 -0
  209. package/lib/types/config/ManagedIdentityId.d.ts +12 -0
  210. package/lib/types/config/ManagedIdentityId.d.ts.map +1 -0
  211. package/lib/types/config/ManagedIdentityRequestParameters.d.ts +12 -0
  212. package/lib/types/config/ManagedIdentityRequestParameters.d.ts.map +1 -0
  213. package/lib/types/crypto/CryptoProvider.d.ts +63 -0
  214. package/lib/types/crypto/CryptoProvider.d.ts.map +1 -0
  215. package/lib/types/crypto/GuidGenerator.d.ts +15 -0
  216. package/lib/types/crypto/GuidGenerator.d.ts.map +1 -0
  217. package/lib/types/crypto/HashUtils.d.ts +9 -0
  218. package/lib/types/crypto/HashUtils.d.ts.map +1 -0
  219. package/lib/types/crypto/PkceGenerator.d.ts +23 -0
  220. package/lib/types/crypto/PkceGenerator.d.ts.map +1 -0
  221. package/lib/types/error/ManagedIdentityError.d.ts +31 -0
  222. package/lib/types/error/ManagedIdentityError.d.ts.map +1 -0
  223. package/lib/types/error/ManagedIdentityErrorCodes.d.ts +23 -0
  224. package/lib/types/error/ManagedIdentityErrorCodes.d.ts.map +1 -0
  225. package/lib/types/error/NodeAuthError.d.ts +74 -0
  226. package/lib/types/error/NodeAuthError.d.ts.map +1 -0
  227. package/lib/types/index.d.ts +46 -0
  228. package/lib/types/index.d.ts.map +1 -0
  229. package/lib/types/internals.d.ts +7 -0
  230. package/lib/types/internals.d.ts.map +1 -0
  231. package/lib/types/network/HttpClient.d.ts +26 -0
  232. package/lib/types/network/HttpClient.d.ts.map +1 -0
  233. package/lib/types/network/HttpClientWithRetries.d.ts +12 -0
  234. package/lib/types/network/HttpClientWithRetries.d.ts.map +1 -0
  235. package/lib/types/network/ILoopbackClient.d.ts +11 -0
  236. package/lib/types/network/ILoopbackClient.d.ts.map +1 -0
  237. package/lib/types/network/LoopbackClient.d.ts +22 -0
  238. package/lib/types/network/LoopbackClient.d.ts.map +1 -0
  239. package/lib/types/packageMetadata.d.ts +3 -0
  240. package/lib/types/packageMetadata.d.ts.map +1 -0
  241. package/lib/types/request/AuthorizationCodeRequest.d.ts +22 -0
  242. package/lib/types/request/AuthorizationCodeRequest.d.ts.map +1 -0
  243. package/lib/types/request/AuthorizationUrlRequest.d.ts +34 -0
  244. package/lib/types/request/AuthorizationUrlRequest.d.ts.map +1 -0
  245. package/lib/types/request/ClientCredentialRequest.d.ts +15 -0
  246. package/lib/types/request/ClientCredentialRequest.d.ts.map +1 -0
  247. package/lib/types/request/DeviceCodeRequest.d.ts +16 -0
  248. package/lib/types/request/DeviceCodeRequest.d.ts.map +1 -0
  249. package/lib/types/request/InteractiveRequest.d.ts +23 -0
  250. package/lib/types/request/InteractiveRequest.d.ts.map +1 -0
  251. package/lib/types/request/ManagedIdentityRequest.d.ts +9 -0
  252. package/lib/types/request/ManagedIdentityRequest.d.ts.map +1 -0
  253. package/lib/types/request/ManagedIdentityRequestParams.d.ts +10 -0
  254. package/lib/types/request/ManagedIdentityRequestParams.d.ts.map +1 -0
  255. package/lib/types/request/OnBehalfOfRequest.d.ts +15 -0
  256. package/lib/types/request/OnBehalfOfRequest.d.ts.map +1 -0
  257. package/lib/types/request/RefreshTokenRequest.d.ts +18 -0
  258. package/lib/types/request/RefreshTokenRequest.d.ts.map +1 -0
  259. package/lib/types/request/SignOutRequest.d.ts +6 -0
  260. package/lib/types/request/SignOutRequest.d.ts.map +1 -0
  261. package/lib/types/request/SilentFlowRequest.d.ts +17 -0
  262. package/lib/types/request/SilentFlowRequest.d.ts.map +1 -0
  263. package/lib/types/request/UsernamePasswordRequest.d.ts +20 -0
  264. package/lib/types/request/UsernamePasswordRequest.d.ts.map +1 -0
  265. package/lib/types/response/ManagedIdentityTokenResponse.d.ts +35 -0
  266. package/lib/types/response/ManagedIdentityTokenResponse.d.ts.map +1 -0
  267. package/lib/types/retry/IHttpRetryPolicy.d.ts +6 -0
  268. package/lib/types/retry/IHttpRetryPolicy.d.ts.map +1 -0
  269. package/lib/types/retry/LinearRetryPolicy.d.ts +12 -0
  270. package/lib/types/retry/LinearRetryPolicy.d.ts.map +1 -0
  271. package/lib/types/utils/Constants.d.ts +142 -0
  272. package/lib/types/utils/Constants.d.ts.map +1 -0
  273. package/lib/types/utils/EncodingUtils.d.ts +27 -0
  274. package/lib/types/utils/EncodingUtils.d.ts.map +1 -0
  275. package/lib/types/utils/NetworkUtils.d.ts +6 -0
  276. package/lib/types/utils/NetworkUtils.d.ts.map +1 -0
  277. package/package.json +13 -10
  278. package/src/cache/ITokenCache.ts +1 -1
  279. package/src/cache/NodeStorage.ts +1 -1
  280. package/src/cache/TokenCache.ts +1 -1
  281. package/src/cache/distributed/DistributedCachePlugin.ts +1 -1
  282. package/src/cache/distributed/IPartitionManager.ts +1 -1
  283. package/src/cache/serializer/Deserializer.ts +1 -1
  284. package/src/cache/serializer/Serializer.ts +1 -1
  285. package/src/cache/serializer/SerializerTypes.ts +1 -1
  286. package/src/client/ClientApplication.ts +1 -1
  287. package/src/client/ClientAssertion.ts +1 -1
  288. package/src/client/ClientCredentialClient.ts +2 -2
  289. package/src/client/ConfidentialClientApplication.ts +1 -1
  290. package/src/client/DeviceCodeClient.ts +1 -1
  291. package/src/client/IConfidentialClientApplication.ts +1 -1
  292. package/src/client/IPublicClientApplication.ts +5 -1
  293. package/src/client/ManagedIdentityApplication.ts +9 -9
  294. package/src/client/ManagedIdentityClient.ts +13 -13
  295. package/src/client/ManagedIdentitySources/AppService.ts +7 -7
  296. package/src/client/ManagedIdentitySources/AzureArc.ts +9 -9
  297. package/src/client/ManagedIdentitySources/BaseManagedIdentitySource.ts +9 -9
  298. package/src/client/ManagedIdentitySources/CloudShell.ts +8 -8
  299. package/src/client/ManagedIdentitySources/Imds.ts +7 -7
  300. package/src/client/ManagedIdentitySources/ServiceFabric.ts +7 -7
  301. package/src/client/OnBehalfOfClient.ts +2 -2
  302. package/src/client/PublicClientApplication.ts +2 -2
  303. package/src/client/UsernamePasswordClient.ts +1 -1
  304. package/src/config/Configuration.ts +1 -1
  305. package/src/config/ManagedIdentityId.ts +3 -3
  306. package/src/config/ManagedIdentityRequestParameters.ts +2 -2
  307. package/src/crypto/CryptoProvider.ts +1 -1
  308. package/src/crypto/GuidGenerator.ts +1 -1
  309. package/src/crypto/PkceGenerator.ts +1 -1
  310. package/src/error/ManagedIdentityError.ts +3 -3
  311. package/src/error/ManagedIdentityErrorCodes.ts +1 -1
  312. package/src/error/NodeAuthError.ts +1 -1
  313. package/src/index.ts +1 -1
  314. package/src/network/HttpClient.ts +1 -1
  315. package/src/network/HttpClientWithRetries.ts +3 -3
  316. package/src/network/ILoopbackClient.ts +1 -1
  317. package/src/network/LoopbackClient.ts +1 -1
  318. package/src/packageMetadata.ts +1 -1
  319. package/src/request/AuthorizationCodeRequest.ts +1 -1
  320. package/src/request/AuthorizationUrlRequest.ts +1 -1
  321. package/src/request/ClientCredentialRequest.ts +1 -1
  322. package/src/request/DeviceCodeRequest.ts +1 -1
  323. package/src/request/ManagedIdentityRequest.ts +2 -2
  324. package/src/request/OnBehalfOfRequest.ts +1 -1
  325. package/src/request/RefreshTokenRequest.ts +1 -1
  326. package/src/request/SignOutRequest.ts +1 -1
  327. package/src/request/SilentFlowRequest.ts +1 -1
  328. package/src/request/UsernamePasswordRequest.ts +1 -1
  329. package/src/response/ManagedIdentityTokenResponse.ts +1 -1
  330. package/src/retry/LinearRetryPolicy.ts +1 -1
  331. package/src/utils/Constants.ts +1 -1
  332. package/src/utils/EncodingUtils.ts +1 -1
  333. package/src/utils/NetworkUtils.ts +4 -1
  334. package/dist/cache/NodeStorage.cjs +0 -434
  335. package/dist/cache/NodeStorage.cjs.map +0 -1
  336. package/dist/cache/TokenCache.cjs +0 -276
  337. package/dist/cache/TokenCache.cjs.map +0 -1
  338. package/dist/cache/distributed/DistributedCachePlugin.cjs +0 -35
  339. package/dist/cache/distributed/DistributedCachePlugin.cjs.map +0 -1
  340. package/dist/cache/serializer/Deserializer.cjs +0 -176
  341. package/dist/cache/serializer/Deserializer.cjs.map +0 -1
  342. package/dist/cache/serializer/Serializer.cjs +0 -144
  343. package/dist/cache/serializer/Serializer.cjs.map +0 -1
  344. package/dist/client/ClientApplication.cjs +0 -352
  345. package/dist/client/ClientApplication.cjs.map +0 -1
  346. package/dist/client/ClientAssertion.cjs +0 -155
  347. package/dist/client/ClientAssertion.cjs.map +0 -1
  348. package/dist/client/ClientCredentialClient.cjs +0 -203
  349. package/dist/client/ClientCredentialClient.cjs.map +0 -1
  350. package/dist/client/ConfidentialClientApplication.cjs +0 -183
  351. package/dist/client/ConfidentialClientApplication.cjs.map +0 -1
  352. package/dist/client/DeviceCodeClient.cjs +0 -216
  353. package/dist/client/DeviceCodeClient.cjs.map +0 -1
  354. package/dist/client/ManagedIdentityApplication.cjs +0 -100
  355. package/dist/client/ManagedIdentityApplication.cjs.map +0 -1
  356. package/dist/client/ManagedIdentityClient.cjs +0 -76
  357. package/dist/client/ManagedIdentityClient.cjs.map +0 -1
  358. package/dist/client/ManagedIdentitySources/AppService.cjs +0 -56
  359. package/dist/client/ManagedIdentitySources/AppService.cjs.map +0 -1
  360. package/dist/client/ManagedIdentitySources/AzureArc.cjs +0 -173
  361. package/dist/client/ManagedIdentitySources/AzureArc.cjs.map +0 -1
  362. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.cjs +0 -135
  363. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.cjs.map +0 -1
  364. package/dist/client/ManagedIdentitySources/CloudShell.cjs +0 -51
  365. package/dist/client/ManagedIdentitySources/CloudShell.cjs.map +0 -1
  366. package/dist/client/ManagedIdentitySources/Imds.cjs +0 -54
  367. package/dist/client/ManagedIdentitySources/Imds.cjs.map +0 -1
  368. package/dist/client/ManagedIdentitySources/ServiceFabric.cjs +0 -65
  369. package/dist/client/ManagedIdentitySources/ServiceFabric.cjs.map +0 -1
  370. package/dist/client/OnBehalfOfClient.cjs +0 -212
  371. package/dist/client/OnBehalfOfClient.cjs.map +0 -1
  372. package/dist/client/PublicClientApplication.cjs +0 -252
  373. package/dist/client/PublicClientApplication.cjs.map +0 -1
  374. package/dist/client/UsernamePasswordClient.cjs +0 -104
  375. package/dist/client/UsernamePasswordClient.cjs.map +0 -1
  376. package/dist/config/Configuration.cjs +0 -122
  377. package/dist/config/Configuration.cjs.map +0 -1
  378. package/dist/config/ManagedIdentityId.cjs +0 -59
  379. package/dist/config/ManagedIdentityId.cjs.map +0 -1
  380. package/dist/config/ManagedIdentityRequestParameters.cjs +0 -37
  381. package/dist/config/ManagedIdentityRequestParameters.cjs.map +0 -1
  382. package/dist/crypto/CryptoProvider.cjs +0 -101
  383. package/dist/crypto/CryptoProvider.cjs.map +0 -1
  384. package/dist/crypto/GuidGenerator.cjs +0 -31
  385. package/dist/crypto/GuidGenerator.cjs.map +0 -1
  386. package/dist/crypto/HashUtils.cjs +0 -23
  387. package/dist/crypto/HashUtils.cjs.map +0 -1
  388. package/dist/crypto/PkceGenerator.cjs +0 -62
  389. package/dist/crypto/PkceGenerator.cjs.map +0 -1
  390. package/dist/error/ManagedIdentityError.cjs +0 -54
  391. package/dist/error/ManagedIdentityError.cjs.map +0 -1
  392. package/dist/error/ManagedIdentityErrorCodes.cjs +0 -47
  393. package/dist/error/ManagedIdentityErrorCodes.cjs.map +0 -1
  394. package/dist/error/NodeAuthError.cjs +0 -105
  395. package/dist/error/NodeAuthError.cjs.map +0 -1
  396. package/dist/index.cjs +0 -123
  397. package/dist/index.cjs.map +0 -1
  398. package/dist/internals.cjs +0 -19
  399. package/dist/internals.cjs.map +0 -1
  400. package/dist/network/HttpClient.cjs +0 -294
  401. package/dist/network/HttpClient.cjs.map +0 -1
  402. package/dist/network/HttpClientWithRetries.cjs +0 -44
  403. package/dist/network/HttpClientWithRetries.cjs.map +0 -1
  404. package/dist/network/LoopbackClient.cjs +0 -93
  405. package/dist/network/LoopbackClient.cjs.map +0 -1
  406. package/dist/packageMetadata.cjs +0 -11
  407. package/dist/packageMetadata.cjs.map +0 -1
  408. package/dist/retry/LinearRetryPolicy.cjs +0 -47
  409. package/dist/retry/LinearRetryPolicy.cjs.map +0 -1
  410. package/dist/utils/Constants.cjs +0 -170
  411. package/dist/utils/Constants.cjs.map +0 -1
  412. package/dist/utils/EncodingUtils.cjs +0 -53
  413. package/dist/utils/EncodingUtils.cjs.map +0 -1
  414. package/dist/utils/NetworkUtils.cjs +0 -45
  415. package/dist/utils/NetworkUtils.cjs.map +0 -1
@@ -1,51 +0,0 @@
1
- /*! @azure/msal-node v2.13.1 2024-08-29 */
2
- 'use strict';
3
- 'use strict';
4
-
5
- var ManagedIdentityRequestParameters = require('../../config/ManagedIdentityRequestParameters.cjs');
6
- var BaseManagedIdentitySource = require('./BaseManagedIdentitySource.cjs');
7
- var Constants = require('../../utils/Constants.cjs');
8
- var ManagedIdentityError = require('../../error/ManagedIdentityError.cjs');
9
- var ManagedIdentityErrorCodes = require('../../error/ManagedIdentityErrorCodes.cjs');
10
-
11
- /*
12
- * Copyright (c) Microsoft Corporation. All rights reserved.
13
- * Licensed under the MIT License.
14
- */
15
- /**
16
- * Original source of code: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/src/CloudShellManagedIdentitySource.cs
17
- */
18
- class CloudShell extends BaseManagedIdentitySource.BaseManagedIdentitySource {
19
- constructor(logger, nodeStorage, networkClient, cryptoProvider, msiEndpoint) {
20
- super(logger, nodeStorage, networkClient, cryptoProvider);
21
- this.msiEndpoint = msiEndpoint;
22
- }
23
- static getEnvironmentVariables() {
24
- const msiEndpoint = process.env[Constants.ManagedIdentityEnvironmentVariableNames.MSI_ENDPOINT];
25
- return [msiEndpoint];
26
- }
27
- static tryCreate(logger, nodeStorage, networkClient, cryptoProvider, managedIdentityId) {
28
- const [msiEndpoint] = CloudShell.getEnvironmentVariables();
29
- // if the msi endpoint environment variable is undefined, this MSI provider is unavailable.
30
- if (!msiEndpoint) {
31
- logger.info(`[Managed Identity] ${Constants.ManagedIdentitySourceNames.CLOUD_SHELL} managed identity is unavailable because the '${Constants.ManagedIdentityEnvironmentVariableNames.MSI_ENDPOINT} environment variable is not defined.`);
32
- return null;
33
- }
34
- const validatedMsiEndpoint = CloudShell.getValidatedEnvVariableUrlString(Constants.ManagedIdentityEnvironmentVariableNames.MSI_ENDPOINT, msiEndpoint, Constants.ManagedIdentitySourceNames.CLOUD_SHELL, logger);
35
- logger.info(`[Managed Identity] Environment variable validation passed for ${Constants.ManagedIdentitySourceNames.CLOUD_SHELL} managed identity. Endpoint URI: ${validatedMsiEndpoint}. Creating ${Constants.ManagedIdentitySourceNames.CLOUD_SHELL} managed identity.`);
36
- if (managedIdentityId.idType !== Constants.ManagedIdentityIdType.SYSTEM_ASSIGNED) {
37
- throw ManagedIdentityError.createManagedIdentityError(ManagedIdentityErrorCodes.unableToCreateCloudShell);
38
- }
39
- return new CloudShell(logger, nodeStorage, networkClient, cryptoProvider, msiEndpoint);
40
- }
41
- createRequest(resource) {
42
- const request = new ManagedIdentityRequestParameters.ManagedIdentityRequestParameters(Constants.HttpMethod.POST, this.msiEndpoint);
43
- request.headers[Constants.METADATA_HEADER_NAME] = "true";
44
- request.bodyParameters[Constants.RESOURCE_BODY_OR_QUERY_PARAMETER_NAME] =
45
- resource;
46
- return request;
47
- }
48
- }
49
-
50
- exports.CloudShell = CloudShell;
51
- //# sourceMappingURL=CloudShell.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CloudShell.cjs","sources":["../../../src/client/ManagedIdentitySources/CloudShell.ts"],"sourcesContent":[null],"names":["BaseManagedIdentitySource","ManagedIdentityEnvironmentVariableNames","ManagedIdentitySourceNames","ManagedIdentityIdType","createManagedIdentityError","ManagedIdentityErrorCodes.unableToCreateCloudShell","ManagedIdentityRequestParameters","HttpMethod","METADATA_HEADER_NAME","RESOURCE_BODY_OR_QUERY_PARAMETER_NAME"],"mappings":";;;;;;;;;;AAAA;;;AAGG;AAqBH;;AAEG;AACG,MAAO,UAAW,SAAQA,mDAAyB,CAAA;IAGrD,WACI,CAAA,MAAc,EACd,WAAwB,EACxB,aAA6B,EAC7B,cAA8B,EAC9B,WAAmB,EAAA;QAEnB,KAAK,CAAC,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc,CAAC,CAAC;AAE1D,QAAA,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;KAClC;AAEM,IAAA,OAAO,uBAAuB,GAAA;QACjC,MAAM,WAAW,GACb,OAAO,CAAC,GAAG,CAACC,iDAAuC,CAAC,YAAY,CAAC,CAAC;QAEtE,OAAO,CAAC,WAAW,CAAC,CAAC;KACxB;IAEM,OAAO,SAAS,CACnB,MAAc,EACd,WAAwB,EACxB,aAA6B,EAC7B,cAA8B,EAC9B,iBAAoC,EAAA;QAEpC,MAAM,CAAC,WAAW,CAAC,GAAG,UAAU,CAAC,uBAAuB,EAAE,CAAC;;QAG3D,IAAI,CAAC,WAAW,EAAE;AACd,YAAA,MAAM,CAAC,IAAI,CACP,CAAA,mBAAA,EAAsBC,oCAA0B,CAAC,WAAW,CAAA,8CAAA,EAAiDD,iDAAuC,CAAC,YAAY,CAAA,qCAAA,CAAuC,CAC3M,CAAC;AACF,YAAA,OAAO,IAAI,CAAC;AACf,SAAA;AAED,QAAA,MAAM,oBAAoB,GACtB,UAAU,CAAC,gCAAgC,CACvCA,iDAAuC,CAAC,YAAY,EACpD,WAAW,EACXC,oCAA0B,CAAC,WAAW,EACtC,MAAM,CACT,CAAC;AAEN,QAAA,MAAM,CAAC,IAAI,CACP,CAAA,8DAAA,EAAiEA,oCAA0B,CAAC,WAAW,CAAoC,iCAAA,EAAA,oBAAoB,cAAcA,oCAA0B,CAAC,WAAW,CAAA,kBAAA,CAAoB,CAC1O,CAAC;AAEF,QAAA,IACI,iBAAiB,CAAC,MAAM,KAAKC,+BAAqB,CAAC,eAAe,EACpE;AACE,YAAA,MAAMC,+CAA0B,CAC5BC,kDAAkD,CACrD,CAAC;AACL,SAAA;AAED,QAAA,OAAO,IAAI,UAAU,CACjB,MAAM,EACN,WAAW,EACX,aAAa,EACb,cAAc,EACd,WAAW,CACd,CAAC;KACL;AAEM,IAAA,aAAa,CAAC,QAAgB,EAAA;AACjC,QAAA,MAAM,OAAO,GACT,IAAIC,iEAAgC,CAChCC,oBAAU,CAAC,IAAI,EACf,IAAI,CAAC,WAAW,CACnB,CAAC;AAEN,QAAA,OAAO,CAAC,OAAO,CAACC,8BAAoB,CAAC,GAAG,MAAM,CAAC;AAE/C,QAAA,OAAO,CAAC,cAAc,CAACC,+CAAqC,CAAC;AACzD,YAAA,QAAQ,CAAC;AAEb,QAAA,OAAO,OAAO,CAAC;KAClB;AACJ;;;;"}
@@ -1,54 +0,0 @@
1
- /*! @azure/msal-node v2.13.1 2024-08-29 */
2
- 'use strict';
3
- 'use strict';
4
-
5
- var ManagedIdentityRequestParameters = require('../../config/ManagedIdentityRequestParameters.cjs');
6
- var BaseManagedIdentitySource = require('./BaseManagedIdentitySource.cjs');
7
- var Constants = require('../../utils/Constants.cjs');
8
-
9
- /*
10
- * Copyright (c) Microsoft Corporation. All rights reserved.
11
- * Licensed under the MIT License.
12
- */
13
- // IMDS constants. Docs for IMDS are available here https://docs.microsoft.com/azure/active-directory/managed-identities-azure-resources/how-to-use-vm-token#get-a-token-using-http
14
- const IMDS_TOKEN_PATH = "/metadata/identity/oauth2/token";
15
- const DEFAULT_IMDS_ENDPOINT = `http://169.254.169.254${IMDS_TOKEN_PATH}`;
16
- const IMDS_API_VERSION = "2018-02-01";
17
- // Original source of code: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/src/ImdsManagedIdentitySource.cs
18
- class Imds extends BaseManagedIdentitySource.BaseManagedIdentitySource {
19
- constructor(logger, nodeStorage, networkClient, cryptoProvider, identityEndpoint) {
20
- super(logger, nodeStorage, networkClient, cryptoProvider);
21
- this.identityEndpoint = identityEndpoint;
22
- }
23
- static tryCreate(logger, nodeStorage, networkClient, cryptoProvider) {
24
- let validatedIdentityEndpoint;
25
- if (process.env[Constants.ManagedIdentityEnvironmentVariableNames
26
- .AZURE_POD_IDENTITY_AUTHORITY_HOST]) {
27
- logger.info(`[Managed Identity] Environment variable ${Constants.ManagedIdentityEnvironmentVariableNames.AZURE_POD_IDENTITY_AUTHORITY_HOST} for ${Constants.ManagedIdentitySourceNames.IMDS} returned endpoint: ${process.env[Constants.ManagedIdentityEnvironmentVariableNames
28
- .AZURE_POD_IDENTITY_AUTHORITY_HOST]}`);
29
- validatedIdentityEndpoint = Imds.getValidatedEnvVariableUrlString(Constants.ManagedIdentityEnvironmentVariableNames.AZURE_POD_IDENTITY_AUTHORITY_HOST, `${process.env[Constants.ManagedIdentityEnvironmentVariableNames
30
- .AZURE_POD_IDENTITY_AUTHORITY_HOST]}${IMDS_TOKEN_PATH}`, Constants.ManagedIdentitySourceNames.IMDS, logger);
31
- }
32
- else {
33
- logger.info(`[Managed Identity] Unable to find ${Constants.ManagedIdentityEnvironmentVariableNames.AZURE_POD_IDENTITY_AUTHORITY_HOST} environment variable for ${Constants.ManagedIdentitySourceNames.IMDS}, using the default endpoint.`);
34
- validatedIdentityEndpoint = DEFAULT_IMDS_ENDPOINT;
35
- }
36
- return new Imds(logger, nodeStorage, networkClient, cryptoProvider, validatedIdentityEndpoint);
37
- }
38
- createRequest(resource, managedIdentityId) {
39
- const request = new ManagedIdentityRequestParameters.ManagedIdentityRequestParameters(Constants.HttpMethod.GET, this.identityEndpoint);
40
- request.headers[Constants.METADATA_HEADER_NAME] = "true";
41
- request.queryParameters[Constants.API_VERSION_QUERY_PARAMETER_NAME] =
42
- IMDS_API_VERSION;
43
- request.queryParameters[Constants.RESOURCE_BODY_OR_QUERY_PARAMETER_NAME] =
44
- resource;
45
- if (managedIdentityId.idType !== Constants.ManagedIdentityIdType.SYSTEM_ASSIGNED) {
46
- request.queryParameters[this.getManagedIdentityUserAssignedIdQueryParameterKey(managedIdentityId.idType)] = managedIdentityId.id;
47
- }
48
- // bodyParameters calculated in BaseManagedIdentity.acquireTokenWithManagedIdentity
49
- return request;
50
- }
51
- }
52
-
53
- exports.Imds = Imds;
54
- //# sourceMappingURL=Imds.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Imds.cjs","sources":["../../../src/client/ManagedIdentitySources/Imds.ts"],"sourcesContent":[null],"names":["BaseManagedIdentitySource","ManagedIdentityEnvironmentVariableNames","ManagedIdentitySourceNames","ManagedIdentityRequestParameters","HttpMethod","METADATA_HEADER_NAME","API_VERSION_QUERY_PARAMETER_NAME","RESOURCE_BODY_OR_QUERY_PARAMETER_NAME","ManagedIdentityIdType"],"mappings":";;;;;;;;AAAA;;;AAGG;AAkBH;AACA,MAAM,eAAe,GAAW,iCAAiC,CAAC;AAClE,MAAM,qBAAqB,GAAW,CAAyB,sBAAA,EAAA,eAAe,EAAE,CAAC;AAEjF,MAAM,gBAAgB,GAAW,YAAY,CAAC;AAE9C;AACM,MAAO,IAA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ChB,iBAAoC,EAAA;AAEpC,QAAA,MAAM,OAAO,GACT,IAAIC,iEAAgC,CAChCC,oBAAU,CAAC,GAAG,EACd,IAAI,CAAC,gBAAgB,CACxB,CAAC;AAEN,QAAA,OAAO,CAAC,OAAO,CAACC,8BAAoB,CAAC,GAAG,MAAM,CAAC;AAE/C,QAAA,OAAO,CAAC,eAAe,CAACC,0CAAgC,CAAC;AACrD,YAAA,gBAAgB,CAAC;AACrB,QAAA,OAAO,CAAC,eAAe,CAACC,+CAAqC,CAAC;AAC1D,YAAA,QAAQ,CAAC;AAEb,QAAA,IACI,iBAAiB,CAAC,MAAM,KAAKC,+BAAqB,CAAC,eAAe,EACpE;AACE,YAAA,OAAO,CAAC,eAAe,CACnB,IAAI,CAAC,iDAAiD,CAClD,iBAAiB,CAAC,MAAM,CAC3B,CACJ,GAAG,iBAAiB,CAAC,EAAE,CAAC;AAC5B,SAAA;;AAID,QAAA,OAAO,OAAO,CAAC;KAClB;AACJ;;;;"}
@@ -1,65 +0,0 @@
1
- /*! @azure/msal-node v2.13.1 2024-08-29 */
2
- 'use strict';
3
- 'use strict';
4
-
5
- var ManagedIdentityRequestParameters = require('../../config/ManagedIdentityRequestParameters.cjs');
6
- var BaseManagedIdentitySource = require('./BaseManagedIdentitySource.cjs');
7
- var Constants = require('../../utils/Constants.cjs');
8
-
9
- /*
10
- * Copyright (c) Microsoft Corporation. All rights reserved.
11
- * Licensed under the MIT License.
12
- */
13
- // MSI Constants. Docs for MSI are available here https://docs.microsoft.com/azure/app-service/overview-managed-identity
14
- const SERVICE_FABRIC_MSI_API_VERSION = "2019-07-01-preview";
15
- /**
16
- * Original source of code: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/src/ServiceFabricManagedIdentitySource.cs
17
- */
18
- class ServiceFabric extends BaseManagedIdentitySource.BaseManagedIdentitySource {
19
- constructor(logger, nodeStorage, networkClient, cryptoProvider, identityEndpoint, identityHeader) {
20
- super(logger, nodeStorage, networkClient, cryptoProvider);
21
- this.identityEndpoint = identityEndpoint;
22
- this.identityHeader = identityHeader;
23
- }
24
- static getEnvironmentVariables() {
25
- const identityEndpoint = process.env[Constants.ManagedIdentityEnvironmentVariableNames.IDENTITY_ENDPOINT];
26
- const identityHeader = process.env[Constants.ManagedIdentityEnvironmentVariableNames.IDENTITY_HEADER];
27
- const identityServerThumbprint = process.env[Constants.ManagedIdentityEnvironmentVariableNames
28
- .IDENTITY_SERVER_THUMBPRINT];
29
- return [identityEndpoint, identityHeader, identityServerThumbprint];
30
- }
31
- static tryCreate(logger, nodeStorage, networkClient, cryptoProvider, managedIdentityId) {
32
- const [identityEndpoint, identityHeader, identityServerThumbprint] = ServiceFabric.getEnvironmentVariables();
33
- /*
34
- * if either of the identity endpoint, identity header, or identity server thumbprint
35
- * environment variables are undefined, this MSI provider is unavailable.
36
- */
37
- if (!identityEndpoint || !identityHeader || !identityServerThumbprint) {
38
- logger.info(`[Managed Identity] ${Constants.ManagedIdentitySourceNames.SERVICE_FABRIC} managed identity is unavailable because one or all of the '${Constants.ManagedIdentityEnvironmentVariableNames.IDENTITY_HEADER}', '${Constants.ManagedIdentityEnvironmentVariableNames.IDENTITY_ENDPOINT}' or '${Constants.ManagedIdentityEnvironmentVariableNames.IDENTITY_SERVER_THUMBPRINT}' environment variables are not defined.`);
39
- return null;
40
- }
41
- const validatedIdentityEndpoint = ServiceFabric.getValidatedEnvVariableUrlString(Constants.ManagedIdentityEnvironmentVariableNames.IDENTITY_ENDPOINT, identityEndpoint, Constants.ManagedIdentitySourceNames.SERVICE_FABRIC, logger);
42
- logger.info(`[Managed Identity] Environment variables validation passed for ${Constants.ManagedIdentitySourceNames.SERVICE_FABRIC} managed identity. Endpoint URI: ${validatedIdentityEndpoint}. Creating ${Constants.ManagedIdentitySourceNames.SERVICE_FABRIC} managed identity.`);
43
- if (managedIdentityId.idType !== Constants.ManagedIdentityIdType.SYSTEM_ASSIGNED) {
44
- logger.warning(`[Managed Identity] ${Constants.ManagedIdentitySourceNames.SERVICE_FABRIC} user assigned managed identity is configured in the cluster, not during runtime. See also: https://learn.microsoft.com/en-us/azure/service-fabric/configure-existing-cluster-enable-managed-identity-token-service.`);
45
- }
46
- return new ServiceFabric(logger, nodeStorage, networkClient, cryptoProvider, identityEndpoint, identityHeader);
47
- }
48
- createRequest(resource, managedIdentityId) {
49
- const request = new ManagedIdentityRequestParameters.ManagedIdentityRequestParameters(Constants.HttpMethod.GET, this.identityEndpoint);
50
- request.headers[Constants.SERVICE_FABRIC_SECRET_HEADER_NAME] =
51
- this.identityHeader;
52
- request.queryParameters[Constants.API_VERSION_QUERY_PARAMETER_NAME] =
53
- SERVICE_FABRIC_MSI_API_VERSION;
54
- request.queryParameters[Constants.RESOURCE_BODY_OR_QUERY_PARAMETER_NAME] =
55
- resource;
56
- if (managedIdentityId.idType !== Constants.ManagedIdentityIdType.SYSTEM_ASSIGNED) {
57
- request.queryParameters[this.getManagedIdentityUserAssignedIdQueryParameterKey(managedIdentityId.idType)] = managedIdentityId.id;
58
- }
59
- // bodyParameters calculated in BaseManagedIdentity.acquireTokenWithManagedIdentity
60
- return request;
61
- }
62
- }
63
-
64
- exports.ServiceFabric = ServiceFabric;
65
- //# sourceMappingURL=ServiceFabric.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ServiceFabric.cjs","sources":["../../../src/client/ManagedIdentitySources/ServiceFabric.ts"],"sourcesContent":[null],"names":["BaseManagedIdentitySource","ManagedIdentityEnvironmentVariableNames","ManagedIdentitySourceNames","ManagedIdentityIdType","ManagedIdentityRequestParameters","HttpMethod","SERVICE_FABRIC_SECRET_HEADER_NAME","API_VERSION_QUERY_PARAMETER_NAME","RESOURCE_BODY_OR_QUERY_PARAMETER_NAME"],"mappings":";;;;;;;;AAAA;;;AAGG;AAkBH;AACA,MAAM,8BAA8B,GAAW,oBAAoB,CAAC;AAEpE;;AAEG;AACG,MAAO,aAAc,SAAQA,mDAAyB,CAAA;IAIxD,WACI,CAAA,MAAc,EAC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ure/msal-node v2.13.1 2024-08-29 */
2
- 'use strict';
3
- 'use strict';
4
-
5
- var msalCommon = require('@azure/msal-common');
6
- var EncodingUtils = require('../utils/EncodingUtils.cjs');
7
-
8
- /*
9
- * Copyright (c) Microsoft Corporation. All rights reserved.
10
- * Licensed under the MIT License.
11
- */
12
- /**
13
- * On-Behalf-Of client
14
- */
15
- class OnBehalfOfClient extends msalCommon.BaseClient {
16
- constructor(configuration) {
17
- super(configuration);
18
- }
19
- /**
20
- * Public API to acquire tokens with on behalf of flow
21
- * @param request
22
- */
23
- async acquireToken(request) {
24
- this.scopeSet = new msalCommon.ScopeSet(request.scopes || []);
25
- // generate the user_assertion_hash for OBOAssertion
26
- this.userAssertionHash = await this.cryptoUtils.hashString(request.oboAssertion);
27
- if (request.skipCache || request.claims) {
28
- return this.executeTokenRequest(request, this.authority, this.userAssertionHash);
29
- }
30
- try {
31
- return await this.getCachedAuthenticationResult(request);
32
- }
33
- catch (e) {
34
- // Any failure falls back to interactive request, once we implement distributed cache, we plan to handle `createRefreshRequiredError` to refresh using the RT
35
- return await this.executeTokenRequest(request, this.authority, this.userAssertionHash);
36
- }
37
- }
38
- /**
39
- * look up cache for tokens
40
- * Find idtoken in the cache
41
- * Find accessToken based on user assertion and account info in the cache
42
- * Please note we are not yet supported OBO tokens refreshed with long lived RT. User will have to send a new assertion if the current access token expires
43
- * This is to prevent security issues when the assertion changes over time, however, longlived RT helps retaining the session
44
- * @param request
45
- */
46
- async getCachedAuthenticationResult(request) {
47
- // look in the cache for the access_token which matches the incoming_assertion
48
- const cachedAccessToken = this.readAccessTokenFromCacheForOBO(this.config.authOptions.clientId, request);
49
- if (!cachedAccessToken) {
50
- // Must refresh due to non-existent access_token.
51
- this.serverTelemetryManager?.setCacheOutcome(msalCommon.CacheOutcome.NO_CACHED_ACCESS_TOKEN);
52
- this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties.");
53
- throw msalCommon.createClientAuthError(msalCommon.ClientAuthErrorCodes.tokenRefreshRequired);
54
- }
55
- else if (msalCommon.TimeUtils.isTokenExpired(cachedAccessToken.expiresOn, this.config.systemOptions.tokenRenewalOffsetSeconds)) {
56
- // Access token expired, will need to renewed
57
- this.serverTelemetryManager?.setCacheOutcome(msalCommon.CacheOutcome.CACHED_ACCESS_TOKEN_EXPIRED);
58
- this.logger.info(`OnbehalfofFlow:getCachedAuthenticationResult - Cached access token is expired or will expire within ${this.config.systemOptions.tokenRenewalOffsetSeconds} seconds.`);
59
- throw msalCommon.createClientAuthError(msalCommon.ClientAuthErrorCodes.tokenRefreshRequired);
60
- }
61
- // fetch the idToken from cache
62
- const cachedIdToken = this.readIdTokenFromCacheForOBO(cachedAccessToken.homeAccountId);
63
- let idTokenClaims;
64
- let cachedAccount = null;
65
- if (cachedIdToken) {
66
- idTokenClaims = msalCommon.AuthToken.extractTokenClaims(cachedIdToken.secret, EncodingUtils.EncodingUtils.base64Decode);
67
- const localAccountId = idTokenClaims.oid || idTokenClaims.sub;
68
- const accountInfo = {
69
- homeAccountId: cachedIdToken.homeAccountId,
70
- environment: cachedIdToken.environment,
71
- tenantId: cachedIdToken.realm,
72
- username: msalCommon.Constants.EMPTY_STRING,
73
- localAccountId: localAccountId || msalCommon.Constants.EMPTY_STRING,
74
- };
75
- cachedAccount = this.cacheManager.readAccountFromCache(accountInfo);
76
- }
77
- // increment telemetry cache hit counter
78
- if (this.config.serverTelemetryManager) {
79
- this.config.serverTelemetryManager.incrementCacheHits();
80
- }
81
- return msalCommon.ResponseHandler.generateAuthenticationResult(this.cryptoUtils, this.authority, {
82
- account: cachedAccount,
83
- accessToken: cachedAccessToken,
84
- idToken: cachedIdToken,
85
- refreshToken: null,
86
- appMetadata: null,
87
- }, true, request, idTokenClaims);
88
- }
89
- /**
90
- * read idtoken from cache, this is a specific implementation for OBO as the requirements differ from a generic lookup in the cacheManager
91
- * Certain use cases of OBO flow do not expect an idToken in the cache/or from the service
92
- * @param atHomeAccountId {string}
93
- */
94
- readIdTokenFromCacheForOBO(atHomeAccountId) {
95
- const idTokenFilter = {
96
- homeAccountId: atHomeAccountId,
97
- environment: this.authority.canonicalAuthorityUrlComponents.HostNameAndPort,
98
- credentialType: msalCommon.CredentialType.ID_TOKEN,
99
- clientId: this.config.authOptions.clientId,
100
- realm: this.authority.tenant,
101
- };
102
- const idTokenMap = this.cacheManager.getIdTokensByFilter(idTokenFilter);
103
- // When acquiring a token on behalf of an application, there might not be an id token in the cache
104
- if (Object.values(idTokenMap).length < 1) {
105
- return null;
106
- }
107
- return Object.values(idTokenMap)[0];
108
- }
109
- /**
110
- * Fetches the cached access token based on incoming assertion
111
- * @param clientId
112
- * @param request
113
- * @param userAssertionHash
114
- */
115
- readAccessTokenFromCacheForOBO(clientId, request) {
116
- const authScheme = request.authenticationScheme || msalCommon.AuthenticationScheme.BEARER;
117
- /*
118
- * Distinguish between Bearer and PoP/SSH token cache types
119
- * Cast to lowercase to handle "bearer" from ADFS
120
- */
121
- const credentialType = authScheme &&
122
- authScheme.toLowerCase() !==
123
- msalCommon.AuthenticationScheme.BEARER.toLowerCase()
124
- ? msalCommon.CredentialType.ACCESS_TOKEN_WITH_AUTH_SCHEME
125
- : msalCommon.CredentialType.ACCESS_TOKEN;
126
- const accessTokenFilter = {
127
- credentialType: credentialType,
128
- clientId,
129
- target: msalCommon.ScopeSet.createSearchScopes(this.scopeSet.asArray()),
130
- tokenType: authScheme,
131
- keyId: request.sshKid,
132
- requestedClaimsHash: request.requestedClaimsHash,
133
- userAssertionHash: this.userAssertionHash,
134
- };
135
- const accessTokens = this.cacheManager.getAccessTokensByFilter(accessTokenFilter);
136
- const numAccessTokens = accessTokens.length;
137
- if (numAccessTokens < 1) {
138
- return null;
139
- }
140
- else if (numAccessTokens > 1) {
141
- throw msalCommon.createClientAuthError(msalCommon.ClientAuthErrorCodes.multipleMatchingTokens);
142
- }
143
- return accessTokens[0];
144
- }
145
- /**
146
- * Make a network call to the server requesting credentials
147
- * @param request
148
- * @param authority
149
- */
150
- async executeTokenRequest(request, authority, userAssertionHash) {
151
- const queryParametersString = this.createTokenQueryParameters(request);
152
- const endpoint = msalCommon.UrlString.appendQueryString(authority.tokenEndpoint, queryParametersString);
153
- const requestBody = await this.createTokenRequestBody(request);
154
- const headers = this.createTokenRequestHeaders();
155
- const thumbprint = {
156
- clientId: this.config.authOptions.clientId,
157
- authority: request.authority,
158
- scopes: request.scopes,
159
- claims: request.claims,
160
- authenticationScheme: request.authenticationScheme,
161
- resourceRequestMethod: request.resourceRequestMethod,
162
- resourceRequestUri: request.resourceRequestUri,
163
- shrClaims: request.shrClaims,
164
- sshKid: request.sshKid,
165
- };
166
- const reqTimestamp = msalCommon.TimeUtils.nowSeconds();
167
- const response = await this.executePostToTokenEndpoint(endpoint, requestBody, headers, thumbprint, request.correlationId);
168
- const responseHandler = new msalCommon.ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin);
169
- responseHandler.validateTokenResponse(response.body);
170
- const tokenResponse = await responseHandler.handleServerTokenResponse(response.body, this.authority, reqTimestamp, request, undefined, userAssertionHash);
171
- return tokenResponse;
172
- }
173
- /**
174
- * generate a server request in accepable format
175
- * @param request
176
- */
177
- async createTokenRequestBody(request) {
178
- const parameterBuilder = new msalCommon.RequestParameterBuilder();
179
- parameterBuilder.addClientId(this.config.authOptions.clientId);
180
- parameterBuilder.addScopes(request.scopes);
181
- parameterBuilder.addGrantType(msalCommon.GrantType.JWT_BEARER);
182
- parameterBuilder.addClientInfo();
183
- parameterBuilder.addLibraryInfo(this.config.libraryInfo);
184
- parameterBuilder.addApplicationTelemetry(this.config.telemetry.application);
185
- parameterBuilder.addThrottling();
186
- if (this.serverTelemetryManager) {
187
- parameterBuilder.addServerTelemetry(this.serverTelemetryManager);
188
- }
189
- const correlationId = request.correlationId ||
190
- this.config.cryptoInterface.createNewGuid();
191
- parameterBuilder.addCorrelationId(correlationId);
192
- parameterBuilder.addRequestTokenUse(msalCommon.AADServerParamKeys.ON_BEHALF_OF);
193
- parameterBuilder.addOboAssertion(request.oboAssertion);
194
- if (this.config.clientCredentials.clientSecret) {
195
- parameterBuilder.addClientSecret(this.config.clientCredentials.clientSecret);
196
- }
197
- const clientAssertion = this.config.clientCredentials.clientAssertion;
198
- if (clientAssertion) {
199
- parameterBuilder.addClientAssertion(await msalCommon.getClientAssertion(clientAssertion.assertion, this.config.authOptions.clientId, request.resourceRequestUri));
200
- parameterBuilder.addClientAssertionType(clientAssertion.assertionType);
201
- }
202
- if (request.claims ||
203
- (this.config.authOptions.clientCapabilities &&
204
- this.config.authOptions.clientCapabilities.length > 0)) {
205
- parameterBuilder.addClaims(request.claims, this.config.authOptions.clientCapabilities);
206
- }
207
- return parameterBuilder.createQueryString();
208
- }
209
- }
210
-
211
- exports.OnBehalfOfClient = OnBehalfOfClient;
212
- //# sourceMappingURL=OnBehalfOfClient.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OnBehalfOfClient.cjs","sources":["../../src/client/OnBehalfOfClient.ts"],"sourcesContent":[null],"names":["BaseClient","ScopeSet","CacheOutcome","createClientAuthError","ClientAuthErrorCodes","TimeUtils","AuthToken","EncodingUtils","Constants","ResponseHandler","CredentialType","AuthenticationScheme","UrlString","RequestParameterBuilder","GrantType","AADServerParamKeys","getClientAssertion"],"mappings":";;;;;;;AAAA;;;AAGG;AAkCH;;AAEG;AACG,MAAO,gBAAiB,SAAQA,qBAAU,CAAA;AAI5C,IAAA,WAAA,CAAY,aAAkC,EAAA;QAC1C,KAAK,CAAC,aAAa,CAAC,CAAC;KACxB;AAED;;;AAGG;IACI,MAAM,YAAY,CACrB,OAAgC,EAAA;AAEhC,QAAA,IAAI,CAAC,QAAQ,GAAG,IAAIC,mBAAQ,CAAC,OAAO,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC;;AAGnD,QAAA,IAAI,CAAC,iBAAiB,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,UAAU,CACtD,OAAO,CAAC,YAAY,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