@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,35 @@
1
+ import { ClientConfiguration } from "../config/ClientConfiguration";
2
+ import { BaseClient } from "./BaseClient";
3
+ import { CommonRefreshTokenRequest } from "../request/CommonRefreshTokenRequest";
4
+ import { AuthenticationResult } from "../response/AuthenticationResult";
5
+ import { CommonSilentFlowRequest } from "../request/CommonSilentFlowRequest";
6
+ import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient";
7
+ /**
8
+ * OAuth2.0 refresh token client
9
+ */
10
+ export declare class RefreshTokenClient extends BaseClient {
11
+ constructor(configuration: ClientConfiguration, performanceClient?: IPerformanceClient);
12
+ acquireToken(request: CommonRefreshTokenRequest): Promise<AuthenticationResult>;
13
+ /**
14
+ * Gets cached refresh token and attaches to request, then calls acquireToken API
15
+ * @param request
16
+ */
17
+ acquireTokenByRefreshToken(request: CommonSilentFlowRequest): Promise<AuthenticationResult>;
18
+ /**
19
+ * makes a network call to acquire tokens by exchanging RefreshToken available in userCache; throws if refresh token is not cached
20
+ * @param request
21
+ */
22
+ private acquireTokenWithCachedRefreshToken;
23
+ /**
24
+ * Constructs the network message and makes a NW call to the underlying secure token service
25
+ * @param request
26
+ * @param authority
27
+ */
28
+ private executeTokenRequest;
29
+ /**
30
+ * Helper function to create the token request body
31
+ * @param request
32
+ */
33
+ private createTokenRequestBody;
34
+ }
35
+ //# sourceMappingURL=RefreshTokenClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RefreshTokenClient.d.ts","sourceRoot":"","sources":["../../src/client/RefreshTokenClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AAWjF,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAKxE,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAa7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACjF;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,UAAU;gBAE1C,aAAa,EAAE,mBAAmB,EAClC,iBAAiB,CAAC,EAAE,kBAAkB;IAI7B,YAAY,CACrB,OAAO,EAAE,yBAAyB,GACnC,OAAO,CAAC,oBAAoB,CAAC;IAiFhC;;;OAGG;IACU,0BAA0B,CACnC,OAAO,EAAE,uBAAuB,GACjC,OAAO,CAAC,oBAAoB,CAAC;IAgEhC;;;OAGG;YACW,kCAAkC;IAmDhD;;;;OAIG;YACW,mBAAmB;IA4DjC;;;OAGG;YACW,sBAAsB;CAqHvC"}
@@ -0,0 +1,260 @@
1
+ /*! @azure/msal-common v14.0.0 2023-05-03 */
2
+ 'use strict';
3
+ import { BaseClient } from './BaseClient.js';
4
+ import { RequestParameterBuilder } from '../request/RequestParameterBuilder.js';
5
+ import { GrantType, AuthenticationScheme, HeaderNames, Errors } from '../utils/Constants.js';
6
+ import { ResponseHandler } from '../response/ResponseHandler.js';
7
+ import { PopTokenGenerator } from '../crypto/PopTokenGenerator.js';
8
+ import { StringUtils } from '../utils/StringUtils.js';
9
+ import { ClientConfigurationError } from '../error/ClientConfigurationError.js';
10
+ import { ClientAuthError } from '../error/ClientAuthError.js';
11
+ import { ServerError } from '../error/ServerError.js';
12
+ import { TimeUtils } from '../utils/TimeUtils.js';
13
+ import { UrlString } from '../url/UrlString.js';
14
+ import { CcsCredentialType } from '../account/CcsCredential.js';
15
+ import { buildClientInfoFromHomeAccountId } from '../account/ClientInfo.js';
16
+ import { InteractionRequiredAuthError, InteractionRequiredAuthErrorMessage } from '../error/InteractionRequiredAuthError.js';
17
+ import { PerformanceEvents } from '../telemetry/performance/PerformanceEvent.js';
18
+
19
+ /*
20
+ * Copyright (c) Microsoft Corporation. All rights reserved.
21
+ * Licensed under the MIT License.
22
+ */
23
+ /**
24
+ * OAuth2.0 refresh token client
25
+ */
26
+ class RefreshTokenClient extends BaseClient {
27
+ constructor(configuration, performanceClient) {
28
+ super(configuration, performanceClient);
29
+ }
30
+ async acquireToken(request) {
31
+ this.performanceClient?.addQueueMeasurement(PerformanceEvents.RefreshTokenClientAcquireToken, request.correlationId);
32
+ const atsMeasurement = this.performanceClient?.startMeasurement(PerformanceEvents.RefreshTokenClientAcquireToken, request.correlationId);
33
+ this.logger.verbose("RefreshTokenClientAcquireToken called", request.correlationId);
34
+ const reqTimestamp = TimeUtils.nowSeconds();
35
+ this.performanceClient?.setPreQueueTime(PerformanceEvents.RefreshTokenClientExecuteTokenRequest, request.correlationId);
36
+ const response = await this.executeTokenRequest(request, this.authority);
37
+ const httpVerToken = response.headers?.[HeaderNames.X_MS_HTTP_VERSION];
38
+ atsMeasurement?.addStaticFields({
39
+ refreshTokenSize: response.body.refresh_token?.length || 0,
40
+ });
41
+ if (httpVerToken) {
42
+ atsMeasurement?.addStaticFields({
43
+ httpVerToken,
44
+ });
45
+ }
46
+ // Retrieve requestId from response headers
47
+ const requestId = response.headers?.[HeaderNames.X_MS_REQUEST_ID];
48
+ const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin);
49
+ responseHandler.validateTokenResponse(response.body);
50
+ this.performanceClient?.setPreQueueTime(PerformanceEvents.HandleServerTokenResponse, request.correlationId);
51
+ return responseHandler
52
+ .handleServerTokenResponse(response.body, this.authority, reqTimestamp, request, undefined, undefined, true, request.forceCache, requestId)
53
+ .then((result) => {
54
+ atsMeasurement?.endMeasurement({
55
+ success: true,
56
+ });
57
+ return result;
58
+ })
59
+ .catch((error) => {
60
+ this.logger.verbose("Error in fetching refresh token", request.correlationId);
61
+ atsMeasurement?.endMeasurement({
62
+ errorCode: error.errorCode,
63
+ subErrorCode: error.subError,
64
+ success: false,
65
+ });
66
+ throw error;
67
+ });
68
+ }
69
+ /**
70
+ * Gets cached refresh token and attaches to request, then calls acquireToken API
71
+ * @param request
72
+ */
73
+ async acquireTokenByRefreshToken(request) {
74
+ // Cannot renew token if no request object is given.
75
+ if (!request) {
76
+ throw ClientConfigurationError.createEmptyTokenRequestError();
77
+ }
78
+ this.performanceClient?.addQueueMeasurement(PerformanceEvents.RefreshTokenClientAcquireTokenByRefreshToken, request.correlationId);
79
+ // We currently do not support silent flow for account === null use cases; This will be revisited for confidential flow usecases
80
+ if (!request.account) {
81
+ throw ClientAuthError.createNoAccountInSilentRequestError();
82
+ }
83
+ // try checking if FOCI is enabled for the given application
84
+ const isFOCI = this.cacheManager.isAppMetadataFOCI(request.account.environment);
85
+ // if the app is part of the family, retrive a Family refresh token if present and make a refreshTokenRequest
86
+ if (isFOCI) {
87
+ try {
88
+ this.performanceClient?.setPreQueueTime(PerformanceEvents.RefreshTokenClientAcquireTokenWithCachedRefreshToken, request.correlationId);
89
+ return this.acquireTokenWithCachedRefreshToken(request, true);
90
+ }
91
+ catch (e) {
92
+ const noFamilyRTInCache = e instanceof InteractionRequiredAuthError &&
93
+ e.errorCode ===
94
+ InteractionRequiredAuthErrorMessage.noTokensFoundError
95
+ .code;
96
+ const clientMismatchErrorWithFamilyRT = e instanceof ServerError &&
97
+ e.errorCode === Errors.INVALID_GRANT_ERROR &&
98
+ e.subError === Errors.CLIENT_MISMATCH_ERROR;
99
+ // if family Refresh Token (FRT) cache acquisition fails or if client_mismatch error is seen with FRT, reattempt with application Refresh Token (ART)
100
+ if (noFamilyRTInCache || clientMismatchErrorWithFamilyRT) {
101
+ this.performanceClient?.setPreQueueTime(PerformanceEvents.RefreshTokenClientAcquireTokenWithCachedRefreshToken, request.correlationId);
102
+ return this.acquireTokenWithCachedRefreshToken(request, false);
103
+ // throw in all other cases
104
+ }
105
+ else {
106
+ throw e;
107
+ }
108
+ }
109
+ }
110
+ // fall back to application refresh token acquisition
111
+ this.performanceClient?.setPreQueueTime(PerformanceEvents.RefreshTokenClientAcquireTokenWithCachedRefreshToken, request.correlationId);
112
+ return this.acquireTokenWithCachedRefreshToken(request, false);
113
+ }
114
+ /**
115
+ * makes a network call to acquire tokens by exchanging RefreshToken available in userCache; throws if refresh token is not cached
116
+ * @param request
117
+ */
118
+ async acquireTokenWithCachedRefreshToken(request, foci) {
119
+ this.performanceClient?.addQueueMeasurement(PerformanceEvents.RefreshTokenClientAcquireTokenWithCachedRefreshToken, request.correlationId);
120
+ // fetches family RT or application RT based on FOCI value
121
+ const atsMeasurement = this.performanceClient?.startMeasurement(PerformanceEvents.RefreshTokenClientAcquireTokenWithCachedRefreshToken, request.correlationId);
122
+ this.logger.verbose("RefreshTokenClientAcquireTokenWithCachedRefreshToken called", request.correlationId);
123
+ const refreshToken = this.cacheManager.getRefreshToken(request.account, foci);
124
+ if (!refreshToken) {
125
+ atsMeasurement?.discardMeasurement();
126
+ throw InteractionRequiredAuthError.createNoTokensFoundError();
127
+ }
128
+ // attach cached RT size to the current measurement
129
+ atsMeasurement?.endMeasurement({
130
+ success: true,
131
+ });
132
+ const refreshTokenRequest = {
133
+ ...request,
134
+ refreshToken: refreshToken.secret,
135
+ authenticationScheme: request.authenticationScheme || AuthenticationScheme.BEARER,
136
+ ccsCredential: {
137
+ credential: request.account.homeAccountId,
138
+ type: CcsCredentialType.HOME_ACCOUNT_ID,
139
+ },
140
+ };
141
+ this.performanceClient?.setPreQueueTime(PerformanceEvents.RefreshTokenClientAcquireToken, request.correlationId);
142
+ return this.acquireToken(refreshTokenRequest);
143
+ }
144
+ /**
145
+ * Constructs the network message and makes a NW call to the underlying secure token service
146
+ * @param request
147
+ * @param authority
148
+ */
149
+ async executeTokenRequest(request, authority) {
150
+ this.performanceClient?.addQueueMeasurement(PerformanceEvents.RefreshTokenClientExecuteTokenRequest, request.correlationId);
151
+ const acquireTokenMeasurement = this.performanceClient?.startMeasurement(PerformanceEvents.RefreshTokenClientExecuteTokenRequest, request.correlationId);
152
+ this.performanceClient?.setPreQueueTime(PerformanceEvents.RefreshTokenClientCreateTokenRequestBody, request.correlationId);
153
+ const queryParametersString = this.createTokenQueryParameters(request);
154
+ const endpoint = UrlString.appendQueryString(authority.tokenEndpoint, queryParametersString);
155
+ const requestBody = await this.createTokenRequestBody(request);
156
+ const headers = this.createTokenRequestHeaders(request.ccsCredential);
157
+ const thumbprint = {
158
+ clientId: this.config.authOptions.clientId,
159
+ authority: authority.canonicalAuthority,
160
+ scopes: request.scopes,
161
+ claims: request.claims,
162
+ authenticationScheme: request.authenticationScheme,
163
+ resourceRequestMethod: request.resourceRequestMethod,
164
+ resourceRequestUri: request.resourceRequestUri,
165
+ shrClaims: request.shrClaims,
166
+ sshKid: request.sshKid,
167
+ };
168
+ return this.executePostToTokenEndpoint(endpoint, requestBody, headers, thumbprint)
169
+ .then((result) => {
170
+ acquireTokenMeasurement?.endMeasurement({
171
+ success: true,
172
+ });
173
+ return result;
174
+ })
175
+ .catch((error) => {
176
+ acquireTokenMeasurement?.endMeasurement({
177
+ success: false,
178
+ });
179
+ throw error;
180
+ });
181
+ }
182
+ /**
183
+ * Helper function to create the token request body
184
+ * @param request
185
+ */
186
+ async createTokenRequestBody(request) {
187
+ this.performanceClient?.addQueueMeasurement(PerformanceEvents.RefreshTokenClientCreateTokenRequestBody, request.correlationId);
188
+ const correlationId = request.correlationId;
189
+ const acquireTokenMeasurement = this.performanceClient?.startMeasurement(PerformanceEvents.BaseClientCreateTokenRequestHeaders, correlationId);
190
+ const parameterBuilder = new RequestParameterBuilder();
191
+ parameterBuilder.addClientId(this.config.authOptions.clientId);
192
+ parameterBuilder.addScopes(request.scopes);
193
+ parameterBuilder.addGrantType(GrantType.REFRESH_TOKEN_GRANT);
194
+ parameterBuilder.addClientInfo();
195
+ parameterBuilder.addLibraryInfo(this.config.libraryInfo);
196
+ parameterBuilder.addApplicationTelemetry(this.config.telemetry.application);
197
+ parameterBuilder.addThrottling();
198
+ if (this.serverTelemetryManager) {
199
+ parameterBuilder.addServerTelemetry(this.serverTelemetryManager);
200
+ }
201
+ parameterBuilder.addCorrelationId(correlationId);
202
+ parameterBuilder.addRefreshToken(request.refreshToken);
203
+ if (this.config.clientCredentials.clientSecret) {
204
+ parameterBuilder.addClientSecret(this.config.clientCredentials.clientSecret);
205
+ }
206
+ if (this.config.clientCredentials.clientAssertion) {
207
+ const clientAssertion = this.config.clientCredentials.clientAssertion;
208
+ parameterBuilder.addClientAssertion(clientAssertion.assertion);
209
+ parameterBuilder.addClientAssertionType(clientAssertion.assertionType);
210
+ }
211
+ if (request.authenticationScheme === AuthenticationScheme.POP) {
212
+ const popTokenGenerator = new PopTokenGenerator(this.cryptoUtils, this.performanceClient);
213
+ this.performanceClient?.setPreQueueTime(PerformanceEvents.PopTokenGenerateCnf, request.correlationId);
214
+ const reqCnfData = await popTokenGenerator.generateCnf(request);
215
+ // SPA PoP requires full Base64Url encoded req_cnf string (unhashed)
216
+ parameterBuilder.addPopToken(reqCnfData.reqCnfString);
217
+ }
218
+ else if (request.authenticationScheme === AuthenticationScheme.SSH) {
219
+ if (request.sshJwk) {
220
+ parameterBuilder.addSshJwk(request.sshJwk);
221
+ }
222
+ else {
223
+ acquireTokenMeasurement?.endMeasurement({
224
+ success: false,
225
+ });
226
+ throw ClientConfigurationError.createMissingSshJwkError();
227
+ }
228
+ }
229
+ if (!StringUtils.isEmptyObj(request.claims) ||
230
+ (this.config.authOptions.clientCapabilities &&
231
+ this.config.authOptions.clientCapabilities.length > 0)) {
232
+ parameterBuilder.addClaims(request.claims, this.config.authOptions.clientCapabilities);
233
+ }
234
+ if (this.config.systemOptions.preventCorsPreflight &&
235
+ request.ccsCredential) {
236
+ switch (request.ccsCredential.type) {
237
+ case CcsCredentialType.HOME_ACCOUNT_ID:
238
+ try {
239
+ const clientInfo = buildClientInfoFromHomeAccountId(request.ccsCredential.credential);
240
+ parameterBuilder.addCcsOid(clientInfo);
241
+ }
242
+ catch (e) {
243
+ this.logger.verbose("Could not parse home account ID for CCS Header: " +
244
+ e);
245
+ }
246
+ break;
247
+ case CcsCredentialType.UPN:
248
+ parameterBuilder.addCcsUpn(request.ccsCredential.credential);
249
+ break;
250
+ }
251
+ }
252
+ acquireTokenMeasurement?.endMeasurement({
253
+ success: true,
254
+ });
255
+ return parameterBuilder.createQueryString();
256
+ }
257
+ }
258
+
259
+ export { RefreshTokenClient };
260
+ //# sourceMappingURL=RefreshTokenClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RefreshTokenClient.js","sources":["../../src/client/RefreshTokenClient.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;AAGG;AAkCH;;AAEG;AACG,MAAO,kBAAmB,SAAQ,UAAU,CAAA;IAC9C,WACI,CAAA,aAAkC,EAClC,iBAAsC,EAAA;AAEtC,QAAA,KAAK,CAAC,aAAa,EAAE,iBAAiB,CAAC,CAAC;KAC3C;IACM,MAAM,YAAY,CACrB,OAAkC,EAAA;AAElC,QAAA,IAAI,CAAC,iBAAiB,EAAE,mBAAmB,CACvC,iBAAiB,CAAC,8BAA8B,EAChD,OAAO,CAAC,aAAa,CACxB,CAAC;AAEF,QAAA,MAAM,cAAc,GAAG,IAAI,CAAC,iBAAiB,EAAE,gBAAgB,CAC3D,iBAAiB,CAAC,8BAA8B,EAChD,OAAO,CAAC,aAAa,CACxB,CAAC;QACF,IAAI,CAAC,MAAM,CAAC,OAAO,CACf,uCAAuC,EACvC,OAAO,CAAC,aAAa,CACxB,CAAC;AACF,QAAA,MAAM,YAAY,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;AAC5C,QAAA,IAAI,CAAC,iBAAiB,EAAE,eAAe,CACnC,iBAAiB,CAAC,qCAAqC,EACvD,OAAO,CAAC,aAAa,CACxB,CAAC;AACF,QAAA,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAC3C,OAAO,EACP,IAAI,CAAC,SAAS,CACjB,CAAC;QACF,MAAM,YAAY,GAAG,QAAQ,CAAC,OAAO,GAAG,WAAW,CAAC,iBAAiB,CAAC,CAAC;QACvE,cAAc,EAAE,eAAe,CAAC;YAC5B,gBAAgB,EAAE,QAAQ,CAAC,IAAI,C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;AACE,YAAA,QAAQ,OAAO,CAAC,aAAa,CAAC,IAAI;gBAC9B,KAAK,iBAAiB,CAAC,eAAe;oBAClC,IAAI;wBACA,MAAM,UAAU,GAAG,gCAAgC,CAC/C,OAAO,CAAC,aAAa,CAAC,UAAU,CACnC,CAAC;AACF,wBAAA,gBAAgB,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;AAC1C,qBAAA;AAAC,oBAAA,OAAO,CAAC,EAAE;AACR,wBAAA,IAAI,CAAC,MAAM,CAAC,OAAO,CACf,kDAAkD;AAC9C,4BAAA,CAAC,CACR,CAAC;AACL,qBAAA;oBACD,MAAM;gBACV,KAAK,iBAAiB,CAAC,GAAG;oBACtB,gBAAgB,CAAC,SAAS,CACtB,OAAO,CAAC,aAAa,CAAC,UAAU,CACnC,CAAC;oBACF,MAAM;AACb,aAAA;AACJ,SAAA;QACD,uBAAuB,EAAE,cAAc,CAAC;AACpC,YAAA,OAAO,EAAE,IAAI;AAChB,SAAA,CAAC,CAAC;AACH,QAAA,OAAO,gBAAgB,CAAC,iBAAiB,EAAE,CAAC;KAC/C;AACJ;;;;"}
@@ -0,0 +1,25 @@
1
+ import { BaseClient } from "./BaseClient";
2
+ import { ClientConfiguration } from "../config/ClientConfiguration";
3
+ import { CommonSilentFlowRequest } from "../request/CommonSilentFlowRequest";
4
+ import { AuthenticationResult } from "../response/AuthenticationResult";
5
+ import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient";
6
+ export declare class SilentFlowClient extends BaseClient {
7
+ constructor(configuration: ClientConfiguration, performanceClient?: IPerformanceClient);
8
+ /**
9
+ * Retrieves a token from cache if it is still valid, or uses the cached refresh token to renew
10
+ * the given token and returns the renewed token
11
+ * @param request
12
+ */
13
+ acquireToken(request: CommonSilentFlowRequest): Promise<AuthenticationResult>;
14
+ /**
15
+ * Retrieves token from cache or throws an error if it must be refreshed.
16
+ * @param request
17
+ */
18
+ acquireCachedToken(request: CommonSilentFlowRequest): Promise<AuthenticationResult>;
19
+ /**
20
+ * Helper function to build response object from the CacheRecord
21
+ * @param cacheRecord
22
+ */
23
+ private generateResultFromCacheRecord;
24
+ }
25
+ //# sourceMappingURL=SilentFlowClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SilentFlowClient.d.ts","sourceRoot":"","sources":["../../src/client/SilentFlowClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAYxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AAEjF,qBAAa,gBAAiB,SAAQ,UAAU;gBAExC,aAAa,EAAE,mBAAmB,EAClC,iBAAiB,CAAC,EAAE,kBAAkB;IAK1C;;;;OAIG;IACG,YAAY,CACd,OAAO,EAAE,uBAAuB,GACjC,OAAO,CAAC,oBAAoB,CAAC;IAmBhC;;;OAGG;IACG,kBAAkB,CACpB,OAAO,EAAE,uBAAuB,GACjC,OAAO,CAAC,oBAAoB,CAAC;IA4EhC;;;OAGG;YACW,6BAA6B;CA+B9C"}
@@ -0,0 +1,108 @@
1
+ /*! @azure/msal-common v14.0.0 2023-05-03 */
2
+ 'use strict';
3
+ import { BaseClient } from './BaseClient.js';
4
+ import { AuthToken } from '../account/AuthToken.js';
5
+ import { TimeUtils } from '../utils/TimeUtils.js';
6
+ import { RefreshTokenClient } from './RefreshTokenClient.js';
7
+ import { ClientAuthError, ClientAuthErrorMessage } from '../error/ClientAuthError.js';
8
+ import { ClientConfigurationError } from '../error/ClientConfigurationError.js';
9
+ import { ResponseHandler } from '../response/ResponseHandler.js';
10
+ import { CacheOutcome } from '../utils/Constants.js';
11
+
12
+ /*
13
+ * Copyright (c) Microsoft Corporation. All rights reserved.
14
+ * Licensed under the MIT License.
15
+ */
16
+ class SilentFlowClient extends BaseClient {
17
+ constructor(configuration, performanceClient) {
18
+ super(configuration, performanceClient);
19
+ }
20
+ /**
21
+ * Retrieves a token from cache if it is still valid, or uses the cached refresh token to renew
22
+ * the given token and returns the renewed token
23
+ * @param request
24
+ */
25
+ async acquireToken(request) {
26
+ try {
27
+ return await this.acquireCachedToken(request);
28
+ }
29
+ catch (e) {
30
+ if (e instanceof ClientAuthError &&
31
+ e.errorCode === ClientAuthErrorMessage.tokenRefreshRequired.code) {
32
+ const refreshTokenClient = new RefreshTokenClient(this.config, this.performanceClient);
33
+ return refreshTokenClient.acquireTokenByRefreshToken(request);
34
+ }
35
+ else {
36
+ throw e;
37
+ }
38
+ }
39
+ }
40
+ /**
41
+ * Retrieves token from cache or throws an error if it must be refreshed.
42
+ * @param request
43
+ */
44
+ async acquireCachedToken(request) {
45
+ // Cannot renew token if no request object is given.
46
+ if (!request) {
47
+ throw ClientConfigurationError.createEmptyTokenRequestError();
48
+ }
49
+ if (request.forceRefresh) {
50
+ // Must refresh due to present force_refresh flag.
51
+ this.serverTelemetryManager?.setCacheOutcome(CacheOutcome.FORCE_REFRESH);
52
+ this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true.");
53
+ throw ClientAuthError.createRefreshRequiredError();
54
+ }
55
+ // We currently do not support silent flow for account === null use cases; This will be revisited for confidential flow usecases
56
+ if (!request.account) {
57
+ throw ClientAuthError.createNoAccountInSilentRequestError();
58
+ }
59
+ const environment = request.authority || this.authority.getPreferredCache();
60
+ const cacheRecord = this.cacheManager.readCacheRecord(request.account, request, environment);
61
+ if (!cacheRecord.accessToken) {
62
+ // Must refresh due to non-existent access_token.
63
+ this.serverTelemetryManager?.setCacheOutcome(CacheOutcome.NO_CACHED_ACCESS_TOKEN);
64
+ this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties.");
65
+ throw ClientAuthError.createRefreshRequiredError();
66
+ }
67
+ else if (TimeUtils.wasClockTurnedBack(cacheRecord.accessToken.cachedAt) ||
68
+ TimeUtils.isTokenExpired(cacheRecord.accessToken.expiresOn, this.config.systemOptions.tokenRenewalOffsetSeconds)) {
69
+ // Must refresh due to expired access_token.
70
+ this.serverTelemetryManager?.setCacheOutcome(CacheOutcome.CACHED_ACCESS_TOKEN_EXPIRED);
71
+ this.logger.info(`SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within ${this.config.systemOptions.tokenRenewalOffsetSeconds} seconds.`);
72
+ throw ClientAuthError.createRefreshRequiredError();
73
+ }
74
+ else if (cacheRecord.accessToken.refreshOn &&
75
+ TimeUtils.isTokenExpired(cacheRecord.accessToken.refreshOn, 0)) {
76
+ // Must refresh due to the refresh_in value.
77
+ this.serverTelemetryManager?.setCacheOutcome(CacheOutcome.REFRESH_CACHED_ACCESS_TOKEN);
78
+ this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'.");
79
+ throw ClientAuthError.createRefreshRequiredError();
80
+ }
81
+ if (this.config.serverTelemetryManager) {
82
+ this.config.serverTelemetryManager.incrementCacheHits();
83
+ }
84
+ return await this.generateResultFromCacheRecord(cacheRecord, request);
85
+ }
86
+ /**
87
+ * Helper function to build response object from the CacheRecord
88
+ * @param cacheRecord
89
+ */
90
+ async generateResultFromCacheRecord(cacheRecord, request) {
91
+ let idTokenObj;
92
+ if (cacheRecord.idToken) {
93
+ idTokenObj = new AuthToken(cacheRecord.idToken.secret, this.config.cryptoInterface);
94
+ }
95
+ // token max_age check
96
+ if (request.maxAge || request.maxAge === 0) {
97
+ const authTime = idTokenObj?.claims.auth_time;
98
+ if (!authTime) {
99
+ throw ClientAuthError.createAuthTimeNotFoundError();
100
+ }
101
+ AuthToken.checkMaxAge(authTime, request.maxAge);
102
+ }
103
+ return await ResponseHandler.generateAuthenticationResult(this.cryptoUtils, this.authority, cacheRecord, true, request, idTokenObj);
104
+ }
105
+ }
106
+
107
+ export { SilentFlowClient };
108
+ //# sourceMappingURL=SilentFlowClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SilentFlowClient.js","sources":["../../src/client/SilentFlowClient.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;AAAA;;;AAGG;AAmBG,MAAO,gBAAiB,SAAQ,UAAU,CAAA;IAC5C,WACI,CAAA,aAAkC,EAClC,iBAAsC,EAAA;AAEtC,QAAA,KAAK,CAAC,aAAa,EAAE,iBAAiB,CAAC,CAAC;KAC3C;AAED;;;;AAIG;IACH,MAAM,YAAY,CACd,OAAgC,EAAA;QAEhC,IAAI;AACA,YAAA,OAAO,MAAM,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;AACjD,SAAA;AAAC,QAAA,OAAO,CAAC,EAAE;YACR,IACI,CAAC,YAAY,eAAe;gBAC5B,CAAC,CAAC,SAAS,KAAK,sBAAsB,CAAC,oBAAoB,CAAC,IAAI,EAClE;AACE,gBAAA,MAAM,kBAAkB,GAAG,IAAI,kBAAkB,CAC7C,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,iBAAiB,CACzB,CAAC;AACF,gBAAA,OAAO,kBAAkB,CAAC,0BAA0B,CAAC,OAAO,CAAC,CAAC;AACjE,aAAA;AAAM,iBAAA;AACH,gBAAA,MAAM,CAAC,CAAC;AACX,aAAA;AACJ,SAAA;KACJ;AAED;;;AAGG;IACH,MAAM,kBAAkB,CACpB,OAAgC,EAAA;;QAGhC,IAAI,CAAC,OAAO,EAAE;AACV,YAAA,MAAM,wBAAwB,CAAC,4BAA4B,EAAE,CAAC;AACjE,SAAA;QAED,IAAI,OAAO,CAAC,YAAY,EAAE;;YAEtB,IAAI,CAAC,sBAAsB,EAAE,eAAe,CACxC,YAAY,CAAC,aAAa,CAC7B,CAAC;AACF,YAAA,IAAI,CAAC,MAAM,CAAC,IAAI,CACZ,oFAAoF,CACvF,CAAC;AACF,YAAA,MAAM,eAAe,CAAC,0BAA0B,EAAE,CAAC;AACtD,SAAA;;AAGD,QAAA,IAAI,CAAC,O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,2BAA2B,CAC3C,CAAC;AACF,YAAA,IAAI,CAAC,MAAM,CAAC,IAAI,CACZ,oGAAoG,CACvG,CAAC;AACF,YAAA,MAAM,eAAe,CAAC,0BAA0B,EAAE,CAAC;AACtD,SAAA;AAED,QAAA,IAAI,IAAI,CAAC,MAAM,CAAC,sBAAsB,EAAE;AACpC,YAAA,IAAI,CAAC,MAAM,CAAC,sBAAsB,CAAC,kBAAkB,EAAE,CAAC;AAC3D,SAAA;QAED,OAAO,MAAM,IAAI,CAAC,6BAA6B,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;KACzE;AAED;;;AAGG;AACK,IAAA,MAAM,6BAA6B,CACvC,WAAwB,EACxB,OAAgC,EAAA;AAEhC,QAAA,IAAI,UAAiC,CAAC;QACtC,IAAI,WAAW,CAAC,OAAO,EAAE;AACrB,YAAA,UAAU,GAAG,IAAI,SAAS,CACtB,WAAW,CAAC,OAAO,CAAC,MAAM,EAC1B,IAAI,CAAC,MAAM,CAAC,eAAe,CAC9B,CAAC;AACL,SAAA;;QAGD,IAAI,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE;AACxC,YAAA,MAAM,QAAQ,GAAG,UAAU,EAAE,MAAM,CAAC,SAAS,CAAC;YAC9C,IAAI,CAAC,QAAQ,EAAE;AACX,gBAAA,MAAM,eAAe,CAAC,2BAA2B,EAAE,CAAC;AACvD,aAAA;YAED,SAAS,CAAC,WAAW,CAAC,QAAQ,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;AACnD,SAAA;QAED,OAAO,MAAM,eAAe,CAAC,4BAA4B,CACrD,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,SAAS,EACd,WAAW,EACX,IAAI,EACJ,OAAO,EACP,UAAU,CACb,CAAC;KACL;AACJ;;;;"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Extensibility interface, which allows the app developer to return a token, based on the passed-in parameters, instead of fetching tokens from
3
+ * the Identity Provider (AAD).
4
+ * Developers need to construct and return an AppTokenProviderResult object back to MSAL. MSAL will cache the token response
5
+ * in the same way it would do if the result were comming from AAD.
6
+ * This extensibility point is only defined for the client_credential flow, i.e. acquireTokenByClientCredential and
7
+ * meant for Azure SDK to enhance Managed Identity support.
8
+ */
9
+ export interface IAppTokenProvider {
10
+ (appTokenProviderParameters: AppTokenProviderParameters): Promise<AppTokenProviderResult>;
11
+ }
12
+ /**
13
+ * Input object for the IAppTokenProvider extensiblity. MSAL will create this object, which can be used
14
+ * to help create an AppTokenProviderResult.
15
+ *
16
+ * - correlationId - the correlation Id associated with the request
17
+ * - tenantId - the tenant Id for which the token must be provided
18
+ * - scopes - the scopes for which the token must be provided
19
+ * - claims - any extra claims that the token must satisfy
20
+ */
21
+ export type AppTokenProviderParameters = {
22
+ readonly correlationId?: string;
23
+ readonly tenantId: string;
24
+ readonly scopes: Array<string>;
25
+ readonly claims?: string;
26
+ };
27
+ /**
28
+ * Output object for IAppTokenProvider extensiblity.
29
+ *
30
+ * - accessToken - the actual access token, typically in JWT format, that satisfies the request data AppTokenProviderParameters
31
+ * - expiresInSeconds - how long the tokens has before expiry, in seconds. Similar to the "expires_in" field in an AAD token response.
32
+ * - refreshInSeconds - how long the token has before it should be proactively refreshed. Similar to the "refresh_in" field in an AAD token response.
33
+ */
34
+ export type AppTokenProviderResult = {
35
+ accessToken: string;
36
+ expiresInSeconds: number;
37
+ refreshInSeconds?: number;
38
+ };
39
+ //# sourceMappingURL=AppTokenProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppTokenProvider.d.ts","sourceRoot":"","sources":["../../src/config/AppTokenProvider.ts"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,MAAM,WAAW,iBAAiB;IAC9B,CACI,0BAA0B,EAAE,0BAA0B,GACvD,OAAO,CAAC,sBAAsB,CAAC,CAAC;CACtC;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACrC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC"}
@@ -0,0 +1,134 @@
1
+ import { INetworkModule } from "../network/INetworkModule";
2
+ import { ICrypto } from "../crypto/ICrypto";
3
+ import { ILoggerCallback, LogLevel } from "../logger/Logger";
4
+ import { Authority } from "../authority/Authority";
5
+ import { AzureCloudInstance } from "../authority/AuthorityOptions";
6
+ import { CacheManager } from "../cache/CacheManager";
7
+ import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager";
8
+ import { ICachePlugin } from "../cache/interface/ICachePlugin";
9
+ import { ISerializableTokenCache } from "../cache/interface/ISerializableTokenCache";
10
+ import { ClientCredentials } from "../account/ClientCredentials";
11
+ /**
12
+ * Use the configuration object to configure MSAL Modules and initialize the base interfaces for MSAL.
13
+ *
14
+ * This object allows you to configure important elements of MSAL functionality:
15
+ * - authOptions - Authentication for application
16
+ * - cryptoInterface - Implementation of crypto functions
17
+ * - libraryInfo - Library metadata
18
+ * - telemetry - Telemetry options and data
19
+ * - loggerOptions - Logging for application
20
+ * - networkInterface - Network implementation
21
+ * - storageInterface - Storage implementation
22
+ * - systemOptions - Additional library options
23
+ * - clientCredentials - Credentials options for confidential clients
24
+ */
25
+ export type ClientConfiguration = {
26
+ authOptions: AuthOptions;
27
+ systemOptions?: SystemOptions;
28
+ loggerOptions?: LoggerOptions;
29
+ storageInterface?: CacheManager;
30
+ networkInterface?: INetworkModule;
31
+ cryptoInterface?: ICrypto;
32
+ clientCredentials?: ClientCredentials;
33
+ libraryInfo?: LibraryInfo;
34
+ telemetry?: TelemetryOptions;
35
+ serverTelemetryManager?: ServerTelemetryManager | null;
36
+ persistencePlugin?: ICachePlugin | null;
37
+ serializableCache?: ISerializableTokenCache | null;
38
+ };
39
+ export type CommonClientConfiguration = {
40
+ authOptions: Required<AuthOptions>;
41
+ systemOptions: Required<SystemOptions>;
42
+ loggerOptions: Required<LoggerOptions>;
43
+ storageInterface: CacheManager;
44
+ networkInterface: INetworkModule;
45
+ cryptoInterface: Required<ICrypto>;
46
+ libraryInfo: LibraryInfo;
47
+ telemetry: Required<TelemetryOptions>;
48
+ serverTelemetryManager: ServerTelemetryManager | null;
49
+ clientCredentials: ClientCredentials;
50
+ persistencePlugin: ICachePlugin | null;
51
+ serializableCache: ISerializableTokenCache | null;
52
+ };
53
+ /**
54
+ * Use this to configure the auth options in the ClientConfiguration object
55
+ *
56
+ * - clientId - Client ID of your app registered with our Application registration portal : https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredAppsPreview in Microsoft Identity Platform
57
+ * - authority - You can configure a specific authority, defaults to " " or "https://login.microsoftonline.com/common"
58
+ * - knownAuthorities - An array of URIs that are known to be valid. Used in B2C scenarios.
59
+ * - cloudDiscoveryMetadata - A string containing the cloud discovery response. Used in AAD scenarios.
60
+ * - clientCapabilities - Array of capabilities which will be added to the claims.access_token.xms_cc request property on every network request.
61
+ * - protocolMode - Enum that represents the protocol that msal follows. Used for configuring proper endpoints.
62
+ * - skipAuthorityMetadataCache - A flag to choose whether to use or not use the local metadata cache during authority initialization. Defaults to false.
63
+ */
64
+ export type AuthOptions = {
65
+ clientId: string;
66
+ authority: Authority;
67
+ clientCapabilities?: Array<string>;
68
+ azureCloudOptions?: AzureCloudOptions;
69
+ skipAuthorityMetadataCache?: boolean;
70
+ };
71
+ /**
72
+ * Use this to configure token renewal info in the Configuration object
73
+ *
74
+ * - tokenRenewalOffsetSeconds - Sets the window of offset needed to renew the token before expiry
75
+ */
76
+ export type SystemOptions = {
77
+ tokenRenewalOffsetSeconds?: number;
78
+ preventCorsPreflight?: boolean;
79
+ };
80
+ /**
81
+ * Use this to configure the logging that MSAL does, by configuring logger options in the Configuration object
82
+ *
83
+ * - loggerCallback - Callback for logger
84
+ * - piiLoggingEnabled - Sets whether pii logging is enabled
85
+ * - logLevel - Sets the level at which logging happens
86
+ * - correlationId - Sets the correlationId printed by the logger
87
+ */
88
+ export type LoggerOptions = {
89
+ loggerCallback?: ILoggerCallback;
90
+ piiLoggingEnabled?: boolean;
91
+ logLevel?: LogLevel;
92
+ correlationId?: string;
93
+ };
94
+ /**
95
+ * Library-specific options
96
+ */
97
+ export type LibraryInfo = {
98
+ sku: string;
99
+ version: string;
100
+ cpu: string;
101
+ os: string;
102
+ };
103
+ /**
104
+ * AzureCloudInstance specific options
105
+ *
106
+ * - azureCloudInstance - string enum providing short notation for soverign and public cloud authorities
107
+ * - tenant - provision to provide the tenant info
108
+ */
109
+ export type AzureCloudOptions = {
110
+ azureCloudInstance: AzureCloudInstance;
111
+ tenant?: string;
112
+ };
113
+ export type TelemetryOptions = {
114
+ application: ApplicationTelemetry;
115
+ };
116
+ /**
117
+ * Telemetry information sent on request
118
+ * - appName: Unique string name of an application
119
+ * - appVersion: Version of the application using MSAL
120
+ */
121
+ export type ApplicationTelemetry = {
122
+ appName: string;
123
+ appVersion: string;
124
+ };
125
+ export declare const DEFAULT_SYSTEM_OPTIONS: Required<SystemOptions>;
126
+ /**
127
+ * Function that sets the default options when not explicitly configured from app developer
128
+ *
129
+ * @param Configuration
130
+ *
131
+ * @returns Configuration
132
+ */
133
+ export declare function buildClientConfiguration({ authOptions: userAuthOptions, systemOptions: userSystemOptions, loggerOptions: userLoggerOption, storageInterface: storageImplementation, networkInterface: networkImplementation, cryptoInterface: cryptoImplementation, clientCredentials: clientCredentials, libraryInfo: libraryInfo, telemetry: telemetry, serverTelemetryManager: serverTelemetryManager, persistencePlugin: persistencePlugin, serializableCache: serializableCache, }: ClientConfiguration): CommonClientConfiguration;
134
+ //# sourceMappingURL=ClientConfiguration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClientConfiguration.d.ts","sourceRoot":"","sources":["../../src/config/ClientConfiguration.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAiC,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE3E,OAAO,EAAE,eAAe,EAAU,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGrE,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,YAAY,EAAuB,MAAM,uBAAuB,CAAC;AAC1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAKjE;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAC9B,WAAW,EAAE,WAAW,CAAC;IACzB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,gBAAgB,CAAC,EAAE,YAAY,CAAC;IAChC,gBAAgB,CAAC,EAAE,cAAc,CAAC;IAClC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,sBAAsB,CAAC,EAAE,sBAAsB,GAAG,IAAI,CAAC;IACvD,iBAAiB,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IACxC,iBAAiB,CAAC,EAAE,u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