@azure/msal-browser 5.14.0 → 5.15.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 (448) hide show
  1. package/dist/app/IPublicClientApplication.mjs +16 -16
  2. package/dist/app/IPublicClientApplication.mjs.map +1 -1
  3. package/dist/app/PublicClientApplication.mjs +1 -1
  4. package/dist/app/PublicClientApplication.mjs.map +1 -1
  5. package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
  6. package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +3 -3
  7. package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs.map +1 -1
  8. package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +7 -7
  9. package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs.map +1 -1
  10. package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +2 -2
  11. package/dist/broker/nativeBroker/PlatformAuthProvider.mjs.map +1 -1
  12. package/dist/cache/AccountManager.mjs +1 -1
  13. package/dist/cache/AccountManager.mjs.map +1 -1
  14. package/dist/cache/AsyncMemoryStorage.mjs +1 -1
  15. package/dist/cache/AsyncMemoryStorage.mjs.map +1 -1
  16. package/dist/cache/BrowserCacheManager.mjs +10 -10
  17. package/dist/cache/BrowserCacheManager.mjs.map +1 -1
  18. package/dist/cache/CacheHelpers.mjs +1 -1
  19. package/dist/cache/CacheHelpers.mjs.map +1 -1
  20. package/dist/cache/CacheKeys.mjs +1 -1
  21. package/dist/cache/CacheKeys.mjs.map +1 -1
  22. package/dist/cache/CookieStorage.mjs +4 -4
  23. package/dist/cache/CookieStorage.mjs.map +1 -1
  24. package/dist/cache/DatabaseStorage.mjs +7 -7
  25. package/dist/cache/DatabaseStorage.mjs.map +1 -1
  26. package/dist/cache/EncryptedData.mjs +1 -1
  27. package/dist/cache/LocalStorage.mjs +5 -5
  28. package/dist/cache/LocalStorage.mjs.map +1 -1
  29. package/dist/cache/MemoryStorage.mjs +1 -1
  30. package/dist/cache/MemoryStorage.mjs.map +1 -1
  31. package/dist/cache/SessionStorage.mjs +2 -2
  32. package/dist/cache/SessionStorage.mjs.map +1 -1
  33. package/dist/cache/TokenCache.mjs +7 -7
  34. package/dist/cache/TokenCache.mjs.map +1 -1
  35. package/dist/config/Configuration.mjs +3 -3
  36. package/dist/config/Configuration.mjs.map +1 -1
  37. package/dist/controllers/NestedAppAuthController.mjs +14 -15
  38. package/dist/controllers/NestedAppAuthController.mjs.map +1 -1
  39. package/dist/controllers/StandardController.mjs +12 -12
  40. package/dist/controllers/StandardController.mjs.map +1 -1
  41. package/dist/crypto/BrowserCrypto.mjs +7 -7
  42. package/dist/crypto/BrowserCrypto.mjs.map +1 -1
  43. package/dist/crypto/CryptoOps.mjs +3 -3
  44. package/dist/crypto/CryptoOps.mjs.map +1 -1
  45. package/dist/crypto/PkceGenerator.mjs +3 -3
  46. package/dist/crypto/PkceGenerator.mjs.map +1 -1
  47. package/dist/crypto/SignedHttpRequest.mjs +1 -1
  48. package/dist/crypto/SignedHttpRequest.mjs.map +1 -1
  49. package/dist/custom_auth/CustomAuthConstants.mjs +1 -1
  50. package/dist/custom_auth/CustomAuthConstants.mjs.map +1 -1
  51. package/dist/custom_auth/CustomAuthPublicClientApplication.mjs +1 -1
  52. package/dist/custom_auth/CustomAuthPublicClientApplication.mjs.map +1 -1
  53. package/dist/custom_auth/controller/CustomAuthStandardController.mjs +1 -1
  54. package/dist/custom_auth/controller/CustomAuthStandardController.mjs.map +1 -1
  55. package/dist/custom_auth/core/CustomAuthAuthority.mjs +2 -2
  56. package/dist/custom_auth/core/CustomAuthAuthority.mjs.map +1 -1
  57. package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +1 -1
  58. package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs.map +1 -1
  59. package/dist/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
  60. package/dist/custom_auth/core/auth_flow/AuthFlowResultBase.mjs.map +1 -1
  61. package/dist/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
  62. package/dist/custom_auth/core/auth_flow/AuthFlowState.mjs.map +1 -1
  63. package/dist/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs +1 -1
  64. package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +1 -1
  65. package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs.map +1 -1
  66. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -1
  67. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs.map +1 -1
  68. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -1
  69. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs.map +1 -1
  70. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
  71. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs.map +1 -1
  72. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
  73. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs.map +1 -1
  74. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +1 -1
  75. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs.map +1 -1
  76. package/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs +1 -1
  77. package/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs.map +1 -1
  78. package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +1 -1
  79. package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs.map +1 -1
  80. package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -1
  81. package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs.map +1 -1
  82. package/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +1 -1
  83. package/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs.map +1 -1
  84. package/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
  85. package/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs.map +1 -1
  86. package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +1 -1
  87. package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs.map +1 -1
  88. package/dist/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
  89. package/dist/custom_auth/core/error/CustomAuthApiError.mjs.map +1 -1
  90. package/dist/custom_auth/core/error/CustomAuthError.mjs +1 -1
  91. package/dist/custom_auth/core/error/CustomAuthError.mjs.map +1 -1
  92. package/dist/custom_auth/core/error/HttpError.mjs +1 -1
  93. package/dist/custom_auth/core/error/HttpError.mjs.map +1 -1
  94. package/dist/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
  95. package/dist/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
  96. package/dist/custom_auth/core/error/InvalidArgumentError.mjs.map +1 -1
  97. package/dist/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
  98. package/dist/custom_auth/core/error/InvalidConfigurationError.mjs.map +1 -1
  99. package/dist/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
  100. package/dist/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
  101. package/dist/custom_auth/core/error/MethodNotImplementedError.mjs.map +1 -1
  102. package/dist/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
  103. package/dist/custom_auth/core/error/MsalCustomAuthError.mjs.map +1 -1
  104. package/dist/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
  105. package/dist/custom_auth/core/error/NoCachedAccountFoundError.mjs.map +1 -1
  106. package/dist/custom_auth/core/error/ParsedUrlError.mjs +1 -1
  107. package/dist/custom_auth/core/error/ParsedUrlError.mjs.map +1 -1
  108. package/dist/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
  109. package/dist/custom_auth/core/error/UnexpectedError.mjs +1 -1
  110. package/dist/custom_auth/core/error/UnexpectedError.mjs.map +1 -1
  111. package/dist/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
  112. package/dist/custom_auth/core/error/UnsupportedEnvironmentError.mjs.map +1 -1
  113. package/dist/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
  114. package/dist/custom_auth/core/error/UserAccountAttributeError.mjs.map +1 -1
  115. package/dist/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
  116. package/dist/custom_auth/core/error/UserAlreadySignedInError.mjs.map +1 -1
  117. package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
  118. package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs.map +1 -1
  119. package/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
  120. package/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs.map +1 -1
  121. package/dist/custom_auth/core/interaction_client/jit/JitClient.mjs +1 -1
  122. package/dist/custom_auth/core/interaction_client/jit/JitClient.mjs.map +1 -1
  123. package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
  124. package/dist/custom_auth/core/interaction_client/mfa/MfaClient.mjs +1 -1
  125. package/dist/custom_auth/core/interaction_client/mfa/MfaClient.mjs.map +1 -1
  126. package/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
  127. package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
  128. package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs.map +1 -1
  129. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
  130. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs.map +1 -1
  131. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +1 -1
  132. package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
  133. package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs.map +1 -1
  134. package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
  135. package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs.map +1 -1
  136. package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
  137. package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs.map +1 -1
  138. package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
  139. package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs.map +1 -1
  140. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
  141. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
  142. package/dist/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
  143. package/dist/custom_auth/core/network_client/http_client/FetchHttpClient.mjs.map +1 -1
  144. package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
  145. package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs.map +1 -1
  146. package/dist/custom_auth/core/telemetry/PublicApiId.mjs +1 -1
  147. package/dist/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
  148. package/dist/custom_auth/core/utils/ArgumentValidator.mjs.map +1 -1
  149. package/dist/custom_auth/core/utils/CustomHeaderUtils.mjs +1 -1
  150. package/dist/custom_auth/core/utils/CustomHeaderUtils.mjs.map +1 -1
  151. package/dist/custom_auth/core/utils/UrlUtils.mjs +1 -1
  152. package/dist/custom_auth/core/utils/UrlUtils.mjs.map +1 -1
  153. package/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
  154. package/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs.map +1 -1
  155. package/dist/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
  156. package/dist/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs.map +1 -1
  157. package/dist/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
  158. package/dist/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs.map +1 -1
  159. package/dist/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
  160. package/dist/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs.map +1 -1
  161. package/dist/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
  162. package/dist/custom_auth/get_account/auth_flow/result/SignOutResult.mjs.map +1 -1
  163. package/dist/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
  164. package/dist/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs.map +1 -1
  165. package/dist/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
  166. package/dist/custom_auth/get_account/auth_flow/state/GetAccountState.mjs.map +1 -1
  167. package/dist/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
  168. package/dist/custom_auth/get_account/auth_flow/state/SignOutState.mjs.map +1 -1
  169. package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +2 -2
  170. package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs.map +1 -1
  171. package/dist/custom_auth/index.mjs +1 -1
  172. package/dist/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
  173. package/dist/custom_auth/operating_context/CustomAuthOperatingContext.mjs.map +1 -1
  174. package/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
  175. package/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs.map +1 -1
  176. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
  177. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs.map +1 -1
  178. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
  179. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs.map +1 -1
  180. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
  181. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs.map +1 -1
  182. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
  183. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs.map +1 -1
  184. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
  185. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs.map +1 -1
  186. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
  187. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs.map +1 -1
  188. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
  189. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs.map +1 -1
  190. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
  191. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs.map +1 -1
  192. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
  193. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs.map +1 -1
  194. package/dist/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
  195. package/dist/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs.map +1 -1
  196. package/dist/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
  197. package/dist/custom_auth/sign_in/auth_flow/SignInScenario.mjs.map +1 -1
  198. package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
  199. package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs.map +1 -1
  200. package/dist/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
  201. package/dist/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs.map +1 -1
  202. package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
  203. package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs.map +1 -1
  204. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
  205. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs.map +1 -1
  206. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
  207. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs.map +1 -1
  208. package/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
  209. package/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs.map +1 -1
  210. package/dist/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
  211. package/dist/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs.map +1 -1
  212. package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
  213. package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs.map +1 -1
  214. package/dist/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
  215. package/dist/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs.map +1 -1
  216. package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
  217. package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs.map +1 -1
  218. package/dist/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
  219. package/dist/custom_auth/sign_in/auth_flow/state/SignInState.mjs.map +1 -1
  220. package/dist/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
  221. package/dist/custom_auth/sign_in/interaction_client/SignInClient.mjs.map +1 -1
  222. package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
  223. package/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
  224. package/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs.map +1 -1
  225. package/dist/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
  226. package/dist/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs.map +1 -1
  227. package/dist/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
  228. package/dist/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs.map +1 -1
  229. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
  230. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs.map +1 -1
  231. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
  232. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs.map +1 -1
  233. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
  234. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs.map +1 -1
  235. package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
  236. package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs.map +1 -1
  237. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
  238. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs.map +1 -1
  239. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
  240. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs.map +1 -1
  241. package/dist/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
  242. package/dist/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs.map +1 -1
  243. package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
  244. package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs.map +1 -1
  245. package/dist/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
  246. package/dist/custom_auth/sign_up/auth_flow/state/SignUpState.mjs.map +1 -1
  247. package/dist/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
  248. package/dist/custom_auth/sign_up/interaction_client/SignUpClient.mjs.map +1 -1
  249. package/dist/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
  250. package/dist/encode/Base64Decode.mjs +2 -2
  251. package/dist/encode/Base64Decode.mjs.map +1 -1
  252. package/dist/encode/Base64Encode.mjs +1 -1
  253. package/dist/error/BrowserAuthError.mjs +5 -5
  254. package/dist/error/BrowserAuthError.mjs.map +1 -1
  255. package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
  256. package/dist/error/BrowserConfigurationAuthError.mjs +5 -5
  257. package/dist/error/BrowserConfigurationAuthError.mjs.map +1 -1
  258. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  259. package/dist/error/NativeAuthError.mjs +20 -10
  260. package/dist/error/NativeAuthError.mjs.map +1 -1
  261. package/dist/error/NativeAuthErrorCodes.mjs +1 -1
  262. package/dist/error/NestedAppAuthError.mjs +9 -5
  263. package/dist/error/NestedAppAuthError.mjs.map +1 -1
  264. package/dist/event/EventHandler.mjs +1 -1
  265. package/dist/event/EventHandler.mjs.map +1 -1
  266. package/dist/event/EventMessage.mjs +1 -1
  267. package/dist/event/EventMessage.mjs.map +1 -1
  268. package/dist/event/EventType.mjs +1 -1
  269. package/dist/event/EventType.mjs.map +1 -1
  270. package/dist/index.mjs +1 -1
  271. package/dist/index.mjs.map +1 -1
  272. package/dist/interaction_client/BaseInteractionClient.mjs +4 -4
  273. package/dist/interaction_client/BaseInteractionClient.mjs.map +1 -1
  274. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  275. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs.map +1 -1
  276. package/dist/interaction_client/PlatformAuthInteractionClient.mjs +23 -19
  277. package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
  278. package/dist/interaction_client/PopupClient.mjs +9 -9
  279. package/dist/interaction_client/PopupClient.mjs.map +1 -1
  280. package/dist/interaction_client/RedirectClient.mjs +13 -13
  281. package/dist/interaction_client/RedirectClient.mjs.map +1 -1
  282. package/dist/interaction_client/SilentAuthCodeClient.mjs +4 -4
  283. package/dist/interaction_client/SilentAuthCodeClient.mjs.map +1 -1
  284. package/dist/interaction_client/SilentCacheClient.mjs +1 -1
  285. package/dist/interaction_client/SilentCacheClient.mjs.map +1 -1
  286. package/dist/interaction_client/SilentIframeClient.mjs +4 -4
  287. package/dist/interaction_client/SilentIframeClient.mjs.map +1 -1
  288. package/dist/interaction_client/SilentRefreshClient.mjs +3 -3
  289. package/dist/interaction_client/SilentRefreshClient.mjs.map +1 -1
  290. package/dist/interaction_client/StandardInteractionClient.mjs +5 -5
  291. package/dist/interaction_client/StandardInteractionClient.mjs.map +1 -1
  292. package/dist/interaction_handler/InteractionHandler.mjs +3 -3
  293. package/dist/interaction_handler/InteractionHandler.mjs.map +1 -1
  294. package/dist/interaction_handler/SilentHandler.mjs +2 -2
  295. package/dist/interaction_handler/SilentHandler.mjs.map +1 -1
  296. package/dist/log-strings-mapping.json +2 -2
  297. package/dist/naa/BridgeError.mjs +1 -1
  298. package/dist/naa/BridgeProxy.mjs +2 -2
  299. package/dist/naa/BridgeProxy.mjs.map +1 -1
  300. package/dist/naa/BridgeStatusCode.mjs +1 -1
  301. package/dist/naa/BridgeStatusCode.mjs.map +1 -1
  302. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +18 -17
  303. package/dist/naa/mapping/NestedAppAuthAdapter.mjs.map +1 -1
  304. package/dist/navigation/NavigationClient.mjs +2 -2
  305. package/dist/navigation/NavigationClient.mjs.map +1 -1
  306. package/dist/network/FetchClient.mjs +7 -7
  307. package/dist/network/FetchClient.mjs.map +1 -1
  308. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  309. package/dist/operatingcontext/BaseOperatingContext.mjs.map +1 -1
  310. package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
  311. package/dist/operatingcontext/NestedAppOperatingContext.mjs.map +1 -1
  312. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  313. package/dist/operatingcontext/StandardOperatingContext.mjs.map +1 -1
  314. package/dist/packageMetadata.mjs +2 -2
  315. package/dist/protocol/Authorize.mjs +8 -8
  316. package/dist/protocol/Authorize.mjs.map +1 -1
  317. package/dist/redirect_bridge/index.mjs +1 -1
  318. package/dist/redirect_bridge/index.mjs.map +1 -1
  319. package/dist/request/RequestHelpers.mjs +4 -4
  320. package/dist/request/RequestHelpers.mjs.map +1 -1
  321. package/dist/response/ResponseHandler.mjs +8 -8
  322. package/dist/response/ResponseHandler.mjs.map +1 -1
  323. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  324. package/dist/telemetry/BrowserPerformanceClient.mjs.map +1 -1
  325. package/dist/telemetry/BrowserPerformanceEvents.mjs +1 -1
  326. package/dist/telemetry/BrowserPerformanceEvents.mjs.map +1 -1
  327. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  328. package/dist/telemetry/BrowserPerformanceMeasurement.mjs.map +1 -1
  329. package/dist/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
  330. package/dist/utils/BrowserConstants.mjs +1 -1
  331. package/dist/utils/BrowserConstants.mjs.map +1 -1
  332. package/dist/utils/BrowserProtocolUtils.mjs +4 -4
  333. package/dist/utils/BrowserProtocolUtils.mjs.map +1 -1
  334. package/dist/utils/BrowserUtils.mjs +24 -20
  335. package/dist/utils/BrowserUtils.mjs.map +1 -1
  336. package/dist/utils/Helpers.mjs +1 -1
  337. package/dist/utils/Helpers.mjs.map +1 -1
  338. package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
  339. package/dist/utils/MsalFrameStatsUtils.mjs.map +1 -1
  340. package/lib/custom-auth-path/log-strings-mapping.json +2 -2
  341. package/lib/custom-auth-path/msal-custom-auth.cjs +4837 -4772
  342. package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
  343. package/lib/custom-auth-path/msal-custom-auth.js +4837 -4772
  344. package/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
  345. package/lib/log-strings-mapping.json +2 -2
  346. package/lib/msal-browser.cjs +7079 -7012
  347. package/lib/msal-browser.cjs.map +1 -1
  348. package/lib/msal-browser.js +7079 -7012
  349. package/lib/msal-browser.js.map +1 -1
  350. package/lib/msal-browser.min.js +2 -2
  351. package/lib/redirect-bridge/msal-redirect-bridge.cjs +80 -76
  352. package/lib/redirect-bridge/msal-redirect-bridge.cjs.map +1 -1
  353. package/lib/redirect-bridge/msal-redirect-bridge.js +80 -76
  354. package/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
  355. package/lib/redirect-bridge/msal-redirect-bridge.min.js +2 -2
  356. package/package.json +2 -2
  357. package/src/app/IPublicClientApplication.ts +30 -15
  358. package/src/broker/nativeBroker/PlatformAuthDOMHandler.ts +2 -0
  359. package/src/broker/nativeBroker/PlatformAuthExtensionHandler.ts +8 -2
  360. package/src/broker/nativeBroker/PlatformAuthProvider.ts +2 -1
  361. package/src/cache/BrowserCacheManager.ts +19 -7
  362. package/src/cache/CookieStorage.ts +13 -3
  363. package/src/cache/DatabaseStorage.ts +12 -6
  364. package/src/cache/LocalStorage.ts +8 -4
  365. package/src/cache/SessionStorage.ts +2 -1
  366. package/src/cache/TokenCache.ts +15 -6
  367. package/src/config/Configuration.ts +4 -2
  368. package/src/controllers/NestedAppAuthController.ts +19 -11
  369. package/src/controllers/StandardController.ts +20 -9
  370. package/src/crypto/BrowserCrypto.ts +10 -2
  371. package/src/crypto/CryptoOps.ts +4 -2
  372. package/src/crypto/PkceGenerator.ts +8 -2
  373. package/src/custom_auth/core/CustomAuthAuthority.ts +4 -2
  374. package/src/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.ts +2 -1
  375. package/src/encode/Base64Decode.ts +2 -1
  376. package/src/error/BrowserAuthError.ts +9 -3
  377. package/src/error/BrowserConfigurationAuthError.ts +9 -3
  378. package/src/error/NativeAuthError.ts +44 -11
  379. package/src/error/NestedAppAuthError.ts +14 -4
  380. package/src/interaction_client/BaseInteractionClient.ts +8 -3
  381. package/src/interaction_client/PlatformAuthInteractionClient.ts +49 -21
  382. package/src/interaction_client/PopupClient.ts +14 -8
  383. package/src/interaction_client/RedirectClient.ts +21 -10
  384. package/src/interaction_client/SilentAuthCodeClient.ts +5 -3
  385. package/src/interaction_client/SilentIframeClient.ts +5 -3
  386. package/src/interaction_client/SilentRefreshClient.ts +3 -2
  387. package/src/interaction_client/StandardInteractionClient.ts +8 -4
  388. package/src/interaction_handler/InteractionHandler.ts +4 -2
  389. package/src/interaction_handler/SilentHandler.ts +4 -1
  390. package/src/naa/mapping/NestedAppAuthAdapter.ts +43 -14
  391. package/src/navigation/NavigationClient.ts +1 -0
  392. package/src/network/FetchClient.ts +14 -6
  393. package/src/packageMetadata.ts +1 -1
  394. package/src/protocol/Authorize.ts +23 -7
  395. package/src/request/RequestHelpers.ts +6 -3
  396. package/src/response/ResponseHandler.ts +20 -7
  397. package/src/utils/BrowserProtocolUtils.ts +11 -3
  398. package/src/utils/BrowserUtils.ts +41 -16
  399. package/types/app/IPublicClientApplication.d.ts.map +1 -1
  400. package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts.map +1 -1
  401. package/types/broker/nativeBroker/PlatformAuthExtensionHandler.d.ts.map +1 -1
  402. package/types/broker/nativeBroker/PlatformAuthProvider.d.ts.map +1 -1
  403. package/types/cache/BrowserCacheManager.d.ts.map +1 -1
  404. package/types/cache/CookieStorage.d.ts +1 -1
  405. package/types/cache/CookieStorage.d.ts.map +1 -1
  406. package/types/cache/DatabaseStorage.d.ts.map +1 -1
  407. package/types/cache/LocalStorage.d.ts.map +1 -1
  408. package/types/cache/SessionStorage.d.ts.map +1 -1
  409. package/types/cache/TokenCache.d.ts.map +1 -1
  410. package/types/config/Configuration.d.ts.map +1 -1
  411. package/types/controllers/NestedAppAuthController.d.ts.map +1 -1
  412. package/types/controllers/StandardController.d.ts.map +1 -1
  413. package/types/crypto/BrowserCrypto.d.ts.map +1 -1
  414. package/types/crypto/CryptoOps.d.ts.map +1 -1
  415. package/types/custom_auth/CustomAuthConstants.d.ts +1 -1
  416. package/types/custom_auth/core/CustomAuthAuthority.d.ts.map +1 -1
  417. package/types/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.d.ts.map +1 -1
  418. package/types/encode/Base64Decode.d.ts.map +1 -1
  419. package/types/error/BrowserAuthError.d.ts +2 -2
  420. package/types/error/BrowserAuthError.d.ts.map +1 -1
  421. package/types/error/BrowserConfigurationAuthError.d.ts +2 -2
  422. package/types/error/BrowserConfigurationAuthError.d.ts.map +1 -1
  423. package/types/error/NativeAuthError.d.ts +2 -2
  424. package/types/error/NativeAuthError.d.ts.map +1 -1
  425. package/types/error/NestedAppAuthError.d.ts +2 -2
  426. package/types/error/NestedAppAuthError.d.ts.map +1 -1
  427. package/types/interaction_client/BaseInteractionClient.d.ts.map +1 -1
  428. package/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
  429. package/types/interaction_client/PopupClient.d.ts.map +1 -1
  430. package/types/interaction_client/RedirectClient.d.ts.map +1 -1
  431. package/types/interaction_client/SilentAuthCodeClient.d.ts.map +1 -1
  432. package/types/interaction_client/SilentIframeClient.d.ts.map +1 -1
  433. package/types/interaction_client/SilentRefreshClient.d.ts.map +1 -1
  434. package/types/interaction_client/StandardInteractionClient.d.ts.map +1 -1
  435. package/types/interaction_handler/InteractionHandler.d.ts.map +1 -1
  436. package/types/interaction_handler/SilentHandler.d.ts.map +1 -1
  437. package/types/naa/mapping/NestedAppAuthAdapter.d.ts.map +1 -1
  438. package/types/navigation/NavigationClient.d.ts.map +1 -1
  439. package/types/network/FetchClient.d.ts.map +1 -1
  440. package/types/packageMetadata.d.ts +1 -1
  441. package/types/protocol/Authorize.d.ts.map +1 -1
  442. package/types/request/RequestHelpers.d.ts.map +1 -1
  443. package/types/response/ResponseHandler.d.ts +1 -1
  444. package/types/response/ResponseHandler.d.ts.map +1 -1
  445. package/types/utils/BrowserProtocolUtils.d.ts +1 -1
  446. package/types/utils/BrowserProtocolUtils.d.ts.map +1 -1
  447. package/types/utils/BrowserUtils.d.ts +2 -2
  448. package/types/utils/BrowserUtils.d.ts.map +1 -1
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.14.0",
13
+ "version": "5.15.0",
14
14
  "description": "Microsoft Authentication Library for js",
