@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
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2020 Microsoft
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Microsoft
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,181 +1,182 @@
1
- # Microsoft Authentication Library for Node (msal-node)
2
-
3
- [![npm version](https://img.shields.io/npm/v/@azure/msal-node.svg?style=flat)](https://www.npmjs.com/package/@azure/msal-node/)
4
- [![npm version](https://img.shields.io/npm/dm/@azure/msal-node.svg)](https://nodei.co/npm/@azure/msal-node/)
5
- [![codecov](https://codecov.io/gh/AzureAD/microsoft-authentication-library-for-js/branch/dev/graph/badge.svg?flag=msal-node)](https://codecov.io/gh/AzureAD/microsoft-authentication-library-for-js)
6
-
7
- | <a href="https://docs.microsoft.com/azure/active-directory/develop/guidedsetups/active-directory-javascriptspa" target="_blank">Getting Started</a> | <a href="https://aka.ms/aaddevv2" target="_blank">AAD Docs</a> | <a href="https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_node.html" target="_blank">Library Reference</a> |
8
- | --- | --- | --- |
9
-
10
- 1. [About](#about)
11
- 1. [FAQ](#faq)
12
- 1. [Changelog](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-node/CHANGELOG.md)
13
- 1. [Prerequisites](#prerequisites)
14
- 1. [Installation](#installation)
15
- 1. [Node Version Support](#node-version-support)
16
- 1. [Usage](#usage)
17
- 1. [Samples](#samples)
18
- 1. [Build Library](#build-and-test)
19
- 1. [Security Reporting](#security-reporting)
20
- 1. [License](#license)
21
- 1. [Code of Conduct](#we-value-and-adhere-to-the-microsoft-open-source-code-of-conduct)
22
-
23
- ## About
24
-
25
- MSAL Node enables applications to authenticate users using [Azure AD](https://docs.microsoft.com/azure/active-directory/develop/v2-overview) work and school accounts (AAD), Microsoft personal accounts (MSA) and social identity providers like Facebook, Google, LinkedIn, Microsoft accounts, etc. through [Azure AD B2C](https://docs.microsoft.com/azure/active-directory-b2c/active-directory-b2c-overview#identity-providers) service. It also enables your app to get tokens to access [Microsoft Cloud](https://www.microsoft.com/enterprise) services such as [Microsoft Graph](https://graph.microsoft.io).
26
-
27
- ### OAuth2.0 grant types supported:
28
-
29
- The current version supports the following ways of acquiring tokens:
30
-
31
- #### Public Client:
32
- - [Authorization Code Grant](https://oauth.net/2/grant-types/authorization-code/) with [PKCE](https://oauth.net/2/pkce/)
33
- - [Device Code Grant](https://oauth.net/2/grant-types/device-code/)
34
- - [Refresh Token Grant](https://oauth.net/2/grant-types/refresh-token/)
35
- - [Silent Flow](https://docs.microsoft.com/azure/active-directory/develop/msal-acquire-cache-tokens#acquiring-tokens-silently-from-the-cache)
36
- - [Username and Password flow](https://docs.microsoft.com/azure/active-directory/develop/msal-authentication-flows#usernamepassword)
37
-
38
- #### Confidential Client:
39
- - [Authorization Code Grant](https://oauth.net/2/grant-types/authorization-code/) with a client credential
40
- - [Refresh Token Grant](https://oauth.net/2/grant-types/refresh-token/)
41
- - [Silent Flow](https://docs.microsoft.com/azure/active-directory/develop/msal-acquire-cache-tokens#acquiring-tokens-silently-from-the-cache)
42
- - [Client Credential Grant](https://oauth.net/2/grant-types/client-credentials/)
43
- - [On-behalf-of flow](https://docs.microsoft.com/azure/active-directory/develop/v2-oauth2-on-behalf-of-flow)
44
- - [Username and Password flow](https://docs.microsoft.com/azure/active-directory/develop/msal-authentication-flows#usernamepassword)
45
-
46
- **[Coming Soon]** In the future we plan to add support for:
47
- - [Integrated Windows Authentication flow](https://docs.microsoft.com/azure/active-directory/develop/msal-authentication-flows#integrated-windows-authentication)
48
-
49
- More details on different grant types supported by Microsoft authentication libraries in general can be found [here](https://docs.microsoft.com/azure/active-directory/develop/msal-authentication-flows).
50
-
51
- ### Scenarios supported:
52
-
53
- The scenarios supported with this library are:
54
- - Desktop app that calls web APIs
55
- - Web app that calls web APIs
56
- - Web APIs that call web APIs
57
- - Daemon apps
58
-
59
- More details on scenarios and the authentication flows that map to each of them can be found [here](https://docs.microsoft.com/azure/active-directory/develop/authentication-flows-app-scenarios).
60
-
61
- ## FAQ
62
-
63
- See [here](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-node/docs/faq.md).
64
-
65
- ## Prerequisites
66
-
67
- Before using `@azure/msal-node` you will need to register your app in the azure portal:
68
-
69
- - [App registration](https://docs.microsoft.com/graph/auth-register-app-v2)
70
-
71
- ## Installation
72
-
73
- ### Via NPM:
74
- ```javascript
75
- npm install @azure/msal-node
76
- ```
77
- ## Node Version Support
78
- MSAL Node will follow the [Long Term Support (LTS) schedule of the Node.js project](https://nodejs.org/about/releases/). Our support plan is as follows.
79
-
80
- Any major MSAL Node release:
81
- - Will support stable (even-numbered) Maintenance LTS, Active LTS, and Current versions of Node
82
- - Will drop support for any previously supported Node versions that have reached end of life
83
- - Will not support prerelease/preview/pending versions until they are stable
84
-
85
- | MSAL Node version | MSAL support status | Supported Node versions |
86
- |-------------------|-------------------------|-------------------------|
87
- | 1.x.x | Active development | 10, 12, 14, 16, 18 |
88
-
89
-
90
- ## Usage
91
-
92
- ### MSAL basics
93
- - [Understand difference in between Public Client and Confidential Clients](https://docs.microsoft.com/azure/active-directory/develop/msal-client-applications)
94
- - [Initialize a Public Client Application](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-node/docs/initialize-public-client-application.md)
95
- - [Initialize a Confidential Client Application](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-node/docs/initialize-confidential-client-application.md)
96
- - [Configuration](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-node/docs/configuration.md)
97
- - [Request](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-common/docs/request.md)
98
- - [Response](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-common/docs/Response.md)
99
-
100
- ## Samples
101
- There are multiple [samples](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples) included in the repository that use MSAL Node to acquire tokens. These samples are currently used for manual testing, and are not meant to be a reference of best practices, therefore use judgement and do not blindly copy this code to any production applications.
102
-
103
- AAD samples:
104
-
105
- - [auth-code](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/auth-code): Express app using OAuth2.0 authorization code flow.
106
- - [auth-code-pkce](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/auth-code-pkce): Express app using OAuth2.0 authorization code flow with PKCE.
107
- - [device-code](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/device-code): Command line app using OAuth 2.0 device code flow.
108
- - [refresh-token](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/refresh-token): Command line app using OAuth 2.0 refresh flow.
109
- - [silent-flow](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/silent-flow): Express app using OAuth2.0 authorization code flow to acquire a token and store in the token cache, and silent flow to use tokens in the token cache.
110
- - [client-credentials](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/client-credentials): Daemon app using OAuth 2.0 client credential grant to acquire a token.
111
- - [on-behalf-of](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/on-behalf-of): Web application using OAuth 2.0 auth code flow to acquire a token for a web API. The web API validates the token, and calls Microsoft Graph on behalf of the user who authenticated in the web application.
112
- - [username-password](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/username-password): Web application using OAuth 2.0 resource owner password credentials (ROPC) flow to acquire a token for a web API.
113
- - [ElectronTestApp](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/ElectronTestApp): Electron desktop application using OAuth 2.0 auth code with PKCE flow to acquire a token for a web API such as Microsoft Graph.
114
- - [ExpressTestApp](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/ExpressTestApp): Express.js MVC web application using OAuth 2.0 auth code with PKCE flow to acquire a token for a web API such as Microsoft Graph.
115
- - [Hybrid Spa Sample](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-browser-samples/HybridSample): Sample demonstrating how to use `enableSpaAuthorizationCode` to perform SSO for applications that leverage server-side and client-side authentication using MSAL Browser and MSAL Node.
116
-
117
- B2C samples:
118
-
119
- - [b2c-user-flows](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/b2c-user-flows): Express app using OAuth2.0 authorization code flow.
120
- - [ms-identity-b2c-javascript-nodejs-management](https://github.com/Azure-Samples/ms-identity-b2c-javascript-nodejs-management/tree/main/Chapter2): Command line app using OAuth 2.0 client credentials flow for performing user management operations on an Azure AD / Azure AD B2C tenant
121
-
122
- Others:
123
-
124
- - [msal-node-extensions](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/extensions/samples/msal-node-extensions): Uses authorization code flow to acquire tokens and the [msal-extensions](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/extensions/) library to write the MSAL in-memory token cache to disk.
125
-
126
- ## Build and Test
127
-
128
- - If you don't have [lerna](https://github.com/lerna/lerna) installed, run `npm install -g lerna`
129
- - Run `lerna bootstrap` from anywhere within `microsoft-authentication-library-for-js.git`.
130
- - Navigate to `microsoft-authentication-library-for-js/lib/msal-common` and run `npm run build`
131
- - Navigate to `microsoft-authentication-library-for-js/lib/msal-node` and run `npm run build`
132
-
133
- ```javascript
134
- // to link msal-node and msal-common packages
135
- lerna bootstrap
136
-
137
- // Change to the msal-node package directory
138
- cd lib/msal-common/
139
-
140
- // To run build only for node package
141
- npm run build
142
-
143
- // Change to the msal-node package directory
144
- cd lib/msal-node/
145
-
146
- // To run build only for node package
147
- npm run build
148
- ```
149
-
150
- ### Local Development
151
- Below is a list of commands you will probably find useful:
152
-
153
- #### `npm run build:modules:watch`
154
- Runs the project in development/watch mode. Your project will be rebuilt upon changes. TSDX has a special logger for you convenience. Error messages are pretty printed and formatted for compatibility VS Code's Problems tab. The library will be rebuilt if you make edits.
155
-
156
- #### `npm run build`
157
- Bundles the package to the `dist` folder.
158
- The package is optimized and bundled with Rollup into multiple formats (CommonJS, UMD, and ES Module).
159
-
160
- #### `lerna bootstrap`
161
- If you are running the project in development/watch mode, or have made changes in `msal-common` and need them reflecting across the project, please run `lerna bootstrap` to link all the symbols. Please note that `npm install` will unlink all the code, hence it is advised to run `lerna bootstrap` post installation.
162
-
163
- #### `npm run lint`
164
- Runs eslint with Prettier
165
-
166
- #### `npm test`, `npm run test:coverage`, `npm run test:watch`
167
- Runs the test watcher (Jest) in an interactive mode.
168
- By default, runs tests related to files changed since the last commit.
169
- Generate code coverage by adding the flag --coverage. No additional setup needed. Jest can collect code coverage information from entire projects, including untested files.
170
-
171
- ## Security Reporting
172
-
173
- If you find a security issue with our libraries or services please report it to [secure@microsoft.com](mailto:secure@microsoft.com) with as much detail as possible. Your submission may be eligible for a bounty through the [Microsoft Bounty](http://aka.ms/bugbounty) program. Please do not post security issues to GitHub Issues or any other public site. We will contact you shortly upon receiving the information. We encourage you to get notifications of when security incidents occur by visiting [this page](https://technet.microsoft.com/security/dd252948) and subscribing to Security Advisory Alerts.
174
-
175
- ## License
176
-
177
- Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License.
178
-
179
- ## We Value and Adhere to the Microsoft Open Source Code of Conduct
180
-
181
- This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
1
+ # Microsoft Authentication Library for Node (msal-node)
2
+
3
+ [![npm version](https://img.shields.io/npm/v/@azure/msal-node.svg?style=flat)](https://www.npmjs.com/package/@azure/msal-node/)
4
+ [![npm version](https://img.shields.io/npm/dm/@azure/msal-node.svg)](https://nodei.co/npm/@azure/msal-node/)
5
+ [![codecov](https://codecov.io/gh/AzureAD/microsoft-authentication-library-for-js/branch/dev/graph/badge.svg?flag=msal-node)](https://codecov.io/gh/AzureAD/microsoft-authentication-library-for-js)
6
+
7
+ | <a href="https://docs.microsoft.com/azure/active-directory/develop/guidedsetups/active-directory-javascriptspa" target="_blank">Getting Started</a> | <a href="https://aka.ms/aaddevv2" target="_blank">AAD Docs</a> | <a href="https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_node.html" target="_blank">Library Reference</a> |
8
+ | --- | --- | --- |
9
+
10
+ 1. [About](#about)
11
+ 1. [FAQ](#faq)
12
+ 1. [Changelog](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-node/CHANGELOG.md)
13
+ 1. [Prerequisites](#prerequisites)
14
+ 1. [Installation](#installation)
15
+ 1. [Node Version Support](#node-version-support)
16
+ 1. [Usage](#usage)
17
+ 1. [Samples](#samples)
18
+ 1. [Build Library](#build-and-test)
19
+ 1. [Security Reporting](#security-reporting)
20
+ 1. [License](#license)
21
+ 1. [Code of Conduct](#we-value-and-adhere-to-the-microsoft-open-source-code-of-conduct)
22
+
23
+ ## About
24
+
25
+ MSAL Node enables applications to authenticate users using [Azure AD](https://docs.microsoft.com/azure/active-directory/develop/v2-overview) work and school accounts (AAD), Microsoft personal accounts (MSA) and social identity providers like Facebook, Google, LinkedIn, Microsoft accounts, etc. through [Azure AD B2C](https://docs.microsoft.com/azure/active-directory-b2c/active-directory-b2c-overview#identity-providers) service. It also enables your app to get tokens to access [Microsoft Cloud](https://www.microsoft.com/enterprise) services such as [Microsoft Graph](https://graph.microsoft.io).
26
+
27
+ ### OAuth2.0 grant types supported:
28
+
29
+ The current version supports the following ways of acquiring tokens:
30
+
31
+ #### Public Client:
32
+ - [Authorization Code Grant](https://oauth.net/2/grant-types/authorization-code/) with [PKCE](https://oauth.net/2/pkce/)
33
+ - [Device Code Grant](https://oauth.net/2/grant-types/device-code/)
34
+ - [Refresh Token Grant](https://oauth.net/2/grant-types/refresh-token/)
35
+ - [Silent Flow](https://docs.microsoft.com/azure/active-directory/develop/msal-acquire-cache-tokens#acquiring-tokens-silently-from-the-cache)
36
+ - [Username and Password flow](https://docs.microsoft.com/azure/active-directory/develop/msal-authentication-flows#usernamepassword)
37
+
38
+ #### Confidential Client:
39
+ - [Authorization Code Grant](https://oauth.net/2/grant-types/authorization-code/) with a client credential
40
+ - [Refresh Token Grant](https://oauth.net/2/grant-types/refresh-token/)
41
+ - [Silent Flow](https://docs.microsoft.com/azure/active-directory/develop/msal-acquire-cache-tokens#acquiring-tokens-silently-from-the-cache)
42
+ - [Client Credential Grant](https://oauth.net/2/grant-types/client-credentials/)
43
+ - [On-behalf-of flow](https://docs.microsoft.com/azure/active-directory/develop/v2-oauth2-on-behalf-of-flow)
44
+ - [Username and Password flow](https://docs.microsoft.com/azure/active-directory/develop/msal-authentication-flows#usernamepassword)
45
+
46
+ **[Coming Soon]** In the future we plan to add support for:
47
+ - [Integrated Windows Authentication flow](https://docs.microsoft.com/azure/active-directory/develop/msal-authentication-flows#integrated-windows-authentication)
48
+
49
+ More details on different grant types supported by Microsoft authentication libraries in general can be found [here](https://docs.microsoft.com/azure/active-directory/develop/msal-authentication-flows).
50
+
51
+ ### Scenarios supported:
52
+
53
+ The scenarios supported with this library are:
54
+ - Desktop app that calls web APIs
55
+ - Web app that calls web APIs
56
+ - Web APIs that call web APIs
57
+ - Daemon apps
58
+
59
+ More details on scenarios and the authentication flows that map to each of them can be found [here](https://docs.microsoft.com/azure/active-directory/develop/authentication-flows-app-scenarios).
60
+
61
+ ## FAQ
62
+
63
+ See [here](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-node/docs/faq.md).
64
+
65
+ ## Prerequisites
66
+
67
+ Before using `@azure/msal-node` you will need to register your app in the azure portal:
68
+
69
+ - [App registration](https://docs.microsoft.com/graph/auth-register-app-v2)
70
+
71
+ ## Installation
72
+
73
+ ### Via NPM:
74
+ ```javascript
75
+ npm install @azure/msal-node
76
+ ```
77
+ ## Node Version Support
78
+ MSAL Node will follow the [Long Term Support (LTS) schedule of the Node.js project](https://nodejs.org/about/releases/). Our support plan is as follows.
79
+
80
+ Any major MSAL Node release:
81
+ - Will support stable (even-numbered) Maintenance LTS, Active LTS, and Current versions of Node
82
+ - Will drop support for any previously supported Node versions that have reached end of life
83
+ - Will not support prerelease/preview/pending versions until they are stable
84
+
85
+ | MSAL Node version | MSAL support status | Supported Node versions |
86
+ |-------------------|-------------------------|-------------------------|
87
+ | 1.x.x | Active development | 10, 12, 14, 16, 18 |
88
+ | 2.x.x | Pre-release | 18, 20 |
89
+
90
+
91
+ ## Usage
92
+
93
+ ### MSAL basics
94
+ - [Understand difference in between Public Client and Confidential Clients](https://docs.microsoft.com/azure/active-directory/develop/msal-client-applications)
95
+ - [Initialize a Public Client Application](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-node/docs/initialize-public-client-application.md)
96
+ - [Initialize a Confidential Client Application](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-node/docs/initialize-confidential-client-application.md)
97
+ - [Configuration](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-node/docs/configuration.md)
98
+ - [Request](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-common/docs/request.md)
99
+ - [Response](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-common/docs/Response.md)
100
+
101
+ ## Samples
102
+ There are multiple [samples](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples) included in the repository that use MSAL Node to acquire tokens. These samples are currently used for manual testing, and are not meant to be a reference of best practices, therefore use judgement and do not blindly copy this code to any production applications.
103
+
104
+ AAD samples:
105
+
106
+ - [auth-code](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/auth-code): Express app using OAuth2.0 authorization code flow.
107
+ - [auth-code-pkce](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/auth-code-pkce): Express app using OAuth2.0 authorization code flow with PKCE.
108
+ - [device-code](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/device-code): Command line app using OAuth 2.0 device code flow.
109
+ - [refresh-token](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/refresh-token): Command line app using OAuth 2.0 refresh flow.
110
+ - [silent-flow](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/silent-flow): Express app using OAuth2.0 authorization code flow to acquire a token and store in the token cache, and silent flow to use tokens in the token cache.
111
+ - [client-credentials](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/client-credentials): Daemon app using OAuth 2.0 client credential grant to acquire a token.
112
+ - [on-behalf-of](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/on-behalf-of): Web application using OAuth 2.0 auth code flow to acquire a token for a web API. The web API validates the token, and calls Microsoft Graph on behalf of the user who authenticated in the web application.
113
+ - [username-password](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/username-password): Web application using OAuth 2.0 resource owner password credentials (ROPC) flow to acquire a token for a web API.
114
+ - [ElectronTestApp](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/ElectronTestApp): Electron desktop application using OAuth 2.0 auth code with PKCE flow to acquire a token for a web API such as Microsoft Graph.
115
+ - [ExpressTestApp](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/ExpressTestApp): Express.js MVC web application using OAuth 2.0 auth code with PKCE flow to acquire a token for a web API such as Microsoft Graph.
116
+ - [Hybrid Spa Sample](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-browser-samples/HybridSample): Sample demonstrating how to use `enableSpaAuthorizationCode` to perform SSO for applications that leverage server-side and client-side authentication using MSAL Browser and MSAL Node.
117
+
118
+ B2C samples:
119
+
120
+ - [b2c-user-flows](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/b2c-user-flows): Express app using OAuth2.0 authorization code flow.
121
+ - [ms-identity-b2c-javascript-nodejs-management](https://github.com/Azure-Samples/ms-identity-b2c-javascript-nodejs-management/tree/main/Chapter2): Command line app using OAuth 2.0 client credentials flow for performing user management operations on an Azure AD / Azure AD B2C tenant
122
+
123
+ Others:
124
+
125
+ - [msal-node-extensions](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/extensions/samples/msal-node-extensions): Uses authorization code flow to acquire tokens and the [msal-extensions](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/extensions/) library to write the MSAL in-memory token cache to disk.
126
+
127
+ ## Build and Test
128
+
129
+ - If you don't have [lerna](https://github.com/lerna/lerna) installed, run `npm install -g lerna`
130
+ - Run `lerna bootstrap` from anywhere within `microsoft-authentication-library-for-js.git`.
131
+ - Navigate to `microsoft-authentication-library-for-js/lib/msal-common` and run `npm run build`
132
+ - Navigate to `microsoft-authentication-library-for-js/lib/msal-node` and run `npm run build`
133
+
134
+ ```javascript
135
+ // to link msal-node and msal-common packages
136
+ lerna bootstrap
137
+
138
+ // Change to the msal-node package directory
139
+ cd lib/msal-common/
140
+
141
+ // To run build only for node package
142
+ npm run build
143
+
144
+ // Change to the msal-node package directory
145
+ cd lib/msal-node/
146
+
147
+ // To run build only for node package
148
+ npm run build
149
+ ```
150
+
151
+ ### Local Development
152
+ Below is a list of commands you will probably find useful:
153
+
154
+ #### `npm run build:modules:watch`
155
+ Runs the project in development/watch mode. Your project will be rebuilt upon changes. TSDX has a special logger for you convenience. Error messages are pretty printed and formatted for compatibility VS Code's Problems tab. The library will be rebuilt if you make edits.
156
+
157
+ #### `npm run build`
158
+ Bundles the package to the `dist` folder.
159
+ The package is optimized and bundled with Rollup into multiple formats (CommonJS, UMD, and ES Module).
160
+
161
+ #### `lerna bootstrap`
162
+ If you are running the project in development/watch mode, or have made changes in `msal-common` and need them reflecting across the project, please run `lerna bootstrap` to link all the symbols. Please note that `npm install` will unlink all the code, hence it is advised to run `lerna bootstrap` post installation.
163
+
164
+ #### `npm run lint`
165
+ Runs eslint with Prettier
166
+
167
+ #### `npm test`, `npm run test:coverage`, `npm run test:watch`
168
+ Runs the test watcher (Jest) in an interactive mode.
169
+ By default, runs tests related to files changed since the last commit.
170
+ Generate code coverage by adding the flag --coverage. No additional setup needed. Jest can collect code coverage information from entire projects, including untested files.
171
+
172
+ ## Security Reporting
173
+
174
+ If you find a security issue with our libraries or services please report it to [secure@microsoft.com](mailto:secure@microsoft.com) with as much detail as possible. Your submission may be eligible for a bounty through the [Microsoft Bounty](http://aka.ms/bugbounty) program. Please do not post security issues to GitHub Issues or any other public site. We will contact you shortly upon receiving the information. We encourage you to get notifications of when security incidents occur by visiting [this page](https://technet.microsoft.com/security/dd252948) and subscribing to Security Advisory Alerts.
175
+
176
+ ## License
177
+
178
+ Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License.
179
+
180
+ ## We Value and Adhere to the Microsoft Open Source Code of Conduct
181
+
182
+ This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
@@ -1 +1 @@
1
- {"version":3,"file":"ITokenCache.d.ts","sourceRoot":"","sources":["../src/cache/ITokenCache.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD;;;GAGG;AACH,MAAM,WAAW,WAAW;IAExB,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
+ {"version":3,"file":"ITokenCache.d.ts","sourceRoot":"","sources":["../../src/cache/ITokenCache.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD;;;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 +1 @@
1
- {"version":3,"file":"NodeStorage.d.ts","sourceRoot":"","sources":["../src/cache/NodeStorage.ts"],"names":[],"m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