@azure/msal-node 5.1.4 → 5.2.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 (368) hide show
  1. package/dist/cache/CacheHelpers.mjs +1 -1
  2. package/dist/cache/NodeStorage.mjs +5 -2
  3. package/dist/cache/NodeStorage.mjs.map +1 -1
  4. package/dist/cache/TokenCache.mjs +1 -1
  5. package/dist/cache/distributed/DistributedCachePlugin.mjs +1 -1
  6. package/dist/cache/serializer/Deserializer.mjs +1 -1
  7. package/dist/cache/serializer/Serializer.mjs +1 -1
  8. package/dist/client/BaseClient.mjs +1 -1
  9. package/dist/client/ClientApplication.mjs +2 -2
  10. package/dist/client/ClientAssertion.mjs +1 -1
  11. package/dist/client/ClientCredentialClient.mjs +1 -1
  12. package/dist/client/ConfidentialClientApplication.mjs +1 -1
  13. package/dist/client/DeviceCodeClient.mjs +1 -1
  14. package/dist/client/ManagedIdentityApplication.mjs +1 -1
  15. package/dist/client/ManagedIdentityClient.mjs +1 -1
  16. package/dist/client/ManagedIdentitySources/AppService.mjs +1 -1
  17. package/dist/client/ManagedIdentitySources/AzureArc.mjs +1 -1
  18. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs +9 -1
  19. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs.map +1 -1
  20. package/dist/client/ManagedIdentitySources/CloudShell.mjs +1 -1
  21. package/dist/client/ManagedIdentitySources/Imds.mjs +8 -2
  22. package/dist/client/ManagedIdentitySources/Imds.mjs.map +1 -1
  23. package/dist/client/ManagedIdentitySources/MachineLearning.mjs +1 -1
  24. package/dist/client/ManagedIdentitySources/ServiceFabric.mjs +1 -1
  25. package/dist/client/OnBehalfOfClient.mjs +1 -1
  26. package/dist/client/PublicClientApplication.mjs +1 -1
  27. package/dist/client/UsernamePasswordClient.mjs +1 -1
  28. package/dist/config/Configuration.mjs +1 -1
  29. package/dist/config/ManagedIdentityId.mjs +1 -1
  30. package/dist/config/ManagedIdentityRequestParameters.mjs +1 -1
  31. package/dist/crypto/CryptoProvider.mjs +1 -1
  32. package/dist/crypto/GuidGenerator.mjs +5 -6
  33. package/dist/crypto/GuidGenerator.mjs.map +1 -1
  34. package/dist/crypto/HashUtils.mjs +1 -1
  35. package/dist/crypto/PkceGenerator.mjs +1 -1
  36. package/dist/error/ClientAuthErrorCodes.mjs +1 -1
  37. package/dist/error/ManagedIdentityError.mjs +1 -1
  38. package/dist/error/ManagedIdentityErrorCodes.mjs +1 -1
  39. package/dist/error/NodeAuthError.mjs +1 -1
  40. package/dist/index.mjs +1 -1
  41. package/dist/internals.mjs +1 -1
  42. package/dist/network/HttpClient.mjs +1 -1
  43. package/dist/network/HttpClientWithRetries.mjs +1 -1
  44. package/dist/network/LoopbackClient.mjs +1 -1
  45. package/dist/packageMetadata.mjs +2 -2
  46. package/dist/protocol/Authorize.mjs +1 -1
  47. package/dist/retry/DefaultManagedIdentityRetryPolicy.mjs +1 -1
  48. package/dist/retry/ExponentialRetryStrategy.mjs +1 -1
  49. package/dist/retry/ImdsRetryPolicy.mjs +1 -1
  50. package/dist/retry/LinearRetryStrategy.mjs +1 -1
  51. package/dist/utils/Constants.mjs +6 -1
  52. package/dist/utils/Constants.mjs.map +1 -1
  53. package/dist/utils/EncodingUtils.mjs +1 -1
  54. package/dist/utils/TimeUtils.mjs +1 -1
  55. package/lib/msal-node.cjs +92 -72
  56. package/lib/msal-node.cjs.map +1 -1
  57. package/package.json +10 -10
  58. package/src/cache/NodeStorage.ts +4 -1
  59. package/src/client/ClientApplication.ts +1 -1
  60. package/src/client/IConfidentialClientApplication.ts +1 -1
  61. package/src/client/IPublicClientApplication.ts +1 -1
  62. package/src/client/ManagedIdentitySources/BaseManagedIdentitySource.ts +9 -0
  63. package/src/client/ManagedIdentitySources/Imds.ts +7 -0
  64. package/src/crypto/GuidGenerator.ts +4 -5
  65. package/src/packageMetadata.ts +1 -1
  66. package/src/utils/Constants.ts +4 -0
  67. package/{dist → types}/cache/NodeStorage.d.ts +1 -1
  68. package/{dist → types}/cache/NodeStorage.d.ts.map +1 -1
  69. package/{lib/types → types}/client/ClientApplication.d.ts +1 -1
  70. package/{lib/types → types}/client/IConfidentialClientApplication.d.ts +1 -1
  71. package/{dist → types}/client/IConfidentialClientApplication.d.ts.map +1 -1
  72. package/{dist → types}/client/IPublicClientApplication.d.ts +1 -1
  73. package/{dist → types}/client/IPublicClientApplication.d.ts.map +1 -1
  74. package/{dist → types}/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts +6 -0
  75. package/{dist → types}/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +1 -1
  76. package/{dist → types}/client/ManagedIdentitySources/Imds.d.ts.map +1 -1
  77. package/{dist → types}/crypto/GuidGenerator.d.ts +2 -3
  78. package/{dist → types}/crypto/GuidGenerator.d.ts.map +1 -1
  79. package/types/index.d.cts +1 -0
  80. package/types/packageMetadata.d.ts +3 -0
  81. package/{lib/types → types}/utils/Constants.d.ts +3 -0
  82. package/{lib/types → types}/utils/Constants.d.ts.map +1 -1
  83. package/dist/client/ClientApplication.d.ts +0 -146
  84. package/dist/client/IConfidentialClientApplication.d.ts +0 -43
  85. package/dist/packageMetadata.d.ts +0 -3
  86. package/dist/utils/Constants.d.ts +0 -156
  87. package/dist/utils/Constants.d.ts.map +0 -1
  88. package/lib/types/cache/CacheHelpers.d.ts +0 -4
  89. package/lib/types/cache/CacheHelpers.d.ts.map +0 -1
  90. package/lib/types/cache/ITokenCache.d.ts +0 -16
  91. package/lib/types/cache/ITokenCache.d.ts.map +0 -1
  92. package/lib/types/cache/NodeStorage.d.ts +0 -191
  93. package/lib/types/cache/NodeStorage.d.ts.map +0 -1
  94. package/lib/types/cache/TokenCache.d.ts +0 -99
  95. package/lib/types/cache/TokenCache.d.ts.map +0 -1
  96. package/lib/types/cache/distributed/DistributedCachePlugin.d.ts +0 -23
  97. package/lib/types/cache/distributed/DistributedCachePlugin.d.ts.map +0 -1
  98. package/lib/types/cache/distributed/ICacheClient.d.ts +0 -22
  99. package/lib/types/cache/distributed/ICacheClient.d.ts.map +0 -1
  100. package/lib/types/cache/distributed/IPartitionManager.d.ts +0 -33
  101. package/lib/types/cache/distributed/IPartitionManager.d.ts.map +0 -1
  102. package/lib/types/cache/serializer/Deserializer.d.ts +0 -44
  103. package/lib/types/cache/serializer/Deserializer.d.ts.map +0 -1
  104. package/lib/types/cache/serializer/Serializer.d.ts +0 -44
  105. package/lib/types/cache/serializer/Serializer.d.ts.map +0 -1
  106. package/lib/types/cache/serializer/SerializerTypes.d.ts +0 -102
  107. package/lib/types/cache/serializer/SerializerTypes.d.ts.map +0 -1
  108. package/lib/types/client/BaseClient.d.ts +0 -42
  109. package/lib/types/client/BaseClient.d.ts.map +0 -1
  110. package/lib/types/client/ClientApplication.d.ts.map +0 -1
  111. package/lib/types/client/ClientAssertion.d.ts +0 -56
  112. package/lib/types/client/ClientAssertion.d.ts.map +0 -1
  113. package/lib/types/client/ClientCredentialClient.d.ts +0 -37
  114. package/lib/types/client/ClientCredentialClient.d.ts.map +0 -1
  115. package/lib/types/client/ConfidentialClientApplication.d.ts +0 -58
  116. package/lib/types/client/ConfidentialClientApplication.d.ts.map +0 -1
  117. package/lib/types/client/DeviceCodeClient.d.ts +0 -60
  118. package/lib/types/client/DeviceCodeClient.d.ts.map +0 -1
  119. package/lib/types/client/IConfidentialClientApplication.d.ts.map +0 -1
  120. package/lib/types/client/IPublicClientApplication.d.ts +0 -46
  121. package/lib/types/client/IPublicClientApplication.d.ts.map +0 -1
  122. package/lib/types/client/ManagedIdentityApplication.d.ts +0 -42
  123. package/lib/types/client/ManagedIdentityApplication.d.ts.map +0 -1
  124. package/lib/types/client/ManagedIdentityClient.d.ts +0 -29
  125. package/lib/types/client/ManagedIdentityClient.d.ts.map +0 -1
  126. package/lib/types/client/ManagedIdentitySources/AppService.d.ts +0 -72
  127. package/lib/types/client/ManagedIdentitySources/AppService.d.ts.map +0 -1
  128. package/lib/types/client/ManagedIdentitySources/AzureArc.d.ts +0 -109
  129. package/lib/types/client/ManagedIdentitySources/AzureArc.d.ts.map +0 -1
  130. package/lib/types/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts +0 -125
  131. package/lib/types/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +0 -1
  132. package/lib/types/client/ManagedIdentitySources/CloudShell.d.ts +0 -71
  133. package/lib/types/client/ManagedIdentitySources/CloudShell.d.ts.map +0 -1
  134. package/lib/types/client/ManagedIdentitySources/Imds.d.ts +0 -67
  135. package/lib/types/client/ManagedIdentitySources/Imds.d.ts.map +0 -1
  136. package/lib/types/client/ManagedIdentitySources/MachineLearning.d.ts +0 -81
  137. package/lib/types/client/ManagedIdentitySources/MachineLearning.d.ts.map +0 -1
  138. package/lib/types/client/ManagedIdentitySources/ServiceFabric.d.ts +0 -82
  139. package/lib/types/client/ManagedIdentitySources/ServiceFabric.d.ts.map +0 -1
  140. package/lib/types/client/OnBehalfOfClient.d.ts +0 -50
  141. package/lib/types/client/OnBehalfOfClient.d.ts.map +0 -1
  142. package/lib/types/client/PublicClientApplication.d.ts +0 -85
  143. package/lib/types/client/PublicClientApplication.d.ts.map +0 -1
  144. package/lib/types/client/UsernamePasswordClient.d.ts +0 -30
  145. package/lib/types/client/UsernamePasswordClient.d.ts.map +0 -1
  146. package/lib/types/config/Configuration.d.ts +0 -131
  147. package/lib/types/config/Configuration.d.ts.map +0 -1
  148. package/lib/types/config/ManagedIdentityId.d.ts +0 -12
  149. package/lib/types/config/ManagedIdentityId.d.ts.map +0 -1
  150. package/lib/types/config/ManagedIdentityRequestParameters.d.ts +0 -13
  151. package/lib/types/config/ManagedIdentityRequestParameters.d.ts.map +0 -1
  152. package/lib/types/crypto/CryptoProvider.d.ts +0 -63
  153. package/lib/types/crypto/CryptoProvider.d.ts.map +0 -1
  154. package/lib/types/crypto/GuidGenerator.d.ts +0 -15
  155. package/lib/types/crypto/GuidGenerator.d.ts.map +0 -1
  156. package/lib/types/crypto/HashUtils.d.ts +0 -10
  157. package/lib/types/crypto/HashUtils.d.ts.map +0 -1
  158. package/lib/types/crypto/PkceGenerator.d.ts +0 -23
  159. package/lib/types/crypto/PkceGenerator.d.ts.map +0 -1
  160. package/lib/types/error/ClientAuthErrorCodes.d.ts +0 -8
  161. package/lib/types/error/ClientAuthErrorCodes.d.ts.map +0 -1
  162. package/lib/types/error/ManagedIdentityError.d.ts +0 -31
  163. package/lib/types/error/ManagedIdentityError.d.ts.map +0 -1
  164. package/lib/types/error/ManagedIdentityErrorCodes.d.ts +0 -23
  165. package/lib/types/error/ManagedIdentityErrorCodes.d.ts.map +0 -1
  166. package/lib/types/error/NodeAuthError.d.ts +0 -82
  167. package/lib/types/error/NodeAuthError.d.ts.map +0 -1
  168. package/lib/types/index.d.ts +0 -54
  169. package/lib/types/index.d.ts.map +0 -1
  170. package/lib/types/internals.d.ts +0 -7
  171. package/lib/types/internals.d.ts.map +0 -1
  172. package/lib/types/network/HttpClient.d.ts +0 -66
  173. package/lib/types/network/HttpClient.d.ts.map +0 -1
  174. package/lib/types/network/HttpClientWithRetries.d.ts +0 -13
  175. package/lib/types/network/HttpClientWithRetries.d.ts.map +0 -1
  176. package/lib/types/network/ILoopbackClient.d.ts +0 -11
  177. package/lib/types/network/ILoopbackClient.d.ts.map +0 -1
  178. package/lib/types/network/LoopbackClient.d.ts +0 -22
  179. package/lib/types/network/LoopbackClient.d.ts.map +0 -1
  180. package/lib/types/packageMetadata.d.ts +0 -3
  181. package/lib/types/packageMetadata.d.ts.map +0 -1
  182. package/lib/types/protocol/Authorize.d.ts +0 -12
  183. package/lib/types/protocol/Authorize.d.ts.map +0 -1
  184. package/lib/types/request/AuthorizationCodeRequest.d.ts +0 -24
  185. package/lib/types/request/AuthorizationCodeRequest.d.ts.map +0 -1
  186. package/lib/types/request/AuthorizationUrlRequest.d.ts +0 -16
  187. package/lib/types/request/AuthorizationUrlRequest.d.ts.map +0 -1
  188. package/lib/types/request/ClientCredentialRequest.d.ts +0 -13
  189. package/lib/types/request/ClientCredentialRequest.d.ts.map +0 -1
  190. package/lib/types/request/CommonClientCredentialRequest.d.ts +0 -19
  191. package/lib/types/request/CommonClientCredentialRequest.d.ts.map +0 -1
  192. package/lib/types/request/CommonDeviceCodeRequest.d.ts +0 -23
  193. package/lib/types/request/CommonDeviceCodeRequest.d.ts.map +0 -1
  194. package/lib/types/request/CommonOnBehalfOfRequest.d.ts +0 -15
  195. package/lib/types/request/CommonOnBehalfOfRequest.d.ts.map +0 -1
  196. package/lib/types/request/CommonUsernamePasswordRequest.d.ts +0 -16
  197. package/lib/types/request/CommonUsernamePasswordRequest.d.ts.map +0 -1
  198. package/lib/types/request/DeviceCodeRequest.d.ts +0 -17
  199. package/lib/types/request/DeviceCodeRequest.d.ts.map +0 -1
  200. package/lib/types/request/InteractiveRequest.d.ts +0 -35
  201. package/lib/types/request/InteractiveRequest.d.ts.map +0 -1
  202. package/lib/types/request/ManagedIdentityRequest.d.ts +0 -16
  203. package/lib/types/request/ManagedIdentityRequest.d.ts.map +0 -1
  204. package/lib/types/request/ManagedIdentityRequestParams.d.ts +0 -19
  205. package/lib/types/request/ManagedIdentityRequestParams.d.ts.map +0 -1
  206. package/lib/types/request/OnBehalfOfRequest.d.ts +0 -16
  207. package/lib/types/request/OnBehalfOfRequest.d.ts.map +0 -1
  208. package/lib/types/request/RefreshTokenRequest.d.ts +0 -20
  209. package/lib/types/request/RefreshTokenRequest.d.ts.map +0 -1
  210. package/lib/types/request/SignOutRequest.d.ts +0 -7
  211. package/lib/types/request/SignOutRequest.d.ts.map +0 -1
  212. package/lib/types/request/SilentFlowRequest.d.ts +0 -16
  213. package/lib/types/request/SilentFlowRequest.d.ts.map +0 -1
  214. package/lib/types/request/UsernamePasswordRequest.d.ts +0 -21
  215. package/lib/types/request/UsernamePasswordRequest.d.ts.map +0 -1
  216. package/lib/types/response/ManagedIdentityTokenResponse.d.ts +0 -35
  217. package/lib/types/response/ManagedIdentityTokenResponse.d.ts.map +0 -1
  218. package/lib/types/retry/DefaultManagedIdentityRetryPolicy.d.ts +0 -11
  219. package/lib/types/retry/DefaultManagedIdentityRetryPolicy.d.ts.map +0 -1
  220. package/lib/types/retry/ExponentialRetryStrategy.d.ts +0 -23
  221. package/lib/types/retry/ExponentialRetryStrategy.d.ts.map +0 -1
  222. package/lib/types/retry/IHttpRetryPolicy.d.ts +0 -16
  223. package/lib/types/retry/IHttpRetryPolicy.d.ts.map +0 -1
  224. package/lib/types/retry/ImdsRetryPolicy.d.ts +0 -22
  225. package/lib/types/retry/ImdsRetryPolicy.d.ts.map +0 -1
  226. package/lib/types/retry/LinearRetryStrategy.d.ts +0 -14
  227. package/lib/types/retry/LinearRetryStrategy.d.ts.map +0 -1
  228. package/lib/types/utils/EncodingUtils.d.ts +0 -27
  229. package/lib/types/utils/EncodingUtils.d.ts.map +0 -1
  230. package/lib/types/utils/NetworkUtils.d.ts +0 -17
  231. package/lib/types/utils/NetworkUtils.d.ts.map +0 -1
  232. package/lib/types/utils/TimeUtils.d.ts +0 -9
  233. package/lib/types/utils/TimeUtils.d.ts.map +0 -1
  234. /package/{dist → types}/cache/CacheHelpers.d.ts +0 -0
  235. /package/{dist → types}/cache/CacheHelpers.d.ts.map +0 -0
  236. /package/{dist → types}/cache/ITokenCache.d.ts +0 -0
  237. /package/{dist → types}/cache/ITokenCache.d.ts.map +0 -0
  238. /package/{dist → types}/cache/TokenCache.d.ts +0 -0
  239. /package/{dist → types}/cache/TokenCache.d.ts.map +0 -0
  240. /package/{dist → types}/cache/distributed/DistributedCachePlugin.d.ts +0 -0
  241. /package/{dist → types}/cache/distributed/DistributedCachePlugin.d.ts.map +0 -0
  242. /package/{dist → types}/cache/distributed/ICacheClient.d.ts +0 -0
  243. /package/{dist → types}/cache/distributed/ICacheClient.d.ts.map +0 -0
  244. /package/{dist → types}/cache/distributed/IPartitionManager.d.ts +0 -0
  245. /package/{dist → types}/cache/distributed/IPartitionManager.d.ts.map +0 -0
  246. /package/{dist → types}/cache/serializer/Deserializer.d.ts +0 -0
  247. /package/{dist → types}/cache/serializer/Deserializer.d.ts.map +0 -0
  248. /package/{dist → types}/cache/serializer/Serializer.d.ts +0 -0
  249. /package/{dist → types}/cache/serializer/Serializer.d.ts.map +0 -0
  250. /package/{dist → types}/cache/serializer/SerializerTypes.d.ts +0 -0
  251. /package/{dist → types}/cache/serializer/SerializerTypes.d.ts.map +0 -0
  252. /package/{dist → types}/client/BaseClient.d.ts +0 -0
  253. /package/{dist → types}/client/BaseClient.d.ts.map +0 -0
  254. /package/{dist → types}/client/ClientApplication.d.ts.map +0 -0
  255. /package/{dist → types}/client/ClientAssertion.d.ts +0 -0
  256. /package/{dist → types}/client/ClientAssertion.d.ts.map +0 -0
  257. /package/{dist → types}/client/ClientCredentialClient.d.ts +0 -0
  258. /package/{dist → types}/client/ClientCredentialClient.d.ts.map +0 -0
  259. /package/{dist → types}/client/ConfidentialClientApplication.d.ts +0 -0
  260. /package/{dist → types}/client/ConfidentialClientApplication.d.ts.map +0 -0
  261. /package/{dist → types}/client/DeviceCodeClient.d.ts +0 -0
  262. /package/{dist → types}/client/DeviceCodeClient.d.ts.map +0 -0
  263. /package/{dist → types}/client/ManagedIdentityApplication.d.ts +0 -0
  264. /package/{dist → types}/client/ManagedIdentityApplication.d.ts.map +0 -0
  265. /package/{dist → types}/client/ManagedIdentityClient.d.ts +0 -0
  266. /package/{dist → types}/client/ManagedIdentityClient.d.ts.map +0 -0
  267. /package/{dist → types}/client/ManagedIdentitySources/AppService.d.ts +0 -0
  268. /package/{dist → types}/client/ManagedIdentitySources/AppService.d.ts.map +0 -0
  269. /package/{dist → types}/client/ManagedIdentitySources/AzureArc.d.ts +0 -0
  270. /package/{dist → types}/client/ManagedIdentitySources/AzureArc.d.ts.map +0 -0
  271. /package/{dist → types}/client/ManagedIdentitySources/CloudShell.d.ts +0 -0
  272. /package/{dist → types}/client/ManagedIdentitySources/CloudShell.d.ts.map +0 -0
  273. /package/{dist → types}/client/ManagedIdentitySources/Imds.d.ts +0 -0
  274. /package/{dist → types}/client/ManagedIdentitySources/MachineLearning.d.ts +0 -0
  275. /package/{dist → types}/client/ManagedIdentitySources/MachineLearning.d.ts.map +0 -0
  276. /package/{dist → types}/client/ManagedIdentitySources/ServiceFabric.d.ts +0 -0
  277. /package/{dist → types}/client/ManagedIdentitySources/ServiceFabric.d.ts.map +0 -0
  278. /package/{dist → types}/client/OnBehalfOfClient.d.ts +0 -0
  279. /package/{dist → types}/client/OnBehalfOfClient.d.ts.map +0 -0
  280. /package/{dist → types}/client/PublicClientApplication.d.ts +0 -0
  281. /package/{dist → types}/client/PublicClientApplication.d.ts.map +0 -0
  282. /package/{dist → types}/client/UsernamePasswordClient.d.ts +0 -0
  283. /package/{dist → types}/client/UsernamePasswordClient.d.ts.map +0 -0
  284. /package/{dist → types}/config/Configuration.d.ts +0 -0
  285. /package/{dist → types}/config/Configuration.d.ts.map +0 -0
  286. /package/{dist → types}/config/ManagedIdentityId.d.ts +0 -0
  287. /package/{dist → types}/config/ManagedIdentityId.d.ts.map +0 -0
  288. /package/{dist → types}/config/ManagedIdentityRequestParameters.d.ts +0 -0
  289. /package/{dist → types}/config/ManagedIdentityRequestParameters.d.ts.map +0 -0
  290. /package/{dist → types}/crypto/CryptoProvider.d.ts +0 -0
  291. /package/{dist → types}/crypto/CryptoProvider.d.ts.map +0 -0
  292. /package/{dist → types}/crypto/HashUtils.d.ts +0 -0
  293. /package/{dist → types}/crypto/HashUtils.d.ts.map +0 -0
  294. /package/{dist → types}/crypto/PkceGenerator.d.ts +0 -0
  295. /package/{dist → types}/crypto/PkceGenerator.d.ts.map +0 -0
  296. /package/{dist → types}/error/ClientAuthErrorCodes.d.ts +0 -0
  297. /package/{dist → types}/error/ClientAuthErrorCodes.d.ts.map +0 -0
  298. /package/{dist → types}/error/ManagedIdentityError.d.ts +0 -0
  299. /package/{dist → types}/error/ManagedIdentityError.d.ts.map +0 -0
  300. /package/{dist → types}/error/ManagedIdentityErrorCodes.d.ts +0 -0
  301. /package/{dist → types}/error/ManagedIdentityErrorCodes.d.ts.map +0 -0
  302. /package/{dist → types}/error/NodeAuthError.d.ts +0 -0
  303. /package/{dist → types}/error/NodeAuthError.d.ts.map +0 -0
  304. /package/{dist → types}/index.d.ts +0 -0
  305. /package/{dist → types}/index.d.ts.map +0 -0
  306. /package/{dist → types}/internals.d.ts +0 -0
  307. /package/{dist → types}/internals.d.ts.map +0 -0
  308. /package/{dist → types}/network/HttpClient.d.ts +0 -0
  309. /package/{dist → types}/network/HttpClient.d.ts.map +0 -0
  310. /package/{dist → types}/network/HttpClientWithRetries.d.ts +0 -0
  311. /package/{dist → types}/network/HttpClientWithRetries.d.ts.map +0 -0
  312. /package/{dist → types}/network/ILoopbackClient.d.ts +0 -0
  313. /package/{dist → types}/network/ILoopbackClient.d.ts.map +0 -0
  314. /package/{dist → types}/network/LoopbackClient.d.ts +0 -0
  315. /package/{dist → types}/network/LoopbackClient.d.ts.map +0 -0
  316. /package/{dist → types}/packageMetadata.d.ts.map +0 -0
  317. /package/{dist → types}/protocol/Authorize.d.ts +0 -0
  318. /package/{dist → types}/protocol/Authorize.d.ts.map +0 -0
  319. /package/{dist → types}/request/AuthorizationCodeRequest.d.ts +0 -0
  320. /package/{dist → types}/request/AuthorizationCodeRequest.d.ts.map +0 -0
  321. /package/{dist → types}/request/AuthorizationUrlRequest.d.ts +0 -0
  322. /package/{dist → types}/request/AuthorizationUrlRequest.d.ts.map +0 -0
  323. /package/{dist → types}/request/ClientCredentialRequest.d.ts +0 -0
  324. /package/{dist → types}/request/ClientCredentialRequest.d.ts.map +0 -0
  325. /package/{dist → types}/request/CommonClientCredentialRequest.d.ts +0 -0
  326. /package/{dist → types}/request/CommonClientCredentialRequest.d.ts.map +0 -0
  327. /package/{dist → types}/request/CommonDeviceCodeRequest.d.ts +0 -0
  328. /package/{dist → types}/request/CommonDeviceCodeRequest.d.ts.map +0 -0
  329. /package/{dist → types}/request/CommonOnBehalfOfRequest.d.ts +0 -0
  330. /package/{dist → types}/request/CommonOnBehalfOfRequest.d.ts.map +0 -0
  331. /package/{dist → types}/request/CommonUsernamePasswordRequest.d.ts +0 -0
  332. /package/{dist → types}/request/CommonUsernamePasswordRequest.d.ts.map +0 -0
  333. /package/{dist → types}/request/DeviceCodeRequest.d.ts +0 -0
  334. /package/{dist → types}/request/DeviceCodeRequest.d.ts.map +0 -0
  335. /package/{dist → types}/request/InteractiveRequest.d.ts +0 -0
  336. /package/{dist → types}/request/InteractiveRequest.d.ts.map +0 -0
  337. /package/{dist → types}/request/ManagedIdentityRequest.d.ts +0 -0
  338. /package/{dist → types}/request/ManagedIdentityRequest.d.ts.map +0 -0
  339. /package/{dist → types}/request/ManagedIdentityRequestParams.d.ts +0 -0
  340. /package/{dist → types}/request/ManagedIdentityRequestParams.d.ts.map +0 -0
  341. /package/{dist → types}/request/OnBehalfOfRequest.d.ts +0 -0
  342. /package/{dist → types}/request/OnBehalfOfRequest.d.ts.map +0 -0
  343. /package/{dist → types}/request/RefreshTokenRequest.d.ts +0 -0
  344. /package/{dist → types}/request/RefreshTokenRequest.d.ts.map +0 -0
  345. /package/{dist → types}/request/SignOutRequest.d.ts +0 -0
  346. /package/{dist → types}/request/SignOutRequest.d.ts.map +0 -0
  347. /package/{dist → types}/request/SilentFlowRequest.d.ts +0 -0
  348. /package/{dist → types}/request/SilentFlowRequest.d.ts.map +0 -0
  349. /package/{dist → types}/request/UsernamePasswordRequest.d.ts +0 -0
  350. /package/{dist → types}/request/UsernamePasswordRequest.d.ts.map +0 -0
  351. /package/{dist → types}/response/ManagedIdentityTokenResponse.d.ts +0 -0
  352. /package/{dist → types}/response/ManagedIdentityTokenResponse.d.ts.map +0 -0
  353. /package/{dist → types}/retry/DefaultManagedIdentityRetryPolicy.d.ts +0 -0
  354. /package/{dist → types}/retry/DefaultManagedIdentityRetryPolicy.d.ts.map +0 -0
  355. /package/{dist → types}/retry/ExponentialRetryStrategy.d.ts +0 -0
  356. /package/{dist → types}/retry/ExponentialRetryStrategy.d.ts.map +0 -0
  357. /package/{dist → types}/retry/IHttpRetryPolicy.d.ts +0 -0
  358. /package/{dist → types}/retry/IHttpRetryPolicy.d.ts.map +0 -0
  359. /package/{dist → types}/retry/ImdsRetryPolicy.d.ts +0 -0
  360. /package/{dist → types}/retry/ImdsRetryPolicy.d.ts.map +0 -0
  361. /package/{dist → types}/retry/LinearRetryStrategy.d.ts +0 -0
  362. /package/{dist → types}/retry/LinearRetryStrategy.d.ts.map +0 -0
  363. /package/{dist → types}/utils/EncodingUtils.d.ts +0 -0
  364. /package/{dist → types}/utils/EncodingUtils.d.ts.map +0 -0
  365. /package/{dist → types}/utils/NetworkUtils.d.ts +0 -0
  366. /package/{dist → types}/utils/NetworkUtils.d.ts.map +0 -0
  367. /package/{dist → types}/utils/TimeUtils.d.ts +0 -0
  368. /package/{dist → types}/utils/TimeUtils.d.ts.map +0 -0
