@azure/msal-node 2.13.0 → 2.14.0

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