To handle basic, digest or NTLM authentication you can use the NetworkDelegate.OnAuthRequired(AuthRequiredParams params) handler.


To display authentication dialog where user can enter valid user name and password you can register default WPF/WinForms implementation of the NetworkDelegate  (WinFormsDefaultNetworkDelegate  or WPFDefaultNetworkDelegate )  or your own implementation of the NetworkDelegate interface.


The following example demonstrates how to register and override default implementation of the NetworkDelegate interface in order to provide user name and password without displaying authorization dialog:

public class CustomNetworkDelegate : DefaultNetworkDelegate 
{
    public bool OnAuthRequired(AuthRequiredParams parameters)
    {
         if (!parameters.IsProxy) {
            parameters.Username = "proxy-username";
            parameters.Password = "proxy-password";
            // Don't cancel authentication
            return false;
        }
    // Cancel authentication
    return true;
    }
}


browserView.Browser.Context.NetworkService.NetworkDelegate = new CustomNetworkDelegate();


To specify which servers should be whitelisted for the NTLM authentication use the approach described in this article: HTTP Server Whitelist