@azure/msal-browser 3.22.1 → 3.24.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 (519) hide show
  1. package/dist/app/IPublicClientApplication.d.ts +16 -16
  2. package/dist/app/IPublicClientApplication.d.ts.map +1 -1
  3. package/dist/app/IPublicClientApplication.mjs +1 -1
  4. package/dist/app/PublicClientApplication.d.ts +18 -18
  5. package/dist/app/PublicClientApplication.d.ts.map +1 -1
  6. package/dist/app/PublicClientApplication.mjs +1 -1
  7. package/dist/app/PublicClientApplication.mjs.map +1 -1
  8. package/dist/app/PublicClientNext.d.ts +16 -16
  9. package/dist/app/PublicClientNext.d.ts.map +1 -1
  10. package/dist/app/PublicClientNext.mjs +1 -1
  11. package/dist/app/PublicClientNext.mjs.map +1 -1
  12. package/dist/broker/nativeBroker/NativeMessageHandler.d.ts +3 -3
  13. package/dist/broker/nativeBroker/NativeMessageHandler.d.ts.map +1 -1
  14. package/dist/broker/nativeBroker/NativeMessageHandler.mjs +2 -2
  15. package/dist/broker/nativeBroker/NativeRequest.d.ts +2 -2
  16. package/dist/broker/nativeBroker/NativeRequest.d.ts.map +1 -1
  17. package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
  18. package/dist/cache/AccountManager.d.ts +2 -2
  19. package/dist/cache/AccountManager.d.ts.map +1 -1
  20. package/dist/cache/AccountManager.mjs +1 -1
  21. package/dist/cache/AsyncMemoryStorage.d.ts +2 -2
  22. package/dist/cache/AsyncMemoryStorage.d.ts.map +1 -1
  23. package/dist/cache/AsyncMemoryStorage.mjs +1 -1
  24. package/dist/cache/BrowserCacheManager.d.ts +11 -11
  25. package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
  26. package/dist/cache/BrowserCacheManager.mjs +2 -2
  27. package/dist/cache/BrowserStorage.d.ts +1 -1
  28. package/dist/cache/BrowserStorage.d.ts.map +1 -1
  29. package/dist/cache/BrowserStorage.mjs +1 -1
  30. package/dist/cache/DatabaseStorage.d.ts +1 -1
  31. package/dist/cache/DatabaseStorage.d.ts.map +1 -1
  32. package/dist/cache/DatabaseStorage.mjs +1 -1
  33. package/dist/cache/DatabaseStorage.mjs.map +1 -1
  34. package/dist/cache/ITokenCache.d.ts +4 -4
  35. package/dist/cache/ITokenCache.d.ts.map +1 -1
  36. package/dist/cache/MemoryStorage.d.ts +1 -1
  37. package/dist/cache/MemoryStorage.d.ts.map +1 -1
  38. package/dist/cache/MemoryStorage.mjs +1 -1
  39. package/dist/cache/TokenCache.d.ts +6 -6
  40. package/dist/cache/TokenCache.d.ts.map +1 -1
  41. package/dist/cache/TokenCache.mjs +2 -2
  42. package/dist/config/Configuration.d.ts +7 -3
  43. package/dist/config/Configuration.d.ts.map +1 -1
  44. package/dist/config/Configuration.mjs +3 -2
  45. package/dist/config/Configuration.mjs.map +1 -1
  46. package/dist/controllers/ControllerFactory.d.ts +3 -3
  47. package/dist/controllers/ControllerFactory.d.ts.map +1 -1
  48. package/dist/controllers/ControllerFactory.mjs +1 -1
  49. package/dist/controllers/IController.d.ts +17 -17
  50. package/dist/controllers/IController.d.ts.map +1 -1
  51. package/dist/controllers/NestedAppAuthController.d.ts +21 -21
  52. package/dist/controllers/NestedAppAuthController.d.ts.map +1 -1
  53. package/dist/controllers/NestedAppAuthController.mjs +2 -2
  54. package/dist/controllers/StandardController.d.ts +28 -28
  55. package/dist/controllers/StandardController.d.ts.map +1 -1
  56. package/dist/controllers/StandardController.mjs +2 -2
  57. package/dist/controllers/UnknownOperatingContextController.d.ts +19 -19
  58. package/dist/controllers/UnknownOperatingContextController.d.ts.map +1 -1
  59. package/dist/controllers/UnknownOperatingContextController.mjs +2 -2
  60. package/dist/crypto/BrowserCrypto.d.ts +1 -1
  61. package/dist/crypto/BrowserCrypto.d.ts.map +1 -1
  62. package/dist/crypto/BrowserCrypto.mjs +2 -2
  63. package/dist/crypto/CryptoOps.d.ts +1 -1
  64. package/dist/crypto/CryptoOps.d.ts.map +1 -1
  65. package/dist/crypto/CryptoOps.mjs +2 -2
  66. package/dist/crypto/CryptoOps.mjs.map +1 -1
  67. package/dist/crypto/PkceGenerator.d.ts +1 -1
  68. package/dist/crypto/PkceGenerator.d.ts.map +1 -1
  69. package/dist/crypto/PkceGenerator.mjs +2 -2
  70. package/dist/crypto/SignedHttpRequest.d.ts +1 -1
  71. package/dist/crypto/SignedHttpRequest.d.ts.map +1 -1
  72. package/dist/crypto/SignedHttpRequest.mjs +2 -2
  73. package/dist/encode/Base64Decode.mjs +1 -1
  74. package/dist/encode/Base64Encode.mjs +1 -1
  75. package/dist/error/BrowserAuthError.d.ts +2 -2
  76. package/dist/error/BrowserAuthError.d.ts.map +1 -1
  77. package/dist/error/BrowserAuthError.mjs +2 -2
  78. package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
  79. package/dist/error/BrowserConfigurationAuthError.d.ts +2 -2
  80. package/dist/error/BrowserConfigurationAuthError.d.ts.map +1 -1
  81. package/dist/error/BrowserConfigurationAuthError.mjs +2 -2
  82. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  83. package/dist/error/NativeAuthError.d.ts +2 -2
  84. package/dist/error/NativeAuthError.d.ts.map +1 -1
  85. package/dist/error/NativeAuthError.mjs +2 -2
  86. package/dist/error/NativeAuthErrorCodes.mjs +1 -1
  87. package/dist/error/NestedAppAuthError.d.ts +1 -1
  88. package/dist/error/NestedAppAuthError.d.ts.map +1 -1
  89. package/dist/error/NestedAppAuthError.mjs +2 -2
  90. package/dist/event/EventHandler.d.ts +4 -4
  91. package/dist/event/EventHandler.d.ts.map +1 -1
  92. package/dist/event/EventHandler.mjs +2 -2
  93. package/dist/event/EventMessage.d.ts +9 -4
  94. package/dist/event/EventMessage.d.ts.map +1 -1
  95. package/dist/event/EventMessage.mjs +1 -1
  96. package/dist/event/EventMessage.mjs.map +1 -1
  97. package/dist/event/EventType.mjs +1 -1
  98. package/dist/index.d.ts +35 -35
  99. package/dist/index.d.ts.map +1 -1
  100. package/dist/index.mjs +2 -2
  101. package/dist/interaction_client/BaseInteractionClient.d.ts +24 -16
  102. package/dist/interaction_client/BaseInteractionClient.d.ts.map +1 -1
  103. package/dist/interaction_client/BaseInteractionClient.mjs +23 -10
  104. package/dist/interaction_client/BaseInteractionClient.mjs.map +1 -1
  105. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.d.ts +1 -1
  106. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.d.ts.map +1 -1
  107. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +2 -2
  108. package/dist/interaction_client/NativeInteractionClient.d.ts +16 -16
  109. package/dist/interaction_client/NativeInteractionClient.d.ts.map +1 -1
  110. package/dist/interaction_client/NativeInteractionClient.mjs +12 -6
  111. package/dist/interaction_client/NativeInteractionClient.mjs.map +1 -1
  112. package/dist/interaction_client/PopupClient.d.ts +17 -16
  113. package/dist/interaction_client/PopupClient.d.ts.map +1 -1
  114. package/dist/interaction_client/PopupClient.mjs +59 -56
  115. package/dist/interaction_client/PopupClient.mjs.map +1 -1
  116. package/dist/interaction_client/RedirectClient.d.ts +10 -10
  117. package/dist/interaction_client/RedirectClient.d.ts.map +1 -1
  118. package/dist/interaction_client/RedirectClient.mjs +16 -6
  119. package/dist/interaction_client/RedirectClient.mjs.map +1 -1
  120. package/dist/interaction_client/SilentAuthCodeClient.d.ts +10 -10
  121. package/dist/interaction_client/SilentAuthCodeClient.d.ts.map +1 -1
  122. package/dist/interaction_client/SilentAuthCodeClient.mjs +9 -3
  123. package/dist/interaction_client/SilentAuthCodeClient.mjs.map +1 -1
  124. package/dist/interaction_client/SilentCacheClient.d.ts +4 -4
  125. package/dist/interaction_client/SilentCacheClient.d.ts.map +1 -1
  126. package/dist/interaction_client/SilentCacheClient.mjs +8 -3
  127. package/dist/interaction_client/SilentCacheClient.mjs.map +1 -1
  128. package/dist/interaction_client/SilentIframeClient.d.ts +11 -11
  129. package/dist/interaction_client/SilentIframeClient.d.ts.map +1 -1
  130. package/dist/interaction_client/SilentIframeClient.mjs +9 -3
  131. package/dist/interaction_client/SilentIframeClient.mjs.map +1 -1
  132. package/dist/interaction_client/SilentRefreshClient.d.ts +17 -6
  133. package/dist/interaction_client/SilentRefreshClient.d.ts.map +1 -1
  134. package/dist/interaction_client/SilentRefreshClient.mjs +23 -7
  135. package/dist/interaction_client/SilentRefreshClient.mjs.map +1 -1
  136. package/dist/interaction_client/StandardInteractionClient.d.ts +36 -15
  137. package/dist/interaction_client/StandardInteractionClient.d.ts.map +1 -1
  138. package/dist/interaction_client/StandardInteractionClient.mjs +26 -11
  139. package/dist/interaction_client/StandardInteractionClient.mjs.map +1 -1
  140. package/dist/interaction_handler/InteractionHandler.d.ts +4 -4
  141. package/dist/interaction_handler/InteractionHandler.d.ts.map +1 -1
  142. package/dist/interaction_handler/InteractionHandler.mjs +2 -2
  143. package/dist/interaction_handler/RedirectHandler.d.ts +4 -4
  144. package/dist/interaction_handler/RedirectHandler.d.ts.map +1 -1
  145. package/dist/interaction_handler/RedirectHandler.mjs +2 -2
  146. package/dist/interaction_handler/SilentHandler.d.ts +1 -1
  147. package/dist/interaction_handler/SilentHandler.d.ts.map +1 -1
  148. package/dist/interaction_handler/SilentHandler.mjs +2 -2
  149. package/dist/naa/AuthResult.d.ts +2 -2
  150. package/dist/naa/AuthResult.d.ts.map +1 -1
  151. package/dist/naa/BridgeError.d.ts +1 -1
  152. package/dist/naa/BridgeError.d.ts.map +1 -1
  153. package/dist/naa/BridgeError.mjs +1 -1
  154. package/dist/naa/BridgeProxy.d.ts +9 -8
  155. package/dist/naa/BridgeProxy.d.ts.map +1 -1
  156. package/dist/naa/BridgeProxy.mjs +16 -14
  157. package/dist/naa/BridgeProxy.mjs.map +1 -1
  158. package/dist/naa/BridgeRequest.d.ts +1 -1
  159. package/dist/naa/BridgeRequest.d.ts.map +1 -1
  160. package/dist/naa/BridgeRequestEnvelope.d.ts +1 -1
  161. package/dist/naa/BridgeRequestEnvelope.d.ts.map +1 -1
  162. package/dist/naa/BridgeResponseEnvelope.d.ts +4 -4
  163. package/dist/naa/BridgeResponseEnvelope.d.ts.map +1 -1
  164. package/dist/naa/BridgeStatusCode.mjs +1 -1
  165. package/dist/naa/IBridgeProxy.d.ts +4 -4
  166. package/dist/naa/IBridgeProxy.d.ts.map +1 -1
  167. package/dist/naa/InitContext.d.ts +2 -2
  168. package/dist/naa/InitContext.d.ts.map +1 -1
  169. package/dist/naa/mapping/NestedAppAuthAdapter.d.ts +9 -9
  170. package/dist/naa/mapping/NestedAppAuthAdapter.d.ts.map +1 -1
  171. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +2 -2
  172. package/dist/navigation/INavigationClient.d.ts +1 -1
  173. package/dist/navigation/INavigationClient.d.ts.map +1 -1
  174. package/dist/navigation/NavigationClient.d.ts +2 -2
  175. package/dist/navigation/NavigationClient.d.ts.map +1 -1
  176. package/dist/navigation/NavigationClient.mjs +1 -1
  177. package/dist/navigation/NavigationOptions.d.ts +1 -1
  178. package/dist/navigation/NavigationOptions.d.ts.map +1 -1
  179. package/dist/network/FetchClient.d.ts +1 -1
  180. package/dist/network/FetchClient.d.ts.map +1 -1
  181. package/dist/network/FetchClient.mjs +2 -2
  182. package/dist/operatingcontext/BaseOperatingContext.d.ts +2 -2
  183. package/dist/operatingcontext/BaseOperatingContext.d.ts.map +1 -1
  184. package/dist/operatingcontext/BaseOperatingContext.mjs +2 -2
  185. package/dist/operatingcontext/NestedAppOperatingContext.d.ts +8 -3
  186. package/dist/operatingcontext/NestedAppOperatingContext.d.ts.map +1 -1
  187. package/dist/operatingcontext/NestedAppOperatingContext.mjs +4 -5
  188. package/dist/operatingcontext/NestedAppOperatingContext.mjs.map +1 -1
  189. package/dist/operatingcontext/StandardOperatingContext.d.ts +1 -1
  190. package/dist/operatingcontext/StandardOperatingContext.d.ts.map +1 -1
  191. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  192. package/dist/operatingcontext/UnknownOperatingContext.d.ts +1 -1
  193. package/dist/operatingcontext/UnknownOperatingContext.d.ts.map +1 -1
  194. package/dist/operatingcontext/UnknownOperatingContext.mjs +1 -1
  195. package/dist/packageMetadata.d.ts +1 -1
  196. package/dist/packageMetadata.mjs +2 -2
  197. package/dist/request/AuthorizationCodeRequest.d.ts +1 -1
  198. package/dist/request/AuthorizationCodeRequest.d.ts.map +1 -1
  199. package/dist/request/AuthorizationUrlRequest.d.ts +1 -1
  200. package/dist/request/AuthorizationUrlRequest.d.ts.map +1 -1
  201. package/dist/request/ClearCacheRequest.d.ts +1 -1
  202. package/dist/request/ClearCacheRequest.d.ts.map +1 -1
  203. package/dist/request/EndSessionPopupRequest.d.ts +4 -2
  204. package/dist/request/EndSessionPopupRequest.d.ts.map +1 -1
  205. package/dist/request/EndSessionRequest.d.ts +1 -1
  206. package/dist/request/EndSessionRequest.d.ts.map +1 -1
  207. package/dist/request/PopupRequest.d.ts +4 -2
  208. package/dist/request/PopupRequest.d.ts.map +1 -1
  209. package/dist/request/RedirectRequest.d.ts +1 -1
  210. package/dist/request/RedirectRequest.d.ts.map +1 -1
  211. package/dist/request/RequestHelpers.d.ts +3 -3
  212. package/dist/request/RequestHelpers.d.ts.map +1 -1
  213. package/dist/request/RequestHelpers.mjs +2 -2
  214. package/dist/request/SilentRequest.d.ts +2 -2
  215. package/dist/request/SilentRequest.d.ts.map +1 -1
  216. package/dist/request/SsoSilentRequest.d.ts +1 -1
  217. package/dist/request/SsoSilentRequest.d.ts.map +1 -1
  218. package/dist/response/AuthenticationResult.d.ts +1 -1
  219. package/dist/response/AuthenticationResult.d.ts.map +1 -1
  220. package/dist/response/ResponseHandler.d.ts +2 -2
  221. package/dist/response/ResponseHandler.d.ts.map +1 -1
  222. package/dist/response/ResponseHandler.mjs +2 -2
  223. package/dist/telemetry/BrowserPerformanceClient.d.ts +2 -2
  224. package/dist/telemetry/BrowserPerformanceClient.d.ts.map +1 -1
  225. package/dist/telemetry/BrowserPerformanceClient.mjs +2 -2
  226. package/dist/telemetry/BrowserPerformanceClient.mjs.map +1 -1
  227. package/dist/telemetry/BrowserPerformanceMeasurement.d.ts +1 -1
  228. package/dist/telemetry/BrowserPerformanceMeasurement.d.ts.map +1 -1
  229. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  230. package/dist/telemetry/BrowserPerformanceMeasurement.mjs.map +1 -1
  231. package/dist/utils/BrowserConstants.d.ts +2 -2
  232. package/dist/utils/BrowserConstants.d.ts.map +1 -1
  233. package/dist/utils/BrowserConstants.mjs +2 -2
  234. package/dist/utils/BrowserProtocolUtils.d.ts +2 -2
  235. package/dist/utils/BrowserProtocolUtils.d.ts.map +1 -1
  236. package/dist/utils/BrowserProtocolUtils.mjs +2 -2
  237. package/dist/utils/BrowserUtils.d.ts +2 -2
  238. package/dist/utils/BrowserUtils.d.ts.map +1 -1
  239. package/dist/utils/BrowserUtils.mjs +3 -3
  240. package/lib/msal-browser.cjs +5045 -4956
  241. package/lib/msal-browser.cjs.map +1 -1
  242. package/lib/msal-browser.js +5045 -4956
  243. package/lib/msal-browser.js.map +1 -1
  244. package/lib/msal-browser.min.js +66 -68
  245. package/lib/package.json +1 -0
  246. package/lib/types/app/IPublicClientApplication.d.ts +54 -0
  247. package/lib/types/app/IPublicClientApplication.d.ts.map +1 -0
  248. package/lib/types/app/PublicClientApplication.d.ts +294 -0
  249. package/lib/types/app/PublicClientApplication.d.ts.map +1 -0
  250. package/lib/types/app/PublicClientNext.d.ts +277 -0
  251. package/lib/types/app/PublicClientNext.d.ts.map +1 -0
  252. package/lib/types/broker/nativeBroker/NativeMessageHandler.d.ts +63 -0
  253. package/lib/types/broker/nativeBroker/NativeMessageHandler.d.ts.map +1 -0
  254. package/lib/types/broker/nativeBroker/NativeRequest.d.ts +46 -0
  255. package/lib/types/broker/nativeBroker/NativeRequest.d.ts.map +1 -0
  256. package/lib/types/broker/nativeBroker/NativeResponse.d.ts +49 -0
  257. package/lib/types/broker/nativeBroker/NativeResponse.d.ts.map +1 -0
  258. package/lib/types/broker/nativeBroker/NativeStatusCodes.d.ts +8 -0
  259. package/lib/types/broker/nativeBroker/NativeStatusCodes.d.ts.map +1 -0
  260. package/lib/types/cache/AccountManager.d.ts +49 -0
  261. package/lib/types/cache/AccountManager.d.ts.map +1 -0
  262. package/lib/types/cache/AsyncMemoryStorage.d.ts +51 -0
  263. package/lib/types/cache/AsyncMemoryStorage.d.ts.map +1 -0
  264. package/lib/types/cache/BrowserCacheManager.d.ts +386 -0
  265. package/lib/types/cache/BrowserCacheManager.d.ts.map +1 -0
  266. package/lib/types/cache/BrowserStorage.d.ts +12 -0
  267. package/lib/types/cache/BrowserStorage.d.ts.map +1 -0
  268. package/lib/types/cache/DatabaseStorage.d.ts +57 -0
  269. package/lib/types/cache/DatabaseStorage.d.ts.map +1 -0
  270. package/lib/types/cache/IAsyncStorage.d.ts +28 -0
  271. package/lib/types/cache/IAsyncStorage.d.ts.map +1 -0
  272. package/lib/types/cache/ITokenCache.d.ts +12 -0
  273. package/lib/types/cache/ITokenCache.d.ts.map +1 -0
  274. package/lib/types/cache/IWindowStorage.d.ts +28 -0
  275. package/lib/types/cache/IWindowStorage.d.ts.map +1 -0
  276. package/lib/types/cache/MemoryStorage.d.ts +12 -0
  277. package/lib/types/cache/MemoryStorage.d.ts.map +1 -0
  278. package/lib/types/cache/TokenCache.d.ts +78 -0
  279. package/lib/types/cache/TokenCache.d.ts.map +1 -0
  280. package/lib/types/config/Configuration.d.ts +218 -0
  281. package/lib/types/config/Configuration.d.ts.map +1 -0
  282. package/lib/types/controllers/ControllerFactory.d.ts +6 -0
  283. package/lib/types/controllers/ControllerFactory.d.ts.map +1 -0
  284. package/lib/types/controllers/IController.d.ts +61 -0
  285. package/lib/types/controllers/IController.d.ts.map +1 -0
  286. package/lib/types/controllers/NestedAppAuthController.d.ts +203 -0
  287. package/lib/types/controllers/NestedAppAuthController.d.ts.map +1 -0
  288. package/lib/types/controllers/StandardController.d.ts +406 -0
  289. package/lib/types/controllers/StandardController.d.ts.map +1 -0
  290. package/lib/types/controllers/UnknownOperatingContextController.d.ts +87 -0
  291. package/lib/types/controllers/UnknownOperatingContextController.d.ts.map +1 -0
  292. package/lib/types/crypto/BrowserCrypto.d.ts +53 -0
  293. package/lib/types/crypto/BrowserCrypto.d.ts.map +1 -0
  294. package/lib/types/crypto/CryptoOps.d.ts +75 -0
  295. package/lib/types/crypto/CryptoOps.d.ts.map +1 -0
  296. package/lib/types/crypto/PkceGenerator.d.ts +9 -0
  297. package/lib/types/crypto/PkceGenerator.d.ts.map +1 -0
  298. package/lib/types/crypto/SignedHttpRequest.d.ts +31 -0
  299. package/lib/types/crypto/SignedHttpRequest.d.ts.map +1 -0
  300. package/lib/types/encode/Base64Decode.d.ts +10 -0
  301. package/lib/types/encode/Base64Decode.d.ts.map +1 -0
  302. package/lib/types/encode/Base64Encode.d.ts +20 -0
  303. package/lib/types/encode/Base64Encode.d.ts.map +1 -0
  304. package/lib/types/error/BrowserAuthError.d.ts +256 -0
  305. package/lib/types/error/BrowserAuthError.d.ts.map +1 -0
  306. package/lib/types/error/BrowserAuthErrorCodes.d.ts +47 -0
  307. package/lib/types/error/BrowserAuthErrorCodes.d.ts.map +1 -0
  308. package/lib/types/error/BrowserConfigurationAuthError.d.ts +34 -0
  309. package/lib/types/error/BrowserConfigurationAuthError.d.ts.map +1 -0
  310. package/lib/types/error/BrowserConfigurationAuthErrorCodes.d.ts +4 -0
  311. package/lib/types/error/BrowserConfigurationAuthErrorCodes.d.ts.map +1 -0
  312. package/lib/types/error/NativeAuthError.d.ts +30 -0
  313. package/lib/types/error/NativeAuthError.d.ts.map +1 -0
  314. package/lib/types/error/NativeAuthErrorCodes.d.ts +3 -0
  315. package/lib/types/error/NativeAuthErrorCodes.d.ts.map +1 -0
  316. package/lib/types/error/NestedAppAuthError.d.ts +15 -0
  317. package/lib/types/error/NestedAppAuthError.d.ts.map +1 -0
  318. package/lib/types/event/EventHandler.d.ts +42 -0
  319. package/lib/types/event/EventHandler.d.ts.map +1 -0
  320. package/lib/types/event/EventMessage.d.ts +31 -0
  321. package/lib/types/event/EventMessage.d.ts.map +1 -0
  322. package/lib/types/event/EventType.d.ts +30 -0
  323. package/lib/types/event/EventType.d.ts.map +1 -0
  324. package/lib/types/index.d.ts +41 -0
  325. package/lib/types/index.d.ts.map +1 -0
  326. package/lib/types/interaction_client/BaseInteractionClient.d.ts +59 -0
  327. package/lib/types/interaction_client/BaseInteractionClient.d.ts.map +1 -0
  328. package/lib/types/interaction_client/HybridSpaAuthorizationCodeClient.d.ts +5 -0
  329. package/lib/types/interaction_client/HybridSpaAuthorizationCodeClient.d.ts.map +1 -0
  330. package/lib/types/interaction_client/NativeInteractionClient.d.ts +152 -0
  331. package/lib/types/interaction_client/NativeInteractionClient.d.ts.map +1 -0
  332. package/lib/types/interaction_client/PopupClient.d.ts +107 -0
  333. package/lib/types/interaction_client/PopupClient.d.ts.map +1 -0
  334. package/lib/types/interaction_client/RedirectClient.d.ts +51 -0
  335. package/lib/types/interaction_client/RedirectClient.d.ts.map +1 -0
  336. package/lib/types/interaction_client/SilentAuthCodeClient.d.ts +24 -0
  337. package/lib/types/interaction_client/SilentAuthCodeClient.d.ts.map +1 -0
  338. package/lib/types/interaction_client/SilentCacheClient.d.ts +17 -0
  339. package/lib/types/interaction_client/SilentCacheClient.d.ts.map +1 -0
  340. package/lib/types/interaction_client/SilentIframeClient.d.ts +33 -0
  341. package/lib/types/interaction_client/SilentIframeClient.d.ts.map +1 -0
  342. package/lib/types/interaction_client/SilentRefreshClient.d.ts +32 -0
  343. package/lib/types/interaction_client/SilentRefreshClient.d.ts.map +1 -0
  344. package/lib/types/interaction_client/StandardInteractionClient.d.ts +70 -0
  345. package/lib/types/interaction_client/StandardInteractionClient.d.ts.map +1 -0
  346. package/lib/types/interaction_handler/InteractionHandler.d.ts +34 -0
  347. package/lib/types/interaction_handler/InteractionHandler.d.ts.map +1 -0
  348. package/lib/types/interaction_handler/RedirectHandler.d.ts +33 -0
  349. package/lib/types/interaction_handler/RedirectHandler.d.ts.map +1 -0
  350. package/lib/types/interaction_handler/SilentHandler.d.ts +14 -0
  351. package/lib/types/interaction_handler/SilentHandler.d.ts.map +1 -0
  352. package/lib/types/naa/AccountInfo.d.ts +12 -0
  353. package/lib/types/naa/AccountInfo.d.ts.map +1 -0
  354. package/lib/types/naa/AuthBridge.d.ts +9 -0
  355. package/lib/types/naa/AuthBridge.d.ts.map +1 -0
  356. package/lib/types/naa/AuthResult.d.ts +7 -0
  357. package/lib/types/naa/AuthResult.d.ts.map +1 -0
  358. package/lib/types/naa/BridgeAccountContext.d.ts +13 -0
  359. package/lib/types/naa/BridgeAccountContext.d.ts.map +1 -0
  360. package/lib/types/naa/BridgeCapabilities.d.ts +4 -0
  361. package/lib/types/naa/BridgeCapabilities.d.ts.map +1 -0
  362. package/lib/types/naa/BridgeError.d.ts +10 -0
  363. package/lib/types/naa/BridgeError.d.ts.map +1 -0
  364. package/lib/types/naa/BridgeProxy.d.ts +69 -0
  365. package/lib/types/naa/BridgeProxy.d.ts.map +1 -0
  366. package/lib/types/naa/BridgeRequest.d.ts +8 -0
  367. package/lib/types/naa/BridgeRequest.d.ts.map +1 -0
  368. package/lib/types/naa/BridgeRequestEnvelope.d.ts +13 -0
  369. package/lib/types/naa/BridgeRequestEnvelope.d.ts.map +1 -0
  370. package/lib/types/naa/BridgeResponseEnvelope.d.ts +14 -0
  371. package/lib/types/naa/BridgeResponseEnvelope.d.ts.map +1 -0
  372. package/lib/types/naa/BridgeStatusCode.d.ts +12 -0
  373. package/lib/types/naa/BridgeStatusCode.d.ts.map +1 -0
  374. package/lib/types/naa/IBridgeProxy.d.ts +11 -0
  375. package/lib/types/naa/IBridgeProxy.d.ts.map +1 -0
  376. package/lib/types/naa/InitContext.d.ts +9 -0
  377. package/lib/types/naa/InitContext.d.ts.map +1 -0
  378. package/lib/types/naa/TokenRequest.d.ts +19 -0
  379. package/lib/types/naa/TokenRequest.d.ts.map +1 -0
  380. package/lib/types/naa/TokenResponse.d.ts +14 -0
  381. package/lib/types/naa/TokenResponse.d.ts.map +1 -0
  382. package/lib/types/naa/mapping/NestedAppAuthAdapter.d.ts +36 -0
  383. package/lib/types/naa/mapping/NestedAppAuthAdapter.d.ts.map +1 -0
  384. package/lib/types/navigation/INavigationClient.d.ts +17 -0
  385. package/lib/types/navigation/INavigationClient.d.ts.map +1 -0
  386. package/lib/types/navigation/NavigationClient.d.ts +23 -0
  387. package/lib/types/navigation/NavigationClient.d.ts.map +1 -0
  388. package/lib/types/navigation/NavigationOptions.d.ts +13 -0
  389. package/lib/types/navigation/NavigationOptions.d.ts.map +1 -0
  390. package/lib/types/network/FetchClient.d.ts +27 -0
  391. package/lib/types/network/FetchClient.d.ts.map +1 -0
  392. package/lib/types/operatingcontext/BaseOperatingContext.d.ts +42 -0
  393. package/lib/types/operatingcontext/BaseOperatingContext.d.ts.map +1 -0
  394. package/lib/types/operatingcontext/NestedAppOperatingContext.d.ts +40 -0
  395. package/lib/types/operatingcontext/NestedAppOperatingContext.d.ts.map +1 -0
  396. package/lib/types/operatingcontext/StandardOperatingContext.d.ts +26 -0
  397. package/lib/types/operatingcontext/StandardOperatingContext.d.ts.map +1 -0
  398. package/lib/types/operatingcontext/UnknownOperatingContext.d.ts +26 -0
  399. package/lib/types/operatingcontext/UnknownOperatingContext.d.ts.map +1 -0
  400. package/lib/types/packageMetadata.d.ts +3 -0
  401. package/lib/types/packageMetadata.d.ts.map +1 -0
  402. package/lib/types/request/AuthorizationCodeRequest.d.ts +9 -0
  403. package/lib/types/request/AuthorizationCodeRequest.d.ts.map +1 -0
  404. package/lib/types/request/AuthorizationUrlRequest.d.ts +9 -0
  405. package/lib/types/request/AuthorizationUrlRequest.d.ts.map +1 -0
  406. package/lib/types/request/ClearCacheRequest.d.ts +11 -0
  407. package/lib/types/request/ClearCacheRequest.d.ts.map +1 -0
  408. package/lib/types/request/EndSessionPopupRequest.d.ts +21 -0
  409. package/lib/types/request/EndSessionPopupRequest.d.ts.map +1 -0
  410. package/lib/types/request/EndSessionRequest.d.ts +16 -0
  411. package/lib/types/request/EndSessionRequest.d.ts.map +1 -0
  412. package/lib/types/request/InitializeApplicationRequest.d.ts +9 -0
  413. package/lib/types/request/InitializeApplicationRequest.d.ts.map +1 -0
  414. package/lib/types/request/PopupRequest.d.ts +37 -0
  415. package/lib/types/request/PopupRequest.d.ts.map +1 -0
  416. package/lib/types/request/PopupWindowAttributes.d.ts +16 -0
  417. package/lib/types/request/PopupWindowAttributes.d.ts.map +1 -0
  418. package/lib/types/request/RedirectRequest.d.ts +41 -0
  419. package/lib/types/request/RedirectRequest.d.ts.map +1 -0
  420. package/lib/types/request/RequestHelpers.d.ts +14 -0
  421. package/lib/types/request/RequestHelpers.d.ts.map +1 -0
  422. package/lib/types/request/SilentRequest.d.ts +34 -0
  423. package/lib/types/request/SilentRequest.d.ts.map +1 -0
  424. package/lib/types/request/SsoSilentRequest.d.ts +30 -0
  425. package/lib/types/request/SsoSilentRequest.d.ts.map +1 -0
  426. package/lib/types/response/AuthenticationResult.d.ts +5 -0
  427. package/lib/types/response/AuthenticationResult.d.ts.map +1 -0
  428. package/lib/types/response/ResponseHandler.d.ts +8 -0
  429. package/lib/types/response/ResponseHandler.d.ts.map +1 -0
  430. package/lib/types/telemetry/BrowserPerformanceClient.d.ts +35 -0
  431. package/lib/types/telemetry/BrowserPerformanceClient.d.ts.map +1 -0
  432. package/lib/types/telemetry/BrowserPerformanceMeasurement.d.ts +22 -0
  433. package/lib/types/telemetry/BrowserPerformanceMeasurement.d.ts.map +1 -0
  434. package/lib/types/utils/BrowserConstants.d.ts +181 -0
  435. package/lib/types/utils/BrowserConstants.d.ts.map +1 -0
  436. package/lib/types/utils/BrowserProtocolUtils.d.ts +12 -0
  437. package/lib/types/utils/BrowserProtocolUtils.d.ts.map +1 -0
  438. package/lib/types/utils/BrowserUtils.d.ts +76 -0
  439. package/lib/types/utils/BrowserUtils.d.ts.map +1 -0
  440. package/package.json +14 -13
  441. package/src/app/IPublicClientApplication.ts +17 -17
  442. package/src/app/PublicClientApplication.ts +26 -23
  443. package/src/app/PublicClientNext.ts +22 -19
  444. package/src/broker/nativeBroker/NativeMessageHandler.ts +7 -7
  445. package/src/broker/nativeBroker/NativeRequest.ts +2 -2
  446. package/src/cache/AccountManager.ts +2 -2
  447. package/src/cache/AsyncMemoryStorage.ts +5 -5
  448. package/src/cache/BrowserCacheManager.ts +16 -16
  449. package/src/cache/BrowserStorage.ts +3 -3
  450. package/src/cache/DatabaseStorage.ts +7 -3
  451. package/src/cache/ITokenCache.ts +4 -4
  452. package/src/cache/MemoryStorage.ts +1 -1
  453. package/src/cache/TokenCache.ts +9 -9
  454. package/src/config/Configuration.ts +10 -5
  455. package/src/controllers/ControllerFactory.ts +7 -7
  456. package/src/controllers/IController.ts +17 -17
  457. package/src/controllers/NestedAppAuthController.ts +25 -25
  458. package/src/controllers/StandardController.ts +39 -39
  459. package/src/controllers/UnknownOperatingContextController.ts +21 -21
  460. package/src/crypto/BrowserCrypto.ts +4 -4
  461. package/src/crypto/CryptoOps.ts +10 -6
  462. package/src/crypto/PkceGenerator.ts +4 -4
  463. package/src/crypto/SignedHttpRequest.ts +3 -3
  464. package/src/encode/Base64Decode.ts +1 -1
  465. package/src/error/BrowserAuthError.ts +2 -2
  466. package/src/error/BrowserConfigurationAuthError.ts +2 -2
  467. package/src/error/NativeAuthError.ts +4 -4
  468. package/src/error/NestedAppAuthError.ts +1 -1
  469. package/src/event/EventHandler.ts +5 -5
  470. package/src/event/EventMessage.ts +11 -10
  471. package/src/index.ts +35 -35
  472. package/src/interaction_client/BaseInteractionClient.ts +51 -28
  473. package/src/interaction_client/HybridSpaAuthorizationCodeClient.ts +1 -1
  474. package/src/interaction_client/NativeInteractionClient.ts +32 -29
  475. package/src/interaction_client/PopupClient.ts +95 -109
  476. package/src/interaction_client/RedirectClient.ts +32 -30
  477. package/src/interaction_client/SilentAuthCodeClient.ts +20 -19
  478. package/src/interaction_client/SilentCacheClient.ts +11 -11
  479. package/src/interaction_client/SilentIframeClient.ts +23 -22
  480. package/src/interaction_client/SilentRefreshClient.ts +33 -20
  481. package/src/interaction_client/StandardInteractionClient.ts +62 -38
  482. package/src/interaction_handler/InteractionHandler.ts +5 -5
  483. package/src/interaction_handler/RedirectHandler.ts +7 -7
  484. package/src/interaction_handler/SilentHandler.ts +3 -3
  485. package/src/naa/AuthResult.ts +2 -2
  486. package/src/naa/BridgeError.ts +1 -1
  487. package/src/naa/BridgeProxy.ts +36 -26
  488. package/src/naa/BridgeRequest.ts +1 -1
  489. package/src/naa/BridgeRequestEnvelope.ts +1 -1
  490. package/src/naa/BridgeResponseEnvelope.ts +4 -4
  491. package/src/naa/IBridgeProxy.ts +4 -4
  492. package/src/naa/InitContext.ts +2 -2
  493. package/src/naa/mapping/NestedAppAuthAdapter.ts +12 -12
  494. package/src/navigation/INavigationClient.ts +1 -1
  495. package/src/navigation/NavigationClient.ts +2 -2
  496. package/src/navigation/NavigationOptions.ts +1 -1
  497. package/src/network/FetchClient.ts +3 -3
  498. package/src/operatingcontext/BaseOperatingContext.ts +4 -4
  499. package/src/operatingcontext/NestedAppOperatingContext.ts +14 -9
  500. package/src/operatingcontext/StandardOperatingContext.ts +1 -1
  501. package/src/operatingcontext/UnknownOperatingContext.ts +1 -1
  502. package/src/packageMetadata.ts +1 -1
  503. package/src/request/AuthorizationCodeRequest.ts +1 -1
  504. package/src/request/AuthorizationUrlRequest.ts +1 -1
  505. package/src/request/ClearCacheRequest.ts +1 -1
  506. package/src/request/EndSessionPopupRequest.ts +4 -2
  507. package/src/request/EndSessionRequest.ts +1 -1
  508. package/src/request/PopupRequest.ts +7 -2
  509. package/src/request/RedirectRequest.ts +4 -1
  510. package/src/request/RequestHelpers.ts +4 -4
  511. package/src/request/SilentRequest.ts +2 -2
  512. package/src/request/SsoSilentRequest.ts +4 -1
  513. package/src/response/AuthenticationResult.ts +1 -1
  514. package/src/response/ResponseHandler.ts +4 -4
  515. package/src/telemetry/BrowserPerformanceClient.ts +6 -6
  516. package/src/telemetry/BrowserPerformanceMeasurement.ts +4 -1
  517. package/src/utils/BrowserConstants.ts +3 -3
  518. package/src/utils/BrowserProtocolUtils.ts +2 -2
  519. package/src/utils/BrowserUtils.ts +6 -6
