@azure/msal-browser 2.36.0 → 3.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 (558) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +213 -213
  3. package/dist/app/IPublicClientApplication.d.ts.map +1 -1
  4. package/dist/app/IPublicClientApplication.js +33 -33
  5. package/dist/app/IPublicClientApplication.js.map +1 -1
  6. package/dist/app/PublicClientApplication.d.ts +198 -24
  7. package/dist/app/PublicClientApplication.d.ts.map +1 -1
  8. package/dist/app/PublicClientApplication.js +263 -220
  9. package/dist/app/PublicClientApplication.js.map +1 -1
  10. package/dist/broker/nativeBroker/NativeMessageHandler.d.ts +5 -4
  11. package/dist/broker/nativeBroker/NativeMessageHandler.d.ts.map +1 -1
  12. package/dist/broker/nativeBroker/NativeMessageHandler.js +118 -124
  13. package/dist/broker/nativeBroker/NativeMessageHandler.js.map +1 -1
  14. package/dist/broker/nativeBroker/NativeRequest.d.ts +4 -4
  15. package/dist/broker/nativeBroker/NativeRequest.d.ts.map +1 -1
  16. package/dist/broker/nativeBroker/NativeResponse.d.ts +4 -4
  17. package/dist/broker/nativeBroker/NativeResponse.d.ts.map +1 -1
  18. package/dist/cache/AsyncMemoryStorage.d.ts.map +1 -1
  19. package/dist/cache/AsyncMemoryStorage.js +83 -152
  20. package/dist/cache/AsyncMemoryStorage.js.map +1 -1
  21. package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
  22. package/dist/cache/BrowserCacheManager.js +420 -412
  23. package/dist/cache/BrowserCacheManager.js.map +1 -1
  24. package/dist/cache/BrowserStorage.d.ts.map +1 -1
  25. package/dist/cache/BrowserStorage.js +19 -19
  26. package/dist/cache/BrowserStorage.js.map +1 -1
  27. package/dist/cache/CryptoKeyStore.d.ts.map +1 -1
  28. package/dist/cache/CryptoKeyStore.js +26 -36
  29. package/dist/cache/CryptoKeyStore.js.map +1 -1
  30. package/dist/cache/DatabaseStorage.d.ts.map +1 -1
  31. package/dist/cache/DatabaseStorage.js +127 -191
  32. package/dist/cache/DatabaseStorage.js.map +1 -1
  33. package/dist/cache/ITokenCache.d.ts.map +1 -1
  34. package/dist/cache/MemoryStorage.d.ts.map +1 -1
  35. package/dist/cache/MemoryStorage.js +18 -19
  36. package/dist/cache/MemoryStorage.js.map +1 -1
  37. package/dist/cache/TokenCache.d.ts +1 -1
  38. package/dist/cache/TokenCache.d.ts.map +1 -1
  39. package/dist/cache/TokenCache.js +55 -49
  40. package/dist/cache/TokenCache.js.map +1 -1
  41. package/dist/config/Configuration.d.ts +8 -8
  42. package/dist/config/Configuration.d.ts.map +1 -1
  43. package/dist/config/Configuration.js +53 -31
  44. package/dist/config/Configuration.js.map +1 -1
  45. package/dist/controllers/ControllerFactory.d.ts +10 -0
  46. package/dist/controllers/ControllerFactory.d.ts.map +1 -0
  47. package/dist/controllers/ControllerFactory.js +47 -0
  48. package/dist/controllers/ControllerFactory.js.map +1 -0
  49. package/dist/controllers/IController.d.ts +67 -0
  50. package/dist/controllers/IController.d.ts.map +1 -0
  51. package/dist/{app/ClientApplication.d.ts → controllers/StandardController.d.ts} +96 -15
  52. package/dist/controllers/StandardController.d.ts.map +1 -0
  53. package/dist/controllers/StandardController.js +1299 -0
  54. package/dist/controllers/StandardController.js.map +1 -0
  55. package/dist/crypto/BrowserCrypto.d.ts.map +1 -1
  56. package/dist/crypto/BrowserCrypto.js +36 -60
  57. package/dist/crypto/BrowserCrypto.js.map +1 -1
  58. package/dist/crypto/CryptoOps.d.ts +1 -1
  59. package/dist/crypto/CryptoOps.d.ts.map +1 -1
  60. package/dist/crypto/CryptoOps.js +93 -151
  61. package/dist/crypto/CryptoOps.js.map +1 -1
  62. package/dist/crypto/GuidGenerator.d.ts.map +1 -1
  63. package/dist/crypto/GuidGenerator.js +36 -25
  64. package/dist/crypto/GuidGenerator.js.map +1 -1
  65. package/dist/crypto/ISubtleCrypto.d.ts.map +1 -1
  66. package/dist/crypto/ModernBrowserCrypto.d.ts.map +1 -1
  67. package/dist/crypto/ModernBrowserCrypto.js +20 -44
  68. package/dist/crypto/ModernBrowserCrypto.js.map +1 -1
  69. package/dist/crypto/MsBrowserCrypto.d.ts.map +1 -1
  70. package/dist/crypto/MsBrowserCrypto.js +65 -89
  71. package/dist/crypto/MsBrowserCrypto.js.map +1 -1
  72. package/dist/crypto/MsrBrowserCrypto.d.ts.map +1 -1
  73. package/dist/crypto/MsrBrowserCrypto.js +23 -47
  74. package/dist/crypto/MsrBrowserCrypto.js.map +1 -1
  75. package/dist/crypto/PkceGenerator.d.ts.map +1 -1
  76. package/dist/crypto/PkceGenerator.js +28 -49
  77. package/dist/crypto/PkceGenerator.js.map +1 -1
  78. package/dist/crypto/SignedHttpRequest.d.ts +1 -1
  79. package/dist/crypto/SignedHttpRequest.d.ts.map +1 -1
  80. package/dist/crypto/SignedHttpRequest.js +15 -37
  81. package/dist/crypto/SignedHttpRequest.js.map +1 -1
  82. package/dist/encode/Base64Decode.d.ts.map +1 -1
  83. package/dist/encode/Base64Decode.js +32 -33
  84. package/dist/encode/Base64Decode.js.map +1 -1
  85. package/dist/encode/Base64Encode.d.ts.map +1 -1
  86. package/dist/encode/Base64Encode.js +34 -35
  87. package/dist/encode/Base64Encode.js.map +1 -1
  88. package/dist/error/BrowserAuthError.d.ts +1 -1
  89. package/dist/error/BrowserAuthError.d.ts.map +1 -1
  90. package/dist/error/BrowserAuthError.js +161 -163
  91. package/dist/error/BrowserAuthError.js.map +1 -1
  92. package/dist/error/BrowserConfigurationAuthError.d.ts.map +1 -1
  93. package/dist/error/BrowserConfigurationAuthError.js +32 -36
  94. package/dist/error/BrowserConfigurationAuthError.js.map +1 -1
  95. package/dist/error/NativeAuthError.d.ts +1 -1
  96. package/dist/error/NativeAuthError.d.ts.map +1 -1
  97. package/dist/error/NativeAuthError.js +26 -27
  98. package/dist/error/NativeAuthError.js.map +1 -1
  99. package/dist/event/EventHandler.d.ts.map +1 -1
  100. package/dist/event/EventHandler.js +33 -33
  101. package/dist/event/EventHandler.js.map +1 -1
  102. package/dist/event/EventMessage.d.ts +5 -5
  103. package/dist/event/EventMessage.d.ts.map +1 -1
  104. package/dist/event/EventMessage.js +18 -14
  105. package/dist/event/EventMessage.js.map +1 -1
  106. package/dist/event/EventType.js +1 -1
  107. package/dist/event/EventType.js.map +1 -1
  108. package/dist/index.d.ts +8 -8
  109. package/dist/index.d.ts.map +1 -1
  110. package/dist/index.js +1 -1
  111. package/dist/interaction_client/BaseInteractionClient.d.ts.map +1 -1
  112. package/dist/interaction_client/BaseInteractionClient.js +92 -123
  113. package/dist/interaction_client/BaseInteractionClient.js.map +1 -1
  114. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.d.ts.map +1 -1
  115. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.js +6 -10
  116. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.js.map +1 -1
  117. package/dist/interaction_client/NativeInteractionClient.d.ts.map +1 -1
  118. package/dist/interaction_client/NativeInteractionClient.js +336 -393
  119. package/dist/interaction_client/NativeInteractionClient.js.map +1 -1
  120. package/dist/interaction_client/PopupClient.d.ts +1 -1
  121. package/dist/interaction_client/PopupClient.d.ts.map +1 -1
  122. package/dist/interaction_client/PopupClient.js +224 -246
  123. package/dist/interaction_client/PopupClient.js.map +1 -1
  124. package/dist/interaction_client/RedirectClient.d.ts.map +1 -1
  125. package/dist/interaction_client/RedirectClient.js +244 -292
  126. package/dist/interaction_client/RedirectClient.js.map +1 -1
  127. package/dist/interaction_client/SilentAuthCodeClient.d.ts.map +1 -1
  128. package/dist/interaction_client/SilentAuthCodeClient.js +50 -63
  129. package/dist/interaction_client/SilentAuthCodeClient.js.map +1 -1
  130. package/dist/interaction_client/SilentCacheClient.d.ts.map +1 -1
  131. package/dist/interaction_client/SilentCacheClient.js +50 -81
  132. package/dist/interaction_client/SilentCacheClient.js.map +1 -1
  133. package/dist/interaction_client/SilentIframeClient.d.ts.map +1 -1
  134. package/dist/interaction_client/SilentIframeClient.js +107 -125
  135. package/dist/interaction_client/SilentIframeClient.js.map +1 -1
  136. package/dist/interaction_client/SilentRefreshClient.d.ts.map +1 -1
  137. package/dist/interaction_client/SilentRefreshClient.js +44 -72
  138. package/dist/interaction_client/SilentRefreshClient.js.map +1 -1
  139. package/dist/interaction_client/StandardInteractionClient.d.ts.map +1 -1
  140. package/dist/interaction_client/StandardInteractionClient.js +144 -180
  141. package/dist/interaction_client/StandardInteractionClient.js.map +1 -1
  142. package/dist/interaction_handler/InteractionHandler.d.ts +1 -1
  143. package/dist/interaction_handler/InteractionHandler.d.ts.map +1 -1
  144. package/dist/interaction_handler/InteractionHandler.js +84 -110
  145. package/dist/interaction_handler/InteractionHandler.js.map +1 -1
  146. package/dist/interaction_handler/RedirectHandler.d.ts +1 -1
  147. package/dist/interaction_handler/RedirectHandler.d.ts.map +1 -1
  148. package/dist/interaction_handler/RedirectHandler.js +105 -122
  149. package/dist/interaction_handler/RedirectHandler.js.map +1 -1
  150. package/dist/interaction_handler/SilentHandler.d.ts.map +1 -1
  151. package/dist/interaction_handler/SilentHandler.js +76 -65
  152. package/dist/interaction_handler/SilentHandler.js.map +1 -1
  153. package/dist/internals.js +1 -1
  154. package/dist/internals.js.map +1 -1
  155. package/dist/navigation/NavigationClient.d.ts.map +1 -1
  156. package/dist/navigation/NavigationClient.js +11 -14
  157. package/dist/navigation/NavigationClient.js.map +1 -1
  158. package/dist/navigation/NavigationOptions.d.ts +1 -1
  159. package/dist/navigation/NavigationOptions.d.ts.map +1 -1
  160. package/dist/network/FetchClient.d.ts.map +1 -1
  161. package/dist/network/FetchClient.js +66 -96
  162. package/dist/network/FetchClient.js.map +1 -1
  163. package/dist/network/XhrClient.d.ts.map +1 -1
  164. package/dist/network/XhrClient.js +38 -51
  165. package/dist/network/XhrClient.js.map +1 -1
  166. package/dist/operatingcontext/BaseOperatingContext.d.ts +41 -0
  167. package/dist/operatingcontext/BaseOperatingContext.d.ts.map +1 -0
  168. package/dist/operatingcontext/BaseOperatingContext.js +53 -0
  169. package/dist/operatingcontext/BaseOperatingContext.js.map +1 -0
  170. package/dist/operatingcontext/StandardOperatingContext.d.ts +26 -0
  171. package/dist/operatingcontext/StandardOperatingContext.d.ts.map +1 -0
  172. package/dist/operatingcontext/StandardOperatingContext.js +50 -0
  173. package/dist/operatingcontext/StandardOperatingContext.js.map +1 -0
  174. package/dist/operatingcontext/TeamsAppOperatingContext.d.ts +26 -0
  175. package/dist/operatingcontext/TeamsAppOperatingContext.d.ts.map +1 -0
  176. package/dist/operatingcontext/TeamsAppOperatingContext.js +49 -0
  177. package/dist/operatingcontext/TeamsAppOperatingContext.js.map +1 -0
  178. package/dist/packageMetadata.d.ts +1 -1
  179. package/dist/packageMetadata.d.ts.map +1 -1
  180. package/dist/packageMetadata.js +3 -3
  181. package/dist/packageMetadata.js.map +1 -1
  182. package/dist/request/AuthorizationCodeRequest.d.ts +1 -1
  183. package/dist/request/AuthorizationCodeRequest.d.ts.map +1 -1
  184. package/dist/request/AuthorizationUrlRequest.d.ts +1 -1
  185. package/dist/request/AuthorizationUrlRequest.d.ts.map +1 -1
  186. package/dist/request/EndSessionPopupRequest.d.ts +1 -1
  187. package/dist/request/EndSessionPopupRequest.d.ts.map +1 -1
  188. package/dist/request/EndSessionRequest.d.ts +1 -1
  189. package/dist/request/EndSessionRequest.d.ts.map +1 -1
  190. package/dist/request/PopupRequest.d.ts +1 -1
  191. package/dist/request/PopupRequest.d.ts.map +1 -1
  192. package/dist/request/PopupWindowAttributes.d.ts +3 -3
  193. package/dist/request/PopupWindowAttributes.d.ts.map +1 -1
  194. package/dist/request/RedirectRequest.d.ts +1 -1
  195. package/dist/request/RedirectRequest.d.ts.map +1 -1
  196. package/dist/request/SilentRequest.d.ts +1 -1
  197. package/dist/request/SilentRequest.d.ts.map +1 -1
  198. package/dist/request/SsoSilentRequest.d.ts +1 -1
  199. package/dist/request/SsoSilentRequest.d.ts.map +1 -1
  200. package/dist/telemetry/BrowserPerformanceClient.d.ts +1 -1
  201. package/dist/telemetry/BrowserPerformanceClient.d.ts.map +1 -1
  202. package/dist/telemetry/BrowserPerformanceClient.js +62 -57
  203. package/dist/telemetry/BrowserPerformanceClient.js.map +1 -1
  204. package/dist/telemetry/BrowserPerformanceMeasurement.d.ts.map +1 -1
  205. package/dist/telemetry/BrowserPerformanceMeasurement.js +30 -31
  206. package/dist/telemetry/BrowserPerformanceMeasurement.js.map +1 -1
  207. package/dist/utils/BrowserConstants.d.ts.map +1 -1
  208. package/dist/utils/BrowserConstants.js +10 -10
  209. package/dist/utils/BrowserConstants.js.map +1 -1
  210. package/dist/utils/BrowserProtocolUtils.d.ts +1 -1
  211. package/dist/utils/BrowserProtocolUtils.d.ts.map +1 -1
  212. package/dist/utils/BrowserProtocolUtils.js +9 -12
  213. package/dist/utils/BrowserProtocolUtils.js.map +1 -1
  214. package/dist/utils/BrowserStringUtils.d.ts.map +1 -1
  215. package/dist/utils/BrowserStringUtils.js +83 -49
  216. package/dist/utils/BrowserStringUtils.js.map +1 -1
  217. package/dist/utils/BrowserUtils.d.ts.map +1 -1
  218. package/dist/utils/BrowserUtils.js +51 -49
  219. package/dist/utils/BrowserUtils.js.map +1 -1
  220. package/dist/utils/MathUtils.d.ts.map +1 -1
  221. package/dist/utils/MathUtils.js +6 -9
  222. package/dist/utils/MathUtils.js.map +1 -1
  223. package/node_modules/@azure/msal-common/LICENSE +21 -0
  224. package/node_modules/@azure/msal-common/README.md +62 -0
  225. package/node_modules/@azure/msal-common/dist/account/AccountInfo.d.ts +32 -0
  226. package/node_modules/@azure/msal-common/dist/account/AccountInfo.d.ts.map +1 -0
  227. package/node_modules/@azure/msal-common/dist/account/AuthToken.d.ts +21 -0
  228. package/node_modules/@azure/msal-common/dist/account/AuthToken.d.ts.map +1 -0
  229. package/node_modules/@azure/msal-common/dist/account/AuthToken.js +56 -0
  230. package/node_modules/@azure/msal-common/dist/account/AuthToken.js.map +1 -0
  231. package/node_modules/@azure/msal-common/dist/account/CcsCredential.d.ts +9 -0
  232. package/node_modules/@azure/msal-common/dist/account/CcsCredential.d.ts.map +1 -0
  233. package/node_modules/@azure/msal-common/dist/account/CcsCredential.js +14 -0
  234. package/node_modules/@azure/msal-common/dist/account/CcsCredential.js.map +1 -0
  235. package/node_modules/@azure/msal-common/dist/account/ClientCredentials.d.ts +15 -0
  236. package/node_modules/@azure/msal-common/dist/account/ClientCredentials.d.ts.map +1 -0
  237. package/node_modules/@azure/msal-common/dist/account/ClientInfo.d.ts +20 -0
  238. package/node_modules/@azure/msal-common/dist/account/ClientInfo.d.ts.map +1 -0
  239. package/node_modules/@azure/msal-common/dist/account/ClientInfo.js +46 -0
  240. package/node_modules/@azure/msal-common/dist/account/ClientInfo.js.map +1 -0
  241. package/node_modules/@azure/msal-common/dist/account/DecodedAuthToken.d.ts +9 -0
  242. package/node_modules/@azure/msal-common/dist/account/DecodedAuthToken.d.ts.map +1 -0
  243. package/node_modules/@azure/msal-common/dist/account/TokenClaims.d.ts +66 -0
  244. package/node_modules/@azure/msal-common/dist/account/TokenClaims.d.ts.map +1 -0
  245. package/node_modules/@azure/msal-common/dist/authority/Authority.d.ts +216 -0
  246. package/node_modules/@azure/msal-common/dist/authority/Authority.d.ts.map +1 -0
  247. package/node_modules/@azure/msal-common/dist/authority/Authority.js +688 -0
  248. package/node_modules/@azure/msal-common/dist/authority/Authority.js.map +1 -0
  249. package/node_modules/@azure/msal-common/dist/authority/AuthorityFactory.d.ts +31 -0
  250. package/node_modules/@azure/msal-common/dist/authority/AuthorityFactory.d.ts.map +1 -0
  251. package/node_modules/@azure/msal-common/dist/authority/AuthorityFactory.js +58 -0
  252. package/node_modules/@azure/msal-common/dist/authority/AuthorityFactory.js.map +1 -0
  253. package/node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.d.ts +623 -0
  254. package/node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.d.ts.map +1 -0
  255. package/node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.js +881 -0
  256. package/node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.js.map +1 -0
  257. package/node_modules/@azure/msal-common/dist/authority/AuthorityOptions.d.ts +19 -0
  258. package/node_modules/@azure/msal-common/dist/authority/AuthorityOptions.d.ts.map +1 -0
  259. package/node_modules/@azure/msal-common/dist/authority/AuthorityOptions.js +24 -0
  260. package/node_modules/@azure/msal-common/dist/authority/AuthorityOptions.js.map +1 -0
  261. package/node_modules/@azure/msal-common/dist/authority/AuthorityType.d.ts +10 -0
  262. package/node_modules/@azure/msal-common/dist/authority/AuthorityType.d.ts.map +1 -0
  263. package/node_modules/@azure/msal-common/dist/authority/AuthorityType.js +19 -0
  264. package/node_modules/@azure/msal-common/dist/authority/AuthorityType.js.map +1 -0
  265. package/node_modules/@azure/msal-common/dist/authority/AzureRegion.d.ts +2 -0
  266. package/node_modules/@azure/msal-common/dist/authority/AzureRegion.d.ts.map +1 -0
  267. package/node_modules/@azure/msal-common/dist/authority/AzureRegionConfiguration.d.ts +6 -0
  268. package/node_modules/@azure/msal-common/dist/authority/AzureRegionConfiguration.d.ts.map +1 -0
  269. package/node_modules/@azure/msal-common/dist/authority/CloudDiscoveryMetadata.d.ts +6 -0
  270. package/node_modules/@azure/msal-common/dist/authority/CloudDiscoveryMetadata.d.ts.map +1 -0
  271. package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.d.ts +14 -0
  272. package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.d.ts.map +1 -0
  273. package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.js +13 -0
  274. package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.js.map +1 -0
  275. package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.d.ts +10 -0
  276. package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.d.ts.map +1 -0
  277. package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.js +13 -0
  278. package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.js.map +1 -0
  279. package/node_modules/@azure/msal-common/dist/authority/ImdsOptions.d.ts +6 -0
  280. package/node_modules/@azure/msal-common/dist/authority/ImdsOptions.d.ts.map +1 -0
  281. package/node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.d.ts +12 -0
  282. package/node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.d.ts.map +1 -0
  283. package/node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.js +15 -0
  284. package/node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.js.map +1 -0
  285. package/node_modules/@azure/msal-common/dist/authority/ProtocolMode.d.ts +8 -0
  286. package/node_modules/@azure/msal-common/dist/authority/ProtocolMode.d.ts.map +1 -0
  287. package/node_modules/@azure/msal-common/dist/authority/ProtocolMode.js +17 -0
  288. package/node_modules/@azure/msal-common/dist/authority/ProtocolMode.js.map +1 -0
  289. package/node_modules/@azure/msal-common/dist/authority/RegionDiscovery.d.ts +31 -0
  290. package/node_modules/@azure/msal-common/dist/authority/RegionDiscovery.d.ts.map +1 -0
  291. package/node_modules/@azure/msal-common/dist/authority/RegionDiscovery.js +116 -0
  292. package/node_modules/@azure/msal-common/dist/authority/RegionDiscovery.js.map +1 -0
  293. package/node_modules/@azure/msal-common/dist/authority/RegionDiscoveryMetadata.d.ts +7 -0
  294. package/node_modules/@azure/msal-common/dist/authority/RegionDiscoveryMetadata.d.ts.map +1 -0
  295. package/node_modules/@azure/msal-common/dist/broker/nativeBroker/INativeBrokerPlugin.d.ts +16 -0
  296. package/node_modules/@azure/msal-common/dist/broker/nativeBroker/INativeBrokerPlugin.d.ts.map +1 -0
  297. package/node_modules/@azure/msal-common/dist/cache/CacheManager.d.ts +444 -0
  298. package/node_modules/@azure/msal-common/dist/cache/CacheManager.d.ts.map +1 -0
  299. package/node_modules/@azure/msal-common/dist/cache/CacheManager.js +1024 -0
  300. package/node_modules/@azure/msal-common/dist/cache/CacheManager.js.map +1 -0
  301. package/node_modules/@azure/msal-common/dist/cache/entities/AccessTokenEntity.d.ts +57 -0
  302. package/node_modules/@azure/msal-common/dist/cache/entities/AccessTokenEntity.d.ts.map +1 -0
  303. package/node_modules/@azure/msal-common/dist/cache/entities/AccessTokenEntity.js +123 -0
  304. package/node_modules/@azure/msal-common/dist/cache/entities/AccessTokenEntity.js.map +1 -0
  305. package/node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.d.ts +100 -0
  306. package/node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.d.ts.map +1 -0
  307. package/node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.js +259 -0
  308. package/node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.js.map +1 -0
  309. package/node_modules/@azure/msal-common/dist/cache/entities/AppMetadataEntity.d.ts +40 -0
  310. package/node_modules/@azure/msal-common/dist/cache/entities/AppMetadataEntity.d.ts.map +1 -0
  311. package/node_modules/@azure/msal-common/dist/cache/entities/AppMetadataEntity.js +73 -0
  312. package/node_modules/@azure/msal-common/dist/cache/entities/AppMetadataEntity.js.map +1 -0
  313. package/node_modules/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.d.ts +48 -0
  314. package/node_modules/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.d.ts.map +1 -0
  315. package/node_modules/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.js +85 -0
  316. package/node_modules/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.js.map +1 -0
  317. package/node_modules/@azure/msal-common/dist/cache/entities/CacheRecord.d.ts +14 -0
  318. package/node_modules/@azure/msal-common/dist/cache/entities/CacheRecord.d.ts.map +1 -0
  319. package/node_modules/@azure/msal-common/dist/cache/entities/CacheRecord.js +18 -0
  320. package/node_modules/@azure/msal-common/dist/cache/entities/CacheRecord.js.map +1 -0
  321. package/node_modules/@azure/msal-common/dist/cache/entities/CredentialEntity.d.ts +89 -0
  322. package/node_modules/@azure/msal-common/dist/cache/entities/CredentialEntity.d.ts.map +1 -0
  323. package/node_modules/@azure/msal-common/dist/cache/entities/CredentialEntity.js +144 -0
  324. package/node_modules/@azure/msal-common/dist/cache/entities/CredentialEntity.js.map +1 -0
  325. package/node_modules/@azure/msal-common/dist/cache/entities/IdTokenEntity.d.ts +35 -0
  326. package/node_modules/@azure/msal-common/dist/cache/entities/IdTokenEntity.d.ts.map +1 -0
  327. package/node_modules/@azure/msal-common/dist/cache/entities/IdTokenEntity.js +64 -0
  328. package/node_modules/@azure/msal-common/dist/cache/entities/IdTokenEntity.js.map +1 -0
  329. package/node_modules/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.d.ts +37 -0
  330. package/node_modules/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.d.ts.map +1 -0
  331. package/node_modules/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.js +67 -0
  332. package/node_modules/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.js.map +1 -0
  333. package/node_modules/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.d.ts +13 -0
  334. package/node_modules/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.d.ts.map +1 -0
  335. package/node_modules/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.js +34 -0
  336. package/node_modules/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.js.map +1 -0
  337. package/node_modules/@azure/msal-common/dist/cache/entities/ThrottlingEntity.d.ts +14 -0
  338. package/node_modules/@azure/msal-common/dist/cache/entities/ThrottlingEntity.d.ts.map +1 -0
  339. package/node_modules/@azure/msal-common/dist/cache/entities/ThrottlingEntity.js +30 -0
  340. package/node_modules/@azure/msal-common/dist/cache/entities/ThrottlingEntity.js.map +1 -0
  341. package/node_modules/@azure/msal-common/dist/cache/interface/ICacheManager.d.ts +166 -0
  342. package/node_modules/@azure/msal-common/dist/cache/interface/ICacheManager.d.ts.map +1 -0
  343. package/node_modules/@azure/msal-common/dist/cache/interface/ICachePlugin.d.ts +6 -0
  344. package/node_modules/@azure/msal-common/dist/cache/interface/ICachePlugin.d.ts.map +1 -0
  345. package/node_modules/@azure/msal-common/dist/cache/interface/ISerializableTokenCache.d.ts +5 -0
  346. package/node_modules/@azure/msal-common/dist/cache/interface/ISerializableTokenCache.d.ts.map +1 -0
  347. package/node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.d.ts +24 -0
  348. package/node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.d.ts.map +1 -0
  349. package/node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.js +30 -0
  350. package/node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.js.map +1 -0
  351. package/node_modules/@azure/msal-common/dist/cache/utils/CacheTypes.d.ts +63 -0
  352. package/node_modules/@azure/msal-common/dist/cache/utils/CacheTypes.d.ts.map +1 -0
  353. package/node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.d.ts +72 -0
  354. package/node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.d.ts.map +1 -0
  355. package/node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.js +453 -0
  356. package/node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.js.map +1 -0
  357. package/node_modules/@azure/msal-common/dist/client/BaseClient.d.ts +51 -0
  358. package/node_modules/@azure/msal-common/dist/client/BaseClient.d.ts.map +1 -0
  359. package/node_modules/@azure/msal-common/dist/client/BaseClient.js +107 -0
  360. package/node_modules/@azure/msal-common/dist/client/BaseClient.js.map +1 -0
  361. package/node_modules/@azure/msal-common/dist/client/RefreshTokenClient.d.ts +35 -0
  362. package/node_modules/@azure/msal-common/dist/client/RefreshTokenClient.d.ts.map +1 -0
  363. package/node_modules/@azure/msal-common/dist/client/RefreshTokenClient.js +260 -0
  364. package/node_modules/@azure/msal-common/dist/client/RefreshTokenClient.js.map +1 -0
  365. package/node_modules/@azure/msal-common/dist/client/SilentFlowClient.d.ts +25 -0
  366. package/node_modules/@azure/msal-common/dist/client/SilentFlowClient.d.ts.map +1 -0
  367. package/node_modules/@azure/msal-common/dist/client/SilentFlowClient.js +108 -0
  368. package/node_modules/@azure/msal-common/dist/client/SilentFlowClient.js.map +1 -0
  369. package/node_modules/@azure/msal-common/dist/config/AppTokenProvider.d.ts +39 -0
  370. package/node_modules/@azure/msal-common/dist/config/AppTokenProvider.d.ts.map +1 -0
  371. package/node_modules/@azure/msal-common/dist/config/ClientConfiguration.d.ts +134 -0
  372. package/node_modules/@azure/msal-common/dist/config/ClientConfiguration.d.ts.map +1 -0
  373. package/node_modules/@azure/msal-common/dist/config/ClientConfiguration.js +101 -0
  374. package/node_modules/@azure/msal-common/dist/config/ClientConfiguration.js.map +1 -0
  375. package/node_modules/@azure/msal-common/dist/crypto/ICrypto.d.ts +63 -0
  376. package/node_modules/@azure/msal-common/dist/crypto/ICrypto.d.ts.map +1 -0
  377. package/node_modules/@azure/msal-common/dist/crypto/ICrypto.js +49 -0
  378. package/node_modules/@azure/msal-common/dist/crypto/ICrypto.js.map +1 -0
  379. package/node_modules/@azure/msal-common/dist/crypto/IGuidGenerator.d.ts +5 -0
  380. package/node_modules/@azure/msal-common/dist/crypto/IGuidGenerator.d.ts.map +1 -0
  381. package/node_modules/@azure/msal-common/dist/crypto/JoseHeader.d.ts +22 -0
  382. package/node_modules/@azure/msal-common/dist/crypto/JoseHeader.d.ts.map +1 -0
  383. package/node_modules/@azure/msal-common/dist/crypto/JoseHeader.js +44 -0
  384. package/node_modules/@azure/msal-common/dist/crypto/JoseHeader.js.map +1 -0
  385. package/node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.d.ts +58 -0
  386. package/node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.d.ts.map +1 -0
  387. package/node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.js +92 -0
  388. package/node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.js.map +1 -0
  389. package/node_modules/@azure/msal-common/dist/crypto/SignedHttpRequest.d.ts +12 -0
  390. package/node_modules/@azure/msal-common/dist/crypto/SignedHttpRequest.d.ts.map +1 -0
  391. package/node_modules/@azure/msal-common/dist/error/AuthError.d.ts +48 -0
  392. package/node_modules/@azure/msal-common/dist/error/AuthError.d.ts.map +1 -0
  393. package/node_modules/@azure/msal-common/dist/error/AuthError.js +58 -0
  394. package/node_modules/@azure/msal-common/dist/error/AuthError.js.map +1 -0
  395. package/node_modules/@azure/msal-common/dist/error/ClientAuthError.d.ts +413 -0
  396. package/node_modules/@azure/msal-common/dist/error/ClientAuthError.d.ts.map +1 -0
  397. package/node_modules/@azure/msal-common/dist/error/ClientAuthError.js +526 -0
  398. package/node_modules/@azure/msal-common/dist/error/ClientAuthError.js.map +1 -0
  399. package/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.d.ts +199 -0
  400. package/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.d.ts.map +1 -0
  401. package/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.js +256 -0
  402. package/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.js.map +1 -0
  403. package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.d.ts +60 -0
  404. package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.d.ts.map +1 -0
  405. package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.js +86 -0
  406. package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.js.map +1 -0
  407. package/node_modules/@azure/msal-common/dist/error/JoseHeaderError.d.ts +29 -0
  408. package/node_modules/@azure/msal-common/dist/error/JoseHeaderError.d.ts.map +1 -0
  409. package/node_modules/@azure/msal-common/dist/error/JoseHeaderError.js +46 -0
  410. package/node_modules/@azure/msal-common/dist/error/JoseHeaderError.js.map +1 -0
  411. package/node_modules/@azure/msal-common/dist/error/ServerError.d.ts +8 -0
  412. package/node_modules/@azure/msal-common/dist/error/ServerError.d.ts.map +1 -0
  413. package/node_modules/@azure/msal-common/dist/error/ServerError.js +21 -0
  414. package/node_modules/@azure/msal-common/dist/error/ServerError.js.map +1 -0
  415. package/node_modules/@azure/msal-common/dist/index.cjs.js +8975 -0
  416. package/node_modules/@azure/msal-common/dist/index.cjs.js.map +1 -0
  417. package/node_modules/@azure/msal-common/dist/index.d.ts +94 -0
  418. package/node_modules/@azure/msal-common/dist/index.d.ts.map +1 -0
  419. package/node_modules/@azure/msal-common/dist/index.js +54 -0
  420. package/node_modules/@azure/msal-common/dist/index.js.map +1 -0
  421. package/node_modules/@azure/msal-common/dist/logger/Logger.d.ts +96 -0
  422. package/node_modules/@azure/msal-common/dist/logger/Logger.d.ts.map +1 -0
  423. package/node_modules/@azure/msal-common/dist/logger/Logger.js +205 -0
  424. package/node_modules/@azure/msal-common/dist/logger/Logger.js.map +1 -0
  425. package/node_modules/@azure/msal-common/dist/network/INetworkModule.d.ts +30 -0
  426. package/node_modules/@azure/msal-common/dist/network/INetworkModule.d.ts.map +1 -0
  427. package/node_modules/@azure/msal-common/dist/network/INetworkModule.js +21 -0
  428. package/node_modules/@azure/msal-common/dist/network/INetworkModule.js.map +1 -0
  429. package/node_modules/@azure/msal-common/dist/network/NetworkManager.d.ts +33 -0
  430. package/node_modules/@azure/msal-common/dist/network/NetworkManager.d.ts.map +1 -0
  431. package/node_modules/@azure/msal-common/dist/network/NetworkManager.js +42 -0
  432. package/node_modules/@azure/msal-common/dist/network/NetworkManager.js.map +1 -0
  433. package/node_modules/@azure/msal-common/dist/network/RequestThumbprint.d.ts +17 -0
  434. package/node_modules/@azure/msal-common/dist/network/RequestThumbprint.d.ts.map +1 -0
  435. package/node_modules/@azure/msal-common/dist/network/ThrottlingUtils.d.ts +42 -0
  436. package/node_modules/@azure/msal-common/dist/network/ThrottlingUtils.d.ts.map +1 -0
  437. package/node_modules/@azure/msal-common/dist/network/ThrottlingUtils.js +102 -0
  438. package/node_modules/@azure/msal-common/dist/network/ThrottlingUtils.js.map +1 -0
  439. package/node_modules/@azure/msal-common/dist/packageMetadata.d.ts +3 -0
  440. package/node_modules/@azure/msal-common/dist/packageMetadata.d.ts.map +1 -0
  441. package/node_modules/@azure/msal-common/dist/packageMetadata.js +8 -0
  442. package/node_modules/@azure/msal-common/dist/packageMetadata.js.map +1 -0
  443. package/node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.d.ts +20 -0
  444. package/node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.d.ts.map +1 -0
  445. package/node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.js +63 -0
  446. package/node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.js.map +1 -0
  447. package/node_modules/@azure/msal-common/dist/request/BaseAuthRequest.d.ts +38 -0
  448. package/node_modules/@azure/msal-common/dist/request/BaseAuthRequest.d.ts.map +1 -0
  449. package/node_modules/@azure/msal-common/dist/request/CommonAuthorizationCodeRequest.d.ts +28 -0
  450. package/node_modules/@azure/msal-common/dist/request/CommonAuthorizationCodeRequest.d.ts.map +1 -0
  451. package/node_modules/@azure/msal-common/dist/request/CommonAuthorizationUrlRequest.d.ts +51 -0
  452. package/node_modules/@azure/msal-common/dist/request/CommonAuthorizationUrlRequest.d.ts.map +1 -0
  453. package/node_modules/@azure/msal-common/dist/request/CommonClientCredentialRequest.d.ts +18 -0
  454. package/node_modules/@azure/msal-common/dist/request/CommonClientCredentialRequest.d.ts.map +1 -0
  455. package/node_modules/@azure/msal-common/dist/request/CommonDeviceCodeRequest.d.ts +22 -0
  456. package/node_modules/@azure/msal-common/dist/request/CommonDeviceCodeRequest.d.ts.map +1 -0
  457. package/node_modules/@azure/msal-common/dist/request/CommonEndSessionRequest.d.ts +22 -0
  458. package/node_modules/@azure/msal-common/dist/request/CommonEndSessionRequest.d.ts.map +1 -0
  459. package/node_modules/@azure/msal-common/dist/request/CommonOnBehalfOfRequest.d.ts +14 -0
  460. package/node_modules/@azure/msal-common/dist/request/CommonOnBehalfOfRequest.d.ts.map +1 -0
  461. package/node_modules/@azure/msal-common/dist/request/CommonRefreshTokenRequest.d.ts +20 -0
  462. package/node_modules/@azure/msal-common/dist/request/CommonRefreshTokenRequest.d.ts.map +1 -0
  463. package/node_modules/@azure/msal-common/dist/request/CommonSilentFlowRequest.d.ts +19 -0
  464. package/node_modules/@azure/msal-common/dist/request/CommonSilentFlowRequest.d.ts.map +1 -0
  465. package/node_modules/@azure/msal-common/dist/request/CommonUsernamePasswordRequest.d.ts +18 -0
  466. package/node_modules/@azure/msal-common/dist/request/CommonUsernamePasswordRequest.d.ts.map +1 -0
  467. package/node_modules/@azure/msal-common/dist/request/NativeRequest.d.ts +20 -0
  468. package/node_modules/@azure/msal-common/dist/request/NativeRequest.d.ts.map +1 -0
  469. package/node_modules/@azure/msal-common/dist/request/NativeSignOutRequest.d.ts +6 -0
  470. package/node_modules/@azure/msal-common/dist/request/NativeSignOutRequest.d.ts.map +1 -0
  471. package/node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.d.ts +217 -0
  472. package/node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.d.ts.map +1 -0
  473. package/node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.js +385 -0
  474. package/node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.js.map +1 -0
  475. package/node_modules/@azure/msal-common/dist/request/RequestValidator.d.ts +34 -0
  476. package/node_modules/@azure/msal-common/dist/request/RequestValidator.d.ts.map +1 -0
  477. package/node_modules/@azure/msal-common/dist/request/RequestValidator.js +92 -0
  478. package/node_modules/@azure/msal-common/dist/request/RequestValidator.js.map +1 -0
  479. package/node_modules/@azure/msal-common/dist/request/ScopeSet.d.ts +89 -0
  480. package/node_modules/@azure/msal-common/dist/request/ScopeSet.d.ts.map +1 -0
  481. package/node_modules/@azure/msal-common/dist/request/ScopeSet.js +207 -0
  482. package/node_modules/@azure/msal-common/dist/request/ScopeSet.js.map +1 -0
  483. package/node_modules/@azure/msal-common/dist/response/AuthenticationResult.d.ts +40 -0
  484. package/node_modules/@azure/msal-common/dist/response/AuthenticationResult.d.ts.map +1 -0
  485. package/node_modules/@azure/msal-common/dist/response/AuthorizationCodePayload.d.ts +14 -0
  486. package/node_modules/@azure/msal-common/dist/response/AuthorizationCodePayload.d.ts.map +1 -0
  487. package/node_modules/@azure/msal-common/dist/response/DeviceCodeResponse.d.ts +26 -0
  488. package/node_modules/@azure/msal-common/dist/response/DeviceCodeResponse.d.ts.map +1 -0
  489. package/node_modules/@azure/msal-common/dist/response/ExternalTokenResponse.d.ts +16 -0
  490. package/node_modules/@azure/msal-common/dist/response/ExternalTokenResponse.d.ts.map +1 -0
  491. package/node_modules/@azure/msal-common/dist/response/IMDSBadResponse.d.ts +5 -0
  492. package/node_modules/@azure/msal-common/dist/response/IMDSBadResponse.d.ts.map +1 -0
  493. package/node_modules/@azure/msal-common/dist/response/ResponseHandler.d.ts +73 -0
  494. package/node_modules/@azure/msal-common/dist/response/ResponseHandler.d.ts.map +1 -0
  495. package/node_modules/@azure/msal-common/dist/response/ResponseHandler.js +325 -0
  496. package/node_modules/@azure/msal-common/dist/response/ResponseHandler.js.map +1 -0
  497. package/node_modules/@azure/msal-common/dist/response/ServerAuthorizationCodeResponse.d.ts +26 -0
  498. package/node_modules/@azure/msal-common/dist/response/ServerAuthorizationCodeResponse.d.ts.map +1 -0
  499. package/node_modules/@azure/msal-common/dist/response/ServerAuthorizationTokenResponse.d.ts +45 -0
  500. package/node_modules/@azure/msal-common/dist/response/ServerAuthorizationTokenResponse.d.ts.map +1 -0
  501. package/node_modules/@azure/msal-common/dist/telemetry/performance/IPerformanceClient.d.ts +43 -0
  502. package/node_modules/@azure/msal-common/dist/telemetry/performance/IPerformanceClient.d.ts.map +1 -0
  503. package/node_modules/@azure/msal-common/dist/telemetry/performance/IPerformanceMeasurement.d.ts +6 -0
  504. package/node_modules/@azure/msal-common/dist/telemetry/performance/IPerformanceMeasurement.d.ts.map +1 -0
  505. package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.d.ts +190 -0
  506. package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.d.ts.map +1 -0
  507. package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.js +413 -0
  508. package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.js.map +1 -0
  509. package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.d.ts +440 -0
  510. package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.d.ts.map +1 -0
  511. package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.js +232 -0
  512. package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.js.map +1 -0
  513. package/node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.d.ts +20 -0
  514. package/node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.d.ts.map +1 -0
  515. package/node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.js +43 -0
  516. package/node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.js.map +1 -0
  517. package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.d.ts +66 -0
  518. package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.d.ts.map +1 -0
  519. package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.js +206 -0
  520. package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.js.map +1 -0
  521. package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryRequest.d.ts +9 -0
  522. package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryRequest.d.ts.map +1 -0
  523. package/node_modules/@azure/msal-common/dist/url/IUri.d.ts +13 -0
  524. package/node_modules/@azure/msal-common/dist/url/IUri.d.ts.map +1 -0
  525. package/node_modules/@azure/msal-common/dist/url/UrlString.d.ts +71 -0
  526. package/node_modules/@azure/msal-common/dist/url/UrlString.d.ts.map +1 -0
  527. package/node_modules/@azure/msal-common/dist/url/UrlString.js +252 -0
  528. package/node_modules/@azure/msal-common/dist/url/UrlString.js.map +1 -0
  529. package/node_modules/@azure/msal-common/dist/utils/Constants.d.ts +332 -0
  530. package/node_modules/@azure/msal-common/dist/utils/Constants.d.ts.map +1 -0
  531. package/node_modules/@azure/msal-common/dist/utils/Constants.js +378 -0
  532. package/node_modules/@azure/msal-common/dist/utils/Constants.js.map +1 -0
  533. package/node_modules/@azure/msal-common/dist/utils/MsalTypes.d.ts +7 -0
  534. package/node_modules/@azure/msal-common/dist/utils/MsalTypes.d.ts.map +1 -0
  535. package/node_modules/@azure/msal-common/dist/utils/ProtocolUtils.d.ts +43 -0
  536. package/node_modules/@azure/msal-common/dist/utils/ProtocolUtils.d.ts.map +1 -0
  537. package/node_modules/@azure/msal-common/dist/utils/ProtocolUtils.js +80 -0
  538. package/node_modules/@azure/msal-common/dist/utils/ProtocolUtils.js.map +1 -0
  539. package/node_modules/@azure/msal-common/dist/utils/StringUtils.d.ts +54 -0
  540. package/node_modules/@azure/msal-common/dist/utils/StringUtils.d.ts.map +1 -0
  541. package/node_modules/@azure/msal-common/dist/utils/StringUtils.js +131 -0
  542. package/node_modules/@azure/msal-common/dist/utils/StringUtils.js.map +1 -0
  543. package/node_modules/@azure/msal-common/dist/utils/TimeUtils.d.ts +28 -0
  544. package/node_modules/@azure/msal-common/dist/utils/TimeUtils.d.ts.map +1 -0
  545. package/node_modules/@azure/msal-common/dist/utils/TimeUtils.js +50 -0
  546. package/node_modules/@azure/msal-common/dist/utils/TimeUtils.js.map +1 -0
  547. package/node_modules/@azure/msal-common/package.json +79 -0
  548. package/package.json +99 -95
  549. package/dist/_virtual/_tslib.js +0 -117
  550. package/dist/_virtual/_tslib.js.map +0 -1
  551. package/dist/app/ClientApplication.d.ts.map +0 -1
  552. package/dist/app/ClientApplication.js +0 -1053
  553. package/dist/app/ClientApplication.js.map +0 -1
  554. package/dist/index.cjs.js +0 -18045
  555. package/dist/index.cjs.js.map +0 -1
  556. package/lib/msal-browser.js +0 -18051
  557. package/lib/msal-browser.js.map +0 -1
  558. package/lib/msal-browser.min.js +0 -70
