Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WebBrowser Control basic auth title

I have a WPF app that uses a WebBrowser control to load a webpage that performs authentication using a basic auth flow, which is displayed as:

enter image description here

I want to change what is displayed as the title (BasicAuthName.exe) in the auth prompt, which appears to be based on the filename of the executable hosting the WebBrowser control.

How can this be set at runtime to display a more user friendly title?

like image 912
Bradley Moorfield Avatar asked Nov 09 '22 12:11

Bradley Moorfield


1 Answers

You can't. The displayed name is managed by Windows Security to inform the user which application is requesting his credentials. The most you can do is change the name of the application itself. If you are using Visual Studio:

  1. Open the Project Properties in Visual Studio (right click on project in Solution Explorer and select "Properties" from popup menu);
  2. On the "Application" tab of the properties window, change the "Assembly name".
like image 104
Arthur Castro Avatar answered Nov 15 '22 05:11

Arthur Castro