@azure/msal-node 1.17.1 → 2.0.0-alpha.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 (509) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +182 -181
  3. package/dist/cache/ITokenCache.d.ts.map +1 -1
  4. package/dist/cache/NodeStorage.d.ts.map +1 -1
  5. package/dist/cache/NodeStorage.esm.js +410 -0
  6. package/dist/cache/NodeStorage.esm.js.map +1 -0
  7. package/dist/cache/NodeStorage.js +412 -0
  8. package/dist/cache/NodeStorage.js.map +1 -0
  9. package/dist/cache/TokenCache.d.ts.map +1 -1
  10. package/dist/cache/TokenCache.esm.js +278 -0
  11. package/dist/cache/TokenCache.esm.js.map +1 -0
  12. package/dist/cache/TokenCache.js +280 -0
  13. package/dist/cache/TokenCache.js.map +1 -0
  14. package/dist/cache/distributed/DistributedCachePlugin.d.ts.map +1 -1
  15. package/dist/cache/distributed/DistributedCachePlugin.esm.js +33 -0
  16. package/dist/cache/distributed/DistributedCachePlugin.esm.js.map +1 -0
  17. package/dist/cache/distributed/DistributedCachePlugin.js +35 -0
  18. package/dist/cache/distributed/DistributedCachePlugin.js.map +1 -0
  19. package/dist/cache/distributed/ICacheClient.d.ts.map +1 -1
  20. package/dist/cache/distributed/IPartitionManager.d.ts.map +1 -1
  21. package/dist/cache/serializer/Deserializer.d.ts.map +1 -1
  22. package/dist/cache/serializer/Deserializer.esm.js +182 -0
  23. package/dist/cache/serializer/Deserializer.esm.js.map +1 -0
  24. package/dist/cache/serializer/Deserializer.js +184 -0
  25. package/dist/cache/serializer/Deserializer.js.map +1 -0
  26. package/dist/cache/serializer/Serializer.d.ts.map +1 -1
  27. package/dist/cache/serializer/Serializer.esm.js +139 -0
  28. package/dist/cache/serializer/Serializer.esm.js.map +1 -0
  29. package/dist/cache/serializer/Serializer.js +141 -0
  30. package/dist/cache/serializer/Serializer.js.map +1 -0
  31. package/dist/cache/serializer/SerializerTypes.d.ts +8 -8
  32. package/dist/cache/serializer/SerializerTypes.d.ts.map +1 -1
  33. package/dist/client/ClientApplication.d.ts +1 -1
  34. package/dist/client/ClientApplication.d.ts.map +1 -1
  35. package/dist/client/ClientApplication.esm.js +342 -0
  36. package/dist/client/ClientApplication.esm.js.map +1 -0
  37. package/dist/client/ClientApplication.js +344 -0
  38. package/dist/client/ClientApplication.js.map +1 -0
  39. package/dist/client/ClientAssertion.d.ts.map +1 -1
  40. package/dist/client/ClientAssertion.esm.js +126 -0
  41. package/dist/client/ClientAssertion.esm.js.map +1 -0
  42. package/dist/client/ClientAssertion.js +128 -0
  43. package/dist/client/ClientAssertion.js.map +1 -0
  44. package/dist/client/ClientCredentialClient.d.ts +34 -0
  45. package/dist/client/ClientCredentialClient.d.ts.map +1 -0
  46. package/dist/client/ClientCredentialClient.esm.js +164 -0
  47. package/dist/client/ClientCredentialClient.esm.js.map +1 -0
  48. package/dist/client/ClientCredentialClient.js +166 -0
  49. package/dist/client/ClientCredentialClient.js.map +1 -0
  50. package/dist/client/ConfidentialClientApplication.d.ts.map +1 -1
  51. package/dist/client/ConfidentialClientApplication.esm.js +175 -0
  52. package/dist/client/ConfidentialClientApplication.esm.js.map +1 -0
  53. package/dist/client/ConfidentialClientApplication.js +177 -0
  54. package/dist/client/ConfidentialClientApplication.js.map +1 -0
  55. package/dist/client/DeviceCodeClient.d.ts +54 -0
  56. package/dist/client/DeviceCodeClient.d.ts.map +1 -0
  57. package/dist/client/DeviceCodeClient.esm.js +214 -0
  58. package/dist/client/DeviceCodeClient.esm.js.map +1 -0
  59. package/dist/client/DeviceCodeClient.js +216 -0
  60. package/dist/client/DeviceCodeClient.js.map +1 -0
  61. package/dist/client/IConfidentialClientApplication.d.ts.map +1 -1
  62. package/dist/client/IPublicClientApplication.d.ts +1 -1
  63. package/dist/client/IPublicClientApplication.d.ts.map +1 -1
  64. package/dist/client/OnBehalfOfClient.d.ts +48 -0
  65. package/dist/client/OnBehalfOfClient.d.ts.map +1 -0
  66. package/dist/client/OnBehalfOfClient.esm.js +211 -0
  67. package/dist/client/OnBehalfOfClient.esm.js.map +1 -0
  68. package/dist/client/OnBehalfOfClient.js +213 -0
  69. package/dist/client/OnBehalfOfClient.js.map +1 -0
  70. package/dist/client/PublicClientApplication.d.ts +1 -1
  71. package/dist/client/PublicClientApplication.d.ts.map +1 -1
  72. package/dist/client/PublicClientApplication.esm.js +187 -0
  73. package/dist/client/PublicClientApplication.esm.js.map +1 -0
  74. package/dist/client/PublicClientApplication.js +189 -0
  75. package/dist/client/PublicClientApplication.js.map +1 -0
  76. package/dist/client/UsernamePasswordClient.d.ts +26 -0
  77. package/dist/client/UsernamePasswordClient.d.ts.map +1 -0
  78. package/dist/client/UsernamePasswordClient.esm.js +109 -0
  79. package/dist/client/UsernamePasswordClient.esm.js.map +1 -0
  80. package/dist/client/UsernamePasswordClient.js +111 -0
  81. package/dist/client/UsernamePasswordClient.js.map +1 -0
  82. package/dist/config/Configuration.d.ts +9 -8
  83. package/dist/config/Configuration.d.ts.map +1 -1
  84. package/dist/config/Configuration.esm.js +78 -0
  85. package/dist/config/Configuration.esm.js.map +1 -0
  86. package/dist/config/Configuration.js +80 -0
  87. package/dist/config/Configuration.js.map +1 -0
  88. package/dist/crypto/CryptoProvider.d.ts.map +1 -1
  89. package/dist/crypto/CryptoProvider.esm.js +85 -0
  90. package/dist/crypto/CryptoProvider.esm.js.map +1 -0
  91. package/dist/crypto/CryptoProvider.js +87 -0
  92. package/dist/crypto/CryptoProvider.js.map +1 -0
  93. package/dist/crypto/GuidGenerator.d.ts.map +1 -1
  94. package/dist/crypto/GuidGenerator.esm.js +29 -0
  95. package/dist/crypto/GuidGenerator.esm.js.map +1 -0
  96. package/dist/crypto/GuidGenerator.js +31 -0
  97. package/dist/crypto/GuidGenerator.js.map +1 -0
  98. package/dist/crypto/HashUtils.d.ts.map +1 -1
  99. package/dist/crypto/HashUtils.esm.js +21 -0
  100. package/dist/crypto/HashUtils.esm.js.map +1 -0
  101. package/dist/crypto/HashUtils.js +23 -0
  102. package/dist/crypto/HashUtils.js.map +1 -0
  103. package/dist/crypto/PkceGenerator.d.ts.map +1 -1
  104. package/dist/crypto/PkceGenerator.esm.js +60 -0
  105. package/dist/crypto/PkceGenerator.esm.js.map +1 -0
  106. package/dist/crypto/PkceGenerator.js +62 -0
  107. package/dist/crypto/PkceGenerator.js.map +1 -0
  108. package/dist/error/NodeAuthError.d.ts.map +1 -1
  109. package/dist/error/NodeAuthError.esm.js +92 -0
  110. package/dist/error/NodeAuthError.esm.js.map +1 -0
  111. package/dist/error/NodeAuthError.js +95 -0
  112. package/dist/error/NodeAuthError.js.map +1 -0
  113. package/dist/index.d.ts +13 -3
  114. package/dist/index.d.ts.map +1 -1
  115. package/dist/index.esm.js +20 -0
  116. package/dist/index.esm.js.map +1 -0
  117. package/dist/index.js +101 -6
  118. package/dist/index.js.map +1 -0
  119. package/dist/internals.d.ts +7 -0
  120. package/dist/internals.d.ts.map +1 -0
  121. package/dist/internals.esm.js +10 -0
  122. package/dist/internals.esm.js.map +1 -0
  123. package/dist/internals.js +15 -0
  124. package/dist/internals.js.map +1 -0
  125. package/dist/msal-node.cjs.development.js +1 -1
  126. package/dist/msal-node.cjs.development.js.map +1 -1
  127. package/dist/msal-node.cjs.production.min.js +1 -1
  128. package/dist/msal-node.cjs.production.min.js.map +1 -1
  129. package/dist/msal-node.esm.js +1 -1
  130. package/dist/msal-node.esm.js.map +1 -1
  131. package/dist/network/HttpClient.d.ts +1 -0
  132. package/dist/network/HttpClient.d.ts.map +1 -1
  133. package/dist/network/HttpClient.esm.js +286 -0
  134. package/dist/network/HttpClient.esm.js.map +1 -0
  135. package/dist/network/HttpClient.js +288 -0
  136. package/dist/network/HttpClient.js.map +1 -0
  137. package/dist/network/ILoopbackClient.d.ts.map +1 -1
  138. package/dist/network/LoopbackClient.d.ts.map +1 -1
  139. package/dist/network/LoopbackClient.esm.js +94 -0
  140. package/dist/network/LoopbackClient.esm.js.map +1 -0
  141. package/dist/network/LoopbackClient.js +96 -0
  142. package/dist/network/LoopbackClient.js.map +1 -0
  143. package/dist/packageMetadata.d.ts +1 -1
  144. package/dist/packageMetadata.d.ts.map +1 -1
  145. package/dist/packageMetadata.esm.js +8 -0
  146. package/dist/packageMetadata.esm.js.map +1 -0
  147. package/dist/packageMetadata.js +11 -0
  148. package/dist/packageMetadata.js.map +1 -0
  149. package/dist/request/AuthorizationCodeRequest.d.ts +1 -1
  150. package/dist/request/AuthorizationCodeRequest.d.ts.map +1 -1
  151. package/dist/request/AuthorizationUrlRequest.d.ts +1 -1
  152. package/dist/request/AuthorizationUrlRequest.d.ts.map +1 -1
  153. package/dist/request/ClientCredentialRequest.d.ts +1 -1
  154. package/dist/request/ClientCredentialRequest.d.ts.map +1 -1
  155. package/dist/request/DeviceCodeRequest.d.ts +1 -1
  156. package/dist/request/DeviceCodeRequest.d.ts.map +1 -1
  157. package/dist/request/InteractiveRequest.d.ts +1 -1
  158. package/dist/request/InteractiveRequest.d.ts.map +1 -1
  159. package/dist/request/OnBehalfOfRequest.d.ts +1 -1
  160. package/dist/request/OnBehalfOfRequest.d.ts.map +1 -1
  161. package/dist/request/RefreshTokenRequest.d.ts +1 -1
  162. package/dist/request/RefreshTokenRequest.d.ts.map +1 -1
  163. package/dist/request/SignOutRequest.d.ts +1 -1
  164. package/dist/request/SignOutRequest.d.ts.map +1 -1
  165. package/dist/request/SilentFlowRequest.d.ts +1 -1
  166. package/dist/request/SilentFlowRequest.d.ts.map +1 -1
  167. package/dist/request/UsernamePasswordRequest.d.ts +1 -1
  168. package/dist/request/UsernamePasswordRequest.d.ts.map +1 -1
  169. package/dist/utils/Constants.d.ts.map +1 -1
  170. package/dist/utils/Constants.esm.js +98 -0
  171. package/dist/utils/Constants.esm.js.map +1 -0
  172. package/dist/utils/Constants.js +106 -0
  173. package/dist/utils/Constants.js.map +1 -0
  174. package/dist/utils/EncodingUtils.d.ts.map +1 -1
  175. package/dist/utils/EncodingUtils.esm.js +51 -0
  176. package/dist/utils/EncodingUtils.esm.js.map +1 -0
  177. package/dist/utils/EncodingUtils.js +53 -0
  178. package/dist/utils/EncodingUtils.js.map +1 -0
  179. package/dist/utils/NetworkUtils.d.ts.map +1 -1
  180. package/dist/utils/NetworkUtils.esm.js +43 -0
  181. package/dist/utils/NetworkUtils.esm.js.map +1 -0
  182. package/dist/utils/NetworkUtils.js +45 -0
  183. package/dist/utils/NetworkUtils.js.map +1 -0
  184. package/node_modules/@azure/msal-common/LICENSE +21 -0
  185. package/node_modules/@azure/msal-common/README.md +62 -0
  186. package/node_modules/@azure/msal-common/dist/account/AccountInfo.d.ts +32 -0
  187. package/node_modules/@azure/msal-common/dist/account/AccountInfo.d.ts.map +1 -0
  188. package/node_modules/@azure/msal-common/dist/account/AuthToken.d.ts +21 -0
  189. package/node_modules/@azure/msal-common/dist/account/AuthToken.d.ts.map +1 -0
  190. package/node_modules/@azure/msal-common/dist/account/AuthToken.js +56 -0
  191. package/node_modules/@azure/msal-common/dist/account/AuthToken.js.map +1 -0
  192. package/node_modules/@azure/msal-common/dist/account/CcsCredential.d.ts +9 -0
  193. package/node_modules/@azure/msal-common/dist/account/CcsCredential.d.ts.map +1 -0
  194. package/node_modules/@azure/msal-common/dist/account/CcsCredential.js +14 -0
  195. package/node_modules/@azure/msal-common/dist/account/CcsCredential.js.map +1 -0
  196. package/node_modules/@azure/msal-common/dist/account/ClientCredentials.d.ts +15 -0
  197. package/node_modules/@azure/msal-common/dist/account/ClientCredentials.d.ts.map +1 -0
  198. package/node_modules/@azure/msal-common/dist/account/ClientInfo.d.ts +20 -0
  199. package/node_modules/@azure/msal-common/dist/account/ClientInfo.d.ts.map +1 -0
  200. package/node_modules/@azure/msal-common/dist/account/ClientInfo.js +46 -0
  201. package/node_modules/@azure/msal-common/dist/account/ClientInfo.js.map +1 -0
  202. package/node_modules/@azure/msal-common/dist/account/DecodedAuthToken.d.ts +9 -0
  203. package/node_modules/@azure/msal-common/dist/account/DecodedAuthToken.d.ts.map +1 -0
  204. package/node_modules/@azure/msal-common/dist/account/TokenClaims.d.ts +66 -0
  205. package/node_modules/@azure/msal-common/dist/account/TokenClaims.d.ts.map +1 -0
  206. package/node_modules/@azure/msal-common/dist/authority/Authority.d.ts +216 -0
  207. package/node_modules/@azure/msal-common/dist/authority/Authority.d.ts.map +1 -0
  208. package/node_modules/@azure/msal-common/dist/authority/Authority.js +688 -0
  209. package/node_modules/@azure/msal-common/dist/authority/Authority.js.map +1 -0
  210. package/node_modules/@azure/msal-common/dist/authority/AuthorityFactory.d.ts +31 -0
  211. package/node_modules/@azure/msal-common/dist/authority/AuthorityFactory.d.ts.map +1 -0
  212. package/node_modules/@azure/msal-common/dist/authority/AuthorityFactory.js +58 -0
  213. package/node_modules/@azure/msal-common/dist/authority/AuthorityFactory.js.map +1 -0
  214. package/node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.d.ts +623 -0
  215. package/node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.d.ts.map +1 -0
  216. package/node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.js +881 -0
  217. package/node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.js.map +1 -0
  218. package/node_modules/@azure/msal-common/dist/authority/AuthorityOptions.d.ts +19 -0
  219. package/node_modules/@azure/msal-common/dist/authority/AuthorityOptions.d.ts.map +1 -0
  220. package/node_modules/@azure/msal-common/dist/authority/AuthorityOptions.js +24 -0
  221. package/node_modules/@azure/msal-common/dist/authority/AuthorityOptions.js.map +1 -0
  222. package/node_modules/@azure/msal-common/dist/authority/AuthorityType.d.ts +10 -0
  223. package/node_modules/@azure/msal-common/dist/authority/AuthorityType.d.ts.map +1 -0
  224. package/node_modules/@azure/msal-common/dist/authority/AuthorityType.js +19 -0
  225. package/node_modules/@azure/msal-common/dist/authority/AuthorityType.js.map +1 -0
  226. package/node_modules/@azure/msal-common/dist/authority/AzureRegion.d.ts +2 -0
  227. package/node_modules/@azure/msal-common/dist/authority/AzureRegion.d.ts.map +1 -0
  228. package/node_modules/@azure/msal-common/dist/authority/AzureRegionConfiguration.d.ts +6 -0
  229. package/node_modules/@azure/msal-common/dist/authority/AzureRegionConfiguration.d.ts.map +1 -0
  230. package/node_modules/@azure/msal-common/dist/authority/CloudDiscoveryMetadata.d.ts +6 -0
  231. package/node_modules/@azure/msal-common/dist/authority/CloudDiscoveryMetadata.d.ts.map +1 -0
  232. package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.d.ts +14 -0
  233. package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.d.ts.map +1 -0
  234. package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.js +13 -0
  235. package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.js.map +1 -0
  236. package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.d.ts +10 -0
  237. package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.d.ts.map +1 -0
  238. package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.js +13 -0
  239. package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.js.map +1 -0
  240. package/node_modules/@azure/msal-common/dist/authority/ImdsOptions.d.ts +6 -0
  241. package/node_modules/@azure/msal-common/dist/authority/ImdsOptions.d.ts.map +1 -0
  242. package/node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.d.ts +12 -0
  243. package/node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.d.ts.map +1 -0
  244. package/node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.js +15 -0
  245. package/node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.js.map +1 -0
  246. package/node_modules/@azure/msal-common/dist/authority/ProtocolMode.d.ts +8 -0
  247. package/node_modules/@azure/msal-common/dist/authority/ProtocolMode.d.ts.map +1 -0
  248. package/node_modules/@azure/msal-common/dist/authority/ProtocolMode.js +17 -0
  249. package/node_modules/@azure/msal-common/dist/authority/ProtocolMode.js.map +1 -0
  250. package/node_modules/@azure/msal-common/dist/authority/RegionDiscovery.d.ts +31 -0
  251. package/node_modules/@azure/msal-common/dist/authority/RegionDiscovery.d.ts.map +1 -0
  252. package/node_modules/@azure/msal-common/dist/authority/RegionDiscovery.js +116 -0
  253. package/node_modules/@azure/msal-common/dist/authority/RegionDiscovery.js.map +1 -0
  254. package/node_modules/@azure/msal-common/dist/authority/RegionDiscoveryMetadata.d.ts +7 -0
  255. package/node_modules/@azure/msal-common/dist/authority/RegionDiscoveryMetadata.d.ts.map +1 -0
  256. package/node_modules/@azure/msal-common/dist/broker/nativeBroker/INativeBrokerPlugin.d.ts +16 -0
  257. package/node_modules/@azure/msal-common/dist/broker/nativeBroker/INativeBrokerPlugin.d.ts.map +1 -0
  258. package/node_modules/@azure/msal-common/dist/cache/CacheManager.d.ts +444 -0
  259. package/node_modules/@azure/msal-common/dist/cache/CacheManager.d.ts.map +1 -0
  260. package/node_modules/@azure/msal-common/dist/cache/CacheManager.js +1024 -0
  261. package/node_modules/@azure/msal-common/dist/cache/CacheManager.js.map +1 -0
  262. package/node_modules/@azure/msal-common/dist/cache/entities/AccessTokenEntity.d.ts +57 -0
  263. package/node_modules/@azure/msal-common/dist/cache/entities/AccessTokenEntity.d.ts.map +1 -0
  264. package/node_modules/@azure/msal-common/dist/cache/entities/AccessTokenEntity.js +123 -0
  265. package/node_modules/@azure/msal-common/dist/cache/entities/AccessTokenEntity.js.map +1 -0
  266. package/node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.d.ts +100 -0
  267. package/node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.d.ts.map +1 -0
  268. package/node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.js +259 -0
  269. package/node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.js.map +1 -0
  270. package/node_modules/@azure/msal-common/dist/cache/entities/AppMetadataEntity.d.ts +40 -0
  271. package/node_modules/@azure/msal-common/dist/cache/entities/AppMetadataEntity.d.ts.map +1 -0
  272. package/node_modules/@azure/msal-common/dist/cache/entities/AppMetadataEntity.js +73 -0
  273. package/node_modules/@azure/msal-common/dist/cache/entities/AppMetadataEntity.js.map +1 -0
  274. package/node_modules/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.d.ts +48 -0
  275. package/node_modules/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.d.ts.map +1 -0
  276. package/node_modules/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.js +85 -0
  277. package/node_modules/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.js.map +1 -0
  278. package/node_modules/@azure/msal-common/dist/cache/entities/CacheRecord.d.ts +14 -0
  279. package/node_modules/@azure/msal-common/dist/cache/entities/CacheRecord.d.ts.map +1 -0
  280. package/node_modules/@azure/msal-common/dist/cache/entities/CacheRecord.js +18 -0
  281. package/node_modules/@azure/msal-common/dist/cache/entities/CacheRecord.js.map +1 -0
  282. package/node_modules/@azure/msal-common/dist/cache/entities/CredentialEntity.d.ts +89 -0
  283. package/node_modules/@azure/msal-common/dist/cache/entities/CredentialEntity.d.ts.map +1 -0
  284. package/node_modules/@azure/msal-common/dist/cache/entities/CredentialEntity.js +144 -0
  285. package/node_modules/@azure/msal-common/dist/cache/entities/CredentialEntity.js.map +1 -0
  286. package/node_modules/@azure/msal-common/dist/cache/entities/IdTokenEntity.d.ts +35 -0
  287. package/node_modules/@azure/msal-common/dist/cache/entities/IdTokenEntity.d.ts.map +1 -0
  288. package/node_modules/@azure/msal-common/dist/cache/entities/IdTokenEntity.js +64 -0
  289. package/node_modules/@azure/msal-common/dist/cache/entities/IdTokenEntity.js.map +1 -0
  290. package/node_modules/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.d.ts +37 -0
  291. package/node_modules/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.d.ts.map +1 -0
  292. package/node_modules/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.js +67 -0
  293. package/node_modules/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.js.map +1 -0
  294. package/node_modules/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.d.ts +13 -0
  295. package/node_modules/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.d.ts.map +1 -0
  296. package/node_modules/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.js +34 -0
  297. package/node_modules/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.js.map +1 -0
  298. package/node_modules/@azure/msal-common/dist/cache/entities/ThrottlingEntity.d.ts +14 -0
  299. package/node_modules/@azure/msal-common/dist/cache/entities/ThrottlingEntity.d.ts.map +1 -0
  300. package/node_modules/@azure/msal-common/dist/cache/entities/ThrottlingEntity.js +30 -0
  301. package/node_modules/@azure/msal-common/dist/cache/entities/ThrottlingEntity.js.map +1 -0
  302. package/node_modules/@azure/msal-common/dist/cache/interface/ICacheManager.d.ts +166 -0
  303. package/node_modules/@azure/msal-common/dist/cache/interface/ICacheManager.d.ts.map +1 -0
  304. package/node_modules/@azure/msal-common/dist/cache/interface/ICachePlugin.d.ts +6 -0
  305. package/node_modules/@azure/msal-common/dist/cache/interface/ICachePlugin.d.ts.map +1 -0
  306. package/node_modules/@azure/msal-common/dist/cache/interface/ISerializableTokenCache.d.ts +5 -0
  307. package/node_modules/@azure/msal-common/dist/cache/interface/ISerializableTokenCache.d.ts.map +1 -0
  308. package/node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.d.ts +24 -0
  309. package/node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.d.ts.map +1 -0
  310. package/node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.js +30 -0
  311. package/node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.js.map +1 -0
  312. package/node_modules/@azure/msal-common/dist/cache/utils/CacheTypes.d.ts +63 -0
  313. package/node_modules/@azure/msal-common/dist/cache/utils/CacheTypes.d.ts.map +1 -0
  314. package/node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.d.ts +72 -0
  315. package/node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.d.ts.map +1 -0
  316. package/node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.js +453 -0
  317. package/node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.js.map +1 -0
  318. package/node_modules/@azure/msal-common/dist/client/BaseClient.d.ts +51 -0
  319. package/node_modules/@azure/msal-common/dist/client/BaseClient.d.ts.map +1 -0
  320. package/node_modules/@azure/msal-common/dist/client/BaseClient.js +107 -0
  321. package/node_modules/@azure/msal-common/dist/client/BaseClient.js.map +1 -0
  322. package/node_modules/@azure/msal-common/dist/client/RefreshTokenClient.d.ts +35 -0
  323. package/node_modules/@azure/msal-common/dist/client/RefreshTokenClient.d.ts.map +1 -0
  324. package/node_modules/@azure/msal-common/dist/client/RefreshTokenClient.js +260 -0
  325. package/node_modules/@azure/msal-common/dist/client/RefreshTokenClient.js.map +1 -0
  326. package/node_modules/@azure/msal-common/dist/client/SilentFlowClient.d.ts +25 -0
  327. package/node_modules/@azure/msal-common/dist/client/SilentFlowClient.d.ts.map +1 -0
  328. package/node_modules/@azure/msal-common/dist/client/SilentFlowClient.js +108 -0
  329. package/node_modules/@azure/msal-common/dist/client/SilentFlowClient.js.map +1 -0
  330. package/node_modules/@azure/msal-common/dist/config/AppTokenProvider.d.ts +39 -0
  331. package/node_modules/@azure/msal-common/dist/config/AppTokenProvider.d.ts.map +1 -0
  332. package/node_modules/@azure/msal-common/dist/config/ClientConfiguration.d.ts +134 -0
  333. package/node_modules/@azure/msal-common/dist/config/ClientConfiguration.d.ts.map +1 -0
  334. package/node_modules/@azure/msal-common/dist/config/ClientConfiguration.js +101 -0
  335. package/node_modules/@azure/msal-common/dist/config/ClientConfiguration.js.map +1 -0
  336. package/node_modules/@azure/msal-common/dist/crypto/ICrypto.d.ts +63 -0
  337. package/node_modules/@azure/msal-common/dist/crypto/ICrypto.d.ts.map +1 -0
  338. package/node_modules/@azure/msal-common/dist/crypto/ICrypto.js +49 -0
  339. package/node_modules/@azure/msal-common/dist/crypto/ICrypto.js.map +1 -0
  340. package/node_modules/@azure/msal-common/dist/crypto/IGuidGenerator.d.ts +5 -0
  341. package/node_modules/@azure/msal-common/dist/crypto/IGuidGenerator.d.ts.map +1 -0
  342. package/node_modules/@azure/msal-common/dist/crypto/JoseHeader.d.ts +22 -0
  343. package/node_modules/@azure/msal-common/dist/crypto/JoseHeader.d.ts.map +1 -0
  344. package/node_modules/@azure/msal-common/dist/crypto/JoseHeader.js +44 -0
  345. package/node_modules/@azure/msal-common/dist/crypto/JoseHeader.js.map +1 -0
  346. package/node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.d.ts +58 -0
  347. package/node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.d.ts.map +1 -0
  348. package/node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.js +92 -0
  349. package/node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.js.map +1 -0
  350. package/node_modules/@azure/msal-common/dist/crypto/SignedHttpRequest.d.ts +12 -0
  351. package/node_modules/@azure/msal-common/dist/crypto/SignedHttpRequest.d.ts.map +1 -0
  352. package/node_modules/@azure/msal-common/dist/error/AuthError.d.ts +48 -0
  353. package/node_modules/@azure/msal-common/dist/error/AuthError.d.ts.map +1 -0
  354. package/node_modules/@azure/msal-common/dist/error/AuthError.js +58 -0
  355. package/node_modules/@azure/msal-common/dist/error/AuthError.js.map +1 -0
  356. package/node_modules/@azure/msal-common/dist/error/ClientAuthError.d.ts +413 -0
  357. package/node_modules/@azure/msal-common/dist/error/ClientAuthError.d.ts.map +1 -0
  358. package/node_modules/@azure/msal-common/dist/error/ClientAuthError.js +526 -0
  359. package/node_modules/@azure/msal-common/dist/error/ClientAuthError.js.map +1 -0
  360. package/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.d.ts +199 -0
  361. package/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.d.ts.map +1 -0
  362. package/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.js +256 -0
  363. package/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.js.map +1 -0
  364. package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.d.ts +60 -0
  365. package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.d.ts.map +1 -0
  366. package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.js +86 -0
  367. package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.js.map +1 -0
  368. package/node_modules/@azure/msal-common/dist/error/JoseHeaderError.d.ts +29 -0
  369. package/node_modules/@azure/msal-common/dist/error/JoseHeaderError.d.ts.map +1 -0
  370. package/node_modules/@azure/msal-common/dist/error/JoseHeaderError.js +46 -0
  371. package/node_modules/@azure/msal-common/dist/error/JoseHeaderError.js.map +1 -0
  372. package/node_modules/@azure/msal-common/dist/error/ServerError.d.ts +8 -0
  373. package/node_modules/@azure/msal-common/dist/error/ServerError.d.ts.map +1 -0
  374. package/node_modules/@azure/msal-common/dist/error/ServerError.js +21 -0
  375. package/node_modules/@azure/msal-common/dist/error/ServerError.js.map +1 -0
  376. package/node_modules/@azure/msal-common/dist/index.cjs.js +8975 -0
  377. package/node_modules/@azure/msal-common/dist/index.cjs.js.map +1 -0
  378. package/node_modules/@azure/msal-common/dist/index.d.ts +94 -0
  379. package/node_modules/@azure/msal-common/dist/index.d.ts.map +1 -0
  380. package/node_modules/@azure/msal-common/dist/index.js +54 -0
  381. package/node_modules/@azure/msal-common/dist/index.js.map +1 -0
  382. package/node_modules/@azure/msal-common/dist/logger/Logger.d.ts +96 -0
  383. package/node_modules/@azure/msal-common/dist/logger/Logger.d.ts.map +1 -0
  384. package/node_modules/@azure/msal-common/dist/logger/Logger.js +205 -0
  385. package/node_modules/@azure/msal-common/dist/logger/Logger.js.map +1 -0
  386. package/node_modules/@azure/msal-common/dist/network/INetworkModule.d.ts +30 -0
  387. package/node_modules/@azure/msal-common/dist/network/INetworkModule.d.ts.map +1 -0
  388. package/node_modules/@azure/msal-common/dist/network/INetworkModule.js +21 -0
  389. package/node_modules/@azure/msal-common/dist/network/INetworkModule.js.map +1 -0
  390. package/node_modules/@azure/msal-common/dist/network/NetworkManager.d.ts +33 -0
  391. package/node_modules/@azure/msal-common/dist/network/NetworkManager.d.ts.map +1 -0
  392. package/node_modules/@azure/msal-common/dist/network/NetworkManager.js +42 -0
  393. package/node_modules/@azure/msal-common/dist/network/NetworkManager.js.map +1 -0
  394. package/node_modules/@azure/msal-common/dist/network/RequestThumbprint.d.ts +17 -0
  395. package/node_modules/@azure/msal-common/dist/network/RequestThumbprint.d.ts.map +1 -0
  396. package/node_modules/@azure/msal-common/dist/network/ThrottlingUtils.d.ts +42 -0
  397. package/node_modules/@azure/msal-common/dist/network/ThrottlingUtils.d.ts.map +1 -0
  398. package/node_modules/@azure/msal-common/dist/network/ThrottlingUtils.js +102 -0
  399. package/node_modules/@azure/msal-common/dist/network/ThrottlingUtils.js.map +1 -0
  400. package/node_modules/@azure/msal-common/dist/packageMetadata.d.ts +3 -0
  401. package/node_modules/@azure/msal-common/dist/packageMetadata.d.ts.map +1 -0
  402. package/node_modules/@azure/msal-common/dist/packageMetadata.js +8 -0
  403. package/node_modules/@azure/msal-common/dist/packageMetadata.js.map +1 -0
  404. package/node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.d.ts +20 -0
  405. package/node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.d.ts.map +1 -0
  406. package/node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.js +63 -0
  407. package/node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.js.map +1 -0
  408. package/node_modules/@azure/msal-common/dist/request/BaseAuthRequest.d.ts +38 -0
  409. package/node_modules/@azure/msal-common/dist/request/BaseAuthRequest.d.ts.map +1 -0
  410. package/node_modules/@azure/msal-common/dist/request/CommonAuthorizationCodeRequest.d.ts +28 -0
  411. package/node_modules/@azure/msal-common/dist/request/CommonAuthorizationCodeRequest.d.ts.map +1 -0
  412. package/node_modules/@azure/msal-common/dist/request/CommonAuthorizationUrlRequest.d.ts +51 -0
  413. package/node_modules/@azure/msal-common/dist/request/CommonAuthorizationUrlRequest.d.ts.map +1 -0
  414. package/node_modules/@azure/msal-common/dist/request/CommonClientCredentialRequest.d.ts +18 -0
  415. package/node_modules/@azure/msal-common/dist/request/CommonClientCredentialRequest.d.ts.map +1 -0
  416. package/node_modules/@azure/msal-common/dist/request/CommonDeviceCodeRequest.d.ts +22 -0
  417. package/node_modules/@azure/msal-common/dist/request/CommonDeviceCodeRequest.d.ts.map +1 -0
  418. package/node_modules/@azure/msal-common/dist/request/CommonEndSessionRequest.d.ts +22 -0
  419. package/node_modules/@azure/msal-common/dist/request/CommonEndSessionRequest.d.ts.map +1 -0
  420. package/node_modules/@azure/msal-common/dist/request/CommonOnBehalfOfRequest.d.ts +14 -0
  421. package/node_modules/@azure/msal-common/dist/request/CommonOnBehalfOfRequest.d.ts.map +1 -0
  422. package/node_modules/@azure/msal-common/dist/request/CommonRefreshTokenRequest.d.ts +20 -0
  423. package/node_modules/@azure/msal-common/dist/request/CommonRefreshTokenRequest.d.ts.map +1 -0
  424. package/node_modules/@azure/msal-common/dist/request/CommonSilentFlowRequest.d.ts +19 -0
  425. package/node_modules/@azure/msal-common/dist/request/CommonSilentFlowRequest.d.ts.map +1 -0
  426. package/node_modules/@azure/msal-common/dist/request/CommonUsernamePasswordRequest.d.ts +18 -0
  427. package/node_modules/@azure/msal-common/dist/request/CommonUsernamePasswordRequest.d.ts.map +1 -0
  428. package/node_modules/@azure/msal-common/dist/request/NativeRequest.d.ts +20 -0
  429. package/node_modules/@azure/msal-common/dist/request/NativeRequest.d.ts.map +1 -0
  430. package/node_modules/@azure/msal-common/dist/request/NativeSignOutRequest.d.ts +6 -0
  431. package/node_modules/@azure/msal-common/dist/request/NativeSignOutRequest.d.ts.map +1 -0
  432. package/node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.d.ts +217 -0
  433. package/node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.d.ts.map +1 -0
  434. package/node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.js +385 -0
  435. package/node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.js.map +1 -0
  436. package/node_modules/@azure/msal-common/dist/request/RequestValidator.d.ts +34 -0
  437. package/node_modules/@azure/msal-common/dist/request/RequestValidator.d.ts.map +1 -0
  438. package/node_modules/@azure/msal-common/dist/request/RequestValidator.js +92 -0
  439. package/node_modules/@azure/msal-common/dist/request/RequestValidator.js.map +1 -0
  440. package/node_modules/@azure/msal-common/dist/request/ScopeSet.d.ts +89 -0
  441. package/node_modules/@azure/msal-common/dist/request/ScopeSet.d.ts.map +1 -0
  442. package/node_modules/@azure/msal-common/dist/request/ScopeSet.js +207 -0
  443. package/node_modules/@azure/msal-common/dist/request/ScopeSet.js.map +1 -0
  444. package/node_modules/@azure/msal-common/dist/response/AuthenticationResult.d.ts +40 -0
  445. package/node_modules/@azure/msal-common/dist/response/AuthenticationResult.d.ts.map +1 -0
  446. package/node_modules/@azure/msal-common/dist/response/AuthorizationCodePayload.d.ts +14 -0
  447. package/node_modules/@azure/msal-common/dist/response/AuthorizationCodePayload.d.ts.map +1 -0
  448. package/node_modules/@azure/msal-common/dist/response/DeviceCodeResponse.d.ts +26 -0
  449. package/node_modules/@azure/msal-common/dist/response/DeviceCodeResponse.d.ts.map +1 -0
  450. package/node_modules/@azure/msal-common/dist/response/ExternalTokenResponse.d.ts +16 -0
  451. package/node_modules/@azure/msal-common/dist/response/ExternalTokenResponse.d.ts.map +1 -0
  452. package/node_modules/@azure/msal-common/dist/response/IMDSBadResponse.d.ts +5 -0
  453. package/node_modules/@azure/msal-common/dist/response/IMDSBadResponse.d.ts.map +1 -0
  454. package/node_modules/@azure/msal-common/dist/response/ResponseHandler.d.ts +73 -0
  455. package/node_modules/@azure/msal-common/dist/response/ResponseHandler.d.ts.map +1 -0
  456. package/node_modules/@azure/msal-common/dist/response/ResponseHandler.js +325 -0
  457. package/node_modules/@azure/msal-common/dist/response/ResponseHandler.js.map +1 -0
  458. package/node_modules/@azure/msal-common/dist/response/ServerAuthorizationCodeResponse.d.ts +26 -0
  459. package/node_modules/@azure/msal-common/dist/response/ServerAuthorizationCodeResponse.d.ts.map +1 -0
  460. package/node_modules/@azure/msal-common/dist/response/ServerAuthorizationTokenResponse.d.ts +45 -0
  461. package/node_modules/@azure/msal-common/dist/response/ServerAuthorizationTokenResponse.d.ts.map +1 -0
  462. package/node_modules/@azure/msal-common/dist/telemetry/performance/IPerformanceClient.d.ts +43 -0
  463. package/node_modules/@azure/msal-common/dist/telemetry/performance/IPerformanceClient.d.ts.map +1 -0
  464. package/node_modules/@azure/msal-common/dist/telemetry/performance/IPerformanceMeasurement.d.ts +6 -0
  465. package/node_modules/@azure/msal-common/dist/telemetry/performance/IPerformanceMeasurement.d.ts.map +1 -0
  466. package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.d.ts +190 -0
  467. package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.d.ts.map +1 -0
  468. package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.js +413 -0
  469. package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.js.map +1 -0
  470. package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.d.ts +440 -0
  471. package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.d.ts.map +1 -0
  472. package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.js +232 -0
  473. package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.js.map +1 -0
  474. package/node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.d.ts +20 -0
  475. package/node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.d.ts.map +1 -0
  476. package/node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.js +43 -0
  477. package/node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.js.map +1 -0
  478. package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.d.ts +66 -0
  479. package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.d.ts.map +1 -0
  480. package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.js +206 -0
  481. package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.js.map +1 -0
  482. package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryRequest.d.ts +9 -0
  483. package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryRequest.d.ts.map +1 -0
  484. package/node_modules/@azure/msal-common/dist/url/IUri.d.ts +13 -0
  485. package/node_modules/@azure/msal-common/dist/url/IUri.d.ts.map +1 -0
  486. package/node_modules/@azure/msal-common/dist/url/UrlString.d.ts +71 -0
  487. package/node_modules/@azure/msal-common/dist/url/UrlString.d.ts.map +1 -0
  488. package/node_modules/@azure/msal-common/dist/url/UrlString.js +252 -0
  489. package/node_modules/@azure/msal-common/dist/url/UrlString.js.map +1 -0
  490. package/node_modules/@azure/msal-common/dist/utils/Constants.d.ts +332 -0
  491. package/node_modules/@azure/msal-common/dist/utils/Constants.d.ts.map +1 -0
  492. package/node_modules/@azure/msal-common/dist/utils/Constants.js +378 -0
  493. package/node_modules/@azure/msal-common/dist/utils/Constants.js.map +1 -0
  494. package/node_modules/@azure/msal-common/dist/utils/MsalTypes.d.ts +7 -0
  495. package/node_modules/@azure/msal-common/dist/utils/MsalTypes.d.ts.map +1 -0
  496. package/node_modules/@azure/msal-common/dist/utils/ProtocolUtils.d.ts +43 -0
  497. package/node_modules/@azure/msal-common/dist/utils/ProtocolUtils.d.ts.map +1 -0
  498. package/node_modules/@azure/msal-common/dist/utils/ProtocolUtils.js +80 -0
  499. package/node_modules/@azure/msal-common/dist/utils/ProtocolUtils.js.map +1 -0
  500. package/node_modules/@azure/msal-common/dist/utils/StringUtils.d.ts +54 -0
  501. package/node_modules/@azure/msal-common/dist/utils/StringUtils.d.ts.map +1 -0
  502. package/node_modules/@azure/msal-common/dist/utils/StringUtils.js +131 -0
  503. package/node_modules/@azure/msal-common/dist/utils/StringUtils.js.map +1 -0
  504. package/node_modules/@azure/msal-common/dist/utils/TimeUtils.d.ts +28 -0
  505. package/node_modules/@azure/msal-common/dist/utils/TimeUtils.d.ts.map +1 -0
  506. package/node_modules/@azure/msal-common/dist/utils/TimeUtils.js +50 -0
  507. package/node_modules/@azure/msal-common/dist/utils/TimeUtils.js.map +1 -0
  508. package/node_modules/@azure/msal-common/package.json +79 -0
  509. package/package.json +77 -68
