@azure/msal-browser 5.0.0-beta.0 → 5.0.1

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 (411) hide show
  1. package/dist/app/IPublicClientApplication.mjs +1 -1
  2. package/dist/app/PublicClientApplication.mjs +1 -1
  3. package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
  4. package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
  5. package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
  6. package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
  7. package/dist/cache/AccountManager.mjs +1 -1
  8. package/dist/cache/AsyncMemoryStorage.mjs +1 -1
  9. package/dist/cache/BrowserCacheManager.mjs +1 -1
  10. package/dist/cache/CacheHelpers.mjs +1 -1
  11. package/dist/cache/CacheKeys.mjs +1 -1
  12. package/dist/cache/CookieStorage.mjs +1 -1
  13. package/dist/cache/DatabaseStorage.mjs +1 -1
  14. package/dist/cache/EncryptedData.mjs +1 -1
  15. package/dist/cache/LocalStorage.mjs +1 -1
  16. package/dist/cache/MemoryStorage.mjs +1 -1
  17. package/dist/cache/SessionStorage.mjs +1 -1
  18. package/dist/cache/TokenCache.d.ts +7 -5
  19. package/dist/cache/TokenCache.d.ts.map +1 -1
  20. package/dist/cache/TokenCache.mjs +44 -32
  21. package/dist/cache/TokenCache.mjs.map +1 -1
  22. package/dist/config/Configuration.mjs +1 -1
  23. package/dist/controllers/NestedAppAuthController.mjs +1 -1
  24. package/dist/controllers/StandardController.mjs +1 -1
  25. package/dist/crypto/BrowserCrypto.mjs +1 -1
  26. package/dist/crypto/CryptoOps.mjs +1 -1
  27. package/dist/crypto/PkceGenerator.mjs +1 -1
  28. package/dist/crypto/SignedHttpRequest.mjs +1 -1
  29. package/dist/custom-auth-path/app/PublicClientApplication.mjs +1 -1
  30. package/dist/custom-auth-path/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
  31. package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
  32. package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
  33. package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
  34. package/dist/custom-auth-path/cache/AccountManager.mjs +1 -1
  35. package/dist/custom-auth-path/cache/AsyncMemoryStorage.mjs +1 -1
  36. package/dist/custom-auth-path/cache/BrowserCacheManager.mjs +1 -1
  37. package/dist/custom-auth-path/cache/CacheHelpers.mjs +1 -1
  38. package/dist/custom-auth-path/cache/CacheKeys.mjs +1 -1
  39. package/dist/custom-auth-path/cache/CookieStorage.mjs +1 -1
  40. package/dist/custom-auth-path/cache/DatabaseStorage.mjs +1 -1
  41. package/dist/custom-auth-path/cache/EncryptedData.mjs +1 -1
  42. package/dist/custom-auth-path/cache/LocalStorage.mjs +1 -1
  43. package/dist/custom-auth-path/cache/MemoryStorage.mjs +1 -1
  44. package/dist/custom-auth-path/cache/SessionStorage.mjs +1 -1
  45. package/dist/custom-auth-path/cache/TokenCache.d.ts +7 -5
  46. package/dist/custom-auth-path/cache/TokenCache.d.ts.map +1 -1
  47. package/dist/custom-auth-path/config/Configuration.mjs +1 -1
  48. package/dist/custom-auth-path/controllers/StandardController.mjs +1 -1
  49. package/dist/custom-auth-path/crypto/BrowserCrypto.mjs +1 -1
  50. package/dist/custom-auth-path/crypto/CryptoOps.mjs +1 -1
  51. package/dist/custom-auth-path/crypto/PkceGenerator.mjs +1 -1
  52. package/dist/custom-auth-path/custom_auth/CustomAuthConstants.d.ts +1 -1
  53. package/dist/custom-auth-path/custom_auth/CustomAuthConstants.mjs +1 -1
  54. package/dist/custom-auth-path/custom_auth/CustomAuthPublicClientApplication.mjs +1 -1
  55. package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.mjs +1 -1
  56. package/dist/custom-auth-path/custom_auth/core/CustomAuthAuthority.mjs +1 -1
  57. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +1 -1
  58. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
  59. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
  60. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs +1 -1
  61. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +1 -1
  62. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -1
  63. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -1
  64. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
  65. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
  66. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +1 -1
  67. package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs +1 -1
  68. package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +1 -1
  69. package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -1
  70. package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +1 -1
  71. package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
  72. package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +1 -1
  73. package/dist/custom-auth-path/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
  74. package/dist/custom-auth-path/custom_auth/core/error/CustomAuthError.mjs +1 -1
  75. package/dist/custom-auth-path/custom_auth/core/error/HttpError.mjs +1 -1
  76. package/dist/custom-auth-path/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
  77. package/dist/custom-auth-path/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
  78. package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
  79. package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
  80. package/dist/custom-auth-path/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
  81. package/dist/custom-auth-path/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
  82. package/dist/custom-auth-path/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
  83. package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlError.mjs +1 -1
  84. package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
  85. package/dist/custom-auth-path/custom_auth/core/error/UnexpectedError.mjs +1 -1
  86. package/dist/custom-auth-path/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
  87. package/dist/custom-auth-path/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
  88. package/dist/custom-auth-path/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
  89. package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
  90. package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
  91. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/JitClient.mjs +1 -1
  92. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
  93. package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/MfaClient.mjs +1 -1
  94. package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
  95. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
  96. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
  97. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +1 -1
  98. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
  99. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
  100. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
  101. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
  102. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
  103. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
  104. package/dist/custom-auth-path/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
  105. package/dist/custom-auth-path/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
  106. package/dist/custom-auth-path/custom_auth/core/telemetry/PublicApiId.mjs +1 -1
  107. package/dist/custom-auth-path/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
  108. package/dist/custom-auth-path/custom_auth/core/utils/UrlUtils.mjs +1 -1
  109. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
  110. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
  111. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
  112. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
  113. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
  114. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
  115. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
  116. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
  117. package/dist/custom-auth-path/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
  118. package/dist/custom-auth-path/custom_auth/index.mjs +1 -1
  119. package/dist/custom-auth-path/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
  120. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
  121. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
  122. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
  123. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
  124. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
  125. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
  126. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
  127. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
  128. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
  129. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
  130. package/dist/custom-auth-path/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
  131. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
  132. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
  133. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
  134. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
  135. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
  136. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
  137. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
  138. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
  139. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
  140. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
  141. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
  142. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
  143. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
  144. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
  145. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
  146. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
  147. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
  148. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
  149. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
  150. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
  151. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
  152. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
  153. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
  154. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
  155. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
  156. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
  157. package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
  158. package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
  159. package/dist/custom-auth-path/encode/Base64Decode.mjs +1 -1
  160. package/dist/custom-auth-path/encode/Base64Encode.mjs +1 -1
  161. package/dist/custom-auth-path/error/BrowserAuthError.mjs +1 -1
  162. package/dist/custom-auth-path/error/BrowserAuthErrorCodes.mjs +1 -1
  163. package/dist/custom-auth-path/error/BrowserConfigurationAuthError.mjs +1 -1
  164. package/dist/custom-auth-path/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  165. package/dist/custom-auth-path/error/NativeAuthError.mjs +1 -1
  166. package/dist/custom-auth-path/error/NativeAuthErrorCodes.mjs +1 -1
  167. package/dist/custom-auth-path/event/EventHandler.mjs +1 -1
  168. package/dist/custom-auth-path/event/EventType.mjs +1 -1
  169. package/dist/custom-auth-path/interaction_client/BaseInteractionClient.mjs +1 -1
  170. package/dist/custom-auth-path/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  171. package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.mjs +1 -1
  172. package/dist/custom-auth-path/interaction_client/PopupClient.mjs +1 -1
  173. package/dist/custom-auth-path/interaction_client/RedirectClient.mjs +1 -1
  174. package/dist/custom-auth-path/interaction_client/SilentAuthCodeClient.mjs +1 -1
  175. package/dist/custom-auth-path/interaction_client/SilentCacheClient.mjs +1 -1
  176. package/dist/custom-auth-path/interaction_client/SilentIframeClient.mjs +1 -1
  177. package/dist/custom-auth-path/interaction_client/SilentRefreshClient.mjs +1 -1
  178. package/dist/custom-auth-path/interaction_client/StandardInteractionClient.mjs +1 -1
  179. package/dist/custom-auth-path/interaction_handler/InteractionHandler.mjs +1 -1
  180. package/dist/custom-auth-path/interaction_handler/SilentHandler.mjs +1 -1
  181. package/dist/custom-auth-path/log-strings-mapping.json +2 -2
  182. package/dist/custom-auth-path/navigation/NavigationClient.mjs +1 -1
  183. package/dist/custom-auth-path/network/FetchClient.mjs +1 -1
  184. package/dist/custom-auth-path/operatingcontext/BaseOperatingContext.mjs +1 -1
  185. package/dist/custom-auth-path/operatingcontext/StandardOperatingContext.mjs +1 -1
  186. package/dist/custom-auth-path/packageMetadata.d.ts +1 -1
  187. package/dist/custom-auth-path/packageMetadata.d.ts.map +1 -1
  188. package/dist/custom-auth-path/packageMetadata.mjs +2 -2
  189. package/dist/custom-auth-path/protocol/Authorize.mjs +1 -1
  190. package/dist/custom-auth-path/request/AuthorizationCodeRequest.d.ts +18 -0
  191. package/dist/custom-auth-path/request/AuthorizationCodeRequest.d.ts.map +1 -1
  192. package/dist/custom-auth-path/request/ClearCacheRequest.d.ts +6 -2
  193. package/dist/custom-auth-path/request/ClearCacheRequest.d.ts.map +1 -1
  194. package/dist/custom-auth-path/request/EndSessionPopupRequest.d.ts +12 -9
  195. package/dist/custom-auth-path/request/EndSessionPopupRequest.d.ts.map +1 -1
  196. package/dist/custom-auth-path/request/EndSessionRequest.d.ts +3 -6
  197. package/dist/custom-auth-path/request/EndSessionRequest.d.ts.map +1 -1
  198. package/dist/custom-auth-path/request/InitializeApplicationRequest.d.ts +3 -2
  199. package/dist/custom-auth-path/request/InitializeApplicationRequest.d.ts.map +1 -1
  200. package/dist/custom-auth-path/request/PopupRequest.d.ts +12 -24
  201. package/dist/custom-auth-path/request/PopupRequest.d.ts.map +1 -1
  202. package/dist/custom-auth-path/request/RedirectRequest.d.ts +6 -22
  203. package/dist/custom-auth-path/request/RedirectRequest.d.ts.map +1 -1
  204. package/dist/custom-auth-path/request/RequestHelpers.mjs +1 -1
  205. package/dist/custom-auth-path/request/SilentRequest.d.ts +33 -13
  206. package/dist/custom-auth-path/request/SilentRequest.d.ts.map +1 -1
  207. package/dist/custom-auth-path/request/SsoSilentRequest.d.ts +0 -21
  208. package/dist/custom-auth-path/request/SsoSilentRequest.d.ts.map +1 -1
  209. package/dist/custom-auth-path/response/ResponseHandler.mjs +1 -1
  210. package/dist/custom-auth-path/telemetry/BrowserPerformanceEvents.d.ts +4 -0
  211. package/dist/custom-auth-path/telemetry/BrowserPerformanceEvents.d.ts.map +1 -1
  212. package/dist/custom-auth-path/telemetry/BrowserPerformanceEvents.mjs +1 -1
  213. package/dist/custom-auth-path/telemetry/BrowserRootPerformanceEvents.d.ts +1 -0
  214. package/dist/custom-auth-path/telemetry/BrowserRootPerformanceEvents.d.ts.map +1 -1
  215. package/dist/custom-auth-path/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
  216. package/dist/custom-auth-path/utils/BrowserConstants.mjs +1 -1
  217. package/dist/custom-auth-path/utils/BrowserProtocolUtils.mjs +1 -1
  218. package/dist/custom-auth-path/utils/BrowserUtils.mjs +1 -1
  219. package/dist/custom-auth-path/utils/Helpers.mjs +1 -1
  220. package/dist/custom-auth-path/utils/MsalFrameStatsUtils.mjs +1 -1
  221. package/dist/custom_auth/CustomAuthConstants.d.ts +1 -1
  222. package/dist/encode/Base64Decode.mjs +1 -1
  223. package/dist/encode/Base64Encode.mjs +1 -1
  224. package/dist/error/BrowserAuthError.mjs +1 -1
  225. package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
  226. package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
  227. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  228. package/dist/error/NativeAuthError.mjs +1 -1
  229. package/dist/error/NativeAuthErrorCodes.mjs +1 -1
  230. package/dist/error/NestedAppAuthError.mjs +1 -1
  231. package/dist/event/EventHandler.mjs +1 -1
  232. package/dist/event/EventMessage.mjs +1 -1
  233. package/dist/event/EventType.mjs +1 -1
  234. package/dist/index.mjs +1 -1
  235. package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
  236. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  237. package/dist/interaction_client/PlatformAuthInteractionClient.mjs +1 -1
  238. package/dist/interaction_client/PopupClient.mjs +1 -1
  239. package/dist/interaction_client/RedirectClient.mjs +1 -1
  240. package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
  241. package/dist/interaction_client/SilentCacheClient.mjs +1 -1
  242. package/dist/interaction_client/SilentIframeClient.mjs +1 -1
  243. package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
  244. package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
  245. package/dist/interaction_handler/InteractionHandler.mjs +1 -1
  246. package/dist/interaction_handler/SilentHandler.mjs +1 -1
  247. package/dist/log-strings-mapping.json +2 -2
  248. package/dist/naa/BridgeError.mjs +1 -1
  249. package/dist/naa/BridgeProxy.mjs +1 -1
  250. package/dist/naa/BridgeStatusCode.mjs +1 -1
  251. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
  252. package/dist/navigation/NavigationClient.mjs +1 -1
  253. package/dist/network/FetchClient.mjs +1 -1
  254. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  255. package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
  256. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  257. package/dist/packageMetadata.d.ts +1 -1
  258. package/dist/packageMetadata.d.ts.map +1 -1
  259. package/dist/packageMetadata.mjs +2 -2
  260. package/dist/protocol/Authorize.mjs +1 -1
  261. package/dist/redirect-bridge/cache/CacheKeys.mjs +1 -1
  262. package/dist/redirect-bridge/cache/TokenCache.d.ts +7 -5
  263. package/dist/redirect-bridge/cache/TokenCache.d.ts.map +1 -1
  264. package/dist/redirect-bridge/config/Configuration.mjs +1 -1
  265. package/dist/redirect-bridge/custom_auth/CustomAuthConstants.d.ts +1 -1
  266. package/dist/redirect-bridge/encode/Base64Decode.mjs +1 -1
  267. package/dist/redirect-bridge/error/BrowserAuthError.mjs +1 -1
  268. package/dist/redirect-bridge/error/BrowserAuthErrorCodes.mjs +1 -1
  269. package/dist/redirect-bridge/navigation/NavigationClient.mjs +1 -1
  270. package/dist/redirect-bridge/packageMetadata.d.ts +1 -1
  271. package/dist/redirect-bridge/packageMetadata.d.ts.map +1 -1
  272. package/dist/redirect-bridge/redirect_bridge/index.mjs +1 -1
  273. package/dist/redirect-bridge/request/AuthorizationCodeRequest.d.ts +18 -0
  274. package/dist/redirect-bridge/request/AuthorizationCodeRequest.d.ts.map +1 -1
  275. package/dist/redirect-bridge/request/ClearCacheRequest.d.ts +6 -2
  276. package/dist/redirect-bridge/request/ClearCacheRequest.d.ts.map +1 -1
  277. package/dist/redirect-bridge/request/EndSessionPopupRequest.d.ts +12 -9
  278. package/dist/redirect-bridge/request/EndSessionPopupRequest.d.ts.map +1 -1
  279. package/dist/redirect-bridge/request/EndSessionRequest.d.ts +3 -6
  280. package/dist/redirect-bridge/request/EndSessionRequest.d.ts.map +1 -1
  281. package/dist/redirect-bridge/request/InitializeApplicationRequest.d.ts +3 -2
  282. package/dist/redirect-bridge/request/InitializeApplicationRequest.d.ts.map +1 -1
  283. package/dist/redirect-bridge/request/PopupRequest.d.ts +12 -24
  284. package/dist/redirect-bridge/request/PopupRequest.d.ts.map +1 -1
  285. package/dist/redirect-bridge/request/RedirectRequest.d.ts +6 -22
  286. package/dist/redirect-bridge/request/RedirectRequest.d.ts.map +1 -1
  287. package/dist/redirect-bridge/request/SilentRequest.d.ts +33 -13
  288. package/dist/redirect-bridge/request/SilentRequest.d.ts.map +1 -1
  289. package/dist/redirect-bridge/request/SsoSilentRequest.d.ts +0 -21
  290. package/dist/redirect-bridge/request/SsoSilentRequest.d.ts.map +1 -1
  291. package/dist/redirect-bridge/telemetry/BrowserPerformanceEvents.d.ts +4 -0
  292. package/dist/redirect-bridge/telemetry/BrowserPerformanceEvents.d.ts.map +1 -1
  293. package/dist/redirect-bridge/telemetry/BrowserRootPerformanceEvents.d.ts +1 -0
  294. package/dist/redirect-bridge/telemetry/BrowserRootPerformanceEvents.d.ts.map +1 -1
  295. package/dist/redirect-bridge/utils/BrowserConstants.mjs +1 -1
  296. package/dist/redirect-bridge/utils/BrowserUtils.mjs +1 -1
  297. package/dist/request/AuthorizationCodeRequest.d.ts +18 -0
  298. package/dist/request/AuthorizationCodeRequest.d.ts.map +1 -1
  299. package/dist/request/ClearCacheRequest.d.ts +6 -2
  300. package/dist/request/ClearCacheRequest.d.ts.map +1 -1
  301. package/dist/request/EndSessionPopupRequest.d.ts +12 -9
  302. package/dist/request/EndSessionPopupRequest.d.ts.map +1 -1
  303. package/dist/request/EndSessionRequest.d.ts +3 -6
  304. package/dist/request/EndSessionRequest.d.ts.map +1 -1
  305. package/dist/request/InitializeApplicationRequest.d.ts +3 -2
  306. package/dist/request/InitializeApplicationRequest.d.ts.map +1 -1
  307. package/dist/request/PopupRequest.d.ts +12 -24
  308. package/dist/request/PopupRequest.d.ts.map +1 -1
  309. package/dist/request/RedirectRequest.d.ts +6 -22
  310. package/dist/request/RedirectRequest.d.ts.map +1 -1
  311. package/dist/request/RequestHelpers.mjs +1 -1
  312. package/dist/request/SilentRequest.d.ts +33 -13
  313. package/dist/request/SilentRequest.d.ts.map +1 -1
  314. package/dist/request/SsoSilentRequest.d.ts +0 -21
  315. package/dist/request/SsoSilentRequest.d.ts.map +1 -1
  316. package/dist/response/ResponseHandler.mjs +1 -1
  317. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  318. package/dist/telemetry/BrowserPerformanceEvents.d.ts +4 -0
  319. package/dist/telemetry/BrowserPerformanceEvents.d.ts.map +1 -1
  320. package/dist/telemetry/BrowserPerformanceEvents.mjs +7 -3
  321. package/dist/telemetry/BrowserPerformanceEvents.mjs.map +1 -1
  322. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  323. package/dist/telemetry/BrowserRootPerformanceEvents.d.ts +1 -0
  324. package/dist/telemetry/BrowserRootPerformanceEvents.d.ts.map +1 -1
  325. package/dist/telemetry/BrowserRootPerformanceEvents.mjs +5 -3
  326. package/dist/telemetry/BrowserRootPerformanceEvents.mjs.map +1 -1
  327. package/dist/utils/BrowserConstants.mjs +1 -1
  328. package/dist/utils/BrowserProtocolUtils.mjs +1 -1
  329. package/dist/utils/BrowserUtils.mjs +1 -1
  330. package/dist/utils/Helpers.mjs +1 -1
  331. package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
  332. package/lib/custom-auth-path/log-strings-mapping.json +2 -2
  333. package/lib/custom-auth-path/msal-custom-auth.cjs +77 -72
  334. package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
  335. package/lib/custom-auth-path/types/cache/TokenCache.d.ts +7 -5
  336. package/lib/custom-auth-path/types/cache/TokenCache.d.ts.map +1 -1
  337. package/lib/custom-auth-path/types/custom_auth/CustomAuthConstants.d.ts +1 -1
  338. package/lib/custom-auth-path/types/packageMetadata.d.ts +1 -1
  339. package/lib/custom-auth-path/types/packageMetadata.d.ts.map +1 -1
  340. package/lib/custom-auth-path/types/request/AuthorizationCodeRequest.d.ts +18 -0
  341. package/lib/custom-auth-path/types/request/AuthorizationCodeRequest.d.ts.map +1 -1
  342. package/lib/custom-auth-path/types/request/ClearCacheRequest.d.ts +6 -2
  343. package/lib/custom-auth-path/types/request/ClearCacheRequest.d.ts.map +1 -1
  344. package/lib/custom-auth-path/types/request/EndSessionPopupRequest.d.ts +12 -9
  345. package/lib/custom-auth-path/types/request/EndSessionPopupRequest.d.ts.map +1 -1
  346. package/lib/custom-auth-path/types/request/EndSessionRequest.d.ts +3 -6
  347. package/lib/custom-auth-path/types/request/EndSessionRequest.d.ts.map +1 -1
  348. package/lib/custom-auth-path/types/request/InitializeApplicationRequest.d.ts +3 -2
  349. package/lib/custom-auth-path/types/request/InitializeApplicationRequest.d.ts.map +1 -1
  350. package/lib/custom-auth-path/types/request/PopupRequest.d.ts +12 -24
  351. package/lib/custom-auth-path/types/request/PopupRequest.d.ts.map +1 -1
  352. package/lib/custom-auth-path/types/request/RedirectRequest.d.ts +6 -22
  353. package/lib/custom-auth-path/types/request/RedirectRequest.d.ts.map +1 -1
  354. package/lib/custom-auth-path/types/request/SilentRequest.d.ts +33 -13
  355. package/lib/custom-auth-path/types/request/SilentRequest.d.ts.map +1 -1
  356. package/lib/custom-auth-path/types/request/SsoSilentRequest.d.ts +0 -21
  357. package/lib/custom-auth-path/types/request/SsoSilentRequest.d.ts.map +1 -1
  358. package/lib/custom-auth-path/types/telemetry/BrowserPerformanceEvents.d.ts +4 -0
  359. package/lib/custom-auth-path/types/telemetry/BrowserPerformanceEvents.d.ts.map +1 -1
  360. package/lib/custom-auth-path/types/telemetry/BrowserRootPerformanceEvents.d.ts +1 -0
  361. package/lib/custom-auth-path/types/telemetry/BrowserRootPerformanceEvents.d.ts.map +1 -1
  362. package/lib/log-strings-mapping.json +2 -2
  363. package/lib/msal-browser.cjs +128 -106
  364. package/lib/msal-browser.cjs.map +1 -1
  365. package/lib/msal-browser.js +128 -106
  366. package/lib/msal-browser.js.map +1 -1
  367. package/lib/msal-browser.min.js +2 -2
  368. package/lib/redirect-bridge/msal-redirect-bridge.js +10 -10
  369. package/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
  370. package/lib/redirect-bridge/msal-redirect-bridge.min.js +1 -1
  371. package/lib/types/cache/TokenCache.d.ts +7 -5
  372. package/lib/types/cache/TokenCache.d.ts.map +1 -1
  373. package/lib/types/custom_auth/CustomAuthConstants.d.ts +1 -1
  374. package/lib/types/packageMetadata.d.ts +1 -1
  375. package/lib/types/packageMetadata.d.ts.map +1 -1
  376. package/lib/types/request/AuthorizationCodeRequest.d.ts +18 -0
  377. package/lib/types/request/AuthorizationCodeRequest.d.ts.map +1 -1
  378. package/lib/types/request/ClearCacheRequest.d.ts +6 -2
  379. package/lib/types/request/ClearCacheRequest.d.ts.map +1 -1
  380. package/lib/types/request/EndSessionPopupRequest.d.ts +12 -9
  381. package/lib/types/request/EndSessionPopupRequest.d.ts.map +1 -1
  382. package/lib/types/request/EndSessionRequest.d.ts +3 -6
  383. package/lib/types/request/EndSessionRequest.d.ts.map +1 -1
  384. package/lib/types/request/InitializeApplicationRequest.d.ts +3 -2
  385. package/lib/types/request/InitializeApplicationRequest.d.ts.map +1 -1
  386. package/lib/types/request/PopupRequest.d.ts +12 -24
  387. package/lib/types/request/PopupRequest.d.ts.map +1 -1
  388. package/lib/types/request/RedirectRequest.d.ts +6 -22
  389. package/lib/types/request/RedirectRequest.d.ts.map +1 -1
  390. package/lib/types/request/SilentRequest.d.ts +33 -13
  391. package/lib/types/request/SilentRequest.d.ts.map +1 -1
  392. package/lib/types/request/SsoSilentRequest.d.ts +0 -21
  393. package/lib/types/request/SsoSilentRequest.d.ts.map +1 -1
  394. package/lib/types/telemetry/BrowserPerformanceEvents.d.ts +4 -0
  395. package/lib/types/telemetry/BrowserPerformanceEvents.d.ts.map +1 -1
  396. package/lib/types/telemetry/BrowserRootPerformanceEvents.d.ts +1 -0
  397. package/lib/types/telemetry/BrowserRootPerformanceEvents.d.ts.map +1 -1
  398. package/package.json +5 -4
  399. package/src/cache/TokenCache.ts +143 -95
  400. package/src/packageMetadata.ts +1 -1
  401. package/src/request/AuthorizationCodeRequest.ts +18 -0
  402. package/src/request/ClearCacheRequest.ts +6 -2
  403. package/src/request/EndSessionPopupRequest.ts +12 -9
  404. package/src/request/EndSessionRequest.ts +3 -6
  405. package/src/request/InitializeApplicationRequest.ts +3 -2
  406. package/src/request/PopupRequest.ts +12 -24
  407. package/src/request/RedirectRequest.ts +6 -22
  408. package/src/request/SilentRequest.ts +33 -13
  409. package/src/request/SsoSilentRequest.ts +0 -21
  410. package/src/telemetry/BrowserPerformanceEvents.ts +5 -0
  411. package/src/telemetry/BrowserRootPerformanceEvents.ts +2 -0
