@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,156 +0,0 @@
1
- import { DefaultManagedIdentityRetryPolicy } from "../retry/DefaultManagedIdentityRetryPolicy.js";
2
- import { ImdsRetryPolicy } from "../retry/ImdsRetryPolicy.js";
3
- export declare const DEFAULT_MANAGED_IDENTITY_ID = "system_assigned_managed_identity";
4
- export declare const MANAGED_IDENTITY_DEFAULT_TENANT = "managed_identity";
5
- export declare const DEFAULT_AUTHORITY_FOR_MANAGED_IDENTITY: string;
6
- /**
7
- * Managed Identity Headers - used in network requests
8
- */
9
- export declare const ManagedIdentityHeaders: {
10
- readonly AUTHORIZATION_HEADER_NAME: "Authorization";
11
- readonly METADATA_HEADER_NAME: "Metadata";
12
- readonly APP_SERVICE_SECRET_HEADER_NAME: "X-IDENTITY-HEADER";
13
- readonly ML_AND_SF_SECRET_HEADER_NAME: "secret";
14
- };
15
- export type ManagedIdentityHeaders = (typeof ManagedIdentityHeaders)[keyof typeof ManagedIdentityHeaders];
16
- /**
17
- * Managed Identity Query Parameters - used in network requests
18
- */
19
- export declare const ManagedIdentityQueryParameters: {
20
- readonly API_VERSION: "api-version";
21
- readonly RESOURCE: "resource";
22
- readonly SHA256_TOKEN_TO_REFRESH: "token_sha256_to_refresh";
23
- readonly XMS_CC: "xms_cc";
24
- };
25
- export type ManagedIdentityQueryParameters = (typeof ManagedIdentityQueryParameters)[keyof typeof ManagedIdentityQueryParameters];
26
- /**
27
- * Managed Identity Environment Variable Names
28
- */
29
- export declare const ManagedIdentityEnvironmentVariableNames: {
30
- readonly AZURE_POD_IDENTITY_AUTHORITY_HOST: "AZURE_POD_IDENTITY_AUTHORITY_HOST";
31
- readonly DEFAULT_IDENTITY_CLIENT_ID: "DEFAULT_IDENTITY_CLIENT_ID";
32
- readonly IDENTITY_ENDPOINT: "IDENTITY_ENDPOINT";
33
- readonly IDENTITY_HEADER: "IDENTITY_HEADER";
34
- readonly IDENTITY_SERVER_THUMBPRINT: "IDENTITY_SERVER_THUMBPRINT";
35
- readonly IMDS_ENDPOINT: "IMDS_ENDPOINT";
36
- readonly MSI_ENDPOINT: "MSI_ENDPOINT";
37
- readonly MSI_SECRET: "MSI_SECRET";
38
- };
39
- export type ManagedIdentityEnvironmentVariableNames = (typeof ManagedIdentityEnvironmentVariableNames)[keyof typeof ManagedIdentityEnvironmentVariableNames];
40
- /**
41
- * Managed Identity Source Names
42
- * @public
43
- */
44
- export declare const ManagedIdentitySourceNames: {
45
- readonly APP_SERVICE: "AppService";
46
- readonly AZURE_ARC: "AzureArc";
47
- readonly CLOUD_SHELL: "CloudShell";
48
- readonly DEFAULT_TO_IMDS: "DefaultToImds";
49
- readonly IMDS: "Imds";
50
- readonly MACHINE_LEARNING: "MachineLearning";
51
- readonly SERVICE_FABRIC: "ServiceFabric";
52
- };
53
- /**
54
- * The ManagedIdentitySourceNames type
55
- * @public
56
- */
57
- export type ManagedIdentitySourceNames = (typeof ManagedIdentitySourceNames)[keyof typeof ManagedIdentitySourceNames];
58
- /**
59
- * Managed Identity Ids
60
- */
61
- export declare const ManagedIdentityIdType: {
62
- readonly SYSTEM_ASSIGNED: "system-assigned";
63
- readonly USER_ASSIGNED_CLIENT_ID: "user-assigned-client-id";
64
- readonly USER_ASSIGNED_RESOURCE_ID: "user-assigned-resource-id";
65
- readonly USER_ASSIGNED_OBJECT_ID: "user-assigned-object-id";
66
- };
67
- export type ManagedIdentityIdType = (typeof ManagedIdentityIdType)[keyof typeof ManagedIdentityIdType];
68
- /**
69
- * http methods
70
- */
71
- export declare const HttpMethod: {
72
- readonly GET: "GET";
73
- readonly POST: "POST";
74
- };
75
- export type HttpMethod = (typeof HttpMethod)[keyof typeof HttpMethod];
76
- /**
77
- * Constants used for region discovery
78
- */
79
- export declare const REGION_ENVIRONMENT_VARIABLE = "REGION_NAME";
80
- export declare const MSAL_FORCE_REGION = "MSAL_FORCE_REGION";
81
- /**
82
- * Constant used for PKCE
83
- */
84
- export declare const RANDOM_OCTET_SIZE = 32;
85
- /**
86
- * Constants used in PKCE
87
- */
88
- export declare const Hash: {
89
- SHA256: string;
90
- };
91
- /**
92
- * Constants for encoding schemes
93
- */
94
- export declare const CharSet: {
95
- CV_CHARSET: string;
96
- };
97
- /**
98
- * Cache Constants
99
- */
100
- export declare const CACHE: {
101
- FILE_CACHE: string;
102
- EXTENSION_LIB: string;
103
- KEY_SEPARATOR: string;
104
- };
105
- /**
106
- * Constants
107
- */
108
- export declare const Constants: {
109
- MSAL_SKU: string;
110
- JWT_BEARER_ASSERTION_TYPE: string;
111
- AUTHORIZATION_PENDING: string;
112
- HTTP_PROTOCOL: string;
113
- LOCALHOST: string;
114
- };
115
- /**
116
- * API Codes for Telemetry purposes.
117
- * Before adding a new code you must claim it in the MSAL Telemetry tracker as these number spaces are shared across all MSALs
118
- * 0-99 Silent Flow
119
- * 600-699 Device Code Flow
120
- * 800-899 Auth Code Flow
121
- */
122
- export declare const ApiId: {
123
- acquireTokenSilent: number;
124
- acquireTokenByUsernamePassword: number;
125
- acquireTokenByDeviceCode: number;
126
- acquireTokenByClientCredential: number;
127
- acquireTokenByOBO: number;
128
- acquireTokenWithManagedIdentity: number;
129
- acquireTokenByCode: number;
130
- acquireTokenByRefreshToken: number;
131
- };
132
- export type ApiId = (typeof ApiId)[keyof typeof ApiId];
133
- /**
134
- * JWT constants
135
- */
136
- export declare const JwtConstants: {
137
- ALGORITHM: string;
138
- RSA_256: string;
139
- PSS_256: string;
140
- X5T_256: string;
141
- X5T: string;
142
- X5C: string;
143
- AUDIENCE: string;
144
- EXPIRATION_TIME: string;
145
- ISSUER: string;
146
- SUBJECT: string;
147
- NOT_BEFORE: string;
148
- JWT_ID: string;
149
- };
150
- export declare const LOOPBACK_SERVER_CONSTANTS: {
151
- INTERVAL_MS: number;
152
- TIMEOUT_MS: number;
153
- };
154
- export declare const AZURE_ARC_SECRET_FILE_MAX_SIZE_BYTES: number;
155
- export type RetryPolicies = DefaultManagedIdentityRetryPolicy | ImdsRetryPolicy;
156
- //# sourceMappingURL=Constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Constants.d.ts","sourceRoot":"","sources":["../../src/utils/Constants.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iCAAiC,EAAE,MAAM,+CAA+C,CAAC;AAClG,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAG9D,eAAO,MAAM,2BAA2B,qCAAqC,CAAC;AAC9E,eAAO,MAAM,+BAA+B,qBAAqB,CAAC;AAClE,eAAO,MAAM,sCAAsC,QAA0E,CAAC;AAE9H;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;CAKzB,CAAC;AACX,MAAM,MAAM,sBAAsB,GAC9B,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,OAAO,sBAAsB,CAAC,CAAC;AAEzE;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;;;CAKjC,CAAC;AACX,MAAM,MAAM,8BAA8B,GACtC,CAAC,OAAO,8BAA8B,CAAC,CAAC,MAAM,OAAO,8BAA8B,CAAC,CAAC;AAEzF;;GAEG;AACH,eAAO,MAAM,uCAAuC;;;;;;;;;CAS1C,CAAC;AACX,MAAM,MA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aAAa,GAAG,iCAAiC,GAAG,eAAe,CAAC"}
@@ -1,4 +0,0 @@
1
- import { AccountInfo, CredentialEntity } from "@azure/msal-common/node";
2
- export declare function generateCredentialKey(credential: CredentialEntity): string;
3
- export declare function generateAccountKey(account: AccountInfo): string;
4
- //# sourceMappingURL=CacheHelpers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CacheHelpers.d.ts","sourceRoot":"","sources":["../../../src/cache/CacheHelpers.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,WAAW,EAEX,gBAAgB,EACnB,MAAM,yBAAyB,CAAC;AAGjC,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,gBAAgB,GAAG,MAAM,CAsB1E;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,CAS/D"}
@@ -1,16 +0,0 @@
1
- import { AccountInfo } from "@azure/msal-common/node";
2
- /**
3
- * Token cache interface for the client, giving access to cache APIs
4
- * @public
5
- */
6
- export interface ITokenCache {
7
- /** API that retrieves all accounts currently in cache to the user */
8
- getAllAccounts(): Promise<AccountInfo[]>;
9
- /** Returns the signed in account matching homeAccountId */
10
- getAccountByHomeId(homeAccountId: string): Promise<AccountInfo | null>;
11
- /** Returns the signed in account matching localAccountId */
12
- getAccountByLocalId(localAccountId: string): Promise<AccountInfo | null>;
13
- /** API to remove a specific account and the relevant data from cache */
14
- removeAccount(account: AccountInfo): Promise<void>;
15
- }
16
- //# sourceMappingURL=ITokenCache.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ITokenCache.d.ts","sourceRoot":"","sources":["../../../src/cache/ITokenCache.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD;;;GAGG;AACH,MAAM,WAAW,WAAW;IACxB,qEAAqE;IACrE,cAAc,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;IAEzC,2DAA2D;IAC3D,kBAAkB,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAEvE,4DAA4D;IAC5D,mBAAmB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAEzE,wEAAwE;IACxE,aAAa,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACtD"}
@@ -1,191 +0,0 @@
1
- import { TokenKeys, AccountEntity, IdTokenEntity, AccessTokenEntity, RefreshTokenEntity, AppMetadataEntity, ServerTelemetryEntity, ThrottlingEntity, CacheManager, Logger, ValidCacheType, ICrypto, AuthorityMetadataEntity, ValidCredentialType, StaticAuthorityOptions, CredentialEntity, AccountInfo } from "@azure/msal-common/node";
2
- import { InMemoryCache, JsonCache, CacheKVStore } from "./serializer/SerializerTypes.js";
3
- /**
4
- * This class implements Storage for node, reading cache from user specified storage location or an extension library
5
- * @public
6
- */
7
- export declare class NodeStorage extends CacheManager {
8
- private logger;
9
- private cache;
10
- private changeEmitters;
11
- constructor(logger: Logger, clientId: string, cryptoImpl: ICrypto, staticAuthorityOptions?: StaticAuthorityOptions);
12
- /**
13
- * Queue up callbacks
14
- * @param func - a callback function for cache change indication
15
- */
16
- registerChangeEmitter(func: () => void): void;
17
- /**
18
- * Invoke the callback when cache changes
19
- */
20
- emitChange(): void;
21
- /**
22
- * Converts cacheKVStore to InMemoryCache
23
- * @param cache - key value store
24
- */
25
- cacheToInMemoryCache(cache: CacheKVStore): InMemoryCache;
26
- /**
27
- * converts inMemoryCache to CacheKVStore
28
- * @param inMemoryCache - kvstore map for inmemory
29
- */
30
- inMemoryCacheToCache(inMemoryCache: InMemoryCache): CacheKVStore;
31
- /**
32
- * gets the current in memory cache for the client
33
- */
34
- getInMemoryCache(): InMemoryCache;
35
- /**
36
- * sets the current in memory cache for the client
37
- * @param inMemoryCache - key value map in memory
38
- */
39
- setInMemoryCache(inMemoryCache: InMemoryCache): void;
40
- /**
41
- * get the current cache key-value store
42
- */
43
- getCache(): CacheKVStore;
44
- /**
45
- * sets the current cache (key value store)
46
- * @param cacheMap - key value map
47
- */
48
- setCache(cache: CacheKVStore): void;
49
- /**
50
- * Gets cache item with given key.
51
- * @param key - lookup key for the cache entry
52
- */
53
- getItem(key: string): ValidCacheType;
54
- /**
55
- * Gets cache item with given key-value
56
- * @param key - lookup key for the cache entry
57
- * @param value - value of the cache entry
58
- */
59
- setItem(key: string, value: ValidCacheType): void;
60
- generateCredentialKey(credential: CredentialEntity): string;
61
- generateAccountKey(account: AccountInfo): string;
62
- getAccountKeys(): string[];
63
- getTokenKeys(): TokenKeys;
64
- /**
65
- * Reads account from cache, builds it into an account entity and returns it.
66
- * @param accountKey - lookup key to fetch cache type AccountEntity
67
- * @returns
68
- */
69
- getAccount(accountKey: string): AccountEntity | null;
70
- /**
71
- * set account entity
72
- * @param account - cache value to be set of type AccountEntity
73
- */
74
- setAccount(account: AccountEntity): Promise<void>;
75
- /**
76
- * fetch the idToken credential
77
- * @param idTokenKey - lookup key to fetch cache type IdTokenEntity
78
- */
79
- getIdTokenCredential(idTokenKey: string): IdTokenEntity | null;
80
- /**
81
- * set idToken credential
82
- * @param idToken - cache value to be set of type IdTokenEntity
83
- */
84
- setIdTokenCredential(idToken: IdTokenEntity): Promise<void>;
85
- /**
86
- * fetch the accessToken credential
87
- * @param accessTokenKey - lookup key to fetch cache type AccessTokenEntity
88
- */
89
- getAccessTokenCredential(accessTokenKey: string): AccessTokenEntity | null;
90
- /**
91
- * set accessToken credential
92
- * @param accessToken - cache value to be set of type AccessTokenEntity
93
- */
94
- setAccessTokenCredential(accessToken: AccessTokenEntity): Promise<void>;
95
- /**
96
- * fetch the refreshToken credential
97
- * @param refreshTokenKey - lookup key to fetch cache type RefreshTokenEntity
98
- */
99
- getRefreshTokenCredential(refreshTokenKey: string): RefreshTokenEntity | null;
100
- /**
101
- * set refreshToken credential
102
- * @param refreshToken - cache value to be set of type RefreshTokenEntity
103
- */
104
- setRefreshTokenCredential(refreshToken: RefreshTokenEntity): Promise<void>;
105
- /**
106
- * fetch appMetadata entity from the platform cache
107
- * @param appMetadataKey - lookup key to fetch cache type AppMetadataEntity
108
- */
109
- getAppMetadata(appMetadataKey: string): AppMetadataEntity | null;
110
- /**
111
- * set appMetadata entity to the platform cache
112
- * @param appMetadata - cache value to be set of type AppMetadataEntity
113
- */
114
- setAppMetadata(appMetadata: AppMetadataEntity): void;
115
- /**
116
- * fetch server telemetry entity from the platform cache
117
- * @param serverTelemetrykey - lookup key to fetch cache type ServerTelemetryEntity
118
- */
119
- getServerTelemetry(serverTelemetrykey: string): ServerTelemetryEntity | null;
120
- /**
121
- * set server telemetry entity to the platform cache
122
- * @param serverTelemetryKey - lookup key to fetch cache type ServerTelemetryEntity
123
- * @param serverTelemetry - cache value to be set of type ServerTelemetryEntity
124
- */
125
- setServerTelemetry(serverTelemetryKey: string, serverTelemetry: ServerTelemetryEntity): void;
126
- /**
127
- * fetch authority metadata entity from the platform cache
128
- * @param key - lookup key to fetch cache type AuthorityMetadataEntity
129
- */
130
- getAuthorityMetadata(key: string): AuthorityMetadataEntity | null;
131
- /**
132
- * Get all authority metadata keys
133
- */
134
- getAuthorityMetadataKeys(): Array<string>;
135
- /**
136
- * set authority metadata entity to the platform cache
137
- * @param key - lookup key to fetch cache type AuthorityMetadataEntity
138
- * @param metadata - cache value to be set of type AuthorityMetadataEntity
139
- */
140
- setAuthorityMetadata(key: string, metadata: AuthorityMetadataEntity): void;
141
- /**
142
- * fetch throttling entity from the platform cache
143
- * @param throttlingCacheKey - lookup key to fetch cache type ThrottlingEntity
144
- */
145
- getThrottlingCache(throttlingCacheKey: string): ThrottlingEntity | null;
146
- /**
147
- * set throttling entity to the platform cache
148
- * @param throttlingCacheKey - lookup key to fetch cache type ThrottlingEntity
149
- * @param throttlingCache - cache value to be set of type ThrottlingEntity
150
- */
151
- setThrottlingCache(throttlingCacheKey: string, throttlingCache: ThrottlingEntity): void;
152
- /**
153
- * Removes the cache item from memory with the given key.
154
- * @param key - lookup key to remove a cache entity
155
- * @param inMemory - key value map of the cache
156
- */
157
- removeItem(key: string): boolean;
158
- /**
159
- * Remove account entity from the platform cache if it's outdated
160
- * @param accountKey - lookup key to fetch cache type AccountEntity
161
- */
162
- removeOutdatedAccount(accountKey: string): void;
163
- /**
164
- * Checks whether key is in cache.
165
- * @param key - look up key for a cache entity
166
- */
167
- containsKey(key: string): boolean;
168
- /**
169
- * Gets all keys in window.
170
- */
171
- getKeys(): string[];
172
- /**
173
- * Clears all cache entries created by MSAL (except tokens).
174
- */
175
- clear(): void;
176
- /**
177
- * Initialize in memory cache from an exisiting cache vault
178
- * @param cache - blob formatted cache (JSON)
179
- */
180
- static generateInMemoryCache(cache: string): InMemoryCache;
181
- /**
182
- * retrieves the final JSON
183
- * @param inMemoryCache - itemised cache read from the JSON
184
- */
185
- static generateJsonCache(inMemoryCache: InMemoryCache): JsonCache;
186
- /**
187
- * Updates a credential's cache key if the current cache key is outdated
188
- */
189
- updateCredentialCacheKey(currentCacheKey: string, credential: ValidCredentialType): string;
190
- }
191
- //# sourceMappingURL=NodeStorage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NodeStorage.d.ts","sourceRoot":"","sources":["../../../src/cache/NodeStorage.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,SAAS,EACT,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,gBAAgB,EAChB,YAAY,EACZ,MAAM,EACN,cAAc,EACd,OAAO,EACP,uBAAuB,EACvB,mBAAmB,EACnB,sBAAsB,EAGtB,gBAAgB,EAChB,WAAW,EAEd,MAAM,yBAAyB,CAAC;AAIjC,OAAO,EACH,aAAa,EACb,SAAS,EACT,YAAY,EACf,MAAM,iCAAiC,CAAC;AAGzC;;;GAGG;AACH,qBAAa,WAAY,SAAQ,YAAY;IAEzC,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC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,MAAM,GAAG,OAAO;IAIjC;;OAEG;IACH,OAAO,IAAI,MAAM,EAAE;IAQnB;;OAEG;IACH,KAAK,IAAI,IAAI;IAab;;;OAGG;IACH,MAAM,CAAC,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa;IAM1D;;;OAGG;IACH,MAAM,CAAC,iBAAiB,CAAC,aAAa,EAAE,aAAa,GAAG,SAAS;IAIjE;;OAEG;IACH,wBAAwB,CACpB,eAAe,EAAE,MAAM,EACvB,UAAU,EAAE,mBAAmB,GAChC,MAAM;CAuBZ"}
@@ -1,99 +0,0 @@
1
- import { NodeStorage } from "./NodeStorage.js";
2
- import { AccountInfo, Logger, ISerializableTokenCache, ICachePlugin } from "@azure/msal-common/node";
3
- import { CacheKVStore } from "./serializer/SerializerTypes.js";
4
- import { ITokenCache } from "./ITokenCache.js";
5
- /**
6
- * In-memory token cache manager
7
- * @public
8
- */
9
- export declare class TokenCache implements ISerializableTokenCache, ITokenCache {
10
- private storage;
11
- private cacheHasChanged;
12
- private cacheSnapshot;
13
- readonly persistence: ICachePlugin;
14
- private logger;
15
- constructor(storage: NodeStorage, logger: Logger, cachePlugin?: ICachePlugin);
16
- /**
17
- * Set to true if cache state has changed since last time serialize or writeToPersistence was called
18
- */
19
- hasChanged(): boolean;
20
- /**
21
- * Serializes in memory cache to JSON
22
- */
23
- serialize(): string;
24
- /**
25
- * Deserializes JSON to in-memory cache. JSON should be in MSAL cache schema format
26
- * @param cache - blob formatted cache
27
- */
28
- deserialize(cache: string): void;
29
- /**
30
- * Fetches the cache key-value map
31
- */
32
- getKVStore(): CacheKVStore;
33
- /**
34
- * Gets cache snapshot in CacheKVStore format
35
- */
36
- getCacheSnapshot(): CacheKVStore;
37
- /**
38
- * API that retrieves all accounts currently in cache to the user
39
- */
40
- getAllAccounts(correlationId?: string): Promise<AccountInfo[]>;
41
- /**
42
- * Returns the signed in account matching homeAccountId.
43
- * (the account object is created at the time of successful login)
44
- * or null when no matching account is found
45
- * @param homeAccountId - unique identifier for an account (uid.utid)
46
- */
47
- getAccountByHomeId(homeAccountId: string): Promise<AccountInfo | null>;
48
- /**
49
- * Returns the signed in account matching localAccountId.
50
- * (the account object is created at the time of successful login)
51
- * or null when no matching account is found
52
- * @param localAccountId - unique identifier of an account (sub/obj when homeAccountId cannot be populated)
53
- */
54
- getAccountByLocalId(localAccountId: string): Promise<AccountInfo | null>;
55
- /**
56
- * API to remove a specific account and the relevant data from cache
57
- * @param account - AccountInfo passed by the user
58
- */
59
- removeAccount(account: AccountInfo, correlationId?: string): Promise<void>;
60
- /**
61
- * Overwrites in-memory cache with persistent cache
62
- */
63
- overwriteCache(): Promise<void>;
64
- /**
65
- * Called when the cache has changed state.
66
- */
67
- private handleChangeEvent;
68
- /**
69
- * Merge in memory cache with the cache snapshot.
70
- * @param oldState - cache before changes
71
- * @param currentState - current cache state in the library
72
- */
73
- private mergeState;
74
- /**
75
- * Deep update of oldState based on newState values
76
- * @param oldState - cache before changes
77
- * @param newState - updated cache
78
- */
79
- private mergeUpdates;
80
- /**
81
- * Removes entities in oldState that the were removed from newState. If there are any unknown values in root of
82
- * oldState that are not recognized, they are left untouched.
83
- * @param oldState - cache before changes
84
- * @param newState - updated cache
85
- */
86
- private mergeRemovals;
87
- /**
88
- * Helper to merge new cache with the old one
89
- * @param oldState - cache before changes
90
- * @param newState - updated cache
91
- */
92
- private mergeRemovalsDict;
93
- /**
94
- * Helper to overlay as a part of cache merge
95
- * @param passedInCache - cache read from the blob
96
- */
97
- private overlayDefaults;
98
- }
99
- //# sourceMappingURL=TokenCache.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TokenCache.d.ts","sourceRoot":"","sources":["../../../src/cache/TokenCache.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EACH,WAAW,EACX,MAAM,EACN,uBAAuB,EACvB,YAAY,EAEf,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAQ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H,OAAO,CAAC,iBAAiB;IAazB;;;OAGG;IACH,OAAO,CAAC,eAAe;CAyB1B"}
@@ -1,23 +0,0 @@
1
- import { ICachePlugin, TokenCacheContext } from "@azure/msal-common/node";
2
- import { IPartitionManager } from "./IPartitionManager.js";
3
- import { ICacheClient } from "./ICacheClient.js";
4
- /**
5
- * Cache plugin that serializes data to the cache and deserializes data from the cache
6
- * @public
7
- */
8
- export declare class DistributedCachePlugin implements ICachePlugin {
9
- private client;
10
- private partitionManager;
11
- constructor(client: ICacheClient, partitionManager: IPartitionManager);
12
- /**
13
- * Deserializes the cache before accessing it
14
- * @param cacheContext - TokenCacheContext
15
- */
16
- beforeCacheAccess(cacheContext: TokenCacheContext): Promise<void>;
17
- /**
18
- * Serializes the cache after accessing it
19
- * @param cacheContext - TokenCacheContext
20
- */
21
- afterCacheAccess(cacheContext: TokenCacheContext): Promise<void>;
22
- }
23
- //# sourceMappingURL=DistributedCachePlugin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DistributedCachePlugin.d.ts","sourceRoot":"","sources":["../../../../src/cache/distributed/DistributedCachePlugin.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,YAAY,EAEZ,iBAAiB,EACpB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD;;;GAGG;AACH,qBAAa,sBAAuB,YAAW,YAAY;IACvD,OAAO,CAAC,MAAM,CAAe;IAC7B,OAAO,CAAC,gBAAgB,CAAoB;gBAEhC,MAAM,EAAE,YAAY,EAAE,gBAAgB,EAAE,iBAAiB;IAKrE;;;OAGG;IACU,iBAAiB,CAC1B,YAAY,EAAE,iBAAiB,GAChC,OAAO,CAAC,IAAI,CAAC;IAMhB;;;OAGG;IACU,gBAAgB,CACzB,YAAY,EAAE,iBAAiB,GAChC,OAAO,CAAC,IAAI,CAAC;CAyBnB"}
@@ -1,22 +0,0 @@
1
- /**
2
- * Interface for the cache that defines a getter and setter
3
- * @public
4
- */
5
- export interface ICacheClient {
6
- /**
7
- * Retrieve the value from the cache
8
- *
9
- * @param key - key of item in the cache
10
- * @returns Promise<string>
11
- */
12
- get(key: string): Promise<string>;
13
- /**
14
- * Save the required value using the provided key to cache
15
- *
16
- * @param key - key of item in the cache
17
- * @param value - value of item to be saved in the cache
18
- * @returns Promise<string>
19
- */
20
- set(key: string, value: string): Promise<string>;
21
- }
22
- //# sourceMappingURL=ICacheClient.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ICacheClient.d.ts","sourceRoot":"","sources":["../../../../src/cache/distributed/ICacheClient.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,MAAM,WAAW,YAAY;IACzB;;;;;OAKG;IACH,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAElC;;;;;;OAMG;IACH,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CACpD"}
@@ -1,33 +0,0 @@
1
- import { AccountEntity } from "@azure/msal-common/node";
2
- /**
3
- * Interface that defines getter methods to get keys used to identity data in the cache
4
- * @public
5
- */
6
- export interface IPartitionManager {
7
- /**
8
- * This function should return the correct key from which to read
9
- * the specific user's information from cache.
10
- *
11
- * Example: Your application may be partitioning the user's cache
12
- * information for each user using the homeAccountId and thus
13
- * this function would return the homeAccountId for
14
- * the user in question
15
- *
16
- * @returns Promise<string>
17
- */
18
- getKey(): Promise<string>;
19
- /**
20
- * This function should return the correct key being used to save each
21
- * user's cache information to cache - given an AccountEntity
22
- *
23
- * Example: Your application may be partitioning the user's cache
24
- * information for each user using the homeAccountId thus
25
- * this function would return the homeAccountId from
26
- * the provided AccountEntity
27
- *
28
- * @param accountEntity - AccountEntity
29
- * @returns Promise<string>
30
- */
31
- extractKey(accountEntity: AccountEntity): Promise<string>;
32
- }
33
- //# sourceMappingURL=IPartitionManager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IPartitionManager.d.ts","sourceRoot":"","sources":["../../../../src/cache/distributed/IPartitionManager.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;;;;;;;OAUG;IACH,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAE1B;;;;;;;;;;;OAWG;IACH,UAAU,CAAC,aAAa,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAC7D"}
@@ -1,44 +0,0 @@
1
- import { AccountCache, IdTokenCache, AccessTokenCache, RefreshTokenCache, AppMetadataCache } from "@azure/msal-common/node";
2
- import { JsonCache, InMemoryCache, SerializedAccountEntity, SerializedIdTokenEntity, SerializedAccessTokenEntity, SerializedRefreshTokenEntity, SerializedAppMetadataEntity } from "./SerializerTypes.js";
3
- /**
4
- * This class deserializes cache entities read from the file into in-memory object types defined internally
5
- * @internal
6
- */
7
- export declare class Deserializer {
8
- /**
9
- * Parse the JSON blob in memory and deserialize the content
10
- * @param cachedJson - JSON blob cache
11
- */
12
- static deserializeJSONBlob(jsonFile: string): JsonCache;
13
- /**
14
- * Deserializes accounts to AccountEntity objects
15
- * @param accounts - accounts of type SerializedAccountEntity
16
- */
17
- static deserializeAccounts(accounts: Record<string, SerializedAccountEntity>): AccountCache;
18
- /**
19
- * Deserializes id tokens to IdTokenEntity objects
20
- * @param idTokens - credentials of type SerializedIdTokenEntity
21
- */
22
- static deserializeIdTokens(idTokens: Record<string, SerializedIdTokenEntity>): IdTokenCache;
23
- /**
24
- * Deserializes access tokens to AccessTokenEntity objects
25
- * @param accessTokens - access tokens of type SerializedAccessTokenEntity
26
- */
27
- static deserializeAccessTokens(accessTokens: Record<string, SerializedAccessTokenEntity>): AccessTokenCache;
28
- /**
29
- * Deserializes refresh tokens to RefreshTokenEntity objects
30
- * @param refreshTokens - refresh tokens of type SerializedRefreshTokenEntity
31
- */
32
- static deserializeRefreshTokens(refreshTokens: Record<string, SerializedRefreshTokenEntity>): RefreshTokenCache;
33
- /**
34
- * Deserializes appMetadata to AppMetaData objects
35
- * @param appMetadata - app metadata of type SerializedAppMetadataEntity
36
- */
37
- static deserializeAppMetadata(appMetadata: Record<string, SerializedAppMetadataEntity>): AppMetadataCache;
38
- /**
39
- * Deserialize an inMemory Cache
40
- * @param jsonCache - JSON blob cache
41
- */
42
- static deserializeAllCache(jsonCache: JsonCache): InMemoryCache;
43
- }
44
- //# sourceMappingURL=Deserializer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Deserializer.d.ts","sourceRoot":"","sources":["../../../../src/cache/serializer/Deserializer.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAOnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACH,SAAS,EACT,aAAa,EACb,uBAAuB,EACvB,uBAAuB,EACvB,2BAA2B,EAC3B,4BAA4B,EAC5B,2BAA2B,EAC9B,MAAM,sBAAsB,CAAC;AAE9B;;;GAGG;AACH,qBAAa,YAAY;IACrB;;;OAGG;IACH,MAAM,CAAC,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS;IAKvD;;;OAGG;IACH,MAAM,CAAC,mBAAmB,CACtB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,GAClD,YAAY;IAgCf;;;OAGG;IACH,MAAM,CAAC,mBAAmB,CACtB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,GAClD,YAAY;IAqBf;;;OAGG;IACH,MAAM,CAAC,uBAAuB,CAC1B,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,2BAA2B,CAAC,GAC1D,gBAAgB;IAgCnB;;;OAGG;IACH,MAAM,CAAC,wBAAwB,CAC3B,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,4BAA4B,CAAC,GAC5D,iBAAiB;IAwBpB;;;OAGG;IACH,MAAM,CAAC,sBAAsB,CACzB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,2BAA2B,CAAC,GACzD,gBAAgB;IAgBnB;;;OAGG;IACH,MAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,SAAS,GAAG,aAAa;CAmBlE"}