I am trying to open NIFI using an WPF application which is running in secured mode. After analying found options only for opening secured url with basic authorization only as given in below link. https://social.msdn.microsoft.com/Forums/windows/en-US/21674c95-7389-46e2-abc3-7019556e2eb0/basic-authentication-in-webbrowser-control?forum=winforms
This is not working for NIFI where we used "Bearer token" here.
public static void NavigateWithAuthorization(WebBrowser browser, Uri uri)
{
byte[] authData = System.Text.Encoding.UTF8.GetBytes("user:password");
string authHeader = "Authorization: Bearer " + Convert.ToBase64String(authData) + "\r\n" + "User-Agent: MyUserAgent\r\n";
browser.Navigate(uri, "", null, authHeader);
}