@@ -0,0 +1,94 @@
1
+ /*! @azure/msal-node v2.0.0-alpha.0 2023-05-03 */
2
+ 'use strict';
3
+ import { Constants, UrlString } from '@azure/msal-common';
4
+ import { createServer } from 'http';
5
+ import { NodeAuthError } from '../error/NodeAuthError.esm.js';
6
+ import { HttpStatus, LOOPBACK_SERVER_CONSTANTS, Constants as Constants$1 } from '../utils/Constants.esm.js';
7
+
8
+ /*
9
+ * Copyright (c) Microsoft Corporation. All rights reserved.
10
+ * Licensed under the MIT License.
11
+ */
12
+ class LoopbackClient {
13
+ /**
14
+ * Spins up a loopback server which returns the server response when the localhost redirectUri is hit
15
+ * @param successTemplate
16
+ * @param errorTemplate
17
+ * @returns
18
+ */
19
+ async listenForAuthCode(successTemplate, errorTemplate) {
20
+ if (!!this.server) {
21
+ throw NodeAuthError.createLoopbackServerAlreadyExistsError();
22
+ }
23
+ const authCodeListener = new Promise((resolve, reject) => {
24
+ this.server = createServer(async (req, res) => {
25
+ const url = req.url;
26
+ if (!url) {
27
+ res.end(errorTemplate ||
28
+ "Error occurred loading redirectUrl");
29
+ reject(NodeAuthError.createUnableToLoadRedirectUrlError());
30
+ return;
31
+ }
32
+ else if (url === Constants.FORWARD_SLASH) {
33
+ res.end(successTemplate ||
34
+ "Auth code was successfully acquired. You can close this window now.");
35
+ return;
36
+ }
37
+ const authCodeResponse = UrlString.getDeserializedQueryString(url);
38
+ if (authCodeResponse.code) {
39
+ const redirectUri = await this.getRedirectUri();
40
+ res.writeHead(HttpStatus.REDIRECT, {
41
+ location: redirectUri,
42
+ }); // Prevent auth code from being saved in the browser history
43
+ res.end();
44
+ }
45
+ resolve(authCodeResponse);
46
+ });
47
+ this.server.listen(0); // Listen on any available port
48
+ });
49
+ // Wait for server to be listening
50
+ await new Promise((resolve) => {
51
+ let ticks = 0;
52
+ const id = setInterval(() => {
53
+ if (LOOPBACK_SERVER_CONSTANTS.TIMEOUT_MS /
54
+ LOOPBACK_SERVER_CONSTANTS.INTERVAL_MS <
55
+ ticks) {
56
+ throw NodeAuthError.createLoopbackServerTimeoutError();
57
+ }
58
+ if (this.server.listening) {
59
+ clearInterval(id);
60
+ resolve();
61
+ }
62
+ ticks++;
63
+ }, LOOPBACK_SERVER_CONSTANTS.INTERVAL_MS);
64
+ });
65
+ return authCodeListener;
66
+ }
67
+ /**
68
+ * Get the port that the loopback server is running on
69
+ * @returns
70
+ */
71
+ getRedirectUri() {
72
+ if (!this.server) {
73
+ throw NodeAuthError.createNoLoopbackServerExistsError();
74
+ }
75
+ const address = this.server.address();
76
+ if (!address || typeof address === "string" || !address.port) {
77
+ this.closeServer();
78
+ throw NodeAuthError.createInvalidLoopbackAddressTypeError();
79
+ }
80
+ const port = address && address.port;
81
+ return `${Constants$1.HTTP_PROTOCOL}${Constants$1.LOCALHOST}:${port}`;
82
+ }
83
+ /**
84
+ * Close the loopback server
85
+ */
86
+ closeServer() {
87
+ if (!!this.server) {
88
+ this.server.close();
89
+ }
90
+ }
91
+ }
92
+
93
+ export { LoopbackClient };
94
+ //# sourceMappingURL=LoopbackClient.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoopbackClient.esm.js","sources":["../../src/network/LoopbackClient.ts"],"sourcesContent":[null],"names":["CommonConstants","Constants"],"mappings":";;;;;;;AAAA;;;AAGG;MAgBU,cAAc,CAAA;AAGvB;;;;;AAKG;AACH,IAAA,MAAM,iBAAiB,CACnB,eAAwB,EAC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AACvB,SAAA;KACJ;AACJ;;;;"}
@@ -0,0 +1,96 @@
1
+ /*! @azure/msal-node v2.0.0-alpha.0 2023-05-03 */
2
+ 'use strict';
3
+ 'use strict';
4
+
5
+ var msalCommon = require('@azure/msal-common');
6
+ var http = require('http');
7
+ var NodeAuthError = require('../error/NodeAuthError.js');
8
+ var Constants = require('../utils/Constants.js');
9
+
10
+ /*
11
+ * Copyright (c) Microsoft Corporation. All rights reserved.
12
+ * Licensed under the MIT License.
13
+ */
14
+ class LoopbackClient {
15
+ /**
16
+ * Spins up a loopback server which returns the server response when the localhost redirectUri is hit
17
+ * @param successTemplate
18
+ * @param errorTemplate
19
+ * @returns
20
+ */
21
+ async listenForAuthCode(successTemplate, errorTemplate) {
22
+ if (!!this.server) {
23
+ throw NodeAuthError.NodeAuthError.createLoopbackServerAlreadyExistsError();
24
+ }
25
+ const authCodeListener = new Promise((resolve, reject) => {
26
+ this.server = http.createServer(async (req, res) => {
27
+ const url = req.url;
28
+ if (!url) {
29
+ res.end(errorTemplate ||
30
+ "Error occurred loading redirectUrl");
31
+ reject(NodeAuthError.NodeAuthError.createUnableToLoadRedirectUrlError());
32
+ return;
33
+ }
34
+ else if (url === msalCommon.Constants.FORWARD_SLASH) {
35
+ res.end(successTemplate ||
36
+ "Auth code was successfully acquired. You can close this window now.");
37
+ return;
38
+ }
39
+ const authCodeResponse = msalCommon.UrlString.getDeserializedQueryString(url);
40
+ if (authCodeResponse.code) {
41
+ const redirectUri = await this.getRedirectUri();
42
+ res.writeHead(Constants.HttpStatus.REDIRECT, {
43
+ location: redirectUri,
44
+ }); // Prevent auth code from being saved in the browser history
45
+ res.end();
46
+ }
47
+ resolve(authCodeResponse);
48
+ });
49
+ this.server.listen(0); // Listen on any available port
50
+ });
51
+ // Wait for server to be listening
52
+ await new Promise((resolve) => {
53
+ let ticks = 0;
54
+ const id = setInterval(() => {
55
+ if (Constants.LOOPBACK_SERVER_CONSTANTS.TIMEOUT_MS /
56
+ Constants.LOOPBACK_SERVER_CONSTANTS.INTERVAL_MS <
57
+ ticks) {
58
+ throw NodeAuthError.NodeAuthError.createLoopbackServerTimeoutError();
59
+ }
60
+ if (this.server.listening) {
61
+ clearInterval(id);
62
+ resolve();
63
+ }
64
+ ticks++;
65
+ }, Constants.LOOPBACK_SERVER_CONSTANTS.INTERVAL_MS);
66
+ });
67
+ return authCodeListener;
68
+ }
69
+ /**
70
+ * Get the port that the loopback server is running on
71
+ * @returns
72
+ */
73
+ getRedirectUri() {
74
+ if (!this.server) {
75
+ throw NodeAuthError.NodeAuthError.createNoLoopbackServerExistsError();
76
+ }
77
+ const address = this.server.address();
78
+ if (!address || typeof address === "string" || !address.port) {
79
+ this.closeServer();
80
+ throw NodeAuthError.NodeAuthError.createInvalidLoopbackAddressTypeError();
81
+ }
82
+ const port = address && address.port;
83
+ return `${Constants.Constants.HTTP_PROTOCOL}${Constants.Constants.LOCALHOST}:${port}`;
84
+ }
85
+ /**
86
+ * Close the loopback server
87
+ */
88
+ closeServer() {
89
+ if (!!this.server) {
90
+ this.server.close();
91
+ }
92
+ }
93
+ }
94
+
95
+ exports.LoopbackClient = LoopbackClient;
96
+ //# sourceMappingURL=LoopbackClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoopbackClient.js","sources":["../../src/network/LoopbackClient.ts"],"sourcesContent":[null],"names":["NodeAuthError","createServer","CommonConstants","UrlString","HttpStatus","LOOPBACK_SERVER_CONSTANTS","Constants"],"mappings":";;;;;;;;;AAAA;;;AAGG;MAgBU,cAAc,CAAA;AAGvB;;;;;AAKG;AACH,IAAA,MAAM,iBAAiB,CACnB,eAAwB,EACxB,aAAsB,EAAA;AAEtB,QAAA,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE;AACf,YAAA,MAAMA,2BAAa,CAAC,sCAAsC,EAAE,CAAC;AAChE,SAAA;QAED,MAAM,gBAAgB,GAAG,IAAI,OAAO,CAChC,CAAC,OAAO,EAAE,MAAM,KAAI;YAChB,IAAI,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CAAC;AAC1D,iBAAA;AAED,gBAAA,IAAI,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE;oBACvB,aAAa,CAAC,EAAE,CAAC,CAAC;AAClB,oBAAA,OAAO,EAAE,CAAC;AACb,iBAAA;AACD,gBAAA,KAAK,EAAE,CAAC;AACZ,aAAC,EAAEK,mCAAyB,CAAC,WAAW,CAAC,CAAC;AAC9C,SAAC,CAAC,CAAC;AAEH,QAAA,OAAO,gBAAgB,CAAC;KAC3B;AAED;;;AAGG;IACH,cAAc,GAAA;AACV,QAAA,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;AACd,YAAA,MAAML,2BAAa,CAAC,iCAAiC,EAAE,CAAC;AAC3D,SAAA;QAED,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;AACtC,QAAA,IAAI,CAAC,OAAO,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE;YAC1D,IAAI,CAAC,WAAW,EAAE,CAAC;AACnB,YAAA,MAAMA,2BAAa,CAAC,qCAAqC,EAAE,CAAC;AAC/D,SAAA;AAED,QAAA,MAAM,IAAI,GAAG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;QAErC,OAAO,CAAA,EAAGM,mBAAS,CAAC,aAAa,CAAA,EAAGA,mBAAS,CAAC,SAAS,CAAA,CAAA,EAAI,IAAI,CAAA,CAAE,CAAC;KACrE;AAED;;AAEG;IACH,WAAW,GAAA;AACP,QAAA,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE;AACf,YAAA,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;AACvB,SAAA;KACJ;AACJ;;;;"}
@@ -1,3 +1,3 @@
1
1
  export declare const name = "@azure/msal-node";
