I am working on my first window to use WebKit.Net. I need to connect to the https site and pop up an authentication form. Using the .Net browser built into the browser, the authentication form appears automatically, but WebKit just throws me on the 401 Authentication error page, and I cannot figure out how to make it authenticate. Any ideas?
Even if I can figure out how to do this in the main webkit library, I can then modify WebKit.Net to support it, but I can't even find it. I tried to find a source of chromium to see how they deal with it, but it was over my head. Any help is appreciated.
~ therealmitchconnors
UPDATE: WebKit.NET is built on the WinKairo WebKit port, which uses CFLite instead of the closed Apple CFNetwork dll. Obviously, CFLite does not support the Authentication Challenge, which is the “right” way to do this. So, I added the code to WebResourceLoadDelegate to check the username and password, and if it was provided but the header is not included, cancel this web request and call the navigation method again, including the username and password. This is a really ugly hack, but it works. Check it out at webkitdotnet / therealmitchconnors.
Now, to figure out how to close the question ...
source
share