CefRequestHandler GetAuthCredentials

Having problems with building or using the CefGlue .NET/Mono binding? Ask your questions here.

Moderator: fddima

CefRequestHandler GetAuthCredentials

Postby djunges » Wed Jan 16, 2019 7:33 am

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
djunges
Newbie
 
Posts: 4
Joined: Wed Jan 16, 2019 7:11 am

Re: CefRequestHandler GetAuthCredentials

Postby Czarek » Fri Jan 18, 2019 3:37 am

See the CefGlue.WindowsForms example:
https://gitlab.com/xiliumhq/chromiumemb ... ent.cs#L41
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. I'm available for contract work, see my resume.
User avatar
Czarek
Virtuoso
 
Posts: 1829
Joined: Sun Nov 06, 2011 2:12 am

Re: CefRequestHandler GetAuthCredentials

Postby djunges » Wed Jan 23, 2019 7:31 am

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
djunges
Newbie
 
Posts: 4
Joined: Wed Jan 16, 2019 7:11 am


Return to CefGlue Forum

Who is online

Users browsing this forum: No registered users and 2 guests