<PackageReference Include="Microsoft.Identity.Client" Version="4.86.0" />

Microsoft.Identity.Client.Platforms.Features.WinFormsLegacyWebUi.WindowsFormsWebAuthenticationDialogBase

protected IWin32Window ownerWindow { get; protected set; }

public WebBrowser WebBrowser { get; }

Gets Web Browser control used by the dialog.

protected WindowsFormsWebAuthenticationDialogBase(object ownerWindow)

protected void InvokeHandlingOwnerWindow(Action action)

Some calls need to be made on the UI thread and this is the central place to check if we have an owner window and if so, ensure we invoke on that proper thread.

protected void InvokeOnly(Action action)

Some calls need to be made on the UI thread and this is the central place to do so and if so, ensure we invoke on that proper thread.

protected virtual void OnAuthenticate(CancellationToken cancellationToken)

protected abstract void OnClosingUrl()

protected abstract void OnNavigationCanceled(int statusCode)

protected virtual void WebBrowserBeforeNavigateHandler(object sender, WebBrowserBeforeNavigateEventArgs e)

protected virtual void WebBrowserNavigateErrorHandler(object sender, WebBrowserNavigateErrorEventArgs e)