@@ -0,0 +1,6 @@
1
+ export type NativeSignOutRequest = {
2
+ clientId: string;
3
+ accountId: string;
4
+ correlationId: string;
5
+ };
6
+ //# sourceMappingURL=NativeSignOutRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeSignOutRequest.d.ts","sourceRoot":"","sources":["../../src/request/NativeSignOutRequest.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,oBAAoB,GAAG;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;CACzB,CAAC"}
@@ -0,0 +1,217 @@
1
+ import { ResponseMode } from "../utils/Constants";
2
+ import { StringDict } from "../utils/MsalTypes";
3
+ import { ApplicationTelemetry, LibraryInfo } from "../config/ClientConfiguration";
4
+ import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager";
5
+ import { ClientInfo } from "../account/ClientInfo";
6
+ export declare class RequestParameterBuilder {
7
+ private parameters;
8
+ constructor();
9
+ /**
10
+ * add response_type = code
11
+ */
12
+ addResponseTypeCode(): void;
13
+ /**
14
+ * add response_type = token id_token
15
+ */
16
+ addResponseTypeForTokenAndIdToken(): void;
17
+ /**
18
+ * add response_mode. defaults to query.
19
+ * @param responseMode
20
+ */
21
+ addResponseMode(responseMode?: ResponseMode): void;
22
+ /**
23
+ * Add flag to indicate STS should attempt to use WAM if available
24
+ */
25
+ addNativeBroker(): void;
26
+ /**
27
+ * add scopes. set addOidcScopes to false to prevent default scopes in non-user scenarios
28
+ * @param scopeSet
29
+ * @param addOidcScopes
30
+ */
31
+ addScopes(scopes: string[], addOidcScopes?: boolean): void;
32
+ /**
33
+ * add clientId
34
+ * @param clientId
35
+ */
36
+ addClientId(clientId: string): void;
37
+ /**
38
+ * add redirect_uri
39
+ * @param redirectUri
40
+ */
41
+ addRedirectUri(redirectUri: string): void;
42
+ /**
43
+ * add post logout redirectUri
44
+ * @param redirectUri
45
+ */
46
+ addPostLogoutRedirectUri(redirectUri: string): void;
47
+ /**
48
+ * add id_token_hint to logout request
49
+ * @param idTokenHint
50
+ */
51
+ addIdTokenHint(idTokenHint: string): void;
52
+ /**
53
+ * add domain_hint
54
+ * @param domainHint
55
+ */
56
+ addDomainHint(domainHint: string): void;
57
+ /**
58
+ * add login_hint
59
+ * @param loginHint
60
+ */
61
+ addLoginHint(loginHint: string): void;
62
+ /**
63
+ * Adds the CCS (Cache Credential Service) query parameter for login_hint
64
+ * @param loginHint
65
+ */
66
+ addCcsUpn(loginHint: string): void;
67
+ /**
68
+ * Adds the CCS (Cache Credential Service) query parameter for account object
69
+ * @param loginHint
70
+ */
71
+ addCcsOid(clientInfo: ClientInfo): void;
72
+ /**
73
+ * add sid
74
+ * @param sid
75
+ */
76
+ addSid(sid: string): void;
77
+ /**
78
+ * add claims
79
+ * @param claims
80
+ */
81
+ addClaims(claims?: string, clientCapabilities?: Array<string>): void;
82
+ /**
83
+ * add correlationId
84
+ * @param correlationId
85
+ */
86
+ addCorrelationId(correlationId: string): void;
87
+ /**
88
+ * add library info query params
89
+ * @param libraryInfo
90
+ */
91
+ addLibraryInfo(libraryInfo: LibraryInfo): void;
92
+ /**
93
+ * Add client telemetry parameters
94
+ * @param appTelemetry
95
+ */
96
+ addApplicationTelemetry(appTelemetry: ApplicationTelemetry): void;
97
+ /**
98
+ * add prompt
99
+ * @param prompt
100
+ */
101
+ addPrompt(prompt: string): void;
102
+ /**
103
+ * add state
104
+ * @param state
105
+ */
106
+ addState(state: string): void;
107
+ /**
108
+ * add nonce
109
+ * @param nonce
110
+ */
111
+ addNonce(nonce: string): void;
112
+ /**
113
+ * add code_challenge and code_challenge_method
114
+ * - throw if either of them are not passed
115
+ * @param codeChallenge
116
+ * @param codeChallengeMethod
117
+ */
118
+ addCodeChallengeParams(codeChallenge: string, codeChallengeMethod: string): void;
119
+ /**
120
+ * add the `authorization_code` passed by the user to exchange for a token
121
+ * @param code
122
+ */
123
+ addAuthorizationCode(code: string): void;
124
+ /**
125
+ * add the `authorization_code` passed by the user to exchange for a token
126
+ * @param code
127
+ */
128
+ addDeviceCode(code: string): void;
129
+ /**
130
+ * add the `refreshToken` passed by the user
131
+ * @param refreshToken
132
+ */
133
+ addRefreshToken(refreshToken: string): void;
134
+ /**
135
+ * add the `code_verifier` passed by the user to exchange for a token
136
+ * @param codeVerifier
137
+ */
138
+ addCodeVerifier(codeVerifier: string): void;
139
+ /**
140
+ * add client_secret
141
+ * @param clientSecret
142
+ */
143
+ addClientSecret(clientSecret: string): void;
144
+ /**
145
+ * add clientAssertion for confidential client flows
146
+ * @param clientAssertion
147
+ */
148
+ addClientAssertion(clientAssertion: string): void;
149
+ /**
150
+ * add clientAssertionType for confidential client flows
151
+ * @param clientAssertionType
152
+ */
153
+ addClientAssertionType(clientAssertionType: string): void;
154
+ /**
155
+ * add OBO assertion for confidential client flows
156
+ * @param clientAssertion
157
+ */
158
+ addOboAssertion(oboAssertion: string): void;
159
+ /**
160
+ * add grant type
161
+ * @param grantType
162
+ */
163
+ addRequestTokenUse(tokenUse: string): void;
164
+ /**
165
+ * add grant type
166
+ * @param grantType
167
+ */
168
+ addGrantType(grantType: string): void;
169
+ /**
170
+ * add client info
171
+ *
172
+ */
173
+ addClientInfo(): void;
174
+ /**
175
+ * add extraQueryParams
176
+ * @param eQParams
177
+ */
178
+ addExtraQueryParameters(eQParams: StringDict): void;
179
+ addClientCapabilitiesToClaims(claims?: string, clientCapabilities?: Array<string>): string;
180
+ /**
181
+ * adds `username` for Password Grant flow
182
+ * @param username
183
+ */
184
+ addUsername(username: string): void;
185
+ /**
186
+ * adds `password` for Password Grant flow
187
+ * @param password
188
+ */
189
+ addPassword(password: string): void;
190
+ /**
191
+ * add pop_jwk to query params
192
+ * @param cnfString
193
+ */
194
+ addPopToken(cnfString: string): void;
195
+ /**
196
+ * add SSH JWK and key ID to query params
197
+ */
198
+ addSshJwk(sshJwkString: string): void;
199
+ /**
200
+ * add server telemetry fields
201
+ * @param serverTelemetryManager
202
+ */
203
+ addServerTelemetry(serverTelemetryManager: ServerTelemetryManager): void;
204
+ /**
205
+ * Adds parameter that indicates to the server that throttling is supported
206
+ */
207
+ addThrottling(): void;
208
+ /**
209
+ * Adds logout_hint parameter for "silent" logout which prevent server account picker
210
+ */
211
+ addLogoutHint(logoutHint: string): void;
212
+ /**
213
+ * Utility to create a URL from the params map
214
+ */
215
+ createQueryString(): string;
216
+ }
217
+ //# sourceMappingURL=RequestParameterBuilder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestParameterBuilder.d.ts","sourceRoot":"","sources":["../../src/request/RequestParameterBuilder.ts"],"names":[],"mappings":"AAKA,OAAO,EAGH,YAAY,EASf,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,EACH,oBAAoB,EACpB,WAAW,EACd,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,qBAAa,uBAAuB;IAChC,OAAO,CAAC,UAAU,CAAsB;;IAMxC;;OAEG;IACH,mBAAmB,IAAI,IAAI;IAO3B;;OAEG;IACH,iCAAiC,IAAI,IAAI;IASzC;;;OAGG;IACH,eAAe,CAAC,YAAY,CAAC,EAAE,YAAY,GAAG,IAAI;IAOlD;;OAEG;IACH,eAAe,IAAI,IAAI;IAOvB;;;;OAIG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,aAAa,GAAE,OAAc,GAAG,IAAI;IAWhE;;;OAGG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAOnC;;;OAGG;IACH,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;IAQzC;;;OAGG;IACH,wBAAwB,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;IAQnD;;;OAGG;IACH,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI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IAO3C;;;OAGG;IACH,kBAAkB,CAAC,eAAe,EAAE,MAAM,GAAG,IAAI;IASjD;;;OAGG;IACH,sBAAsB,CAAC,mBAAmB,EAAE,MAAM,GAAG,IAAI;IASzD;;;OAGG;IACH,eAAe,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI;IAO3C;;;OAGG;IACH,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAO1C;;;OAGG;IACH,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAOrC;;;OAGG;IACH,aAAa,IAAI,IAAI;IAIrB;;;OAGG;IACH,uBAAuB,CAAC,QAAQ,EAAE,UAAU,GAAG,IAAI;IAUnD,6BAA6B,CACzB,MAAM,CAAC,EAAE,MAAM,EACf,kBAAkB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GACnC,MAAM;IA+BT;;;OAGG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAOnC;;;OAGG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAOnC;;;OAGG;IACH,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAapC;;OAEG;IACH,SAAS,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI;IAarC;;;OAGG;IACH,kBAAkB,CAAC,sBAAsB,EAAE,sBAAsB,GAAG,IAAI;IAWxE;;OAEG;IACH,aAAa,IAAI,IAAI;IAOrB;;OAEG;IACH,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI;IAOvC;;OAEG;IACH,iBAAiB,IAAI,MAAM;CAS9B"}
@@ -0,0 +1,385 @@
1
+ /*! @azure/msal-common v14.0.0 2023-05-03 */
2
+ 'use strict';
3
+ import { AADServerParamKeys, Constants, ResponseMode, SSOTypes, HeaderNames, CLIENT_INFO, ClaimsRequestKeys, PasswordGrantConstants, AuthenticationScheme, ThrottlingConstants, OIDC_DEFAULT_SCOPES } from '../utils/Constants.js';
4
+ import { ScopeSet } from './ScopeSet.js';
5
+ import { ClientConfigurationError } from '../error/ClientConfigurationError.js';
6
+ import { RequestValidator } from './RequestValidator.js';
7
+ import { StringUtils } from '../utils/StringUtils.js';
8
+
9
+ /*
10
+ * Copyright (c) Microsoft Corporation. All rights reserved.
11
+ * Licensed under the MIT License.
12
+ */
13
+ class RequestParameterBuilder {
14
+ constructor() {
15
+ this.parameters = new Map();
16
+ }
17
+ /**
18
+ * add response_type = code
19
+ */
20
+ addResponseTypeCode() {
21
+ this.parameters.set(AADServerParamKeys.RESPONSE_TYPE, encodeURIComponent(Constants.CODE_RESPONSE_TYPE));
22
+ }
23
+ /**
24
+ * add response_type = token id_token
25
+ */
26
+ addResponseTypeForTokenAndIdToken() {
27
+ this.parameters.set(AADServerParamKeys.RESPONSE_TYPE, encodeURIComponent(`${Constants.TOKEN_RESPONSE_TYPE} ${Constants.ID_TOKEN_RESPONSE_TYPE}`));
28
+ }
29
+ /**
30
+ * add response_mode. defaults to query.
31
+ * @param responseMode
32
+ */
33
+ addResponseMode(responseMode) {
34
+ this.parameters.set(AADServerParamKeys.RESPONSE_MODE, encodeURIComponent(responseMode ? responseMode : ResponseMode.QUERY));
35
+ }
36
+ /**
37
+ * Add flag to indicate STS should attempt to use WAM if available
38
+ */
39
+ addNativeBroker() {
40
+ this.parameters.set(AADServerParamKeys.NATIVE_BROKER, encodeURIComponent("1"));
41
+ }
42
+ /**
43
+ * add scopes. set addOidcScopes to false to prevent default scopes in non-user scenarios
44
+ * @param scopeSet
45
+ * @param addOidcScopes
46
+ */
47
+ addScopes(scopes, addOidcScopes = true) {
48
+ const requestScopes = addOidcScopes
49
+ ? [...(scopes || []), ...OIDC_DEFAULT_SCOPES]
50
+ : scopes || [];
51
+ const scopeSet = new ScopeSet(requestScopes);
52
+ this.parameters.set(AADServerParamKeys.SCOPE, encodeURIComponent(scopeSet.printScopes()));
53
+ }
54
+ /**
55
+ * add clientId
56
+ * @param clientId
57
+ */
58
+ addClientId(clientId) {
59
+ this.parameters.set(AADServerParamKeys.CLIENT_ID, encodeURIComponent(clientId));
60
+ }
61
+ /**
62
+ * add redirect_uri
63
+ * @param redirectUri
64
+ */
65
+ addRedirectUri(redirectUri) {
66
+ RequestValidator.validateRedirectUri(redirectUri);
67
+ this.parameters.set(AADServerParamKeys.REDIRECT_URI, encodeURIComponent(redirectUri));
68
+ }
69
+ /**
70
+ * add post logout redirectUri
71
+ * @param redirectUri
72
+ */
73
+ addPostLogoutRedirectUri(redirectUri) {
74
+ RequestValidator.validateRedirectUri(redirectUri);
75
+ this.parameters.set(AADServerParamKeys.POST_LOGOUT_URI, encodeURIComponent(redirectUri));
76
+ }
77
+ /**
78
+ * add id_token_hint to logout request
79
+ * @param idTokenHint
80
+ */
81
+ addIdTokenHint(idTokenHint) {
82
+ this.parameters.set(AADServerParamKeys.ID_TOKEN_HINT, encodeURIComponent(idTokenHint));
83
+ }
84
+ /**
85
+ * add domain_hint
86
+ * @param domainHint
87
+ */
88
+ addDomainHint(domainHint) {
89
+ this.parameters.set(SSOTypes.DOMAIN_HINT, encodeURIComponent(domainHint));
90
+ }
91
+ /**
92
+ * add login_hint
93
+ * @param loginHint
94
+ */
95
+ addLoginHint(loginHint) {
96
+ this.parameters.set(SSOTypes.LOGIN_HINT, encodeURIComponent(loginHint));
97
+ }
98
+ /**
99
+ * Adds the CCS (Cache Credential Service) query parameter for login_hint
100
+ * @param loginHint
101
+ */
102
+ addCcsUpn(loginHint) {
103
+ this.parameters.set(HeaderNames.CCS_HEADER, encodeURIComponent(`UPN:${loginHint}`));
104
+ }
105
+ /**
106
+ * Adds the CCS (Cache Credential Service) query parameter for account object
107
+ * @param loginHint
108
+ */
109
+ addCcsOid(clientInfo) {
110
+ this.parameters.set(HeaderNames.CCS_HEADER, encodeURIComponent(`Oid:${clientInfo.uid}@${clientInfo.utid}`));
111
+ }
112
+ /**
113
+ * add sid
114
+ * @param sid
115
+ */
116
+ addSid(sid) {
117
+ this.parameters.set(SSOTypes.SID, encodeURIComponent(sid));
118
+ }
119
+ /**
120
+ * add claims
121
+ * @param claims
122
+ */
123
+ addClaims(claims, clientCapabilities) {
124
+ const mergedClaims = this.addClientCapabilitiesToClaims(claims, clientCapabilities);
125
+ RequestValidator.validateClaims(mergedClaims);
126
+ this.parameters.set(AADServerParamKeys.CLAIMS, encodeURIComponent(mergedClaims));
127
+ }
128
+ /**
129
+ * add correlationId
130
+ * @param correlationId
131
+ */
132
+ addCorrelationId(correlationId) {
133
+ this.parameters.set(AADServerParamKeys.CLIENT_REQUEST_ID, encodeURIComponent(correlationId));
134
+ }
135
+ /**
136
+ * add library info query params
137
+ * @param libraryInfo
138
+ */
139
+ addLibraryInfo(libraryInfo) {
140
+ // Telemetry Info
141
+ this.parameters.set(AADServerParamKeys.X_CLIENT_SKU, libraryInfo.sku);
142
+ this.parameters.set(AADServerParamKeys.X_CLIENT_VER, libraryInfo.version);
143
+ if (libraryInfo.os) {
144
+ this.parameters.set(AADServerParamKeys.X_CLIENT_OS, libraryInfo.os);
145
+ }
146
+ if (libraryInfo.cpu) {
147
+ this.parameters.set(AADServerParamKeys.X_CLIENT_CPU, libraryInfo.cpu);
148
+ }
149
+ }
150
+ /**
151
+ * Add client telemetry parameters
152
+ * @param appTelemetry
153
+ */
154
+ addApplicationTelemetry(appTelemetry) {
155
+ if (appTelemetry?.appName) {
156
+ this.parameters.set(AADServerParamKeys.X_APP_NAME, appTelemetry.appName);
157
+ }
158
+ if (appTelemetry?.appVersion) {
159
+ this.parameters.set(AADServerParamKeys.X_APP_VER, appTelemetry.appVersion);
160
+ }
161
+ }
162
+ /**
163
+ * add prompt
164
+ * @param prompt
165
+ */
166
+ addPrompt(prompt) {
167
+ RequestValidator.validatePrompt(prompt);
168
+ this.parameters.set(`${AADServerParamKeys.PROMPT}`, encodeURIComponent(prompt));
169
+ }
170
+ /**
171
+ * add state
172
+ * @param state
173
+ */
174
+ addState(state) {
175
+ if (!StringUtils.isEmpty(state)) {
176
+ this.parameters.set(AADServerParamKeys.STATE, encodeURIComponent(state));
177
+ }
178
+ }
179
+ /**
180
+ * add nonce
181
+ * @param nonce
182
+ */
183
+ addNonce(nonce) {
184
+ this.parameters.set(AADServerParamKeys.NONCE, encodeURIComponent(nonce));
185
+ }
186
+ /**
187
+ * add code_challenge and code_challenge_method
188
+ * - throw if either of them are not passed
189
+ * @param codeChallenge
190
+ * @param codeChallengeMethod
191
+ */
192
+ addCodeChallengeParams(codeChallenge, codeChallengeMethod) {
193
+ RequestValidator.validateCodeChallengeParams(codeChallenge, codeChallengeMethod);
194
+ if (codeChallenge && codeChallengeMethod) {
195
+ this.parameters.set(AADServerParamKeys.CODE_CHALLENGE, encodeURIComponent(codeChallenge));
196
+ this.parameters.set(AADServerParamKeys.CODE_CHALLENGE_METHOD, encodeURIComponent(codeChallengeMethod));
197
+ }
198
+ else {
199
+ throw ClientConfigurationError.createInvalidCodeChallengeParamsError();
200
+ }
201
+ }
202
+ /**
203
+ * add the `authorization_code` passed by the user to exchange for a token
204
+ * @param code
205
+ */
206
+ addAuthorizationCode(code) {
207
+ this.parameters.set(AADServerParamKeys.CODE, encodeURIComponent(code));
208
+ }
209
+ /**
210
+ * add the `authorization_code` passed by the user to exchange for a token
211
+ * @param code
212
+ */
213
+ addDeviceCode(code) {
214
+ this.parameters.set(AADServerParamKeys.DEVICE_CODE, encodeURIComponent(code));
215
+ }
216
+ /**
217
+ * add the `refreshToken` passed by the user
218
+ * @param refreshToken
219
+ */
220
+ addRefreshToken(refreshToken) {
221
+ this.parameters.set(AADServerParamKeys.REFRESH_TOKEN, encodeURIComponent(refreshToken));
222
+ }
223
+ /**
224
+ * add the `code_verifier` passed by the user to exchange for a token
225
+ * @param codeVerifier
226
+ */
227
+ addCodeVerifier(codeVerifier) {
228
+ this.parameters.set(AADServerParamKeys.CODE_VERIFIER, encodeURIComponent(codeVerifier));
229
+ }
230
+ /**
231
+ * add client_secret
232
+ * @param clientSecret
233
+ */
234
+ addClientSecret(clientSecret) {
235
+ this.parameters.set(AADServerParamKeys.CLIENT_SECRET, encodeURIComponent(clientSecret));
236
+ }
237
+ /**
238
+ * add clientAssertion for confidential client flows
239
+ * @param clientAssertion
240
+ */
241
+ addClientAssertion(clientAssertion) {
242
+ if (!StringUtils.isEmpty(clientAssertion)) {
243
+ this.parameters.set(AADServerParamKeys.CLIENT_ASSERTION, encodeURIComponent(clientAssertion));
244
+ }
245
+ }
246
+ /**
247
+ * add clientAssertionType for confidential client flows
248
+ * @param clientAssertionType
249
+ */
250
+ addClientAssertionType(clientAssertionType) {
251
+ if (!StringUtils.isEmpty(clientAssertionType)) {
252
+ this.parameters.set(AADServerParamKeys.CLIENT_ASSERTION_TYPE, encodeURIComponent(clientAssertionType));
253
+ }
254
+ }
255
+ /**
256
+ * add OBO assertion for confidential client flows
257
+ * @param clientAssertion
258
+ */
259
+ addOboAssertion(oboAssertion) {
260
+ this.parameters.set(AADServerParamKeys.OBO_ASSERTION, encodeURIComponent(oboAssertion));
261
+ }
262
+ /**
263
+ * add grant type
264
+ * @param grantType
265
+ */
266
+ addRequestTokenUse(tokenUse) {
267
+ this.parameters.set(AADServerParamKeys.REQUESTED_TOKEN_USE, encodeURIComponent(tokenUse));
268
+ }
269
+ /**
270
+ * add grant type
271
+ * @param grantType
272
+ */
273
+ addGrantType(grantType) {
274
+ this.parameters.set(AADServerParamKeys.GRANT_TYPE, encodeURIComponent(grantType));
275
+ }
276
+ /**
277
+ * add client info
278
+ *
279
+ */
280
+ addClientInfo() {
281
+ this.parameters.set(CLIENT_INFO, "1");
282
+ }
283
+ /**
284
+ * add extraQueryParams
285
+ * @param eQParams
286
+ */
287
+ addExtraQueryParameters(eQParams) {
288
+ const sanitizedEQParams = RequestValidator.sanitizeEQParams(eQParams, this.parameters);
289
+ Object.keys(sanitizedEQParams).forEach((key) => {
290
+ this.parameters.set(key, eQParams[key]);
291
+ });
292
+ }
293
+ addClientCapabilitiesToClaims(claims, clientCapabilities) {
294
+ let mergedClaims;
295
+ // Parse provided claims into JSON object or initialize empty object
296
+ if (!claims) {
297
+ mergedClaims = {};
298
+ }
299
+ else {
300
+ try {
301
+ mergedClaims = JSON.parse(claims);
302
+ }
303
+ catch (e) {
304
+ throw ClientConfigurationError.createInvalidClaimsRequestError();
305
+ }
306
+ }
307
+ if (clientCapabilities && clientCapabilities.length > 0) {
308
+ if (!mergedClaims.hasOwnProperty(ClaimsRequestKeys.ACCESS_TOKEN)) {
309
+ // Add access_token key to claims object
310
+ mergedClaims[ClaimsRequestKeys.ACCESS_TOKEN] = {};
311
+ }
312
+ // Add xms_cc claim with provided clientCapabilities to access_token key
313
+ mergedClaims[ClaimsRequestKeys.ACCESS_TOKEN][ClaimsRequestKeys.XMS_CC] = {
314
+ values: clientCapabilities,
315
+ };
316
+ }
317
+ return JSON.stringify(mergedClaims);
318
+ }
319
+ /**
320
+ * adds `username` for Password Grant flow
321
+ * @param username
322
+ */
323
+ addUsername(username) {
324
+ this.parameters.set(PasswordGrantConstants.username, encodeURIComponent(username));
325
+ }
326
+ /**
327
+ * adds `password` for Password Grant flow
328
+ * @param password
329
+ */
330
+ addPassword(password) {
331
+ this.parameters.set(PasswordGrantConstants.password, encodeURIComponent(password));
332
+ }
333
+ /**
334
+ * add pop_jwk to query params
335
+ * @param cnfString
336
+ */
337
+ addPopToken(cnfString) {
338
+ if (!StringUtils.isEmpty(cnfString)) {
339
+ this.parameters.set(AADServerParamKeys.TOKEN_TYPE, AuthenticationScheme.POP);
340
+ this.parameters.set(AADServerParamKeys.REQ_CNF, encodeURIComponent(cnfString));
341
+ }
342
+ }
343
+ /**
344
+ * add SSH JWK and key ID to query params
345
+ */
346
+ addSshJwk(sshJwkString) {
347
+ if (!StringUtils.isEmpty(sshJwkString)) {
348
+ this.parameters.set(AADServerParamKeys.TOKEN_TYPE, AuthenticationScheme.SSH);
349
+ this.parameters.set(AADServerParamKeys.REQ_CNF, encodeURIComponent(sshJwkString));
350
+ }
351
+ }
352
+ /**
353
+ * add server telemetry fields
354
+ * @param serverTelemetryManager
355
+ */
356
+ addServerTelemetry(serverTelemetryManager) {
357
+ this.parameters.set(AADServerParamKeys.X_CLIENT_CURR_TELEM, serverTelemetryManager.generateCurrentRequestHeaderValue());
358
+ this.parameters.set(AADServerParamKeys.X_CLIENT_LAST_TELEM, serverTelemetryManager.generateLastRequestHeaderValue());
359
+ }
360
+ /**
361
+ * Adds parameter that indicates to the server that throttling is supported
362
+ */
363
+ addThrottling() {
364
+ this.parameters.set(AADServerParamKeys.X_MS_LIB_CAPABILITY, ThrottlingConstants.X_MS_LIB_CAPABILITY_VALUE);
365
+ }
366
+ /**
367
+ * Adds logout_hint parameter for "silent" logout which prevent server account picker
368
+ */
369
+ addLogoutHint(logoutHint) {
370
+ this.parameters.set(AADServerParamKeys.LOGOUT_HINT, encodeURIComponent(logoutHint));
371
+ }
372
+ /**
373
+ * Utility to create a URL from the params map
374
+ */
375
+ createQueryString() {
376
+ const queryParameterArray = new Array();
377
+ this.parameters.forEach((value, key) => {
378
+ queryParameterArray.push(`${key}=${value}`);
379
+ });
380
+ return queryParameterArray.join("&");
381
+ }
382
+ }
383
+
384
+ export { RequestParameterBuilder };
385
+ //# sourceMappingURL=RequestParameterBuilder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestParameterBuilder.js","sources":["../../src/request/RequestParameterBuilder.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;AAAA;;;AAGG;MA2BU,uBAAuB,CAAA;AAGhC,IAAA,WAAA,GAAA;AACI,QAAA,IAAI,CAAC,UAAU,GAAG,IAAI,GAAG,EAAkB,CAAC;KAC/C;AAED;;AAEG;IACH,mBAAmB,GAAA;AACf,QAAA,IAAI,CAAC,UAAU,CAAC,GAAG,CACf,kBAAkB,CAAC,aAAa,EAChC,kBAAkB,CAAC,SAAS,CAAC,kBAAkB,CAAC,CACnD,CAAC;KACL;AAED;;AAEG;IACH,iCAAiC,GAAA;QAC7B,IAAI,CAAC,UAAU,CAAC,GAAG,CACf,kBAAkB,CAAC,aAAa,E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AAkB,CAAC,WAAW,EAC9B,kBAAkB,CAAC,UAAU,CAAC,CACjC,CAAC;KACL;AAED;;AAEG;IACH,iBAAiB,GAAA;AACb,QAAA,MAAM,mBAAmB,GAAkB,IAAI,KAAK,EAAU,CAAC;QAE/D,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,GAAG,KAAI;YACnC,mBAAmB,CAAC,IAAI,CAAC,CAAA,EAAG,GAAG,CAAI,CAAA,EAAA,KAAK,CAAE,CAAA,CAAC,CAAC;AAChD,SAAC,CAAC,CAAC;AAEH,QAAA,OAAO,mBAAmB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KACxC;AACJ;;;;"}
@@ -0,0 +1,34 @@
1
+ import { StringDict } from "../utils/MsalTypes";
2
+ /**
3
+ * Validates server consumable params from the "request" objects
4
+ */
5
+ export declare class RequestValidator {
6
+ /**
7
+ * Utility to check if the `redirectUri` in the request is a non-null value
8
+ * @param redirectUri
9
+ */
10
+ static validateRedirectUri(redirectUri: string): void;
11
+ /**
12
+ * Utility to validate prompt sent by the user in the request
13
+ * @param prompt
14
+ */
15
+ static validatePrompt(prompt: string): void;
16
+ static validateClaims(claims: string): void;
17
+ /**
18
+ * Utility to validate code_challenge and code_challenge_method
19
+ * @param codeChallenge
20
+ * @param codeChallengeMethod
21
+ */
22
+ static validateCodeChallengeParams(codeChallenge: string, codeChallengeMethod: string): void;
23
+ /**
24
+ * Utility to validate code_challenge_method
25
+ * @param codeChallengeMethod
26
+ */
27
+ static validateCodeChallengeMethod(codeChallengeMethod: string): void;
28
+ /**
29
+ * Removes unnecessary, duplicate, and empty string query parameters from extraQueryParameters
30
+ * @param request
31
+ */
32
+ static sanitizeEQParams(eQParams: StringDict, queryParams: Map<string, string>): StringDict;
33
+ }
34
+ //# sourceMappingURL=RequestValidator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestValidator.d.ts","sourceRoot":"","sources":["../../src/request/RequestValidator.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD;;GAEG;AACH,qBAAa,gBAAgB;IACzB;;;OAGG;IACH,MAAM,CAAC,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;IAMrD;;;OAGG;IACH,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAY3C,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAQ3C;;;;OAIG;IACH,MAAM,CAAC,2BAA2B,CAC9B,aAAa,EAAE,MAAM,EACrB,mBAAmB,EAAE,MAAM,GAC5B,IAAI;IAWP;;;OAGG;IACH,MAAM,CAAC,2BAA2B,CAAC,mBAAmB,EAAE,MAAM,GAAG,IAAI;IAWrE;;;OAGG;IACH,MAAM,CAAC,gBAAgB,CACnB,QAAQ,EAAE,UAAU,EACpB,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GACjC,UAAU;CAiBhB"}