15
15
  "keywords": [
16
16
  "implicit",
@@ -129,6 +129,6 @@
129
129
  "typescript": "^4.9.5"
130
130
  },
131
131
  "dependencies": {
132
- "@azure/msal-common": "16.9.0"
132
+ "@azure/msal-common": "16.10.0"
133
133
  }
134
134
  }
@@ -81,35 +81,40 @@ export const stubbedPublicClientApplication: IPublicClientApplication = {
81
81
  initialize: () => {
82
82
  return Promise.reject(
83
83
  createBrowserConfigurationAuthError(
84
- BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled
84
+ BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled,
85
+ ""
85
86
  )
86
87
  );
87
88
  },
88
89
  acquireTokenPopup: () => {
89
90
  return Promise.reject(
90
91
  createBrowserConfigurationAuthError(
91
- BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled
92
+ BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled,
93
+ ""
92
94
  )
93
95
  );
94
96
  },
95
97
  acquireTokenRedirect: () => {
96
98
  return Promise.reject(
97
99
  createBrowserConfigurationAuthError(
98
- BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled
100
+ BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled,
101
+ ""
99
102
  )
100
103
  );
101
104
  },
102
105
  acquireTokenSilent: () => {
103
106
  return Promise.reject(
104
107
  createBrowserConfigurationAuthError(
105
- BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled
108
+ BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled,
109
+ ""
106
110
  )
107
111
  );
108
112
  },
109
113
  acquireTokenByCode: () => {
110
114
  return Promise.reject(
111
115
  createBrowserConfigurationAuthError(
112
- BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled
116
+ BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled,
117
+ ""
113
118
  )
114
119
  );
115
120
  },
@@ -122,42 +127,48 @@ export const stubbedPublicClientApplication: IPublicClientApplication = {
122
127
  handleRedirectPromise: () => {
123
128
  return Promise.reject(
124
129
  createBrowserConfigurationAuthError(
125
- BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled
130
+ BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled,
131
+ ""
126
132
  )
127
133
  );
128
134
  },
129
135
  loginPopup: () => {
130
136
  return Promise.reject(
131
137
  createBrowserConfigurationAuthError(
132
- BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled
138
+ BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled,
139
+ ""
133
140
  )
134
141
  );
135
142
  },
136
143
  loginRedirect: () => {
137
144
  return Promise.reject(
138
145
  createBrowserConfigurationAuthError(
139
- BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled
146
+ BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled,
147
+ ""
140
148
  )
141
149
  );
142
150
  },
143
151
  logoutRedirect: () => {
144
152
  return Promise.reject(
145
153
  createBrowserConfigurationAuthError(
146
- BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled
154
+ BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled,
155
+ ""
147
156
  )
148
157
  );
149
158
  },
150
159
  logoutPopup: () => {
151
160
  return Promise.reject(
152
161
  createBrowserConfigurationAuthError(
153
- BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled
162
+ BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled,
163
+ ""
154
164
  )
155
165
  );
156
166
  },
157
167
  ssoSilent: () => {
158
168
  return Promise.reject(
159
169
  createBrowserConfigurationAuthError(
160
- BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled
170
+ BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled,
171
+ ""
161
172
  )
162
173
  );
163
174
  },
@@ -175,7 +186,8 @@ export const stubbedPublicClientApplication: IPublicClientApplication = {
175
186
  },
176
187
  getLogger: () => {
177
188
  throw createBrowserConfigurationAuthError(
178
- BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled
189
+ BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled,
190
+ ""
179
191
  );
180
192
  },
181
193
  setLogger: () => {
@@ -195,20 +207,23 @@ export const stubbedPublicClientApplication: IPublicClientApplication = {
195
207
  },
196
208
  getConfiguration: () => {
197
209
  throw createBrowserConfigurationAuthError(
198
- BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled
210
+ BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled,
211
+ ""
199
212
  );
200
213
  },
201
214
  hydrateCache: () => {
202
215
  return Promise.reject(
203
216
  createBrowserConfigurationAuthError(
204
- BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled
217
+ BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled,
218
+ ""
205
219
  )
206
220
  );
207
221
  },
208
222
  clearCache: () => {
209
223
  return Promise.reject(
210
224
  createBrowserConfigurationAuthError(
211
- BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled
225
+ BrowserConfigurationAuthErrorCodes.stubbedPublicClientApplicationCalled,
226
+ ""
212
227
  )
213
228
  );
214
229
  },
@@ -208,6 +208,7 @@ export class PlatformAuthDOMHandler implements IPlatformAuthHandler {
208
208
  );
209
209
  throw createNativeAuthError(
210
210
  errorResponse.error.code,
211
+ correlationId,
211
212
  errorResponse.error.description,
212
213
  {
213
214
  error: parseInt(errorResponse.error.errorCode),
@@ -221,6 +222,7 @@ export class PlatformAuthDOMHandler implements IPlatformAuthHandler {
221
222
  }
222
223
  throw createAuthError(
223
224
  AuthErrorCodes.unexpectedError,
225
+ correlationId,
224
226
  "Response missing expected properties."
225
227
  );
226
228
  }
@@ -211,7 +211,8 @@ export class PlatformAuthExtensionHandler implements IPlatformAuthHandler {
211
211
  });
212
212
  reject(
213
213
  createBrowserAuthError(
214
- BrowserAuthErrorCodes.nativeHandshakeTimeout
214
+ BrowserAuthErrorCodes.nativeHandshakeTimeout,
215
+ ""
215
216
  )
216
217
  );
217
218
  this.handshakeResolvers.delete(req.responseId);
@@ -280,7 +281,8 @@ export class PlatformAuthExtensionHandler implements IPlatformAuthHandler {
280
281
  });
281
282
  handshakeResolver.reject(
282
283
  createBrowserAuthError(
283
- BrowserAuthErrorCodes.nativeExtensionNotInstalled
284
+ BrowserAuthErrorCodes.nativeExtensionNotInstalled,
285
+ ""
284
286
  )
285
287
  );
286
288
  }
@@ -327,6 +329,7 @@ export class PlatformAuthExtensionHandler implements IPlatformAuthHandler {
327
329
  resolver.reject(
328
330
  createNativeAuthError(
329
331
  response.code,
332
+ correlationId,
330
333
  response.description,
331
334
  response.ext
332
335
  )
@@ -339,6 +342,7 @@ export class PlatformAuthExtensionHandler implements IPlatformAuthHandler {
339
342
  resolver.reject(
340
343
  createNativeAuthError(
341
344
  response.result["code"],
345
+ correlationId,
342
346
  response.result["description"],
343
347
  response.result["ext"]
344
348
  )
@@ -349,6 +353,7 @@ export class PlatformAuthExtensionHandler implements IPlatformAuthHandler {
349
353
  } else {
350
354
  throw createAuthError(
351
355
  AuthErrorCodes.unexpectedError,
356
+ correlationId,
352
357
  "Event does not contain result."
353
358
  );
354
359
  }
@@ -420,6 +425,7 @@ export class PlatformAuthExtensionHandler implements IPlatformAuthHandler {
420
425
  } else {
421
426
  throw createAuthError(
422
427
  AuthErrorCodes.unexpectedError,
428
+ "",
423
429
  "Response missing expected properties."
424
430
  );
425
431
  }
@@ -128,7 +128,8 @@ export function isPlatformAuthAllowed(
128
128
  config.experimental.allowPlatformBrokerWithDOM
129
129
  ) {
130
130
  throw createClientConfigurationError(
131
- ClientConfigurationErrorCodes.invalidPlatformBrokerConfiguration
131
+ ClientConfigurationErrorCodes.invalidPlatformBrokerConfiguration,
132
+ ""
132
133
  );
133
134
  }
134
135
 
@@ -446,7 +446,8 @@ export class BrowserCacheManager extends CacheManager {
446
446
  const idToken = JSON.parse(rawValue) as IdTokenEntity;
447
447
  const claims = AuthToken.extractTokenClaims(
448
448
  idToken.secret,
449
- base64Decode
449
+ base64Decode,
450
+ ""
450
451
  );
451
452
  if (claims) {
452
453
  kmsiMap[idToken.homeAccountId] = AuthToken.isKmsi(claims);
@@ -561,7 +562,8 @@ export class BrowserCacheManager extends CacheManager {
561
562
 
562
563
  const claims = AuthToken.extractTokenClaims(
563
564
  oldSchemaData.secret,
564
- base64Decode
565
+ base64Decode,
566
+ correlationId
565
567
  );
566
568
 
567
569
  const newIdTokenKey = this.generateCredentialKey(oldSchemaData);
@@ -576,7 +578,8 @@ export class BrowserCacheManager extends CacheManager {
576
578
  Object.keys(
577
579
  AuthToken.extractTokenClaims(
578
580
  currentIdToken.secret,
579
- base64Decode
581
+ base64Decode,
582
+ correlationId
580
583
  ) || {}
581
584
  ).includes("signin_state");
582
585
 
@@ -603,6 +606,7 @@ export class BrowserCacheManager extends CacheManager {
603
606
  account.homeAccountId,
604
607
  account.localAccountId,
605
608
  tenantId,
609
+ account.nativeAccountId,
606
610
  claims
607
611
  );
608
612
  tenantProfiles.push(newTenantProfile);
@@ -2236,7 +2240,8 @@ export class BrowserCacheManager extends CacheManager {
2236
2240
  );
2237
2241
  if (!encodedTokenRequest) {
2238
2242
  throw createBrowserAuthError(
2239
- BrowserAuthErrorCodes.noTokenRequestCacheError
2243
+ BrowserAuthErrorCodes.noTokenRequestCacheError,
2244
+ ""
2240
2245
  );
2241
2246
  }
2242
2247
  const encodedVerifier = this.getTemporaryCache(
@@ -2262,7 +2267,8 @@ export class BrowserCacheManager extends CacheManager {
2262
2267
  correlationId
2263
2268
  );
2264
2269
  throw createBrowserAuthError(
2265
- BrowserAuthErrorCodes.unableToParseTokenRequestCacheError
2270
+ BrowserAuthErrorCodes.unableToParseTokenRequestCacheError,
2271
+ ""
2266
2272
  );
2267
2273
  }
2268
2274
 
@@ -2363,7 +2369,8 @@ export class BrowserCacheManager extends CacheManager {
2363
2369
  this.removeTemporaryItem(key);
2364
2370
  } else {
2365
2371
  throw createBrowserAuthError(
2366
- BrowserAuthErrorCodes.interactionInProgress
2372
+ BrowserAuthErrorCodes.interactionInProgress,
2373
+ ""
2367
2374
  );
2368
2375
  }
2369
2376
  }
@@ -2425,6 +2432,7 @@ export class BrowserCacheManager extends CacheManager {
2425
2432
  ? TimeUtils.toSecondsFromDate(result.extExpiresOn)
2426
2433
  : 0,
2427
2434
  base64Decode,
2435
+ request.correlationId || "",
2428
2436
  undefined, // refreshOn
2429
2437
  result.tokenType as Constants.AuthenticationScheme,
2430
2438
  undefined, // userAssertionHash
@@ -2443,7 +2451,11 @@ export class BrowserCacheManager extends CacheManager {
2443
2451
  cacheRecord,
2444
2452
  result.correlationId,
2445
2453
  AuthToken.isKmsi(
2446
- AuthToken.extractTokenClaims(result.idToken, base64Decode)
2454
+ AuthToken.extractTokenClaims(
2455
+ result.idToken,
2456
+ base64Decode,
2457
+ result.correlationId
2458
+ )
2447
2459
  ),
2448
2460
  ApiId.hydrateCache
2449
2461
  );
@@ -46,7 +46,10 @@ export class CookieStorage implements IWindowStorage<string> {
46
46
  }
47
47
 
48
48
  getUserData(): string | null {
49
- throw createClientAuthError(ClientAuthErrorCodes.methodNotImplemented);
49
+ throw createClientAuthError(
50
+ ClientAuthErrorCodes.methodNotImplemented,
51
+ ""
52
+ );
50
53
  }
51
54
 
52
55
  setItem(
@@ -73,9 +76,16 @@ export class CookieStorage implements IWindowStorage<string> {
73
76
  document.cookie = cookieStr;
74
77
  }
75
78
 
76
- async setUserData(): Promise<void> {
79
+ async setUserData(
80
+ _key: string,
81
+ _value: string,
82
+ correlationId: string
83
+ ): Promise<void> {
77
84
  return Promise.reject(
78
- createClientAuthError(ClientAuthErrorCodes.methodNotImplemented)
85
+ createClientAuthError(
86
+ ClientAuthErrorCodes.methodNotImplemented,
87
+ correlationId
88
+ )
79
89
  );
80
90
  }
81
91
 
@@ -65,7 +65,8 @@ export class DatabaseStorage<T> implements IAsyncStorage<T> {
65
65
  openDB.addEventListener("error", () =>
66
66
  reject(
67
67
  createBrowserAuthError(
68
- BrowserAuthErrorCodes.databaseUnavailable
68
+ BrowserAuthErrorCodes.databaseUnavailable,
69
+ ""
69
70
  )
70
71
  )
71
72
  );
@@ -104,7 +105,8 @@ export class DatabaseStorage<T> implements IAsyncStorage<T> {
104
105
  if (!this.db) {
105
106
  return reject(
106
107
  createBrowserAuthError(
107
- BrowserAuthErrorCodes.databaseNotOpen
108
+ BrowserAuthErrorCodes.databaseNotOpen,
109
+ ""
108
110
  )
109
111
  );
110
112
  }
@@ -140,7 +142,8 @@ export class DatabaseStorage<T> implements IAsyncStorage<T> {
140
142
  if (!this.db) {
141
143
  return reject(
142
144
  createBrowserAuthError(
143
- BrowserAuthErrorCodes.databaseNotOpen
145
+ BrowserAuthErrorCodes.databaseNotOpen,
146
+ ""
144
147
  )
145
148
  );
146
149
  }
@@ -175,7 +178,8 @@ export class DatabaseStorage<T> implements IAsyncStorage<T> {
175
178
  if (!this.db) {
176
179
  return reject(
177
180
  createBrowserAuthError(
178
- BrowserAuthErrorCodes.databaseNotOpen
181
+ BrowserAuthErrorCodes.databaseNotOpen,
182
+ ""
179
183
  )
180
184
  );
181
185
  }
@@ -208,7 +212,8 @@ export class DatabaseStorage<T> implements IAsyncStorage<T> {
208
212
  if (!this.db) {
209
213
  return reject(
210
214
  createBrowserAuthError(
211
- BrowserAuthErrorCodes.databaseNotOpen
215
+ BrowserAuthErrorCodes.databaseNotOpen,
216
+ ""
212
217
  )
213
218
  );
214
219
  }
@@ -244,7 +249,8 @@ export class DatabaseStorage<T> implements IAsyncStorage<T> {
244
249
  if (!this.db) {
245
250
  return reject(
246
251
  createBrowserAuthError(
247
- BrowserAuthErrorCodes.databaseNotOpen
252
+ BrowserAuthErrorCodes.databaseNotOpen,
253
+ ""
248
254
  )
249
255
  );
250
256
  }
@@ -60,7 +60,8 @@ export class LocalStorage implements IWindowStorage<string> {
60
60
  ) {
61
61
  if (!window.localStorage) {
62
62
  throw createBrowserConfigurationAuthError(
63
- BrowserConfigurationAuthErrorCodes.storageNotSupported
63
+ BrowserConfigurationAuthErrorCodes.storageNotSupported,
64
+ ""
64
65
  );
65
66
  }
66
67
  this.memoryStorage = new MemoryStorage<string>();
@@ -164,7 +165,8 @@ export class LocalStorage implements IWindowStorage<string> {
164
165
  getUserData(key: string): string | null {
165
166
  if (!this.initialized) {
166
167
  throw createBrowserAuthError(
167
- BrowserAuthErrorCodes.uninitializedPublicClientApplication
168
+ BrowserAuthErrorCodes.uninitializedPublicClientApplication,
169
+ ""
168
170
  );
169
171
  }
170
172
  return this.memoryStorage.getItem(key);
@@ -177,7 +179,8 @@ export class LocalStorage implements IWindowStorage<string> {
177
179
  ): Promise<object | null> {
178
180
  if (!this.initialized || !this.encryptionCookie) {
179
181
  throw createBrowserAuthError(
180
- BrowserAuthErrorCodes.uninitializedPublicClientApplication
182
+ BrowserAuthErrorCodes.uninitializedPublicClientApplication,
183
+ ""
181
184
  );
182
185
  }
183
186
 
@@ -234,7 +237,8 @@ export class LocalStorage implements IWindowStorage<string> {
234
237
  ): Promise<void> {
235
238
  if (!this.initialized || !this.encryptionCookie) {
236
239
  throw createBrowserAuthError(
237
- BrowserAuthErrorCodes.uninitializedPublicClientApplication
240
+ BrowserAuthErrorCodes.uninitializedPublicClientApplication,
241
+ ""
238
242
  );
239
243
  }
240
244
 
@@ -13,7 +13,8 @@ export class SessionStorage implements IWindowStorage<string> {
13
13
  constructor() {
14
14
  if (!window.sessionStorage) {
15
15
  throw createBrowserConfigurationAuthError(
16
- BrowserConfigurationAuthErrorCodes.storageNotSupported
16
+ BrowserConfigurationAuthErrorCodes.storageNotSupported,
17
+ ""
17
18
  );
18
19
  }
19
20
  }
@@ -81,7 +81,11 @@ export async function loadExternalTokens(
81
81
 
82
82
  try {
83
83
  const idTokenClaims = response.id_token
84
- ? AuthToken.extractTokenClaims(response.id_token, base64Decode)
84
+ ? AuthToken.extractTokenClaims(
85
+ response.id_token,
86
+ base64Decode,
87
+ correlationId
88
+ )
85
89
  : undefined;
86
90
  const kmsi = AuthToken.isKmsi(idTokenClaims || {});
87
91
 
@@ -260,7 +264,10 @@ async function loadAccount(
260
264
  "TokenCache - if an account is not provided on the request, clientInfo or idToken must be provided instead.",
261
265
  correlationId
262
266
  );
263
- throw createBrowserAuthError(BrowserAuthErrorCodes.unableToLoadToken);
267
+ throw createBrowserAuthError(
268
+ BrowserAuthErrorCodes.unableToLoadToken,
269
+ ""
270
+ );
264
271
  }
265
272
 
266
273
  const homeAccountId = AccountEntityUtils.generateHomeAccountId(
@@ -384,8 +391,8 @@ async function loadAccessToken(
384
391
  logger.verbose("TokenCache - loading access token", correlationId);
385
392
 
386
393
  const scopes = response.scope
387
- ? ScopeSet.fromString(response.scope)
388
- : new ScopeSet(request.scopes);
394
+ ? ScopeSet.fromString(response.scope, correlationId)
395
+ : new ScopeSet(request.scopes, correlationId);
389
396
  const expiresOn =
390
397
  options.expiresOn || response.expires_in + TimeUtils.nowSeconds();
391
398
 
@@ -403,7 +410,8 @@ async function loadAccessToken(
403
410
  scopes.printScopes(),
404
411
  expiresOn,
405
412
  extendedExpiresOn,
406
- base64Decode
413
+ base64Decode,
414
+ correlationId
407
415
  );
408
416
 
409
417
  await storage.setAccessTokenCredential(
@@ -492,7 +500,8 @@ function generateAuthenticationResult(
492
500
  if (cacheRecord?.accessToken) {
493
501
  accessToken = cacheRecord.accessToken.secret;
494
502
  responseScopes = ScopeSet.fromString(
495
- cacheRecord.accessToken.target
503
+ cacheRecord.accessToken.target,
504
+ request.correlationId || ""
496
505
  ).asArray();
497
506
  // Access token expiresOn stored in seconds, converting to Date for AuthenticationResult
498
507
  expiresOn = TimeUtils.toDateFromSeconds(
@@ -360,7 +360,8 @@ export function buildConfiguration(
360
360
  logger.warning(
361
361
  JSON.stringify(
362
362
  createClientConfigurationError(
363
- ClientConfigurationErrorCodes.cannotSetOIDCOptions
363
+ ClientConfigurationErrorCodes.cannotSetOIDCOptions,
364
+ ""
364
365
  )
365
366
  ),
366
367
  ""
@@ -374,7 +375,8 @@ export function buildConfiguration(
374
375
  providedSystemOptions?.allowPlatformBroker
375
376
  ) {
376
377
  throw createClientConfigurationError(
377
- ClientConfigurationErrorCodes.cannotAllowPlatformBroker
378
+ ClientConfigurationErrorCodes.cannotAllowPlatformBroker,
379
+ ""
378
380
  );
379
381
  }
380
382
 
@@ -628,9 +628,8 @@ export class NestedAppAuthController implements IController {
628
628
  * acquireTokenRedirect flow is not supported in nested app auth
629
629
  * @param request
630
630
  */
631
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
632
631
  acquireTokenRedirect(request: RedirectRequest): Promise<void> {
633
- throw NestedAppAuthError.createUnsupportedError();
632
+ throw NestedAppAuthError.createUnsupportedError(request?.correlationId);
634
633
  }
635
634
 
636
635
  /**
@@ -648,11 +647,10 @@ export class NestedAppAuthController implements IController {
648
647
  * Hybrid flow is not currently supported in nested app auth
649
648
  * @param request
650
649
  */
651
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
652
650
  acquireTokenByCode(
653
- request: AuthorizationCodeRequest // eslint-disable-line @typescript-eslint/no-unused-vars
651
+ request: AuthorizationCodeRequest
654
652
  ): Promise<AuthenticationResult> {
655
- throw NestedAppAuthError.createUnsupportedError();
653
+ throw NestedAppAuthError.createUnsupportedError(request?.correlationId);
656
654
  }
657
655
 
658
656
  /**
@@ -677,11 +675,13 @@ export class NestedAppAuthController implements IController {
677
675
 
678
676
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
679
677
  addPerformanceCallback(callback: PerformanceCallbackFunction): string {
678
+ // No request context: callback registration is not per-request
680
679
  throw NestedAppAuthError.createUnsupportedError();
681
680
  }
682
681
 
683
682
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
684
683
  removePerformanceCallback(callbackId: string): boolean {
684
+ // No request context: callback registration is not per-request
685
685
  throw NestedAppAuthError.createUnsupportedError();
686
686
  }
687
687
 
@@ -756,17 +756,21 @@ export class NestedAppAuthController implements IController {
756
756
  }
757
757
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
758
758
  loginRedirect(request?: RedirectRequest | undefined): Promise<void> {
759
- throw NestedAppAuthError.createUnsupportedError();
759
+ throw NestedAppAuthError.createUnsupportedError(request?.correlationId);
760
760
  }
761
761
  logoutRedirect(
762
- logoutRequest?: EndSessionRequest | undefined // eslint-disable-line @typescript-eslint/no-unused-vars
762
+ logoutRequest?: EndSessionRequest | undefined
763
763
  ): Promise<void> {
764
- throw NestedAppAuthError.createUnsupportedError();
764
+ throw NestedAppAuthError.createUnsupportedError(
765
+ logoutRequest?.correlationId
766
+ );
765
767
  }
766
768
  logoutPopup(
767
- logoutRequest?: EndSessionPopupRequest | undefined // eslint-disable-line @typescript-eslint/no-unused-vars
769
+ logoutRequest?: EndSessionPopupRequest | undefined
768
770
  ): Promise<void> {
769
- throw NestedAppAuthError.createUnsupportedError();
771
+ throw NestedAppAuthError.createUnsupportedError(
772
+ logoutRequest?.correlationId
773
+ );
770
774
  }
771
775
  ssoSilent(
772
776
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -829,16 +833,20 @@ export class NestedAppAuthController implements IController {
829
833
  }
830
834
 
831
835
  getPerformanceClient(): IPerformanceClient {
836
+ // Accessor stub with no request context
832
837
  throw NestedAppAuthError.createUnsupportedError();
833
838
  }
834
839
 
835
840
  getRedirectResponse(): Map<string, Promise<AuthenticationResult | null>> {
841
+ // Accessor stub with no request context
836
842
  throw NestedAppAuthError.createUnsupportedError();
837
843
  }
838
844
 
839
845
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
840
846
  async clearCache(logoutRequest?: ClearCacheRequest): Promise<void> {
841
- throw NestedAppAuthError.createUnsupportedError();
847
+ throw NestedAppAuthError.createUnsupportedError(
848
+ logoutRequest?.correlationId
849
+ );
842
850
  }
843
851
 
844
852
  async hydrateCache(