2
- export declare const version = "1.17.1";
2
+ export declare const version = "2.0.0-alpha.0";
3
3
  //# sourceMappingURL=packageMetadata.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageMetadata.d.ts","sourceRoot":"","sources":["src/packageMetadata.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,IAAI,qBAAqB,CAAC;AACvC,eAAO,MAAM,OAAO,WAAW,CAAC"}
1
+ {"version":3,"file":"packageMetadata.d.ts","sourceRoot":"","sources":["../src/packageMetadata.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,IAAI,qBAAqB,CAAC;AACvC,eAAO,MAAM,OAAO,kBAAkB,CAAC"}
@@ -0,0 +1,8 @@
1
+ /*! @azure/msal-node v2.0.0-alpha.0 2023-05-03 */
2
+ 'use strict';
3
+ /* eslint-disable header/header */
4
+ const name = "@azure/msal-node";
5
+ const version = "2.0.0-alpha.0";
6
+
7
+ export { name, version };
8
+ //# sourceMappingURL=packageMetadata.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"packageMetadata.esm.js","sources":["../src/packageMetadata.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;AACO,MAAM,IAAI,GAAG,mBAAmB;AAChC,MAAM,OAAO,GAAG;;;;"}
@@ -0,0 +1,11 @@
1
+ /*! @azure/msal-node v2.0.0-alpha.0 2023-05-03 */
2
+ 'use strict';
3
+ 'use strict';
4
+
5
+ /* eslint-disable header/header */
6
+ const name = "@azure/msal-node";
7
+ const version = "2.0.0-alpha.0";
8
+
9
+ exports.name = name;
10
+ exports.version = version;
11
+ //# sourceMappingURL=packageMetadata.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"packageMetadata.js","sources":["../src/packageMetadata.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;AACO,MAAM,IAAI,GAAG,mBAAmB;AAChC,MAAM,OAAO,GAAG;;;;;"}
@@ -13,7 +13,7 @@ import { CommonAuthorizationCodeRequest } from "@azure/msal-common";
13
13
  * - state - Unique GUID generated by the user that is cached by the user and sent to the server during the first leg of the flow. This string is sent back by the server with the authorization code. The user cached state is then compared with the state received from the server to mitigate the risk of CSRF attacks. See https://datatracker.ietf.org/doc/html/rfc6819#section-3.6.
14
14
  * @public
15
15
  */
16
- export declare type AuthorizationCodeRequest = Partial<Omit<CommonAuthorizationCodeRequest, "scopes" | "redirectUri" | "code" | "authenticationScheme" | "resourceRequestMethod" | "resourceRequestUri" | "requestedClaimsHash">> & {
16
+ export type AuthorizationCodeRequest = Partial<Omit<CommonAuthorizationCodeRequest, "scopes" | "redirectUri" | "code" | "authenticationScheme" | "resourceRequestMethod" | "resourceRequestUri" | "requestedClaimsHash">> & {
17
17
  scopes: Array<string>;
18
18
  redirectUri: string;
19
19
  code: string;
@@ -1 +1 @@
1
- {"version":3,"file":"AuthorizationCodeRequest.d.ts","sourceRoot":"","sources":["../src/request/AuthorizationCodeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,8BAA8B,EAAE,MAAM,oBAAoB,CAAC;AAEpE;;;;;;;;;;;;;GAaG;AACH,oBAAY,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,QAAQ,GAAC,aAAa,GAAC,MAAM,GAAC,sBAAsB,GAAC,uBAAuB,GAAC,oBAAoB,GAAC,qBAAqB,CAAC,CAAC,GAAG;IAC5M,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
1
+ {"version":3,"file":"AuthorizationCodeRequest.d.ts","sourceRoot":"","sources":["../../src/request/AuthorizationCodeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,8BAA8B,EAAE,MAAM,oBAAoB,CAAC;AAEpE;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAC1C,IAAI,CACA,8BAA8B,EAC5B,QAAQ,GACR,aAAa,GACb,MAAM,GACN,sBAAsB,GACtB,uBAAuB,GACvB,oBAAoB,GACpB,qBAAqB,CAC1B,CACJ,GAAG;IACA,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -27,7 +27,7 @@ import { CommonAuthorizationUrlRequest } from "@azure/msal-common";
27
27
  * - nonce - A value included in the request that is returned in the id token. A randomly generated unique value is typically used to mitigate replay attacks.
28
28
  * @public
29
29
  */
30
- export declare type AuthorizationUrlRequest = Partial<Omit<CommonAuthorizationUrlRequest, "scopes" | "redirectUri" | "resourceRequestMethod" | "resourceRequestUri" | "authenticationScheme" | "requestedClaimsHash">> & {
30
+ export type AuthorizationUrlRequest = Partial<Omit<CommonAuthorizationUrlRequest, "scopes" | "redirectUri" | "resourceRequestMethod" | "resourceRequestUri" | "authenticationScheme" | "requestedClaimsHash">> & {
31
31
  scopes: Array<string>;
32
32
  redirectUri: string;
33
33
  };
@@ -1 +1 @@
1
- {"version":3,"file":"AuthorizationUrlRequest.d.ts","sourceRoot":"","sources":["../src/request/AuthorizationUrlRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AAEnE;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,oBAAY,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,QAAQ,GAAC,aAAa,GAAC,uBAAuB,GAAC,oBAAoB,GAAC,sBAAsB,GAAC,qBAAqB,CAAC,CAAC,GAAG;IACnM,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC"}
1
+ {"version":3,"file":"AuthorizationUrlRequest.d.ts","sourceRoot":"","sources":["../../src/request/AuthorizationUrlRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AAEnE;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,MAAM,uBAAuB,GAAG,OAAO,CACzC,IAAI,CACA,6BAA6B,EAC3B,QAAQ,GACR,aAAa,GACb,uBAAuB,GACvB,oBAAoB,GACpB,sBAAsB,GACtB,qBAAqB,CAC1B,CACJ,GAAG;IACA,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC"}
@@ -9,7 +9,7 @@ import { CommonClientCredentialRequest } from "@azure/msal-common";
9
9
  * - tokenQueryParameters - String to string map of custom query parameters added to the /token call
10
10
  * @public
11
11
  */
12
- export declare type ClientCredentialRequest = Partial<Omit<CommonClientCredentialRequest, "scopes" | "resourceRequestMethod" | "resourceRequestUri" | "requestedClaimsHash" | "clientAssertion">> & {
12
+ export type ClientCredentialRequest = Partial<Omit<CommonClientCredentialRequest, "scopes" | "resourceRequestMethod" | "resourceRequestUri" | "requestedClaimsHash" | "clientAssertion">> & {
13
13
  scopes: Array<string>;
14
14
  clientAssertion?: string;
15
15
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ClientCredentialRequest.d.ts","sourceRoot":"","sources":["../src/request/ClientCredentialRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AAEnE;;;;;;;;;GASG;AACH,oBAAY,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,QAAQ,GAAC,uBAAuB,GAAC,oBAAoB,GAAC,qBAAqB,GAAC,iBAAiB,CAAC,CAAC,GAAG;IAChL,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC"}
1
+ {"version":3,"file":"ClientCredentialRequest.d.ts","sourceRoot":"","sources":["../../src/request/ClientCredentialRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AAEnE;;;;;;;;;GASG;AACH,MAAM,MAAM,uBAAuB,GAAG,OAAO,CACzC,IAAI,CACA,6BAA6B,EAC3B,QAAQ,GACR,uBAAuB,GACvB,oBAAoB,GACpB,qBAAqB,GACrB,iBAAiB,CACtB,CACJ,GAAG;IACA,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC"}
@@ -9,7 +9,7 @@ import { CommonDeviceCodeRequest, DeviceCodeResponse } from "@azure/msal-common"
9
9
  * - extraQueryParameters - String to string map of custom query parameters added to the query string
10
10
  * @public
11
11
  */
12
- export declare type DeviceCodeRequest = Partial<Omit<CommonDeviceCodeRequest, "scopes" | "deviceCodeCallback" | "resourceRequestMethod" | "resourceRequestUri" | "requestedClaimsHash">> & {
12
+ export type DeviceCodeRequest = Partial<Omit<CommonDeviceCodeRequest, "scopes" | "deviceCodeCallback" | "resourceRequestMethod" | "resourceRequestUri" | "requestedClaimsHash">> & {
13
13
  scopes: Array<string>;
14
14
  deviceCodeCallback: (response: DeviceCodeResponse) => void;
15
15
  };
@@ -1 +1 @@
1
- {"version":3,"file":"DeviceCodeRequest.d.ts","sourceRoot":"","sources":["../src/request/DeviceCodeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAG,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAElF;;;;;;;;;GASG;AACH,oBAAY,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,QAAQ,GAAC,oBAAoB,GAAC,uBAAuB,GAAC,oBAAoB,GAAC,qBAAqB,CAAC,CAAC,GAAG;IACvK,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,kBAAkB,EAAE,CAAC,QAAQ,EAAE,kBAAkB,KAAK,IAAI,CAAC;CAC9D,CAAC"}
1
+ {"version":3,"file":"DeviceCodeRequest.d.ts","sourceRoot":"","sources":["../../src/request/DeviceCodeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,uBAAuB,EACvB,kBAAkB,EACrB,MAAM,oBAAoB,CAAC;AAE5B;;;;;;;;;GASG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,CACnC,IAAI,CACA,uBAAuB,EACrB,QAAQ,GACR,oBAAoB,GACpB,uBAAuB,GACvB,oBAAoB,GACpB,qBAAqB,CAC1B,CACJ,GAAG;IACA,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,kBAAkB,EAAE,CAAC,QAAQ,EAAE,kBAAkB,KAAK,IAAI,CAAC;CAC9D,CAAC"}
@@ -12,7 +12,7 @@ import { AuthorizationUrlRequest } from "./AuthorizationUrlRequest";
12
12
  * - loopbackClient - Custom implementation for a loopback server to listen for authorization code response.
13
13
  * @public
14
14
  */
15
- export declare type InteractiveRequest = Pick<AuthorizationUrlRequest, "authority" | "correlationId" | "claims" | "azureCloudOptions" | "account" | "extraQueryParameters" | "tokenQueryParameters" | "extraScopesToConsent" | "loginHint" | "prompt"> & {
15
+ export type InteractiveRequest = Pick<AuthorizationUrlRequest, "authority" | "correlationId" | "claims" | "azureCloudOptions" | "account" | "extraQueryParameters" | "tokenQueryParameters" | "extraScopesToConsent" | "loginHint" | "prompt"> & {
16
16
  openBrowser: (url: string) => Promise<void>;
17
17
  scopes?: Array<string>;
18
18
  successTemplate?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"InteractiveRequest.d.ts","sourceRoot":"","sources":["../src/request/InteractiveRequest.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE;;;;;;;;;;GAUG;AACH,oBAAY,kBAAkB,GAAG,IAAI,CAAC,uBAAuB,EAAE,WAAW,GAAC,eAAe,GAAC,QAAQ,GAAC,mBAAmB,GAAC,SAAS,GAAC,sBAAsB,GAAC,sBAAsB,GAAC,sBAAsB,GAAC,WAAW,GAAC,QAAQ,CAAC,GAAG;IAC3N,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,eAAe,CAAA;CACnC,CAAC"}
1
+ {"version":3,"file":"InteractiveRequest.d.ts","sourceRoot":"","sources":["../../src/request/InteractiveRequest.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE;;;;;;;;;;GAUG;AACH,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACjC,uBAAuB,EACrB,WAAW,GACX,eAAe,GACf,QAAQ,GACR,mBAAmB,GACnB,SAAS,GACT,sBAAsB,GACtB,sBAAsB,GACtB,sBAAsB,GACtB,WAAW,GACX,QAAQ,CACb,GAAG;IACA,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,eAAe,CAAC;CACpC,CAAC"}
@@ -8,7 +8,7 @@ import { CommonOnBehalfOfRequest } from "@azure/msal-common";
8
8
  * - tokenQueryParameters - String to string map of custom query parameters added to the /token call
9
9
  * @public
10
10
  */
11
- export declare type OnBehalfOfRequest = Partial<Omit<CommonOnBehalfOfRequest, "oboAssertion" | "scopes" | "resourceRequestMethod" | "resourceRequestUri" | "requestedClaimsHash">> & {
11
+ export type OnBehalfOfRequest = Partial<Omit<CommonOnBehalfOfRequest, "oboAssertion" | "scopes" | "resourceRequestMethod" | "resourceRequestUri" | "requestedClaimsHash">> & {
12
12
  oboAssertion: string;
13
13
  scopes: Array<string>;
14
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"OnBehalfOfRequest.d.ts","sourceRoot":"","sources":["../src/request/OnBehalfOfRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAE7D;;;;;;;;GAQG;AACH,oBAAY,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,cAAc,GAAC,QAAQ,GAAC,uBAAuB,GAAC,oBAAoB,GAAC,qBAAqB,CAAC,CAAC,GAAG;IACjK,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzB,CAAC"}
1
+ {"version":3,"file":"OnBehalfOfRequest.d.ts","sourceRoot":"","sources":["../../src/request/OnBehalfOfRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAE7D;;;;;;;;GAQG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,CACnC,IAAI,CACA,uBAAuB,EACrB,cAAc,GACd,QAAQ,GACR,uBAAuB,GACvB,oBAAoB,GACpB,qBAAqB,CAC1B,CACJ,GAAG;IACA,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzB,CAAC"}
@@ -10,7 +10,7 @@ import { CommonRefreshTokenRequest } from "@azure/msal-common";
10
10
  * - forceCache - Force MSAL to cache a refresh token flow response when there is no account in the cache. Used for migration scenarios.
11
11
  * @public
12
12
  */
13
- export declare type RefreshTokenRequest = Partial<Omit<CommonRefreshTokenRequest, "scopes" | "refreshToken" | "authenticationScheme" | "resourceRequestMethod" | "resourceRequestUri" | "requestedClaimsHash">> & {
13
+ export type RefreshTokenRequest = Partial<Omit<CommonRefreshTokenRequest, "scopes" | "refreshToken" | "authenticationScheme" | "resourceRequestMethod" | "resourceRequestUri" | "requestedClaimsHash">> & {
14
14
  scopes: Array<string>;
15
15
  refreshToken: string;
16
16
  forceCache?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"RefreshTokenRequest.d.ts","sourceRoot":"","sources":["../src/request/RefreshTokenRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAE/D;;;;;;;;;;GAUG;AACH,oBAAY,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,QAAQ,GAAC,cAAc,GAAC,sBAAsB,GAAC,uBAAuB,GAAC,oBAAoB,GAAC,qBAAqB,CAAC,CAAC,GAAG;IAC5L,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC"}
1
+ {"version":3,"file":"RefreshTokenRequest.d.ts","sourceRoot":"","sources":["../../src/request/RefreshTokenRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAE/D;;;;;;;;;;GAUG;AACH,MAAM,MAAM,mBAAmB,GAAG,OAAO,CACrC,IAAI,CACA,yBAAyB,EACvB,QAAQ,GACR,cAAc,GACd,sBAAsB,GACtB,uBAAuB,GACvB,oBAAoB,GACpB,qBAAqB,CAC1B,CACJ,GAAG;IACA,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { AccountInfo } from "@azure/msal-common";
2
- export declare type SignOutRequest = {
2
+ export type SignOutRequest = {
3
3
  account: AccountInfo;
4
4
  correlationId?: string;
5
5
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SignOutRequest.d.ts","sourceRoot":"","sources":["../src/request/SignOutRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,oBAAY,cAAc,GAAG;IACzB,OAAO,EAAE,WAAW,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC"}
1
+ {"version":3,"file":"SignOutRequest.d.ts","sourceRoot":"","sources":["../../src/request/SignOutRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,MAAM,cAAc,GAAG;IACzB,OAAO,EAAE,WAAW,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC"}
@@ -10,7 +10,7 @@ import { AccountInfo, CommonSilentFlowRequest } from "@azure/msal-common";
10
10
  * - forceRefresh - Forces silent requests to make network calls if true.
11
11
  * @public
12
12
  */
13
- export declare type SilentFlowRequest = Partial<Omit<CommonSilentFlowRequest, "account" | "scopes" | "resourceRequestMethod" | "resourceRequestUri" | "requestedClaimsHash">> & {
13
+ export type SilentFlowRequest = Partial<Omit<CommonSilentFlowRequest, "account" | "scopes" | "resourceRequestMethod" | "resourceRequestUri" | "requestedClaimsHash">> & {
14
14
  account: AccountInfo;
15
15
  scopes: Array<string>;
16
16
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SilentFlowRequest.d.ts","sourceRoot":"","sources":["../src/request/SilentFlowRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAE1E;;;;;;;;;;GAUG;AACH,oBAAY,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,SAAS,GAAC,QAAQ,GAAC,uBAAuB,GAAC,oBAAoB,GAAC,qBAAqB,CAAC,CAAC,GAAG;IAC5J,OAAO,EAAE,WAAW,CAAC;IACrB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzB,CAAC"}
1
+ {"version":3,"file":"SilentFlowRequest.d.ts","sourceRoot":"","sources":["../../src/request/SilentFlowRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAE1E;;;;;;;;;;GAUG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,CACnC,IAAI,CACA,uBAAuB,EACrB,SAAS,GACT,QAAQ,GACR,uBAAuB,GACvB,oBAAoB,GACpB,qBAAqB,CAC1B,CACJ,GAAG;IACA,OAAO,EAAE,WAAW,CAAC;IACrB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzB,CAAC"}
@@ -12,7 +12,7 @@ import { CommonUsernamePasswordRequest } from "@azure/msal-common";
12
12
  * - tokenQueryParameters - String to string map of custom query parameters added to the /token call
13
13
  * @public
14
14
  */
15
- export declare type UsernamePasswordRequest = Partial<Omit<CommonUsernamePasswordRequest, "scopes" | "resourceRequestMethod" | "resourceRequestUri" | "username" | "password" | "requestedClaimsHash">> & {
15
+ export type UsernamePasswordRequest = Partial<Omit<CommonUsernamePasswordRequest, "scopes" | "resourceRequestMethod" | "resourceRequestUri" | "username" | "password" | "requestedClaimsHash">> & {
16
16
  scopes: Array<string>;
17
17
  username: string;
18
18
  password: string;
@@ -1 +1 @@
1
- {"version":3,"file":"UsernamePasswordRequest.d.ts","sourceRoot":"","sources":["../src/request/UsernamePasswordRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AAEnE;;;;;;;;;;;;GAYG;AACH,oBAAY,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,QAAQ,GAAC,uBAAuB,GAAC,oBAAoB,GAAC,UAAU,GAAC,UAAU,GAAC,qBAAqB,CAAC,CAAC,GAAG;IACpL,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAA;CACnB,CAAC"}
1
+ {"version":3,"file":"UsernamePasswordRequest.d.ts","sourceRoot":"","sources":["../../src/request/UsernamePasswordRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AAEnE;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,uBAAuB,GAAG,OAAO,CACzC,IAAI,CACA,6BAA6B,EAC3B,QAAQ,GACR,uBAAuB,GACvB,oBAAoB,GACpB,UAAU,GACV,UAAU,GACV,qBAAqB,CAC1B,CACJ,GAAG;IACA,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Constants.d.ts","sourceRoot":"","sources":["../src/utils/Constants.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,oBAAY,UAAU;IAClB,GAAG,QAAQ;IACX,IAAI,SAAS;CAChB;AAED,oBAAY,UAAU;IAClB,mBAAmB,MAAM;IACzB,iBAAiB,MAAM;IACvB,QAAQ,MAAM;IACd,wBAAwB,MAAM;IAC9B,sBAAsB,MAAM;IAC5B,wBAAwB,MAAM;IAC9B,sBAAsB,MAAM;CAC/B;AAED,oBAAY,WAAW;IACnB,mBAAmB,MAAM;IACzB,iBAAiB,MAAM;IACvB,YAAY,MAAM;CACrB;AAED;;GAEG;AACH,eAAO,MAAM,2BAA2B,gBAAgB,CAAC;AAEzD;;GAEG;AACH,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,IAAI;;CAEhB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO;;CAGnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,KAAK;;;CAGjB,CAAC;AAEF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;;;;;;;;;;;CAWxB,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;CAGrC,CAAC"}
@@ -0,0 +1,98 @@
1
+ /*! @azure/msal-node v2.0.0-alpha.0 2023-05-03 */
2
+ 'use strict';
3
+ /*
4
+ * Copyright (c) Microsoft Corporation. All rights reserved.
5
+ * Licensed under the MIT License.
6
+ */
7
+ /**
8
+ * http methods
9
+ */
10
+ var HttpMethod;
11
+ (function (HttpMethod) {
12
+ HttpMethod["GET"] = "get";
13
+ HttpMethod["POST"] = "post";
14
+ })(HttpMethod || (HttpMethod = {}));
15
+ var HttpStatus;
16
+ (function (HttpStatus) {
17
+ HttpStatus[HttpStatus["SUCCESS_RANGE_START"] = 200] = "SUCCESS_RANGE_START";
18
+ HttpStatus[HttpStatus["SUCCESS_RANGE_END"] = 299] = "SUCCESS_RANGE_END";
19
+ HttpStatus[HttpStatus["REDIRECT"] = 302] = "REDIRECT";
20
+ HttpStatus[HttpStatus["CLIENT_ERROR_RANGE_START"] = 400] = "CLIENT_ERROR_RANGE_START";
21
+ HttpStatus[HttpStatus["CLIENT_ERROR_RANGE_END"] = 499] = "CLIENT_ERROR_RANGE_END";
22
+ HttpStatus[HttpStatus["SERVER_ERROR_RANGE_START"] = 500] = "SERVER_ERROR_RANGE_START";
23
+ HttpStatus[HttpStatus["SERVER_ERROR_RANGE_END"] = 599] = "SERVER_ERROR_RANGE_END";
24
+ })(HttpStatus || (HttpStatus = {}));
25
+ var ProxyStatus;
26
+ (function (ProxyStatus) {
27
+ ProxyStatus[ProxyStatus["SUCCESS_RANGE_START"] = 200] = "SUCCESS_RANGE_START";
28
+ ProxyStatus[ProxyStatus["SUCCESS_RANGE_END"] = 299] = "SUCCESS_RANGE_END";
29
+ ProxyStatus[ProxyStatus["SERVER_ERROR"] = 500] = "SERVER_ERROR";
30
+ })(ProxyStatus || (ProxyStatus = {}));
31
+ /**
32
+ * Constants used for region discovery
33
+ */
34
+ const REGION_ENVIRONMENT_VARIABLE = "REGION_NAME";
35
+ /**
36
+ * Constant used for PKCE
37
+ */
38
+ const RANDOM_OCTET_SIZE = 32;
39
+ /**
40
+ * Constants used in PKCE
41
+ */
42
+ const Hash = {
43
+ SHA256: "sha256",
44
+ };
45
+ /**
46
+ * Constants for encoding schemes
47
+ */
48
+ const CharSet = {
49
+ CV_CHARSET: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",
50
+ };
51
+ /**
52
+ * Constants
53
+ */
54
+ const Constants = {
55
+ MSAL_SKU: "msal.js.node",
56
+ JWT_BEARER_ASSERTION_TYPE: "urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
57
+ AUTHORIZATION_PENDING: "authorization_pending",
58
+ HTTP_PROTOCOL: "http://",
59
+ LOCALHOST: "localhost",
60
+ };
61
+ /**
62
+ * API Codes for Telemetry purposes.
63
+ * Before adding a new code you must claim it in the MSAL Telemetry tracker as these number spaces are shared across all MSALs
64
+ * 0-99 Silent Flow
65
+ * 600-699 Device Code Flow
66
+ * 800-899 Auth Code Flow
67
+ */
68
+ var ApiId;
69
+ (function (ApiId) {
70
+ ApiId[ApiId["acquireTokenSilent"] = 62] = "acquireTokenSilent";
71
+ ApiId[ApiId["acquireTokenByUsernamePassword"] = 371] = "acquireTokenByUsernamePassword";
72
+ ApiId[ApiId["acquireTokenByDeviceCode"] = 671] = "acquireTokenByDeviceCode";
73
+ ApiId[ApiId["acquireTokenByClientCredential"] = 771] = "acquireTokenByClientCredential";
74
+ ApiId[ApiId["acquireTokenByCode"] = 871] = "acquireTokenByCode";
75
+ ApiId[ApiId["acquireTokenByRefreshToken"] = 872] = "acquireTokenByRefreshToken";
76
+ })(ApiId || (ApiId = {}));
77
+ /**
78
+ * JWT constants
79
+ */
80
+ const JwtConstants = {
81
+ ALGORITHM: "alg",
82
+ RSA_256: "RS256",
83
+ X5T: "x5t",
84
+ X5C: "x5c",
85
+ AUDIENCE: "aud",
86
+ EXPIRATION_TIME: "exp",
87
+ ISSUER: "iss",
88
+ SUBJECT: "sub",
89
+ NOT_BEFORE: "nbf",
90
+ JWT_ID: "jti",
91
+ };
92
+ const LOOPBACK_SERVER_CONSTANTS = {
93
+ INTERVAL_MS: 100,
94
+ TIMEOUT_MS: 5000,
95
+ };
96
+
97
+ export { ApiId, CharSet, Constants, Hash, HttpMethod, HttpStatus, JwtConstants, LOOPBACK_SERVER_CONSTANTS, ProxyStatus, RANDOM_OCTET_SIZE, REGION_ENVIRONMENT_VARIABLE };
98
+ //# sourceMappingURL=Constants.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Constants.esm.js","sources":["../../src/utils/Constants.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAEH;;AAEG;IACS,WAGX;AAHD,CAAA,UAAY,UAAU,EAAA;AAClB,IAAA,UAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACX,IAAA,UAAA,CAAA,MAAA,CAAA,GAAA,MAAa,CAAA;AACjB,CAAC,EAHW,UAAU,KAAV,UAAU,GAGrB,EAAA,CAAA,CAAA,CAAA;IAEW,WAQX;AARD,CAAA,UAAY,UAAU,EAAA;AAClB,IAAA,UAAA,CAAA,UAAA,CAAA,qBAAA,CAAA,GAAA,GAAA,CAAA,GAAA,qBAAyB,CAAA;AACzB,IAAA,UAAA,CAAA,UAAA,CAAA,mBAAA,CAAA,GAAA,GAAA,CAAA,GAAA,mBAAuB,CAAA;AACvB,IAAA,UAAA,CAAA,UAAA,CAAA,UAAA,CAAA,GAAA,GAAA,CAAA,GAAA,UAAc,CAAA;AACd,IAAA,UAAA,CAAA,UAAA,CAAA,0BAAA,CAAA,GAAA,GAAA,CAAA,GAAA,0BAA8B,CAAA;AAC9B,IAAA,UAAA,CAAA,UAAA,CAAA,wBAAA,CAAA,GAAA,GAAA,CAAA,GAAA,wBAA4B,CAAA;AAC5B,IAAA,UAAA,CAAA,UAAA,CAAA,0BAAA,CAAA,GAAA,GAAA,CAAA,GAAA,0BAA8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