@@ -0,0 +1,41 @@
1
+ /**
2
+ * @packageDocumentation
3
+ * @module @azure/msal-browser
4
+ */
5
+ import * as BrowserUtils from "./utils/BrowserUtils.js";
6
+ export { BrowserUtils };
7
+ export { PublicClientApplication, createNestablePublicClientApplication, createStandardPublicClientApplication, } from "./app/PublicClientApplication.js";
8
+ export { PublicClientNext } from "./app/PublicClientNext.js";
9
+ export { IController } from "./controllers/IController.js";
10
+ export { Configuration, BrowserAuthOptions, CacheOptions, BrowserSystemOptions, BrowserTelemetryOptions, BrowserConfiguration, DEFAULT_IFRAME_TIMEOUT_MS, } from "./config/Configuration.js";
11
+ export { InteractionType, InteractionStatus, BrowserCacheLocation, WrapperSKU, ApiId, CacheLookupPolicy, } from "./utils/BrowserConstants.js";
12
+ export { BrowserAuthError, BrowserAuthErrorMessage, BrowserAuthErrorCodes, } from "./error/BrowserAuthError.js";
13
+ export { BrowserConfigurationAuthError, BrowserConfigurationAuthErrorCodes, BrowserConfigurationAuthErrorMessage, } from "./error/BrowserConfigurationAuthError.js";
14
+ export { IPublicClientApplication, stubbedPublicClientApplication, } from "./app/IPublicClientApplication.js";
15
+ export { INavigationClient } from "./navigation/INavigationClient.js";
16
+ export { NavigationClient } from "./navigation/NavigationClient.js";
17
+ export { NavigationOptions } from "./navigation/NavigationOptions.js";
18
+ export { PopupRequest } from "./request/PopupRequest.js";
19
+ export { RedirectRequest } from "./request/RedirectRequest.js";
20
+ export { SilentRequest } from "./request/SilentRequest.js";
21
+ export { SsoSilentRequest } from "./request/SsoSilentRequest.js";
22
+ export { EndSessionRequest } from "./request/EndSessionRequest.js";
23
+ export { EndSessionPopupRequest } from "./request/EndSessionPopupRequest.js";
24
+ export { AuthorizationUrlRequest } from "./request/AuthorizationUrlRequest.js";
25
+ export { AuthorizationCodeRequest } from "./request/AuthorizationCodeRequest.js";
26
+ export { AuthenticationResult } from "./response/AuthenticationResult.js";
27
+ export { ClearCacheRequest } from "./request/ClearCacheRequest.js";
28
+ export { InitializeApplicationRequest } from "./request/InitializeApplicationRequest.js";
29
+ export { LoadTokenOptions } from "./cache/TokenCache.js";
30
+ export { ITokenCache } from "./cache/ITokenCache.js";
31
+ export { MemoryStorage } from "./cache/MemoryStorage.js";
32
+ export { BrowserStorage } from "./cache/BrowserStorage.js";
33
+ export { EventMessage, EventPayload, EventError, EventCallbackFunction, EventMessageUtils, PopupEvent, } from "./event/EventMessage.js";
34
+ export { EventType } from "./event/EventType.js";
35
+ export { SignedHttpRequest, SignedHttpRequestOptions, } from "./crypto/SignedHttpRequest.js";
36
+ export { PopupWindowAttributes, PopupSize, PopupPosition, } from "./request/PopupWindowAttributes.js";
37
+ export { BrowserPerformanceClient } from "./telemetry/BrowserPerformanceClient.js";
38
+ export { BrowserPerformanceMeasurement } from "./telemetry/BrowserPerformanceMeasurement.js";
39
+ export { AuthenticationScheme, AccountInfo, AccountEntity, IdTokenClaims, AuthError, AuthErrorCodes, AuthErrorMessage, ClientAuthError, ClientAuthErrorCodes, ClientAuthErrorMessage, ClientConfigurationError, ClientConfigurationErrorCodes, ClientConfigurationErrorMessage, InteractionRequiredAuthError, InteractionRequiredAuthErrorCodes, InteractionRequiredAuthErrorMessage, ServerError, INetworkModule, NetworkResponse, NetworkRequestOptions, ILoggerCallback, Logger, LogLevel, ProtocolMode, ServerResponseType, PromptValue, ExternalTokenResponse, StringUtils, UrlString, JsonWebTokenTypes, AzureCloudInstance, AzureCloudOptions, AuthenticationHeaderParser, OIDC_DEFAULT_SCOPES, PerformanceCallbackFunction, PerformanceEvent, PerformanceEvents, InProgressPerformanceEvent, TenantProfile, IPerformanceClient, StubPerformanceClient, } from "@azure/msal-common/browser";
40
+ export { version } from "./packageMetadata.js";
41
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"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,MAAM,EACN,QAAQ,EAER,YAAY,EACZ,kBAAkB,EAClB,WAAW,EAEX,qBAAqB,EAErB,WAAW,EACX,SAAS,EACT,iBAAiB,EAEjB,kBAAkB,EAClB,iBAAiB,EACjB,0BAA0B,EAC1B,mBAAmB,EACnB,2BAA2B,EAC3B,gBAAgB,EAChB,iBAAiB,EAEjB,0BAA0B,EAC1B,aAAa,EACb,kBAAkB,EAClB,qBAAqB,GACxB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,59 @@
1
+ import { ICrypto, INetworkModule, Logger, AccountInfo, ServerTelemetryManager, Authority, IPerformanceClient, AzureCloudOptions, StringDict } from "@azure/msal-common/browser";
2
+ import { BrowserConfiguration } from "../config/Configuration.js";
3
+ import { BrowserCacheManager } from "../cache/BrowserCacheManager.js";
4
+ import { EventHandler } from "../event/EventHandler.js";
5
+ import { EndSessionRequest } from "../request/EndSessionRequest.js";
6
+ import { RedirectRequest } from "../request/RedirectRequest.js";
7
+ import { PopupRequest } from "../request/PopupRequest.js";
8
+ import { SsoSilentRequest } from "../request/SsoSilentRequest.js";
9
+ import { INavigationClient } from "../navigation/INavigationClient.js";
10
+ import { NativeMessageHandler } from "../broker/nativeBroker/NativeMessageHandler.js";
11
+ import { AuthenticationResult } from "../response/AuthenticationResult.js";
12
+ import { ClearCacheRequest } from "../request/ClearCacheRequest.js";
13
+ export declare abstract class BaseInteractionClient {
14
+ protected config: BrowserConfiguration;
15
+ protected browserStorage: BrowserCacheManager;
16
+ protected browserCrypto: ICrypto;
17
+ protected networkClient: INetworkModule;
18
+ protected logger: Logger;
19
+ protected eventHandler: EventHandler;
20
+ protected navigationClient: INavigationClient;
21
+ protected nativeMessageHandler: NativeMessageHandler | undefined;
22
+ protected correlationId: string;
23
+ protected performanceClient: IPerformanceClient;
24
+ constructor(config: BrowserConfiguration, storageImpl: BrowserCacheManager, browserCrypto: ICrypto, logger: Logger, eventHandler: EventHandler, navigationClient: INavigationClient, performanceClient: IPerformanceClient, nativeMessageHandler?: NativeMessageHandler, correlationId?: string);
25
+ abstract acquireToken(request: RedirectRequest | PopupRequest | SsoSilentRequest): Promise<AuthenticationResult | void>;
26
+ abstract logout(request: EndSessionRequest | ClearCacheRequest | undefined): Promise<void>;
27
+ protected clearCacheOnLogout(account?: AccountInfo | null): Promise<void>;
28
+ /**
29
+ *
30
+ * Use to get the redirect uri configured in MSAL or null.
31
+ * @param requestRedirectUri
32
+ * @returns Redirect URL
33
+ *
34
+ */
35
+ getRedirectUri(requestRedirectUri?: string): string;
36
+ /**
37
+ *
38
+ * @param apiId
39
+ * @param correlationId
40
+ * @param forceRefresh
41
+ */
42
+ protected initializeServerTelemetryManager(apiId: number, forceRefresh?: boolean): ServerTelemetryManager;
43
+ /**
44
+ * Used to get a discovered version of the default authority.
45
+ * @param params {
46
+ * requestAuthority?: string;
47
+ * requestAzureCloudOptions?: AzureCloudOptions;
48
+ * requestExtraQueryParameters?: StringDict;
49
+ * account?: AccountInfo;
50
+ * }
51
+ */
52
+ protected getDiscoveredAuthority(params: {
53
+ requestAuthority?: string;
54
+ requestAzureCloudOptions?: AzureCloudOptions;
55
+ requestExtraQueryParameters?: StringDict;
56
+ account?: AccountInfo;
57
+ }): Promise<Authority>;
58
+ }
59
+ //# sourceMappingURL=BaseInteractionClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseInteractionClient.d.ts","sourceRoot":"","sources":["../../../src/interaction_client/BaseInteractionClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,OAAO,EACP,cAAc,EACd,MAAM,EACN,WAAW,EAGX,sBAAsB,EAItB,SAAS,EAGT,kBAAkB,EAElB,iBAAiB,EAEjB,UAAU,EACb,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO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,EAAE,eAAe,GAAG,YAAY,GAAG,gBAAgB,GAC3D,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IAEvC,QAAQ,CAAC,MAAM,CACX,OAAO,EAAE,iBAAiB,GAAG,iBAAiB,GAAG,SAAS,GAC3D,OAAO,CAAC,IAAI,CAAC;cAEA,kBAAkB,CAC9B,OAAO,CAAC,EAAE,WAAW,GAAG,IAAI,GAC7B,OAAO,CAAC,IAAI,CAAC;IA2ChB;;;;;;OAMG;IACH,cAAc,CAAC,kBAAkB,CAAC,EAAE,MAAM,GAAG,MAAM;IAYnD;;;;;OAKG;IACH,SAAS,CAAC,gCAAgC,CACtC,KAAK,EAAE,MAAM,EACb,YAAY,CAAC,EAAE,OAAO,GACvB,sBAAsB;IAiBzB;;;;;;;;OAQG;cACa,sBAAsB,CAAC,MAAM,EAAE;QAC3C,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,wBAAwB,CAAC,EAAE,iBAAiB,CAAC;QAC7C,2BAA2B,CAAC,EAAE,UAAU,CAAC;QACzC,OAAO,CAAC,EAAE,WAAW,CAAC;KACzB,GAAG,OAAO,CAAC,SAAS,CAAC;CAmEzB"}
@@ -0,0 +1,5 @@
1
+ import { AuthorizationCodeClient, ClientConfiguration } from "@azure/msal-common/browser";
2
+ export declare class HybridSpaAuthorizationCodeClient extends AuthorizationCodeClient {
3
+ constructor(config: ClientConfiguration);
4
+ }
5
+ //# sourceMappingURL=HybridSpaAuthorizationCodeClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HybridSpaAuthorizationCodeClient.d.ts","sourceRoot":"","sources":["../../../src/interaction_client/HybridSpaAuthorizationCodeClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,uBAAuB,EACvB,mBAAmB,EACtB,MAAM,4BAA4B,CAAC;AAEpC,qBAAa,gCAAiC,SAAQ,uBAAuB;gBAC7D,MAAM,EAAE,mBAAmB;CAI1C"}
@@ -0,0 +1,152 @@
1
+ import { Logger, ICrypto, AccountEntity, ScopeSet, IPerformanceClient, TokenClaims, InProgressPerformanceEvent, ServerTelemetryManager } from "@azure/msal-common/browser";
2
+ import { BaseInteractionClient } from "./BaseInteractionClient.js";
3
+ import { BrowserConfiguration } from "../config/Configuration.js";
4
+ import { BrowserCacheManager } from "../cache/BrowserCacheManager.js";
5
+ import { EventHandler } from "../event/EventHandler.js";
6
+ import { PopupRequest } from "../request/PopupRequest.js";
7
+ import { SilentRequest } from "../request/SilentRequest.js";
8
+ import { SsoSilentRequest } from "../request/SsoSilentRequest.js";
9
+ import { NativeMessageHandler } from "../broker/nativeBroker/NativeMessageHandler.js";
10
+ import { ApiId } from "../utils/BrowserConstants.js";
11
+ import { NativeTokenRequest } from "../broker/nativeBroker/NativeRequest.js";
12
+ import { MATS, NativeResponse } from "../broker/nativeBroker/NativeResponse.js";
13
+ import { RedirectRequest } from "../request/RedirectRequest.js";
14
+ import { INavigationClient } from "../navigation/INavigationClient.js";
15
+ import { SilentCacheClient } from "./SilentCacheClient.js";
16
+ import { AuthenticationResult } from "../response/AuthenticationResult.js";
17
+ export declare class NativeInteractionClient extends BaseInteractionClient {
18
+ protected apiId: ApiId;
19
+ protected accountId: string;
20
+ protected nativeMessageHandler: NativeMessageHandler;
21
+ protected silentCacheClient: SilentCacheClient;
22
+ protected nativeStorageManager: BrowserCacheManager;
23
+ protected skus: string;
24
+ protected serverTelemetryManager: ServerTelemetryManager;
25
+ constructor(config: BrowserConfiguration, browserStorage: BrowserCacheManager, browserCrypto: ICrypto, logger: Logger, eventHandler: EventHandler, navigationClient: INavigationClient, apiId: ApiId, performanceClient: IPerformanceClient, provider: NativeMessageHandler, accountId: string, nativeStorageImpl: BrowserCacheManager, correlationId?: string);
26
+ /**
27
+ * Adds SKUs to request extra query parameters
28
+ * @param request {NativeTokenRequest}
29
+ * @private
30
+ */
31
+ private addRequestSKUs;
32
+ /**
33
+ * Acquire token from native platform via browser extension
34
+ * @param request
35
+ */
36
+ acquireToken(request: PopupRequest | SilentRequest | SsoSilentRequest): Promise<AuthenticationResult>;
37
+ /**
38
+ * Creates silent flow request
39
+ * @param request
40
+ * @param cachedAccount
41
+ * @returns CommonSilentFlowRequest
42
+ */
43
+ private createSilentCacheRequest;
44
+ /**
45
+ * Fetches the tokens from the cache if un-expired
46
+ * @param nativeAccountId
47
+ * @param request
48
+ * @returns authenticationResult
49
+ */
50
+ protected acquireTokensFromCache(nativeAccountId: string, request: NativeTokenRequest): Promise<AuthenticationResult>;
51
+ /**
52
+ * Acquires a token from native platform then redirects to the redirectUri instead of returning the response
53
+ * @param {RedirectRequest} request
54
+ * @param {InProgressPerformanceEvent} rootMeasurement
55
+ */
56
+ acquireTokenRedirect(request: RedirectRequest, rootMeasurement: InProgressPerformanceEvent): Promise<void>;
57
+ /**
58
+ * If the previous page called native platform for a token using redirect APIs, send the same request again and return the response
59
+ * @param performanceClient {IPerformanceClient?}
60
+ * @param correlationId {string?} correlation identifier
61
+ */
62
+ handleRedirectPromise(performanceClient?: IPerformanceClient, correlationId?: string): Promise<AuthenticationResult | null>;
63
+ /**
64
+ * Logout from native platform via browser extension
65
+ * @param request
66
+ */
67
+ logout(): Promise<void>;
68
+ /**
69
+ * Transform response from native platform into AuthenticationResult object which will be returned to the end user
70
+ * @param response
71
+ * @param request
72
+ * @param reqTimestamp
73
+ */
74
+ protected handleNativeResponse(response: NativeResponse, request: NativeTokenRequest, reqTimestamp: number): Promise<AuthenticationResult>;
75
+ /**
76
+ * creates an homeAccountIdentifier for the account
77
+ * @param response
78
+ * @param idTokenObj
79
+ * @returns
80
+ */
81
+ protected createHomeAccountIdentifier(response: NativeResponse, idTokenClaims: TokenClaims): string;
82
+ /**
83
+ * Helper to generate scopes
84
+ * @param response
85
+ * @param request
86
+ * @returns
87
+ */
88
+ generateScopes(response: NativeResponse, request: NativeTokenRequest): ScopeSet;
89
+ /**
90
+ * If PoP token is requesred, records the PoP token if returned from the WAM, else generates one in the browser
91
+ * @param request
92
+ * @param response
93
+ */
94
+ generatePopAccessToken(response: NativeResponse, request: NativeTokenRequest): Promise<string>;
95
+ /**
96
+ * Generates authentication result
97
+ * @param response
98
+ * @param request
99
+ * @param idTokenObj
100
+ * @param accountEntity
101
+ * @param authority
102
+ * @param reqTimestamp
103
+ * @returns
104
+ */
105
+ protected generateAuthenticationResult(response: NativeResponse, request: NativeTokenRequest, idTokenClaims: TokenClaims, accountEntity: AccountEntity, authority: string, reqTimestamp: number): Promise<AuthenticationResult>;
106
+ /**
107
+ * cache the account entity in browser storage
108
+ * @param accountEntity
109
+ */
110
+ cacheAccount(accountEntity: AccountEntity): void;
111
+ /**
112
+ * Stores the access_token and id_token in inmemory storage
113
+ * @param response
114
+ * @param request
115
+ * @param homeAccountIdentifier
116
+ * @param idTokenObj
117
+ * @param responseAccessToken
118
+ * @param tenantId
119
+ * @param reqTimestamp
120
+ */
121
+ cacheNativeTokens(response: NativeResponse, request: NativeTokenRequest, homeAccountIdentifier: string, idTokenClaims: TokenClaims, responseAccessToken: string, tenantId: string, reqTimestamp: number): void;
122
+ protected addTelemetryFromNativeResponse(response: NativeResponse): MATS | null;
123
+ /**
124
+ * Validates native platform response before processing
125
+ * @param response
126
+ */
127
+ private validateNativeResponse;
128
+ /**
129
+ * Gets MATS telemetry from native response
130
+ * @param response
131
+ * @returns
132
+ */
133
+ private getMATSFromResponse;
134
+ /**
135
+ * Returns whether or not response came from native cache
136
+ * @param response
137
+ * @returns
138
+ */
139
+ protected isResponseFromCache(mats: MATS): boolean;
140
+ /**
141
+ * Translates developer provided request object into NativeRequest object
142
+ * @param request
143
+ */
144
+ protected initializeNativeRequest(request: PopupRequest | SsoSilentRequest): Promise<NativeTokenRequest>;
145
+ /**
146
+ * Handles extra broker request parameters
147
+ * @param request {NativeTokenRequest}
148
+ * @private
149
+ */
150
+ private handleExtraBrokerParams;
151
+ }
152
+ //# sourceMappingURL=NativeInteractionClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeInteractionClient.d.ts","sourceRoot":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ient, Logger, ICrypto } from "@azure/msal-common/browser";
2
+ import { StandardInteractionClient } from "./StandardInteractionClient.js";
3
+ import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest.js";
4
+ import { PopupRequest } from "../request/PopupRequest.js";
5
+ import { NativeMessageHandler } from "../broker/nativeBroker/NativeMessageHandler.js";
6
+ import { INavigationClient } from "../navigation/INavigationClient.js";
7
+ import { EventHandler } from "../event/EventHandler.js";
8
+ import { BrowserCacheManager } from "../cache/BrowserCacheManager.js";
9
+ import { BrowserConfiguration } from "../config/Configuration.js";
10
+ import { PopupWindowAttributes } from "../request/PopupWindowAttributes.js";
11
+ import { AuthenticationResult } from "../response/AuthenticationResult.js";
12
+ export type PopupParams = {
13
+ popup?: Window | null;
14
+ popupName: string;
15
+ popupWindowAttributes: PopupWindowAttributes;
16
+ popupWindowParent: Window;
17
+ };
18
+ export declare class PopupClient extends StandardInteractionClient {
19
+ private currentWindow;
20
+ protected nativeStorage: BrowserCacheManager;
21
+ constructor(config: BrowserConfiguration, storageImpl: BrowserCacheManager, browserCrypto: ICrypto, logger: Logger, eventHandler: EventHandler, navigationClient: INavigationClient, performanceClient: IPerformanceClient, nativeStorageImpl: BrowserCacheManager, nativeMessageHandler?: NativeMessageHandler, correlationId?: string);
22
+ /**
23
+ * Acquires tokens by opening a popup window to the /authorize endpoint of the authority
24
+ * @param request
25
+ */
26
+ acquireToken(request: PopupRequest): Promise<AuthenticationResult>;
27
+ /**
28
+ * Clears local cache for the current user then opens a popup window prompting the user to sign-out of the server
29
+ * @param logoutRequest
30
+ */
31
+ logout(logoutRequest?: EndSessionPopupRequest): Promise<void>;
32
+ /**
33
+ * Helper which obtains an access_token for your API via opening a popup window in the user's browser
34
+ * @param validRequest
35
+ * @param popupName
36
+ * @param popup
37
+ * @param popupWindowAttributes
38
+ *
39
+ * @returns A promise that is fulfilled when this function has completed, or rejected if an error was raised.
40
+ */
41
+ protected acquireTokenPopupAsync(request: PopupRequest, popupParams: PopupParams): Promise<AuthenticationResult>;
42
+ /**
43
+ *
44
+ * @param validRequest
45
+ * @param popupName
46
+ * @param requestAuthority
47
+ * @param popup
48
+ * @param mainWindowRedirectUri
49
+ * @param popupWindowAttributes
50
+ */
51
+ protected logoutPopupAsync(validRequest: CommonEndSessionRequest, popupParams: PopupParams, requestAuthority?: string, mainWindowRedirectUri?: string): Promise<void>;
52
+ /**
53
+ * Opens a popup window with given request Url.
54
+ * @param requestUrl
55
+ */
56
+ initiateAuthRequest(requestUrl: string, params: PopupParams): Window;
57
+ /**
58
+ * Monitors a window until it loads a url with the same origin.
59
+ * @param popupWindow - window that is being monitored
60
+ * @param timeout - timeout for processing hash once popup is redirected back to application
61
+ */
62
+ monitorPopupForHash(popupWindow: Window, popupWindowParent: Window): Promise<string>;
63
+ /**
64
+ * @hidden
65
+ *
66
+ * Configures popup window for login.
67
+ *
68
+ * @param urlNavigate
69
+ * @param title
70
+ * @param popUpWidth
71
+ * @param popUpHeight
72
+ * @param popupWindowAttributes
73
+ * @ignore
74
+ * @hidden
75
+ */
76
+ openPopup(urlNavigate: string, popupParams: PopupParams): Window;
77
+ /**
78
+ * Helper function to set popup window dimensions and position
79
+ * @param urlNavigate
80
+ * @param popupName
81
+ * @param popupWindowAttributes
82
+ * @returns
83
+ */
84
+ openSizedPopup(urlNavigate: string, { popupName, popupWindowAttributes, popupWindowParent }: PopupParams): Window | null;
85
+ /**
86
+ * Event callback to unload main window.
87
+ */
88
+ unloadWindow(e: Event): void;
89
+ /**
90
+ * Closes popup, removes any state vars created during popup calls.
91
+ * @param popupWindow
92
+ */
93
+ cleanPopup(popupWindow: Window, popupWindowParent: Window): void;
94
+ /**
95
+ * Generates the name for the popup based on the client id and request
96
+ * @param clientId
97
+ * @param request
98
+ */
99
+ generatePopupName(scopes: Array<string>, authority: string): string;
100
+ /**
101
+ * Generates the name for the popup based on the client id and request for logouts
102
+ * @param clientId
103
+ * @param request
104
+ */
105
+ generateLogoutPopupName(request: CommonEndSessionRequest): string;
106
+ }
107
+ //# sourceMappingURL=PopupClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PopupClient.d.ts","sourceRoot":"","sources":["../../../src/interaction_client/PopupClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAIH,uBAAuB,EAMvB,kBAAkB,EAClB,MAAM,EACN,OAAO,EAKV,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAO3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAG9E,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AAKtF,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAElE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAE5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAG3E,MAAM,MAAM,WAAW,GAAG;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,iBAAiB,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,qBAAa,WAAY,SAAQ,yBAAyB;IACtD,OAAO,CAAC,aAAa,CAAqB;IAC1C,SAAS,CAAC,aAAa,EAAE,mBAAmB,CAAC;gBAGzC,MAAM,EAAE,oBAAoB,EAC5B,WAAW,EAAE,mBAAmB,EAChC,aAAa,EAAE,OAAO,EACtB,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,YAAY,EAC1B,gBAAgB,EAAE,iBAAiB,EACnC,iBAAiB,EA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,MAAM,CAAC,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM;IAMnE;;;;OAIG;IACH,uBAAuB,CAAC,OAAO,EAAE,uBAAuB,GAAG,MAAM;CAIpE"}
@@ -0,0 +1,51 @@
1
+ import { ServerTelemetryManager, ServerAuthorizationCodeResponse, ICrypto, Logger, IPerformanceClient, InProgressPerformanceEvent } from "@azure/msal-common/browser";
2
+ import { StandardInteractionClient } from "./StandardInteractionClient.js";
3
+ import { EndSessionRequest } from "../request/EndSessionRequest.js";
4
+ import { RedirectRequest } from "../request/RedirectRequest.js";
5
+ import { NativeMessageHandler } from "../broker/nativeBroker/NativeMessageHandler.js";
6
+ import { BrowserConfiguration } from "../config/Configuration.js";
7
+ import { BrowserCacheManager } from "../cache/BrowserCacheManager.js";
8
+ import { EventHandler } from "../event/EventHandler.js";
9
+ import { INavigationClient } from "../navigation/INavigationClient.js";
10
+ import { AuthenticationResult } from "../response/AuthenticationResult.js";
11
+ export declare class RedirectClient extends StandardInteractionClient {
12
+ protected nativeStorage: BrowserCacheManager;
13
+ constructor(config: BrowserConfiguration, storageImpl: BrowserCacheManager, browserCrypto: ICrypto, logger: Logger, eventHandler: EventHandler, navigationClient: INavigationClient, performanceClient: IPerformanceClient, nativeStorageImpl: BrowserCacheManager, nativeMessageHandler?: NativeMessageHandler, correlationId?: string);
14
+ /**
15
+ * Redirects the page to the /authorize endpoint of the IDP
16
+ * @param request
17
+ */
18
+ acquireToken(request: RedirectRequest): Promise<void>;
19
+ /**
20
+ * Checks if navigateToLoginRequestUrl is set, and:
21
+ * - if true, performs logic to cache and navigate
22
+ * - if false, handles hash string and parses response
23
+ * @param hash {string} url hash
24
+ * @param parentMeasurement {InProgressPerformanceEvent} parent measurement
25
+ */
26
+ handleRedirectPromise(hash: string | undefined, parentMeasurement: InProgressPerformanceEvent): Promise<AuthenticationResult | null>;
27
+ /**
28
+ * Gets the response hash for a redirect request
29
+ * Returns null if interactionType in the state value is not "redirect" or the hash does not contain known properties
30
+ * @param hash
31
+ */
32
+ protected getRedirectResponse(userProvidedResponse: string): [ServerAuthorizationCodeResponse | null, string];
33
+ /**
34
+ * Checks if hash exists and handles in window.
35
+ * @param hash
36
+ * @param state
37
+ */
38
+ protected handleResponse(serverParams: ServerAuthorizationCodeResponse, serverTelemetryManager: ServerTelemetryManager): Promise<AuthenticationResult>;
39
+ /**
40
+ * Use to log out the current user, and redirect the user to the postLogoutRedirectUri.
41
+ * Default behaviour is to redirect the user to `window.location.href`.
42
+ * @param logoutRequest
43
+ */
44
+ logout(logoutRequest?: EndSessionRequest): Promise<void>;
45
+ /**
46
+ * Use to get the redirectStartPage either from request or use current window
47
+ * @param requestStartPage
48
+ */
49
+ protected getRedirectStartPage(requestStartPage?: string): string;
50
+ }
51
+ //# sourceMappingURL=RedirectClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RedirectClient.d.ts","sourceRoot":"","sources":["../../../src/interaction_client/RedirectClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAKH,sBAAsB,EAGtB,+BAA+B,EAE/B,OAAO,EACP,MAAM,EACN,kBAAkB,EAMlB,0BAA0B,EAC7B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAQ3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAOpE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,OAAO,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AACtF,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAEvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAG3E,qBAAa,cAAe,SAAQ,yBAAyB;IACzD,SAAS,CAAC,aAAa,EAAE,mBAAmB,CAAC;gBAGzC,MAAM,EAAE,oBAAoB,EAC5B,WAAW,EAAE,mBAAmB,EAChC,aAAa,EAAE,OAAO,EACtB,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,YAAY,EAC1B,gBAAgB,EAAE,iBAAiB,EACnC,iBAAiB,EAAE,kBAAkB,EACrC,iBAAiB,EAAE,mBAAmB,EACtC,oBAAoB,CAAC,EAAE,oBAAoB,EAC3C,aAAa,CAAC,EAAE,MAAM;IAgB1B;;;OAGG;IACG,YAAY,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IA4G3D;;;;;;OAMG;IACG,qBAAqB,CACvB,IAAI,oBAAa,EACjB,iBAAiB,EAAE,0BAA0B,GAC9C,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IA8IvC;;;;OAIG;IACH,SAAS,CAAC,mBAAmB,CACzB,oBAAoB,EAAE,MAAM,GAC7B,CAAC,+BAA+B,GAAG,IAAI,EAAE,MAAM,CAAC;IA4DnD;;;;OAIG;cACa,cAAc,CAC1B,YAAY,EAAE,+BAA+B,EAC7C,sBAAsB,EAAE,sBAAsB,GAC/C,OAAO,CAAC,oBAAoB,CAAC;IA8EhC;;;;OAIG;IACG,MAAM,CAAC,aAAa,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAgI9D;;;OAGG;IACH,SAAS,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM;CAOpE"}
@@ -0,0 +1,24 @@
1
+ import { ICrypto, Logger, IPerformanceClient } from "@azure/msal-common/browser";
2
+ import { StandardInteractionClient } from "./StandardInteractionClient.js";
3
+ import { BrowserConfiguration } from "../config/Configuration.js";
4
+ import { BrowserCacheManager } from "../cache/BrowserCacheManager.js";
5
+ import { EventHandler } from "../event/EventHandler.js";
6
+ import { INavigationClient } from "../navigation/INavigationClient.js";
7
+ import { ApiId } from "../utils/BrowserConstants.js";
8
+ import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest.js";
9
+ import { NativeMessageHandler } from "../broker/nativeBroker/NativeMessageHandler.js";
10
+ import { AuthenticationResult } from "../response/AuthenticationResult.js";
11
+ export declare class SilentAuthCodeClient extends StandardInteractionClient {
12
+ private apiId;
13
+ constructor(config: BrowserConfiguration, storageImpl: BrowserCacheManager, browserCrypto: ICrypto, logger: Logger, eventHandler: EventHandler, navigationClient: INavigationClient, apiId: ApiId, performanceClient: IPerformanceClient, nativeMessageHandler?: NativeMessageHandler, correlationId?: string);
14
+ /**
15
+ * Acquires a token silently by redeeming an authorization code against the /token endpoint
16
+ * @param request
17
+ */
18
+ acquireToken(request: AuthorizationCodeRequest): Promise<AuthenticationResult>;
19
+ /**
20
+ * Currently Unsupported
21
+ */
22
+ logout(): Promise<void>;
23
+ }
24
+ //# sourceMappingURL=SilentAuthCodeClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SilentAuthCodeClient.d.ts","sourceRoot":"","sources":["../../../src/interaction_client/SilentAuthCodeClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,OAAO,EACP,MAAM,EAGN,kBAAkB,EAGrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAE3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAKvE,OAAO,EAAmB,KAAK,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAElF,OAAO,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AACtF,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAG3E,qBAAa,oBAAqB,SAAQ,yBAAyB;IAC/D,OAAO,CAAC,KAAK,CAAQ;gBAGjB,MAAM,EAAE,oBAAoB,EAC5B,WAAW,EAAE,mBAAmB,EAChC,aAAa,EAAE,OAAO,EACtB,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,YAAY,EAC1B,gBAAgB,EAAE,iBAAiB,EACnC,KAAK,EAAE,KAAK,EACZ,iBAAiB,EAAE,kBAAkB,EACrC,oBAAoB,CAAC,EAAE,oBAAoB,EAC3C,aAAa,CAAC,EAAE,MAAM;IAgB1B;;;OAGG;IACG,YAAY,CACd,OAAO,EAAE,wBAAwB,GAClC,OAAO,CAAC,oBAAoB,CAAC;IAmFhC;;OAEG;IACH,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;CAQ1B"}
@@ -0,0 +1,17 @@
1
+ import { StandardInteractionClient } from "./StandardInteractionClient.js";
2
+ import { CommonSilentFlowRequest } from "@azure/msal-common/browser";
3
+ import { AuthenticationResult } from "../response/AuthenticationResult.js";
4
+ import { ClearCacheRequest } from "../request/ClearCacheRequest.js";
5
+ export declare class SilentCacheClient extends StandardInteractionClient {
6
+ /**
7
+ * Returns unexpired tokens from the cache, if available
8
+ * @param silentRequest
9
+ */
10
+ acquireToken(silentRequest: CommonSilentFlowRequest): Promise<AuthenticationResult>;
11
+ /**
12
+ * API to silenty clear the browser cache.
13
+ * @param logoutRequest
14
+ */
15
+ logout(logoutRequest?: ClearCacheRequest): Promise<void>;
16
+ }
17
+ //# sourceMappingURL=SilentCacheClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SilentCacheClient.d.ts","sourceRoot":"","sources":["../../../src/interaction_client/SilentCacheClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EACH,uBAAuB,EAI1B,MAAM,4BAA4B,CAAC;AAMpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAEpE,qBAAa,iBAAkB,SAAQ,yBAAyB;IAC5D;;;OAGG;IACG,YAAY,CACd,aAAa,EAAE,uBAAuB,GACvC,OAAO,CAAC,oBAAoB,CAAC;IA0DhC;;;OAGG;IACH,MAAM,CAAC,aAAa,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;CAK3D"}
@@ -0,0 +1,33 @@
1
+ import { ICrypto, Logger, AuthorizationCodeClient, IPerformanceClient } from "@azure/msal-common/browser";
2
+ import { StandardInteractionClient } from "./StandardInteractionClient.js";
3
+ import { AuthorizationUrlRequest } from "../request/AuthorizationUrlRequest.js";
4
+ import { BrowserConfiguration } from "../config/Configuration.js";
5
+ import { BrowserCacheManager } from "../cache/BrowserCacheManager.js";
6
+ import { EventHandler } from "../event/EventHandler.js";
7
+ import { INavigationClient } from "../navigation/INavigationClient.js";
8
+ import { ApiId } from "../utils/BrowserConstants.js";
9
+ import { SsoSilentRequest } from "../request/SsoSilentRequest.js";
10
+ import { NativeMessageHandler } from "../broker/nativeBroker/NativeMessageHandler.js";
11
+ import { AuthenticationResult } from "../response/AuthenticationResult.js";
12
+ export declare class SilentIframeClient extends StandardInteractionClient {
13
+ protected apiId: ApiId;
14
+ protected nativeStorage: BrowserCacheManager;
15
+ constructor(config: BrowserConfiguration, storageImpl: BrowserCacheManager, browserCrypto: ICrypto, logger: Logger, eventHandler: EventHandler, navigationClient: INavigationClient, apiId: ApiId, performanceClient: IPerformanceClient, nativeStorageImpl: BrowserCacheManager, nativeMessageHandler?: NativeMessageHandler, correlationId?: string);
16
+ /**
17
+ * Acquires a token silently by opening a hidden iframe to the /authorize endpoint with prompt=none or prompt=no_session
18
+ * @param request
19
+ */
20
+ acquireToken(request: SsoSilentRequest): Promise<AuthenticationResult>;
21
+ /**
22
+ * Currently Unsupported
23
+ */
24
+ logout(): Promise<void>;
25
+ /**
26
+ * Helper which acquires an authorization code silently using a hidden iframe from given url
27
+ * using the scopes requested as part of the id, and exchanges the code for a set of OAuth tokens.
28
+ * @param navigateUrl
29
+ * @param userRequestScopes
30
+ */
31
+ protected silentTokenHelper(authClient: AuthorizationCodeClient, silentRequest: AuthorizationUrlRequest): Promise<AuthenticationResult>;
32
+ }
33
+ //# sourceMappingURL=SilentIframeClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SilentIframeClient.d.ts","sourceRoot":"","sources":["../../../src/interaction_client/SilentIframeClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,OAAO,EACP,MAAM,EAGN,uBAAuB,EAGvB,kBAAkB,EAIrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAKvE,OAAO,EAEH,KAAK,EAER,MAAM,8BAA8B,CAAC;AAKtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AAEtF,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAK3E,qBAAa,kBAAmB,SAAQ,yBAAyB;IAC7D,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC;IACvB,SAAS,CAAC,aAAa,EAAE,mBAAmB,CAAC;gBAGzC,MAAM,EAAE,oBAAoB,EAC5B,WAAW,EAAE,mBAAmB,EAChC,aAAa,EAAE,OAAO,EACtB,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,YAAY,EAC1B,gBAAgB,EAAE,iBAAiB,EACnC,KAAK,EAAE,KAAK,EACZ,iBAAiB,EAAE,kBAAkB,EACrC,iBAAiB,EAAE,mBAAmB,EACtC,oBAAoB,CAAC,EAAE,oBAAoB,EAC3C,aAAa,CAAC,EAAE,MAAM;IAiB1B;;;OAGG;IACG,YAAY,CACd,OAAO,EAAE,gBAAgB,GAC1B,OAAO,CAAC,oBAAoB,CAAC;IA+GhC;;OAEG;IACH,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IASvB;;;;;OAKG;cACa,iBAAiB,CAC7B,UAAU,EAAE,uBAAuB,EACnC,aAAa,EAAE,uBAAuB,GACvC,OAAO,CAAC,oBAAoB,CAAC;CAoInC"}
@@ -0,0 +1,32 @@
1
+ import { StandardInteractionClient } from "./StandardInteractionClient.js";
2
+ import { CommonSilentFlowRequest, ServerTelemetryManager, RefreshTokenClient, AzureCloudOptions, AccountInfo, StringDict } from "@azure/msal-common/browser";
3
+ import { AuthenticationResult } from "../response/AuthenticationResult.js";
4
+ export declare class SilentRefreshClient extends StandardInteractionClient {
5
+ /**
6
+ * Exchanges the refresh token for new tokens
7
+ * @param request
8
+ */
9
+ acquireToken(request: CommonSilentFlowRequest): Promise<AuthenticationResult>;
10
+ /**
11
+ * Currently Unsupported
12
+ */
13
+ logout(): Promise<void>;
14
+ /**
15
+ * Creates a Refresh Client with the given authority, or the default authority.
16
+ * @param params {
17
+ * serverTelemetryManager: ServerTelemetryManager;
18
+ * authorityUrl?: string;
19
+ * azureCloudOptions?: AzureCloudOptions;
20
+ * extraQueryParams?: StringDict;
21
+ * account?: AccountInfo;
22
+ * }
23
+ */
24
+ protected createRefreshTokenClient(params: {
25
+ serverTelemetryManager: ServerTelemetryManager;
26
+ authorityUrl?: string;
27
+ azureCloudOptions?: AzureCloudOptions;
28
+ extraQueryParameters?: StringDict;
29
+ account?: AccountInfo;
30
+ }): Promise<RefreshTokenClient>;
31
+ }
32
+ //# sourceMappingURL=SilentRefreshClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SilentRefreshClient.d.ts","sourceRoot":"","sources":["../../../src/interaction_client/SilentRefreshClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EACH,uBAAuB,EACvB,sBAAsB,EACtB,kBAAkB,EAElB,iBAAiB,EAGjB,WAAW,EACX,UAAU,EACb,MAAM,4BAA4B,CAAC;AAMpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAG3E,qBAAa,mBAAoB,SAAQ,yBAAyB;IAC9D;;;OAGG;IACG,YAAY,CACd,OAAO,EAAE,uBAAuB,GACjC,OAAO,CAAC,oBAAoB,CAAC;IAmDhC;;OAEG;IACH,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IASvB;;;;;;;;;OASG;cACa,wBAAwB,CAAC,MAAM,EAAE;QAC7C,sBAAsB,EAAE,sBAAsB,CAAC;QAC/C,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;QACtC,oBAAoB,CAAC,EAAE,UAAU,CAAC;QAClC,OAAO,CAAC,EAAE,WAAW,CAAC;KACzB,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAiBlC"}