@@ -1,82 +0,0 @@
1
- import { INetworkModule, Logger } from "@azure/msal-common/node";
2
- import { ManagedIdentityId } from "../../config/ManagedIdentityId.js";
3
- import { ManagedIdentityRequestParameters } from "../../config/ManagedIdentityRequestParameters.js";
4
- import { BaseManagedIdentitySource } from "./BaseManagedIdentitySource.js";
5
- import { NodeStorage } from "../../cache/NodeStorage.js";
6
- import { CryptoProvider } from "../../crypto/CryptoProvider.js";
7
- /**
8
- * Original source of code: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/src/ServiceFabricManagedIdentitySource.cs
9
- */
10
- export declare class ServiceFabric extends BaseManagedIdentitySource {
11
- private identityEndpoint;
12
- private identityHeader;
13
- /**
14
- * Constructs a new ServiceFabric managed identity source for acquiring tokens from Azure Service Fabric clusters.
15
- *
16
- * Service Fabric managed identity allows applications running in Service Fabric clusters to authenticate
17
- * without storing credentials in code. This source handles token acquisition using the Service Fabric
18
- * Managed Identity Token Service (MITS).
19
- *
20
- * @param logger - Logger instance for logging authentication events and debugging information
21
- * @param nodeStorage - NodeStorage instance for caching tokens and other authentication artifacts
22
- * @param networkClient - Network client for making HTTP requests to the Service Fabric identity endpoint
23
- * @param cryptoProvider - Crypto provider for cryptographic operations like token validation
24
- * @param disableInternalRetries - Whether to disable internal retry logic for failed requests
25
- * @param identityEndpoint - The Service Fabric managed identity endpoint URL
26
- * @param identityHeader - The Service Fabric managed identity secret header value
27
- */
28
- constructor(logger: Logger, nodeStorage: NodeStorage, networkClient: INetworkModule, cryptoProvider: CryptoProvider, disableInternalRetries: boolean, identityEndpoint: string, identityHeader: string);
29
- /**
30
- * Retrieves the environment variables required for Service Fabric managed identity authentication.
31
- *
32
- * Service Fabric managed identity requires three specific environment variables to be set by the
33
- * Service Fabric runtime:
34
- * - IDENTITY_ENDPOINT: The endpoint URL for the Managed Identity Token Service (MITS)
35
- * - IDENTITY_HEADER: A secret value used for authentication with the MITS
36
- * - IDENTITY_SERVER_THUMBPRINT: The thumbprint of the MITS server certificate for secure communication
37
- *
38
- * @returns An array containing the identity endpoint, identity header, and identity server thumbprint values.
39
- * Elements will be undefined if the corresponding environment variables are not set.
40
- */
41
- static getEnvironmentVariables(): Array<string | undefined>;
42
- /**
43
- * Attempts to create a ServiceFabric managed identity source if the runtime environment supports it.
44
- *
45
- * Checks for the presence of all required Service Fabric environment variables
46
- * and validates the endpoint URL format. It will only create a ServiceFabric instance if the application
47
- * is running in a properly configured Service Fabric cluster with managed identity enabled.
48
- *
49
- * Note: User-assigned managed identities must be configured at the cluster level, not at runtime.
50
- * This method will log a warning if a user-assigned identity is requested.
51
- *
52
- * @param logger - Logger instance for logging creation events and validation results
53
- * @param nodeStorage - NodeStorage instance for caching tokens and authentication artifacts
54
- * @param networkClient - Network client for making HTTP requests to the identity endpoint
55
- * @param cryptoProvider - Crypto provider for cryptographic operations
56
- * @param disableInternalRetries - Whether to disable internal retry logic for failed requests
57
- * @param managedIdentityId - Managed identity identifier specifying system-assigned or user-assigned identity
58
- *
59
- * @returns A ServiceFabric instance if all environment variables are valid and present, otherwise null
60
- */
61
- static tryCreate(logger: Logger, nodeStorage: NodeStorage, networkClient: INetworkModule, cryptoProvider: CryptoProvider, disableInternalRetries: boolean, managedIdentityId: ManagedIdentityId): ServiceFabric | null;
62
- /**
63
- * Creates HTTP request parameters for acquiring an access token from the Service Fabric Managed Identity Token Service (MITS).
64
- *
65
- * This method constructs a properly formatted HTTP GET request that includes:
66
- * - The secret header for authentication with MITS
67
- * - API version parameter for the Service Fabric MSI endpoint
68
- * - Resource parameter specifying the target Azure service
69
- * - Optional identity parameters for user-assigned managed identities
70
- *
71
- * The request follows the Service Fabric managed identity protocol and uses the 2019-07-01-preview API version.
72
- * For user-assigned identities, the appropriate query parameter (client_id, object_id, or resource_id) is added
73
- * based on the identity type.
74
- *
75
- * @param resource - The Azure resource URI for which the access token is requested (e.g., "https://vault.azure.net/")
76
- * @param managedIdentityId - The managed identity configuration specifying system-assigned or user-assigned identity details
77
- *
78
- * @returns A configured ManagedIdentityRequestParameters object ready for network execution
79
- */
80
- createRequest(resource: string, managedIdentityId: ManagedIdentityId): ManagedIdentityRequestParameters;
81
- }
82
- //# sourceMappingURL=ServiceFabric.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ServiceFabric.d.ts","sourceRoot":"","sources":["../../../../src/client/ManagedIdentitySources/ServiceFabric.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,gCAAgC,EAAE,MAAM,kDAAkD,CAAC;AACpG,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAYhE;;GAEG;AACH,qBAAa,aAAc,SAAQ,yBAAyB;IACxD,OAAO,CAAC,gBAAgB,CAAS;IACjC,OAAO,CAAC,cAAc,CAAS;IAE/B;;;;;;;;;;;;;;OAcG;gBAEC,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,cAAc,EAC7B,cAAc,EAAE,cAAc,EAC9B,sBAAsB,EAAE,OAAO,EAC/B,gBAAgB,EAAE,MAAM,EACxB,cAAc,EAAE,MAAM;IAc1B;;;;;;;;;;;OAWG;WACW,uBAAuB,IAAI,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC;IAkBlE;;;;;;;;;;;;;;;;;;OAkBG;WACW,SAAS,CACnB,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,cAAc,EAC7B,cAAc,EAAE,cAAc,EAC9B,sBAAsB,EAAE,OAAO,EAC/B,iBAAiB,EAAE,iBAAiB,GACrC,aAAa,GAAG,IAAI;IA6CvB;;;;;;;;;;;;;;;;;OAiBG;IACI,aAAa,CAChB,QAAQ,EAAE,MAAM,EAChB,iBAAiB,EAAE,iBAAiB,GACrC,gCAAgC;CA6BtC"}
@@ -1,50 +0,0 @@
1
- import { AuthenticationResult, ClientConfiguration } from "@azure/msal-common/node";
2
- import { CommonOnBehalfOfRequest } from "../request/CommonOnBehalfOfRequest.js";
3
- import { BaseClient } from "./BaseClient.js";
4
- /**
5
- * On-Behalf-Of client
6
- * @public
7
- */
8
- export declare class OnBehalfOfClient extends BaseClient {
9
- private scopeSet;
10
- private userAssertionHash;
11
- constructor(configuration: ClientConfiguration);
12
- /**
13
- * Public API to acquire tokens with on behalf of flow
14
- * @param request - developer provided CommonOnBehalfOfRequest
15
- */
16
- acquireToken(request: CommonOnBehalfOfRequest): Promise<AuthenticationResult | null>;
17
- /**
18
- * look up cache for tokens
19
- * Find idtoken in the cache
20
- * Find accessToken based on user assertion and account info in the cache
21
- * 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
22
- * This is to prevent security issues when the assertion changes over time, however, longlived RT helps retaining the session
23
- * @param request - developer provided CommonOnBehalfOfRequest
24
- */
25
- private getCachedAuthenticationResult;
26
- /**
27
- * read idtoken from cache, this is a specific implementation for OBO as the requirements differ from a generic lookup in the cacheManager
28
- * Certain use cases of OBO flow do not expect an idToken in the cache/or from the service
29
- * @param atHomeAccountId - account id
30
- */
31
- private readIdTokenFromCacheForOBO;
32
- /**
33
- * Fetches the cached access token based on incoming assertion
34
- * @param clientId - client id
35
- * @param request - developer provided CommonOnBehalfOfRequest
36
- */
37
- private readAccessTokenFromCacheForOBO;
38
- /**
39
- * Make a network call to the server requesting credentials
40
- * @param request - developer provided CommonOnBehalfOfRequest
41
- * @param authority - authority object
42
- */
43
- private executeTokenRequest;
44
- /**
45
- * generate a server request in accepable format
46
- * @param request - developer provided CommonOnBehalfOfRequest
47
- */
48
- private createTokenRequestBody;
49
- }
50
- //# sourceMappingURL=OnBehalfOfClient.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OnBehalfOfClient.d.ts","sourceRoot":"","sources":["../../../src/client/OnBehalfOfClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAKH,oBAAoB,EAIpB,mBAAmB,EAetB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,UAAU;IAC5C,OAAO,CAAC,QAAQ,CAAW;IAC3B,OAAO,CAAC,iBAAiB,CAAS;gBAEtB,aAAa,EAAE,mBAAmB;IAI9C;;;OAGG;IACU,YAAY,CACrB,OAAO,EAAE,uBAAuB,GACjC,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IA4BvC;;;;;;;OAOG;YACW,6BAA6B;IAwF3C;;;;OAIG;IACH,OAAO,CAAC,0BAA0B;IAuBlC;;;;OAIG;IACH,OAAO,CAAC,8BAA8B;IA4CtC;;;;OAIG;YACW,mBAAmB;IA6DjC;;;OAGG;YACW,sBAAsB;CA0FvC"}
@@ -1,85 +0,0 @@
1
- import { AuthenticationResult, AccountInfo, AuthorizationCodePayload } from "@azure/msal-common/node";
2
- import { Configuration } from "../config/Configuration.js";
3
- import { ClientApplication } from "./ClientApplication.js";
4
- import { IPublicClientApplication } from "./IPublicClientApplication.js";
5
- import { DeviceCodeRequest } from "../request/DeviceCodeRequest.js";
6
- import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest.js";
7
- import { InteractiveRequest } from "../request/InteractiveRequest.js";
8
- import { SilentFlowRequest } from "../request/SilentFlowRequest.js";
9
- import { SignOutRequest } from "../request/SignOutRequest.js";
10
- import { RefreshTokenRequest } from "../request/RefreshTokenRequest.js";
11
- /**
12
- * This class is to be used to acquire tokens for public client applications (desktop, mobile). Public client applications
13
- * are not trusted to safely store application secrets, and therefore can only request tokens in the name of an user.
14
- * @public
15
- */
16
- export declare class PublicClientApplication extends ClientApplication implements IPublicClientApplication {
17
- private nativeBrokerPlugin?;
18
- private readonly skus;
19
- /**
20
- * Important attributes in the Configuration object for auth are:
21
- * - clientID: the application ID of your application. You can obtain one by registering your application with our Application registration portal.
22
- * - authority: the authority URL for your application.
23
- *
24
- * AAD authorities are of the form https://login.microsoftonline.com/\{Enter_the_Tenant_Info_Here\}.
25
- * - If your application supports Accounts in one organizational directory, replace "Enter_the_Tenant_Info_Here" value with the Tenant Id or Tenant name (for example, contoso.microsoft.com).
26
- * - If your application supports Accounts in any organizational directory, replace "Enter_the_Tenant_Info_Here" value with organizations.
27
- * - If your application supports Accounts in any organizational directory and personal Microsoft accounts, replace "Enter_the_Tenant_Info_Here" value with common.
28
- * - To restrict support to Personal Microsoft accounts only, replace "Enter_the_Tenant_Info_Here" value with consumers.
29
- *
30
- * Azure B2C authorities are of the form https://\{instance\}/\{tenant\}/\{policy\}. Each policy is considered
31
- * its own authority. You will have to set the all of the knownAuthorities at the time of the client application
32
- * construction.
33
- *
34
- * ADFS authorities are of the form https://\{instance\}/adfs.
35
- */
36
- constructor(configuration: Configuration);
37
- /**
38
- * Acquires a token from the authority using OAuth2.0 device code flow.
39
- * This flow is designed for devices that do not have access to a browser or have input constraints.
40
- * The authorization server issues a DeviceCode object with a verification code, an end-user code,
41
- * and the end-user verification URI. The DeviceCode object is provided through a callback, and the end-user should be
42
- * instructed to use another device to navigate to the verification URI to input credentials.
43
- * Since the client cannot receive incoming requests, it polls the authorization server repeatedly
44
- * until the end-user completes input of credentials.
45
- */
46
- acquireTokenByDeviceCode(request: DeviceCodeRequest): Promise<AuthenticationResult | null>;
47
- /**
48
- * Acquires a token interactively via the browser by requesting an authorization code then exchanging it for a token.
49
- */
50
- acquireTokenInteractive(request: InteractiveRequest): Promise<AuthenticationResult>;
51
- /**
52
- * Returns a token retrieved either from the cache or by exchanging the refresh token for a fresh access token. If brokering is enabled the token request will be serviced by the broker.
53
- * @param request - developer provided SilentFlowRequest
54
- * @returns
55
- */
56
- acquireTokenSilent(request: SilentFlowRequest): Promise<AuthenticationResult>;
57
- /**
58
- * Acquires a token by exchanging the authorization code received from the first step of OAuth 2.0 Authorization Code Flow.
59
- * In MCP mode, a resource parameter is required on the request.
60
- */
61
- acquireTokenByCode(request: AuthorizationCodeRequest, authCodePayLoad?: AuthorizationCodePayload): Promise<AuthenticationResult>;
62
- /**
63
- * Acquires a token by exchanging the refresh token provided for a new set of tokens.
64
- * In MCP mode, a resource parameter is required on the request.
65
- */
66
- acquireTokenByRefreshToken(request: RefreshTokenRequest): Promise<AuthenticationResult | null>;
67
- /**
68
- * Removes cache artifacts associated with the given account
69
- * @param request - developer provided SignOutRequest
70
- * @returns
71
- */
72
- signOut(request: SignOutRequest): Promise<void>;
73
- /**
74
- * Returns all cached accounts for this application. If brokering is enabled this request will be serviced by the broker.
75
- * @returns
76
- */
77
- getAllAccounts(): Promise<AccountInfo[]>;
78
- /**
79
- * Attempts to retrieve the redirectUri from the loopback server. If the loopback server does not start listening for requests within the timeout this will throw.
80
- * @param loopbackClient - developer provided custom loopback server implementation
81
- * @returns
82
- */
83
- private waitForRedirectUri;
84
- }
85
- //# sourceMappingURL=PublicClientApplication.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PublicClientApplication.d.ts","sourceRoot":"","sources":["../../../src/client/PublicClientApplication.ts"],"names":[],"mappings":"AAUA,OAAO,EACH,oBAAoB,EAMpB,WAAW,EAKX,wBAAwB,EAE3B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAGpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAGtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAKxE;;;;GAIG;AACH,qBAAa,uBACT,SAAQ,iBACR,YAAW,wBAAwB;IAEnC,OAAO,CAAC,kBAAkB,CAAC,CAAsB;IACjD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAS;IAC9B;;;;;;;;;;;;;;;;OAgBG;gBACS,aAAa,EAAE,aAAa;IAqBxC;;;;;;;;OAQG;IACU,wBAAwB,CACjC,OAAO,EAAE,iBAAiB,GAC3B,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IA0CvC;;OAEG;IACG,uBAAuB,CACzB,OAAO,EAAE,kBAAkB,GAC5B,OAAO,CAAC,oBAAoB,CAAC;IA2GhC;;;;OAIG;IACG,kBAAkB,CACpB,OAAO,EAAE,iBAAiB,GAC3B,OAAO,CAAC,oBAAoB,CAAC;IAoChC;;;OAGG;IACG,kBAAkB,CACpB,OAAO,EAAE,wBAAwB,EACjC,eAAe,CAAC,EAAE,wBAAwB,GAC3C,OAAO,CAAC,oBAAoB,CAAC;IAKhC;;;OAGG;IACG,0BAA0B,CAC5B,OAAO,EAAE,mBAAmB,GAC7B,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IAKvC;;;;OAIG;IACG,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAkBrD;;;OAGG;IACG,cAAc,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;IAY9C;;;;OAIG;YACW,kBAAkB;CAsCnC"}
@@ -1,30 +0,0 @@
1
- import { AuthenticationResult, ClientConfiguration } from "@azure/msal-common/node";
2
- import { CommonUsernamePasswordRequest } from "../request/CommonUsernamePasswordRequest.js";
3
- import { BaseClient } from "./BaseClient.js";
4
- /**
5
- * Oauth2.0 Password grant client
6
- * Note: We are only supporting public clients for password grant and for purely testing purposes
7
- * @public
8
- * @deprecated - Use a more secure flow instead
9
- */
10
- export declare class UsernamePasswordClient extends BaseClient {
11
- constructor(configuration: ClientConfiguration);
12
- /**
13
- * API to acquire a token by passing the username and password to the service in exchage of credentials
14
- * password_grant
15
- * @param request - CommonUsernamePasswordRequest
16
- */
17
- acquireToken(request: CommonUsernamePasswordRequest): Promise<AuthenticationResult | null>;
18
- /**
19
- * Executes POST request to token endpoint
20
- * @param authority - authority object
21
- * @param request - CommonUsernamePasswordRequest provided by the developer
22
- */
23
- private executeTokenRequest;
24
- /**
25
- * Generates a map for all the params to be sent to the service
26
- * @param request - CommonUsernamePasswordRequest provided by the developer
27
- */
28
- private createTokenRequestBody;
29
- }
30
- //# sourceMappingURL=UsernamePasswordClient.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UsernamePasswordClient.d.ts","sourceRoot":"","sources":["../../../src/client/UsernamePasswordClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,oBAAoB,EAIpB,mBAAmB,EAYtB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C;;;;;GAKG;AACH,qBAAa,sBAAuB,SAAQ,UAAU;gBACtC,aAAa,EAAE,mBAAmB;IAI9C;;;;OAIG;IACG,YAAY,CACd,OAAO,EAAE,6BAA6B,GACvC,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IAsCvC;;;;OAIG;YACW,mBAAmB;IAmCjC;;;OAGG;YACW,sBAAsB;CA6FvC"}
@@ -1,131 +0,0 @@
1
- import { LoggerOptions, INetworkModule, ProtocolMode, ICachePlugin, AzureCloudOptions, ApplicationTelemetry, INativeBrokerPlugin, ClientAssertionCallback } from "@azure/msal-common/node";
2
- import { ManagedIdentityId } from "./ManagedIdentityId.js";
3
- /**
4
- * - clientId - Client id of the application.
5
- * - authority - Url of the authority. If no value is set, defaults to https://login.microsoftonline.com/common.
6
- * - knownAuthorities - Needed for Azure B2C and ADFS. All authorities that will be used in the client application. Only the host of the authority should be passed in.
7
- * - clientSecret - Secret string that the application uses when requesting a token. Only used in confidential client applications. Can be created in the Azure app registration portal.
8
- * - clientAssertion - A ClientAssertion object containing an assertion string or a callback function that returns an assertion string that the application uses when requesting a token, as well as the assertion's type (urn:ietf:params:oauth:client-assertion-type:jwt-bearer). Only used in confidential client applications.
9
- * - clientCertificate - Certificate that the application uses when requesting a token. Only used in confidential client applications. Requires hex encoded X.509 SHA-1 or SHA-256 thumbprint of the certificate, and the PEM encoded private key (string should contain -----BEGIN PRIVATE KEY----- ... -----END PRIVATE KEY----- )
10
- * @public
11
- */
12
- export type NodeAuthOptions = {
13
- clientId: string;
14
- authority?: string;
15
- clientSecret?: string;
16
- clientAssertion?: string | ClientAssertionCallback;
17
- clientCertificate?: {
18
- /**
19
- * @deprecated Use thumbprintSha2 property instead. Thumbprint needs to be computed with SHA-256 algorithm.
20
- * SHA-1 is only needed for backwards compatibility with older versions of ADFS.
21
- */
22
- thumbprint?: string;
23
- thumbprintSha256?: string;
24
- privateKey: string;
25
- x5c?: string;
26
- };
27
- knownAuthorities?: Array<string>;
28
- cloudDiscoveryMetadata?: string;
29
- authorityMetadata?: string;
30
- clientCapabilities?: Array<string>;
31
- azureCloudOptions?: AzureCloudOptions;
32
- /**
33
- * Flag on whether a resource parameter is required for token requests. Used for MCP flows.
34
- */
35
- isMcp?: boolean;
36
- };
37
- /**
38
- * Use this to configure the below cache configuration options:
39
- *
40
- * - cachePlugin - Plugin for reading and writing token cache to disk.
41
- * @public
42
- */
43
- export type CacheOptions = {
44
- cachePlugin?: ICachePlugin;
45
- };
46
- /**
47
- * Use this to configure the below broker options:
48
- * - nativeBrokerPlugin - Native broker implementation (should be imported from msal-node-extensions)
49
- *
50
- * Note: These options are only available for PublicClientApplications using the Authorization Code Flow
51
- * @public
52
- */
53
- export type BrokerOptions = {
54
- nativeBrokerPlugin?: INativeBrokerPlugin;
55
- };
56
- /**
57
- * Type for configuring logger and http client options
58
- *
59
- * - logger - Used to initialize the Logger object; TODO: Expand on logger details or link to the documentation on logger
60
- * - networkClient - Http client used for all http get and post calls. Defaults to using MSAL's default http client.
61
- * - protocolMode - Enum that represents the protocol that msal follows. Used for configuring proper endpoints.
62
- * @public
63
- */
64
- export type NodeSystemOptions = {
65
- loggerOptions?: LoggerOptions;
66
- networkClient?: INetworkModule;
67
- disableInternalRetries?: boolean;
68
- protocolMode?: ProtocolMode;
69
- };
70
- /** @public */
71
- export type NodeTelemetryOptions = {
72
- application?: ApplicationTelemetry;
73
- };
74
- /**
75
- * Use the configuration object to configure MSAL and initialize the client application object
76
- *
77
- * - auth: this is where you configure auth elements like clientID, authority used for authenticating against the Microsoft Identity Platform
78
- * - broker: this is where you configure broker options
79
- * - cache: this is where you configure cache location
80
- * - system: this is where you can configure the network client, logger
81
- * - telemetry: this is where you can configure telemetry options
82
- * @public
83
- */
84
- export type Configuration = {
85
- auth: NodeAuthOptions;
86
- broker?: BrokerOptions;
87
- cache?: CacheOptions;
88
- system?: NodeSystemOptions;
89
- telemetry?: NodeTelemetryOptions;
90
- };
91
- /** @public */
92
- export type ManagedIdentityIdParams = {
93
- userAssignedClientId?: string;
94
- userAssignedResourceId?: string;
95
- userAssignedObjectId?: string;
96
- };
97
- /** @public */
98
- export type ManagedIdentityConfiguration = {
99
- clientCapabilities?: Array<string>;
100
- managedIdentityIdParams?: ManagedIdentityIdParams;
101
- system?: NodeSystemOptions;
102
- };
103
- /** @internal */
104
- export type NodeConfiguration = {
105
- auth: Required<NodeAuthOptions>;
106
- broker: BrokerOptions;
107
- cache: CacheOptions;
108
- system: Required<NodeSystemOptions>;
109
- telemetry: Required<NodeTelemetryOptions>;
110
- };
111
- /**
112
- * Sets the default options when not explicitly configured from app developer
113
- *
114
- * @param auth - Authentication options
115
- * @param cache - Cache options
116
- * @param system - System options
117
- * @param telemetry - Telemetry options
118
- *
119
- * @returns Configuration
120
- * @internal
121
- */
122
- export declare function buildAppConfiguration({ auth, broker, cache, system, telemetry, }: Configuration): NodeConfiguration;
123
- /** @internal */
124
- export type ManagedIdentityNodeConfiguration = {
125
- clientCapabilities?: Array<string>;
126
- disableInternalRetries: boolean;
127
- managedIdentityId: ManagedIdentityId;
128
- system: Required<Pick<NodeSystemOptions, "loggerOptions" | "networkClient">>;
129
- };
130
- export declare function buildManagedIdentityConfiguration({ clientCapabilities, managedIdentityIdParams, system, }: ManagedIdentityConfiguration): ManagedIdentityNodeConfiguration;
131
- //# sourceMappingURL=Configuration.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Configuration.d.ts","sourceRoot":"","sources":["../../../src/config/Configuration.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,aAAa,EACb,cAAc,EAEd,YAAY,EACZ,YAAY,EAEZ,iBAAiB,EACjB,oBAAoB,EACpB,mBAAmB,EACnB,uBAAuB,EAE1B,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAG3D;;;;;;;;GAQG;AACH,MAAM,MAAM,eAAe,GAAG;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,GAAG,uBAAuB,CAAC;IACnD,iBAAiB,CAAC,EAAE;QAChB;;;WAGG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,UAAU,EAAE,MAAM,CAAC;QACnB,GAAG,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,gBAAgB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kBAAkB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACnC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG;IACvB,WAAW,CAAC,EAAE,YAAY,CAAC;CAC9B,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,GAAG;IACxB,kBAAkB,CAAC,EAAE,mBAAmB,CAAC;CAC5C,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC5B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,aAAa,CAAC,EAAE,cAAc,CAAC;IAC/B,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,YAAY,CAAC,EAAE,YAAY,CAAC;CAC/B,CAAC;AAEF,cAAc;AACd,MAAM,MAAM,oBAAoB,GAAG;IAC/B,WAAW,CAAC,EAAE,oBAAoB,CAAC;CACtC,CAAC;AAEF;;;;;;;;;GASG;AACH,MAAM,MAAM,aAAa,GAAG;IACxB,IAAI,EAAE,eAAe,CAAC;IACtB,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,SAAS,CAAC,EAAE,oBAAoB,CAAC;CACpC,CAAC;AAEF,cAAc;AACd,MAAM,MAAM,uBAAuB,GAAG;IAClC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,oBAAoB,CAAC,EAAE,MAAM,CAAC;CACjC,CAAC;AAEF,cAAc;AACd,MAAM,MAAM,4BAA4B,GAAG;IACvC,kBAAkB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACnC,uBAAuB,CAAC,EAAE,uBAAuB,CAAC;IAClD,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC9B,CAAC;AA8CF,gBAAgB;AAChB,MAAM,MAAM,iBAAiB,GAAG;IAC5B,IAAI,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IAChC,MAAM,EAAE,aAAa,CAAC;IACtB,KAAK,EAAE,YAAY,CAAC;IACpB,MAAM,EAAE,QAAQ,CAAC,iBAAiB,CAAC,CAAC;IACpC,SAAS,EAAE,QAAQ,CAAC,oBAAoB,CAAC,CAAC;CAC7C,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,qBAAqB,CAAC,EAClC,IAAI,EACJ,MAAM,EACN,KAAK,EACL,MAAM,EACN,SAAS,GACZ,EAAE,aAAa,GAAG,iBAAiB,CAwBnC;AAED,gBAAgB;AAChB,MAAM,MAAM,gCAAgC,GAAG;IAC3C,kBAAkB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACnC,sBAAsB,EAAE,OAAO,CAAC;IAChC,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,MAAM,EAAE,QAAQ,CACZ,IAAI,CAAC,iBAAiB,EAAE,eAAe,GAAG,eAAe,CAAC,CAC7D,CAAC;CACL,CAAC;AAEF,wBAAgB,iCAAiC,CAAC,EAC9C,kBAAkB,EAClB,uBAAuB,EACvB,MAAM,GACT,EAAE,4BAA4B,GAAG,gCAAgC,CA0BjE"}
@@ -1,12 +0,0 @@
1
- import { ManagedIdentityIdType } from "../utils/Constants.js";
2
- import type { ManagedIdentityIdParams } from "./Configuration.js";
3
- export declare class ManagedIdentityId {
4
- private _id;
5
- get id(): string;
6
- private set id(value);
7
- private _idType;
8
- get idType(): ManagedIdentityIdType;
9
- private set idType(value);
10
- constructor(managedIdentityIdParams?: ManagedIdentityIdParams);
11
- }
12
- //# sourceMappingURL=ManagedIdentityId.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ManagedIdentityId.d.ts","sourceRoot":"","sources":["../../../src/config/ManagedIdentityId.ts"],"names":[],"mappings":"AASA,OAAO,EAEH,qBAAqB,EACxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAElE,qBAAa,iBAAiB;IAC1B,OAAO,CAAC,GAAG,CAAS;IACpB,IAAW,EAAE,IAAI,MAAM,CAEtB;IACD,OAAO,KAAK,EAAE,QAEb;IAED,OAAO,CAAC,OAAO,CAAwB;IACvC,IAAW,MAAM,IAAI,qBAAqB,CAEzC;IACD,OAAO,KAAK,MAAM,QAEjB;gBAEW,uBAAuB,CAAC,EAAE,uBAAuB;CAwChE"}
@@ -1,13 +0,0 @@
1
- import { HttpMethod, RetryPolicies } from "../utils/Constants.js";
2
- export declare class ManagedIdentityRequestParameters {
3
- private _baseEndpoint;
4
- httpMethod: HttpMethod;
5
- headers: Record<string, string>;
6
- bodyParameters: Record<string, string>;
7
- queryParameters: Record<string, string>;
8
- retryPolicy: RetryPolicies;
9
- constructor(httpMethod: HttpMethod, endpoint: string, retryPolicy?: RetryPolicies);
10
- computeUri(): string;
11
- computeParametersBodyString(): string;
12
- }
13
- //# sourceMappingURL=ManagedIdentityRequestParameters.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ManagedIdentityRequestParameters.d.ts","sourceRoot":"","sources":["../../../src/config/ManagedIdentityRequestParameters.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAElE,qBAAa,gCAAgC;IACzC,OAAO,CAAC,aAAa,CAAS;IACvB,UAAU,EAAE,UAAU,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACvC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,WAAW,EAAE,aAAa,CAAC;gBAG9B,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,aAAa;IAYxB,UAAU,IAAI,MAAM;IAkBpB,2BAA2B,IAAI,MAAM;CAY/C"}
@@ -1,63 +0,0 @@
1
- import { ICrypto, PkceCodes } from "@azure/msal-common/node";
2
- /**
3
- * This class implements MSAL node's crypto interface, which allows it to perform base64 encoding and decoding, generating cryptographically random GUIDs and
4
- * implementing Proof Key for Code Exchange specs for the OAuth Authorization Code Flow using PKCE (rfc here: https://tools.ietf.org/html/rfc7636).
5
- * @public
6
- */
7
- export declare class CryptoProvider implements ICrypto {
8
- private pkceGenerator;
9
- private guidGenerator;
10
- private hashUtils;
11
- constructor();
12
- /**
13
- * base64 URL safe encoded string
14
- */
15
- base64UrlEncode(): string;
16
- /**
17
- * Stringifies and base64Url encodes input public key
18
- * @param inputKid - public key id
19
- * @returns Base64Url encoded public key
20
- */
21
- encodeKid(): string;
22
- /**
23
- * Creates a new random GUID - used to populate state and nonce.
24
- * @returns string (GUID)
25
- */
26
- createNewGuid(): string;
27
- /**
28
- * Encodes input string to base64.
29
- * @param input - string to be encoded
30
- */
31
- base64Encode(input: string): string;
32
- /**
33
- * Decodes input string from base64.
34
- * @param input - string to be decoded
35
- */
36
- base64Decode(input: string): string;
37
- /**
38
- * Generates PKCE codes used in Authorization Code Flow.
39
- */
40
- generatePkceCodes(): Promise<PkceCodes>;
41
- /**
42
- * Generates a keypair, stores it and returns a thumbprint - not yet implemented for node
43
- */
44
- getPublicKeyThumbprint(): Promise<string>;
45
- /**
46
- * Removes cryptographic keypair from key store matching the keyId passed in
47
- * @param kid - public key id
48
- */
49
- removeTokenBindingKey(): Promise<void>;
50
- /**
51
- * Removes all cryptographic keys from Keystore
52
- */
53
- clearKeystore(): Promise<boolean>;
54
- /**
55
- * Signs the given object as a jwt payload with private key retrieved by given kid - currently not implemented for node
56
- */
57
- signJwt(): Promise<string>;
58
- /**
59
- * Returns the SHA-256 hash of an input string
60
- */
61
- hashString(plainText: string): Promise<string>;
62
- }
63
- //# sourceMappingURL=CryptoProvider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CryptoProvider.d.ts","sourceRoot":"","sources":["../../../src/crypto/CryptoProvider.ts"],"names":[],"mappings":"AAKA,OAAO,EAAa,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAMxE;;;;GAIG;AACH,qBAAa,cAAe,YAAW,OAAO;IAC1C,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,SAAS,CAAY;;IAS7B;;OAEG;IACH,eAAe,IAAI,MAAM;IAGzB;;;;OAIG;IACH,SAAS,IAAI,MAAM;IAInB;;;OAGG;IACH,aAAa,IAAI,MAAM;IAIvB;;;OAGG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAInC;;;OAGG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAInC;;OAEG;IACH,iBAAiB,IAAI,OAAO,CAAC,SAAS,CAAC;IAIvC;;OAEG;IACH,sBAAsB,IAAI,OAAO,CAAC,MAAM,CAAC;IAIzC;;;OAGG;IACH,qBAAqB,IAAI,OAAO,CAAC,IAAI,CAAC;IAItC;;OAEG;IACH,aAAa,IAAI,OAAO,CAAC,OAAO,CAAC;IAIjC;;OAEG;IACH,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC;IAI1B;;OAEG;IACG,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAQvD"}
@@ -1,15 +0,0 @@
1
- import { IGuidGenerator } from "@azure/msal-common/node";
2
- export declare class GuidGenerator implements IGuidGenerator {
3
- /**
4
- *
5
- * RFC4122: The version 4 UUID is meant for generating UUIDs from truly-random or pseudo-random numbers.
6
- * uuidv4 generates guids from cryprtographically-string random
7
- */
8
- generateGuid(): string;
9
- /**
10
- * verifies if a string is GUID
11
- * @param guid
12
- */
13
- isGuid(guid: string): boolean;
14
- }
15
- //# sourceMappingURL=GuidGenerator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GuidGenerator.d.ts","sourceRoot":"","sources":["../../../src/crypto/GuidGenerator.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAGzD,qBAAa,aAAc,YAAW,cAAc;IAChD;;;;OAIG;IACH,YAAY,IAAI,MAAM;IAItB;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;CAKhC"}
@@ -1,10 +0,0 @@
1
- /// <reference types="node" resolution-mode="require"/>
2
- /// <reference types="node" resolution-mode="require"/>
3
- export declare class HashUtils {
4
- /**
5
- * generate 'SHA256' hash
6
- * @param buffer
7
- */
8
- sha256(buffer: string): Buffer;
9
- }
10
- //# sourceMappingURL=HashUtils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HashUtils.d.ts","sourceRoot":"","sources":["../../../src/crypto/HashUtils.ts"],"names":[],"mappings":";;AAQA,qBAAa,SAAS;IAClB;;;OAGG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;CAGjC"}
@@ -1,23 +0,0 @@
1
- import { PkceCodes } from "@azure/msal-common/node";
2
- /**
3
- * https://tools.ietf.org/html/rfc7636#page-8
4
- */
5
- export declare class PkceGenerator {
6
- private hashUtils;
7
- constructor();
8
- /**
9
- * generates the codeVerfier and the challenge from the codeVerfier
10
- * reference: https://tools.ietf.org/html/rfc7636#section-4.1 and https://tools.ietf.org/html/rfc7636#section-4.2
11
- */
12
- generatePkceCodes(): Promise<PkceCodes>;
13
- /**
14
- * generates the codeVerfier; reference: https://tools.ietf.org/html/rfc7636#section-4.1
15
- */
16
- private generateCodeVerifier;
17
- /**
18
- * generate the challenge from the codeVerfier; reference: https://tools.ietf.org/html/rfc7636#section-4.2
19
- * @param codeVerifier
20
- */
21
- private generateCodeChallengeFromVerifier;
22
- }
23
- //# sourceMappingURL=PkceGenerator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PkceGenerator.d.ts","sourceRoot":"","sources":["../../../src/crypto/PkceGenerator.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAa,MAAM,yBAAyB,CAAC;AAM/D;;GAEG;AACH,qBAAa,aAAa;IACtB,OAAO,CAAC,SAAS,CAAY;;IAK7B;;;OAGG;IACG,iBAAiB,IAAI,OAAO,CAAC,SAAS,CAAC;IAM7C;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAmB5B;;;OAGG;IACH,OAAO,CAAC,iCAAiC;CAQ5C"}
@@ -1,8 +0,0 @@
1
- export declare const missingTenantIdError = "missing_tenant_id_error";
2
- export declare const userTimeoutReached = "user_timeout_reached";
3
- export declare const invalidAssertion = "invalid_assertion";
4
- export declare const invalidClientCredential = "invalid_client_credential";
5
- export declare const deviceCodePollingCancelled = "device_code_polling_cancelled";
6
- export declare const deviceCodeExpired = "device_code_expired";
7
- export declare const deviceCodeUnknownError = "device_code_unknown_error";
8
- //# sourceMappingURL=ClientAuthErrorCodes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ClientAuthErrorCodes.d.ts","sourceRoot":"","sources":["../../../src/error/ClientAuthErrorCodes.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,oBAAoB,4BAA4B,CAAC;AAC9D,eAAO,MAAM,kBAAkB,yBAAyB,CAAC;AACzD,eAAO,MAAM,gBAAgB,sBAAsB,CAAC;AACpD,eAAO,MAAM,uBAAuB,8BAA8B,CAAC;AACnE,eAAO,MAAM,0BAA0B,kCAAkC,CAAC;AAC1E,eAAO,MAAM,iBAAiB,wBAAwB,CAAC;AACvD,eAAO,MAAM,sBAAsB,8BAA8B,CAAC"}
@@ -1,31 +0,0 @@
1
- import { AuthError } from "@azure/msal-common/node";
2
- import * as ManagedIdentityErrorCodes from "./ManagedIdentityErrorCodes.js";
3
- export { ManagedIdentityErrorCodes };
4
- /**
5
- * ManagedIdentityErrorMessage class containing string constants used by error codes and messages.
6
- */
7
- export declare const ManagedIdentityErrorMessages: {
8
- invalid_file_extension: string;
9
- invalid_file_path: string;
10
- invalid_managed_identity_id_type: string;
11
- invalid_secret: string;
12
- platform_not_supported: string;
13
- missing_client_id: string;
14
- azure_pod_identity_authority_host_url_malformed: string;
15
- identity_endpoint_url_malformed: string;
16
- imds_endpoint_url_malformed: string;
17
- msi_endpoint_url_malformed: string;
18
- network_unavailable: string;
19
- unable_to_create_azure_arc: string;
20
- unable_to_create_cloud_shell: string;
21
- unable_to_create_source: string;
22
- unable_to_read_secret_file: string;
23
- user_assigned_not_available_at_runtime: string;
24
- www_authenticate_header_missing: string;
25
- www_authenticate_header_unsupported_format: string;
26
- };
27
- export declare class ManagedIdentityError extends AuthError {
28
- constructor(errorCode: string);
29
- }
30
- export declare function createManagedIdentityError(errorCode: string): ManagedIdentityError;
31
- //# sourceMappingURL=ManagedIdentityError.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ManagedIdentityError.d.ts","sourceRoot":"","sources":["../../../src/error/ManagedIdentityError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,yBAAyB,MAAM,gCAAgC,CAAC;AAE5E,OAAO,EAAE,yBAAyB,EAAE,CAAC;AAErC;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;CAqCxC,CAAC;AAEF,qBAAa,oBAAqB,SAAQ,SAAS;gBACnC,SAAS,EAAE,MAAM;CAKhC;AAED,wBAAgB,0BAA0B,CACtC,SAAS,EAAE,MAAM,GAClB,oBAAoB,CAEtB"}