Page 1 of 1

CefRequestHandler GetAuthCredentials

PostPosted: Wed Jan 16, 2019 7:33 am
by djunges
Hi,

i hope that anyone can help me.
we are using CEF3 in an .net project using Xilium.

WE NEED TO IMPLEMENT THE GETAUTHCREDENTIALS FOR PROXY AUTENTICATIONS, BUT I DONT KNOW WHERE I CAN REGISTER MY OWN REQUESTHANDLER

class CefRequestHandlerSN : CefRequestHandler
{
protected override bool GetAuthCredentials(CefBrowser browser, CefFrame frame, bool isProxy, string host, int port, string realm, string scheme, CefAuthCallback callback)
{
callback.Continue("proxyuser", "123");
return true;
}
}

thanks in advance
djunges

Re: CefRequestHandler GetAuthCredentials

PostPosted: Fri Jan 18, 2019 3:37 am
by Czarek
See the CefGlue.WindowsForms example:
https://gitlab.com/xiliumhq/chromiumemb ... ent.cs#L41

Re: CefRequestHandler GetAuthCredentials

PostPosted: Wed Jan 23, 2019 7:31 am
by djunges
thank for you reply,

i have create 3 new classes derived respectively from CefWebBrowser, CefWebClient and CefRequestHandler.
the i have overridet the GetAuthCredentials function from request handler, overrridet the GetRequestHandler function from webclient and overridet CreateWebClient from my created webbrowser

best regards
djunges