@@ -1 +1 @@
1
- {"version":3,"file":"PopupRequest.d.ts","sourceRoot":"","sources":["../../../src/request/PopupRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,MAAM,MAAM,YAAY,GAAG,OAAO,CAC9B,IAAI,CACA,6BAA6B,EAC3B,cAAc,GACd,QAAQ,GACR,QAAQ,GACR,eAAe,GACf,qBAAqB,GACrB,gBAAgB,CACrB,CACJ,GAAG;IACA,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;IAC9C,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,6BAA6B,CAAC,EAAE,OAAO,CAAC;CAC3C,CAAC"}
1
+ {"version":3,"file":"PopupRequest.d.ts","sourceRoot":"","sources":["../../../src/request/PopupRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE;;;GAGG;AAEH,MAAM,MAAM,YAAY,GAAG,OAAO,CAC9B,IAAI,CACA,6BAA6B,EAC3B,cAAc,GACd,QAAQ,GACR,QAAQ,GACR,eAAe,GACf,qBAAqB,GACrB,gBAAgB,CACrB,CACJ,GAAG;IACA;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB;;OAEG;IACH,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;IAC9C;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,6BAA6B,CAAC,EAAE,OAAO,CAAC;CAC3C,CAAC"}
@@ -2,31 +2,15 @@ import { CommonAuthorizationUrlRequest } from "@azure/msal-common/browser";
2
2
  /**
3
3
  * RedirectRequest: Request object passed by user to retrieve a Code from the
4
4
  * server (first leg of authorization code grant flow) with a full page redirect.
5
- *
6
- * - scopes - Array of scopes the application is requesting access to.
7
- * - authority - Url of the authority which the application acquires tokens from.
8
- * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
9
- * - redirectUri - The redirect URI where authentication responses can be received by your application. It must exactly match one of the redirect URIs registered in the Azure portal.
10
- * - extraScopesToConsent - Scopes for a different resource when the user needs consent upfront.
11
- * - state - A value included in the request that is also returned in the token response. A randomly generated unique value is typically used for preventing cross site request forgery attacks. The state is also used to encode information about the user's state in the app before the authentication request occurred.
12
- * - prompt - Indicates the type of user interaction that is required.
13
- * login: will force the user to enter their credentials on that request, negating single-sign on
14
- * none: will ensure that the user isn't presented with any interactive prompt. if request can't be completed via single-sign on, the endpoint will return an interaction_required error
15
- * consent: will the trigger the OAuth consent dialog after the user signs in, asking the user to grant permissions to the app
16
- * select_account: will interrupt single sign-=on providing account selection experience listing all the accounts in session or any remembered accounts or an option to choose to use a different account
17
- * create: will direct the user to the account creation experience instead of the log in experience
18
- * no_session: will not read existing session token when authenticating the user. Upon user being successfully authenticated, EVO won’t create a new session for the user. FOR INTERNAL USE ONLY.
19
- * - loginHint - Can be used to pre-fill the username/email address field of the sign-in page for the user, if you know the username/email address ahead of time. Often apps use this parameter during re-authentication, having already extracted the username from a previous sign-in using the login_hint or preferred_username claim.
20
- * - sid - Session ID, unique identifier for the session. Available as an optional claim on ID tokens.
21
- * - domainHint - Provides a hint about the tenant or domain that the user should use to sign in. The value of the domain hint is a registered domain for the tenant.
22
- * - extraQueryParameters - String to string map of custom query parameters added to outgoing token service requests
23
- * - extraParameters - String to string map of custom query parameters added to outgoing token service requests
24
- * - claims - In cases where Azure AD tenant admin has enabled conditional access policies, and the policy has not been met, exceptions will contain claims that need to be consented to.
25
- * - nonce - A value included in the request that is returned in the id token. A randomly generated unique value is typically used to mitigate replay attacks.
26
- * - redirectStartPage - The page that should be returned to after loginRedirect or acquireTokenRedirect. This should only be used if this is different from the redirectUri and will default to the page that initiates the request. When the navigateToLoginRequestUrl config option is set to false this parameter will be ignored.
27
5
  */
28
6
  export type RedirectRequest = Partial<Omit<CommonAuthorizationUrlRequest, "responseMode" | "scopes" | "earJwk" | "codeChallenge" | "codeChallengeMethod" | "platformBroker">> & {
7
+ /**
8
+ * Array of scopes the application is requesting access to.
9
+ */
29
10
  scopes: Array<string>;
11
+ /**
12
+ * The page that should be returned to after loginRedirect or acquireTokenRedirect. This should only be used if this is different from the redirectUri and will default to the page that initiates the request. When the navigateToLoginRequestUrl config option is set to false this parameter will be ignored.
13
+ */
30
14
  redirectStartPage?: string;
31
15
  };
32
16
  //# sourceMappingURL=RedirectRequest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RedirectRequest.d.ts","sourceRoot":"","sources":["../../../src/request/RedirectRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AAE3E;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,CACjC,IAAI,CACA,6BAA6B,EAC3B,cAAc,GACd,QAAQ,GACR,QAAQ,GACR,eAAe,GACf,qBAAqB,GACrB,gBAAgB,CACrB,CACJ,GAAG;IACA,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC"}
1
+ {"version":3,"file":"RedirectRequest.d.ts","sourceRoot":"","sources":["../../../src/request/RedirectRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AAE3E;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,CACjC,IAAI,CACA,6BAA6B,EAC3B,cAAc,GACd,QAAQ,GACR,QAAQ,GACR,eAAe,GACf,qBAAqB,GACrB,gBAAgB,CACrB,CACJ,GAAG;IACA;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC"}
@@ -4,29 +4,49 @@ import { CacheLookupPolicy } from "../utils/BrowserConstants.js";
4
4
  * SilentRequest: Request object passed by user to retrieve tokens from the
5
5
  * cache, renew an expired token with a refresh token, or retrieve a code (first leg of authorization code grant flow)
6
6
  * in a hidden iframe.
7
- *
8
- * - scopes - Array of scopes the application is requesting access to.
9
- * - authority - Url of the authority which the application acquires tokens from.
10
- * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
11
- * - account - Account entity to lookup the credentials.
12
- * - forceRefresh - Forces silent requests to make network calls if true.
13
- * - extraQueryParameters - String to string map of custom query parameters added to outgoing token service requests. Only used when renewing access tokens.
14
- * - extraParameters - String to string map of custom query parameters added to outgoing token service requests. only used when renewing access tokens.
15
- * - redirectUri - The redirect URI where authentication responses can be received by your application. It must exactly match one of the redirect URIs registered in the Azure portal. Only used for cases where refresh token is expired.
16
- * - cacheLookupPolicy - Enum of different ways the silent token can be retrieved.
17
- * - prompt - Indicates the type of user interaction that is required.
18
- * none: will ensure that the user isn't presented with any interactive prompt. if request can't be completed via single-sign on, the endpoint will return an interaction_required error
19
- * no_session: will not read existing session token when authenticating the user. Upon user being successfully authenticated, EVO won’t create a new session for the user. FOR INTERNAL USE ONLY.
20
7
  */
21
8
  export type SilentRequest = Omit<CommonSilentFlowRequest, "authority" | "correlationId" | "forceRefresh" | "account"> & {
9
+ /**
10
+ * The redirect URI where authentication responses can be received by your application. It must exactly match one of the redirect URIs registered in the Azure portal. Only used for cases where refresh token is expired.
11
+ */
22
12
  redirectUri?: string;
13
+ /**
14
+ * String to string map of custom query parameters added to outgoing token service requests. Unless the parameter is ONLY supported on query string use extraParameters instead.
15
+ */
23
16
  extraQueryParameters?: StringDict;
17
+ /**
18
+ * Url of the authority which the application acquires tokens from.
19
+ */
24
20
  authority?: string;
21
+ /**
22
+ * Account entity to lookup the credentials.
23
+ */
25
24
  account?: AccountInfo;
25
+ /**
26
+ * Unique GUID set per request to trace a request end-to-end for telemetry purposes.
27
+ */
26
28
  correlationId?: string;
29
+ /**
30
+ * Forces silent requests to make network calls if true.
31
+ */
27
32
  forceRefresh?: boolean;
33
+ /**
34
+ * Enum of different ways the silent token can be retrieved.
35
+ */
28
36
  cacheLookupPolicy?: CacheLookupPolicy;
37
+ /**
38
+ * Indicates the type of user interaction that is required.
39
+ * login: will force the user to enter their credentials on that request, negating single-sign on
40
+ * none: will ensure that the user isn't presented with any interactive prompt. if request can't be completed via single-sign on, the endpoint will return an interaction_required error
41
+ * consent: will the trigger the OAuth consent dialog after the user signs in, asking the user to grant permissions to the app
42
+ * select_account: will interrupt single sign-=on providing account selection experience listing all the accounts in session or any remembered accounts or an option to choose to use a different account
43
+ * create: will direct the user to the account creation experience instead of the log in experience
44
+ * no_session: will not read existing session token when authenticating the user. Upon user being successfully authenticated, EVO won’t create a new session for the user. FOR INTERNAL USE ONLY.
45
+ */
29
46
  prompt?: string;
47
+ /**
48
+ * A value included in the request that is also returned in the token response when a hidden iframe is used.
49
+ */
30
50
  state?: string;
31
51
  };
32
52
  //# sourceMappingURL=SilentRequest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SilentRequest.d.ts","sourceRoot":"","sources":["../../../src/request/SilentRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,WAAW,EACX,uBAAuB,EACvB,UAAU,EACb,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEjE;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,aAAa,GAAG,IAAI,CAC5B,uBAAuB,EACvB,WAAW,GAAG,eAAe,GAAG,cAAc,GAAG,SAAS,CAC7D,GAAG;IACA,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB,CAAC,EAAE,UAAU,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
1
+ {"version":3,"file":"SilentRequest.d.ts","sourceRoot":"","sources":["../../../src/request/SilentRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,WAAW,EACX,uBAAuB,EACvB,UAAU,EACb,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEjE;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,IAAI,CAC5B,uBAAuB,EACvB,WAAW,GAAG,eAAe,GAAG,cAAc,GAAG,SAAS,CAC7D,GAAG;IACA;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,oBAAoB,CAAC,EAAE,UAAU,CAAC;IAClC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -1,27 +1,6 @@
1
1
  import { CommonAuthorizationUrlRequest } from "@azure/msal-common/browser";
2
2
  /**
3
3
  * Request object passed by user to ssoSilent to retrieve a Code from the server (first leg of authorization code grant flow)
4
- *
5
- * - scopes - Array of scopes the application is requesting access to (optional for ssoSilent calls)
6
- * - claims - A stringified claims request which will be added to all /authorize and /token calls
7
- * - authority - Url of the authority which the application acquires tokens from.
8
- * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
9
- * - redirectUri - The redirect URI where authentication responses can be received by your application. It must exactly match one of the redirect URIs registered in the Azure portal.
10
- * - extraScopesToConsent - Scopes for a different resource when the user needs consent upfront.
11
- * - state - A value included in the request that is also returned in the token response. A randomly generated unique value is typically used for preventing cross site request forgery attacks. The state is also used to encode information about the user's state in the app before the authentication request occurred.
12
- * - prompt - Indicates the type of user interaction that is required.
13
- * login: will force the user to enter their credentials on that request, negating single-sign on
14
- * none: will ensure that the user isn't presented with any interactive prompt. if request can't be completed via single-sign on, the endpoint will return an interaction_required error
15
- * consent: will trigger the OAuth consent dialog after the user signs in, asking the user to grant permissions to the app
16
- * select_account: will interrupt single sign-=on providing account selection experience listing all the accounts in session or any remembered accounts or an option to choose to use a different account
17
- * create: will direct the user to the account creation experience instead of the log in experience
18
- * no_session: will not read existing session token when authenticating the user. Upon user being successfully authenticated, EVO won’t create a new session for the user. FOR INTERNAL USE ONLY.
19
- * - loginHint - Can be used to pre-fill the username/email address field of the sign-in page for the user, if you know the username/email address ahead of time. Often apps use this parameter during re-authentication, having already extracted the username from a previous sign-in using the login_hint or preferred_username claim.
20
- * - sid - Session ID, unique identifier for the session. Available as an optional claim on ID tokens.
21
- * - domainHint - Provides a hint about the tenant or domain that the user should use to sign in. The value of the domain hint is a registered domain for the tenant.
22
- * - extraQueryParameters - String to string map of custom query parameters added to outgoing token service requests. Only used when renewing access tokens.
23
- * - extraParameters - String to string map of custom query parameters added to outgoing token service requests. Only used when renewing access tokens.
24
- * - nonce - A value included in the request that is returned in the id token. A randomly generated unique value is typically used to mitigate replay attacks.
25
4
  */
26
5
  export type SsoSilentRequest = Partial<Omit<CommonAuthorizationUrlRequest, "responseMode" | "earJwk" | "codeChallenge" | "codeChallengeMethod" | "platformBroker">>;
27
6
  //# sourceMappingURL=SsoSilentRequest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SsoSilentRequest.d.ts","sourceRoot":"","sources":["../../../src/request/SsoSilentRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AAE3E;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAClC,IAAI,CACA,6BAA6B,EAC3B,cAAc,GACd,QAAQ,GACR,eAAe,GACf,qBAAqB,GACrB,gBAAgB,CACrB,CACJ,CAAC"}
1
+ {"version":3,"file":"SsoSilentRequest.d.ts","sourceRoot":"","sources":["../../../src/request/SsoSilentRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AAE3E;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAClC,IAAI,CACA,6BAA6B,EAC3B,cAAc,GACd,QAAQ,GACR,eAAe,GACf,qBAAqB,GACrB,gBAAgB,CACrB,CACJ,CAAC"}
@@ -127,4 +127,8 @@ export declare const Encrypt = "encrypt";
127
127
  export declare const Decrypt = "decrypt";
128
128
  export declare const GenerateEarKey = "generateEarKey";
129
129
  export declare const DecryptEarResponse = "decryptEarResponse";
130
+ export declare const LoadAccount = "loadAccount";
131
+ export declare const LoadIdToken = "loadIdToken";
132
+ export declare const LoadAccessToken = "loadAccessToken";
133
+ export declare const LoadRefreshToken = "loadRefreshToken";
130
134
  //# sourceMappingURL=BrowserPerformanceEvents.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BrowserPerformanceEvents.d.ts","sourceRoot":"","sources":["../../../src/telemetry/BrowserPerformanceEvents.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAE7D;;;GAGG;AACH,eAAO,MAAM,0BAA0B,+BAA+B,CAAC;AAEvE;;;GAGG;AACH,eAAO,MAAM,uBAAuB,4BAA4B,CAAC;AAEjE;;;GAGG;AACH,eAAO,MAAM,gCAAgC,qCACP,CAAC;AAEvC;;;GAGG;AACH,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AAErD;;;GAGG;AACH,eAAO,MAAM,6BAA6B,kCAAk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M,WAAW,gBAAgB,CAAC;AACzC,eAAO,MAAM,WAAW,gBAAgB,CAAC;AACzC,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC"}
@@ -32,4 +32,5 @@ export declare const AcquireTokenRedirect = "acquireTokenRedirect";
32
32
  export declare const SsoSilent = "ssoSilent";
33
33
  export declare const InitializeClientApplication = "initializeClientApplication";
34
34
  export declare const LocalStorageUpdated = "localStorageUpdated";
35
+ export declare const LoadExternalTokens = "loadExternalTokens";
35
36
  //# sourceMappingURL=BrowserRootPerformanceEvents.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BrowserRootPerformanceEvents.d.ts","sourceRoot":"","sources":["../../../src/telemetry/BrowserRootPerformanceEvents.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD;;;GAGG;AACH,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AACrD;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,4BAA4B,CAAC;AACjE;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAC3D;;;GAGG;AACH,eAAO,MAAM,SAAS,cAAc,CAAC;AAErC,eAAO,MAAM,2BAA2B,gCAAgC,CAAC;AAEzE,eAAO,MAAM,mBAAmB,wBAAwB,CAAC"}
1
+ {"version":3,"file":"BrowserRootPerformanceEvents.d.ts","sourceRoot":"","sources":["../../../src/telemetry/BrowserRootPerformanceEvents.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD;;;GAGG;AACH,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AACrD;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,4BAA4B,CAAC;AACjE;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAC3D;;;GAGG;AACH,eAAO,MAAM,SAAS,cAAc,CAAC;AAErC,eAAO,MAAM,2BAA2B,gCAAgC,CAAC;AAEzE,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AAEzD,eAAO,MAAM,kBAAkB,uBAAuB,CAAC"}
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "type": "git",
11
11
  "url": "https://github.com/AzureAD/microsoft-authentication-library-for-js.git"
12
12
  },
13
- "version": "5.0.0-beta.0",
13
+ "version": "5.0.1",
14
14
  "description": "Microsoft Authentication Library for js",
15
15
  "keywords": [
16
16
  "implicit",
@@ -82,11 +82,11 @@
82
82
  "test:coverage": "jest --coverage",
83
83
  "test:coverage:only": "npm run clean:coverage && npm run test:coverage",
84
84
  "build:all": "cd ../.. && npm run build --workspace=@azure/msal-common --workspace=@azure/msal-browser",
85
- "build:all:debug": "cd ../.. && MSAL_MINIFY_LOGS=false npm run build --workspace=@azure/msal-common --workspace=@azure/msal-browser",
85
+ "build:all:debug": "cd ../.. && cross-env MSAL_MINIFY_LOGS=false npm run build --workspace=@azure/msal-common --workspace=@azure/msal-browser",
86
86
  "build:modules": "rollup -c --strictDeprecations --bundleConfigAsCjs",
87
87
  "build:modules:watch": "rollup -cw --bundleConfigAsCjs",
88
88
  "build": "npm run clean && npm run build:modules",
89
- "build:debug": "npm run clean && MSAL_MINIFY_LOGS=false npm run build:modules",
89
+ "build:debug": "npm run clean && cross-env MSAL_MINIFY_LOGS=false npm run build:modules",
90
90
  "decode-logs": "node scripts/decode-logs.cjs",
91
91
  "prepack": "npm run build:all",
92
92
  "format:check": "prettier --ignore-path .gitignore --check src test",
@@ -106,6 +106,7 @@
106
106
  "@rollup/plugin-typescript": "^11.0.0",
107
107
  "@types/jest": "^29.5.0",
108
108
  "@types/node": "^20.3.1",
109
+ "cross-env": "^10.1.0",
109
110
  "dotenv": "^8.2.0",
110
111
  "eslint-config-msal": "file:../../shared-configs/eslint-config-msal",
111
112
  "fake-indexeddb": "^3.1.3",
@@ -125,6 +126,6 @@
125
126
  "typescript": "^4.9.5"
126
127
  },
127
128
  "dependencies": {
128
- "@azure/msal-common": "16.0.0-beta.0"
129
+ "@azure/msal-common": "16.0.1"
129
130
  }
130
131
  }
@@ -22,6 +22,9 @@ import {
22
22
  TimeUtils,
23
23
  AccountEntityUtils,
24
24
  buildStaticAuthorityOptions,
25
+ invokeAsync,
26
+ IPerformanceClient,
27
+ StubPerformanceClient,
25
28
  } from "@azure/msal-common/browser";
26
29
  import { buildConfiguration, Configuration } from "../config/Configuration.js";
27
30
  import type { SilentRequest } from "../request/SilentRequest.js";
@@ -36,6 +39,8 @@ import * as BrowserCrypto from "../crypto/BrowserCrypto.js";
36
39
  import { CryptoOps } from "../crypto/CryptoOps.js";
37
40
  import { EventHandler } from "../event/EventHandler.js";
38
41
  import * as BrowserUtils from "../utils/BrowserUtils.js";
42
+ import * as BrowserRootPerformanceEvents from "../telemetry/BrowserRootPerformanceEvents.js";
43
+ import * as BrowserPerformanceEvents from "../telemetry/BrowserPerformanceEvents.js";
39
44
 
40
45
  export type LoadTokenOptions = {
41
46
  clientInfo?: string;
@@ -45,16 +50,19 @@ export type LoadTokenOptions = {
45
50
 
46
51
  /**
47
52
  * API to load tokens to msal-browser cache.
48
- * @param request
49
- * @param response
50
- * @param options
53
+ * @param config - Object to configure the MSAL app.
54
+ * @param request - Silent request containing authority, scopes, and account.
55
+ * @param response - External token response to load into the cache.
56
+ * @param options - Options controlling how tokens are loaded into the cache.
57
+ * @param performanceClient - Optional performance client used for telemetry measurements.
51
58
  * @returns `AuthenticationResult` for the response that was loaded.
52
59
  */
53
60
  export async function loadExternalTokens(
54
61
  config: Configuration,
55
62
  request: SilentRequest,
56
63
  response: ExternalTokenResponse,
57
- options: LoadTokenOptions
64
+ options: LoadTokenOptions,
65
+ performanceClient: IPerformanceClient = new StubPerformanceClient()
58
66
  ): Promise<AuthenticationResult> {
59
67
  BrowserUtils.blockNonBrowserEnvironment();
60
68
 
@@ -63,104 +71,144 @@ export async function loadExternalTokens(
63
71
  const correlationId =
64
72
  request.correlationId || BrowserCrypto.createNewGuid();
65
73
 
66
- const idTokenClaims = response.id_token
67
- ? AuthToken.extractTokenClaims(response.id_token, base64Decode)
68
- : undefined;
69
- const kmsi = AuthToken.isKmsi(idTokenClaims || {});
74
+ const rootMeasurement = performanceClient.startMeasurement(
75
+ BrowserRootPerformanceEvents.LoadExternalTokens,
76
+ correlationId
77
+ );
70
78
 
71
- const authorityOptions: AuthorityOptions = {
72
- protocolMode: browserConfig.system.protocolMode,
73
- knownAuthorities: browserConfig.auth.knownAuthorities,
74
- cloudDiscoveryMetadata: browserConfig.auth.cloudDiscoveryMetadata,
75
- authorityMetadata: browserConfig.auth.authorityMetadata,
76
- };
79
+ try {
80
+ const idTokenClaims = response.id_token
81
+ ? AuthToken.extractTokenClaims(response.id_token, base64Decode)
82
+ : undefined;
83
+ const kmsi = AuthToken.isKmsi(idTokenClaims || {});
84
+
85
+ const authorityOptions: AuthorityOptions = {
86
+ protocolMode: browserConfig.system.protocolMode,
87
+ knownAuthorities: browserConfig.auth.knownAuthorities,
88
+ cloudDiscoveryMetadata: browserConfig.auth.cloudDiscoveryMetadata,
89
+ authorityMetadata: browserConfig.auth.authorityMetadata,
90
+ };
91
+
92
+ const logger = new Logger(browserConfig.system.loggerOptions || {});
93
+ const cryptoOps = new CryptoOps(logger, browserConfig.telemetry.client);
94
+ const storage = new BrowserCacheManager(
95
+ browserConfig.auth.clientId,
96
+ browserConfig.cache,
97
+ cryptoOps,
98
+ logger,
99
+ browserConfig.telemetry.client,
100
+ new EventHandler(logger),
101
+ buildStaticAuthorityOptions(browserConfig.auth)
102
+ );
77
103
 
78
- const logger = new Logger(browserConfig.system.loggerOptions || {});
79
- const cryptoOps = new CryptoOps(logger, browserConfig.telemetry.client);
80
- const storage = new BrowserCacheManager(
81
- browserConfig.auth.clientId,
82
- browserConfig.cache,
83
- cryptoOps,
84
- logger,
85
- browserConfig.telemetry.client,
86
- new EventHandler(logger),
87
- buildStaticAuthorityOptions(browserConfig.auth)
88
- );
104
+ const authority = request.authority
105
+ ? new Authority(
106
+ Authority.generateAuthority(
107
+ request.authority,
108
+ request.azureCloudOptions
109
+ ),
110
+ browserConfig.system.networkClient,
111
+ storage,
112
+ authorityOptions,
113
+ logger,
114
+ request.correlationId || BrowserCrypto.createNewGuid(),
115
+ browserConfig.telemetry.client
116
+ )
117
+ : undefined;
118
+
119
+ const cacheRecordAccount: AccountEntity = await invokeAsync(
120
+ loadAccount,
121
+ BrowserPerformanceEvents.LoadAccount,
122
+ logger,
123
+ performanceClient,
124
+ correlationId
125
+ )(
126
+ request,
127
+ options.clientInfo || response.client_info || "",
128
+ correlationId,
129
+ storage,
130
+ logger,
131
+ cryptoOps,
132
+ idTokenClaims,
133
+ authority
134
+ );
89
135
 
90
- const authority = request.authority
91
- ? new Authority(
92
- Authority.generateAuthority(
93
- request.authority,
94
- request.azureCloudOptions
95
- ),
96
- browserConfig.system.networkClient,
97
- storage,
98
- authorityOptions,
99
- logger,
100
- request.correlationId || BrowserCrypto.createNewGuid(),
101
- browserConfig.telemetry.client
102
- )
103
- : undefined;
104
-
105
- const cacheRecordAccount: AccountEntity = await loadAccount(
106
- request,
107
- options.clientInfo || response.client_info || "",
108
- correlationId,
109
- storage,
110
- logger,
111
- cryptoOps,
112
- idTokenClaims,
113
- authority
114
- );
136
+ const idToken = await invokeAsync(
137
+ loadIdToken,
138
+ BrowserPerformanceEvents.LoadIdToken,
139
+ logger,
140
+ performanceClient,
141
+ correlationId
142
+ )(
143
+ response,
144
+ cacheRecordAccount.homeAccountId,
145
+ cacheRecordAccount.environment,
146
+ cacheRecordAccount.realm,
147
+ kmsi,
148
+ correlationId,
149
+ storage,
150
+ logger,
151
+ config.auth.clientId
152
+ );
115
153
 
116
- const idToken = await loadIdToken(
117
- response,
118
- cacheRecordAccount.homeAccountId,
119
- cacheRecordAccount.environment,
120
- cacheRecordAccount.realm,
121
- kmsi,
122
- correlationId,
123
- storage,
124
- logger,
125
- config.auth.clientId
126
- );
154
+ const accessToken = await invokeAsync(
155
+ loadAccessToken,
156
+ BrowserPerformanceEvents.LoadAccessToken,
157
+ logger,
158
+ performanceClient,
159
+ correlationId
160
+ )(
161
+ request,
162
+ response,
163
+ cacheRecordAccount.homeAccountId,
164
+ cacheRecordAccount.environment,
165
+ cacheRecordAccount.realm,
166
+ kmsi,
167
+ options,
168
+ correlationId,
169
+ storage,
170
+ logger,
171
+ config.auth.clientId
172
+ );
127
173
 
128
- const accessToken = await loadAccessToken(
129
- request,
130
- response,
131
- cacheRecordAccount.homeAccountId,
132
- cacheRecordAccount.environment,
133
- cacheRecordAccount.realm,
134
- kmsi,
135
- options,
136
- correlationId,
137
- storage,
138
- logger,
139
- config.auth.clientId
140
- );
174
+ const refreshToken = await invokeAsync(
175
+ loadRefreshToken,
176
+ BrowserPerformanceEvents.LoadRefreshToken,
177
+ logger,
178
+ performanceClient,
179
+ correlationId
180
+ )(
181
+ response,
182
+ cacheRecordAccount.homeAccountId,
183
+ cacheRecordAccount.environment,
184
+ kmsi,
185
+ correlationId,
186
+ storage,
187
+ logger,
188
+ config.auth.clientId
189
+ );
141
190
 
142
- const refreshToken = await loadRefreshToken(
143
- response,
144
- cacheRecordAccount.homeAccountId,
145
- cacheRecordAccount.environment,
146
- kmsi,
147
- correlationId,
148
- storage,
149
- logger,
150
- config.auth.clientId
151
- );
191
+ rootMeasurement.end(
192
+ { success: true },
193
+ undefined,
194
+ AccountEntityUtils.getAccountInfo(cacheRecordAccount)
195
+ );
152
196
 
153
- return generateAuthenticationResult(
154
- request,
155
- {
156
- account: cacheRecordAccount,
157
- idToken,
158
- accessToken,
159
- refreshToken,
160
- },
161
- idTokenClaims,
162
- authority
163
- );
197
+ return generateAuthenticationResult(
198
+ request,
199
+ {
200
+ account: cacheRecordAccount,
201
+ idToken,
202
+ accessToken,
203
+ refreshToken,
204
+ },
205
+ idTokenClaims,
206
+ authority
207
+ );
208
+ } catch (error) {
209
+ rootMeasurement.end({ success: false }, error);
210
+ throw error;
211
+ }
164
212
  }
165
213
 
166
214
  /**
@@ -1,3 +1,3 @@
1
1
  /* eslint-disable header/header */
2
2
  export const name = "@azure/msal-browser";
3
- export const version = "5.0.0-beta.0";
3
+ export const version = "5.0.1";
@@ -5,12 +5,30 @@
5
5
 
6
6
  import { CommonAuthorizationCodeRequest } from "@azure/msal-common/browser";
7
7
 
8
+ /**
9
+ * AuthorizationCodeRequest: Request object passed by browser clients to exchange an authorization code for tokens.
10
+ */
8
11
  export type AuthorizationCodeRequest = Partial<
9
12
  Omit<CommonAuthorizationCodeRequest, "code" | "enableSpaAuthorizationCode">
10
13
  > & {
14
+ /**
15
+ * The authorization_code that the user acquired in the first leg of the flow.
16
+ */
11
17
  code?: string;
18
+ /**
19
+ * Identifier for the native account when integrating with native or brokered experiences.
20
+ */
12
21
  nativeAccountId?: string;
22
+ /**
23
+ * Hostname for the Microsoft Cloud instance's Graph endpoint (for example, graph.microsoft.com).
24
+ */
13
25
  cloudGraphHostName?: string;
26
+ /**
27
+ * Hostname for the Microsoft Graph endpoint when overriding defaults.
28
+ */
14
29
  msGraphHost?: string;
30
+ /**
31
+ * Hostname for the Azure AD cloud instance that issued the authorization code.
32
+ */
15
33
  cloudInstanceHostName?: string;
16
34
  };
@@ -7,10 +7,14 @@ import { AccountInfo } from "@azure/msal-common/browser";
7
7
 
8
8
  /**
9
9
  * ClearCacheRequest
10
- * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
11
- * - account - Account object that will be logged out of. All tokens tied to this account will be cleared.
12
10
  */
13
11
  export type ClearCacheRequest = {
12
+ /**
13
+ * Unique GUID set per request to trace a request end-to-end for telemetry purposes.
14
+ */
14
15
  correlationId?: string;
16
+ /**
17
+ * Account object that will be logged out of. All tokens tied to this account will be cleared.
18
+ */
15
19
  account?: AccountInfo | null;
16
20
  };
@@ -8,19 +8,22 @@ import { PopupWindowAttributes } from "./PopupWindowAttributes.js";
8
8
 
9
9
  /**
10
10
  * EndSessionPopupRequest
11
- * - account - Account object that will be logged out of. All tokens tied to this account will be cleared.
12
- * - postLogoutRedirectUri - URI to navigate to after logout page inside the popup. Required to ensure popup can be closed.
13
- * - authority - Authority to send logout request to.
14
- * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
15
- * - idTokenHint - ID Token used by B2C to validate logout if required by the policy
16
- * - mainWindowRedirectUri - URI to navigate the main window to after logout is complete
17
- * - popupWindowAttributes - Optional popup window attributes. popupSize with height and width, and popupPosition with top and left can be set.
18
- * - logoutHint - A string that specifies the account that is being logged out in order to skip the server account picker on logout
19
- * - popupWindowParent - Optional window object to use as the parent when opening popup windows. Uses global `window` if not given.
20
11
  */
21
12
  export type EndSessionPopupRequest = Partial<CommonEndSessionRequest> & {
13
+ /**
14
+ * Authority to send logout request to.
15
+ */
22
16
  authority?: string;
17
+ /**
18
+ * URI to navigate the main window to after logout is complete
19
+ */
23
20
  mainWindowRedirectUri?: string;
21
+ /**
22
+ * Optional popup window attributes. popupSize with height and width, and popupPosition with top and left can be set.
23
+ */
24
24
  popupWindowAttributes?: PopupWindowAttributes;
25
+ /**
26
+ * Optional window object to use as the parent when opening popup windows. Uses global `window` if not given.
27
+ */
25
28
  popupWindowParent?: Window;
26
29
  };
@@ -7,13 +7,10 @@ import { CommonEndSessionRequest } from "@azure/msal-common/browser";
7
7
 
8
8
  /**
9
9
  * EndSessionRequest
10
- * - account - Account object that will be logged out of. All tokens tied to this account will be cleared.
11
- * - postLogoutRedirectUri - URI to navigate to after logout page.
12
- * - authority - Authority to send logout request to.
13
- * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
14
- * - idTokenHint - ID Token used by B2C to validate logout if required by the policy
15
- * - logoutHint - A string that specifies the account that is being logged out in order to skip the server account picker on logout
16
10
  */
17
11
  export type EndSessionRequest = Partial<CommonEndSessionRequest> & {
12
+ /**
13
+ * Authority to send logout request.
14
+ */
18
15
  authority?: string;
19
16
  };
@@ -5,9 +5,10 @@
5
5
 
6
6
  /**
7
7
  * InitializeApplicationRequest: Request object passed by user to initialize application
8
- *
9
- * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
10
8
  */
11
9
  export type InitializeApplicationRequest = {
10
+ /**
11
+ * Unique GUID set per request to trace a request end-to-end for telemetry purposes.
12
+ */
12
13
  correlationId?: string;
13
14
  };