Hi Toni, Your callback looks fine to me - I don't think it's a problem catching the signal, but there may be a problem with the emission of the signal for NTML.
Do you have a test site that I can check with? Regards Brian > -----Original Message----- > From: webkit-gtk-boun...@lists.webkit.org [mailto:webkit-gtk- > boun...@lists.webkit.org] On Behalf Of Toni Koski > Sent: 16 October 2013 10:18 > To: webkit-gtk@lists.webkit.org > Subject: [webkit-gtk] libwebkit2gtk and NTLM authentication > > Hello Webkits, > > I try to implement NTLM authentication with webkit2gtk (2.2.0). > > There can be found: "WEBKIT_AUTHENTICATION_SCHEME_NTLM = 5" from the > WebKitAuthenticationScheme. > However, I can't catch The "authenticate" -signal in case of NTLM. It > seems to work fine at least with BASIC and DIGEST -authentications. > > > gboolean auth_callback(WebKitWebView *web_view, > WebKitAuthenticationRequest > *request, > gpointer user_data) { > g_print("Catch auth signal!\n"); > > const gchar *host = NULL; > const gchar *realm = NULL; > WebKitAuthenticationScheme scheme; > > host=webkit_authentication_request_get_host(request); > realm=webkit_authentication_request_get_realm(request); > scheme=webkit_authentication_request_get_scheme(request); > g_print("AUTH %s\n",host); > g_print("REALM %s\n",realm); > g_print("SCHEME %d\n",scheme); > return True; > } > > > g_signal_connect(web_view, "authenticate", G_CALLBACK(auth_callback), > 0); > > > Any suggestion or sample code how to get it work. > > > /toni > _______________________________________________ > webkit-gtk mailing list > webkit-gtk@lists.webkit.org > https://lists.webkit.org/mailman/listinfo/webkit-gtk _______________________________________________ webkit-gtk mailing list webkit-gtk@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-gtk