How to see that Proxy Auth Credentials failed?

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

How to see that Proxy Auth Credentials failed?

Postby chowey » Fri May 01, 2015 4:44 pm

I am setting my proxy authentication credentials by overriding CefRequestHandler::GetAuthCredentials. The code looks something like this:

Code: Select all
bool SimpleHandler::GetAuthCredentials(CefRefPtr<CefBrowser> browser, CefRefPtr<CefFrame> frame, bool isProxy,
   const CefString& host, int port, const CefString& realm, const CefString& scheme, CefRefPtr<CefAuthCallback> callback)
{
   if (isProxy) {
      callback->Continue(proxyUsername, proxyPassword);
      return true;
   }
   return false;
}


This works fine when my credentials are correct. When they are wrong, there seems to be no way to tell that the authentication failed. Instead, GetAuthCredentials gets called over and over again.

How can I tell that the authentication failed?
chowey
Techie
 
Posts: 20
Joined: Fri Oct 25, 2013 3:13 pm

Re: How to see that Proxy Auth Credentials failed?

Postby magreenblatt » Fri May 01, 2015 8:14 pm

Is GetAuthCredentials called multiple times if it didn't fail? If not, that seems like a pretty good indicator.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: How to see that Proxy Auth Credentials failed?

Postby chowey » Sat May 02, 2015 6:05 pm

Apparently not. Thanks.
chowey
Techie
 
Posts: 20
Joined: Fri Oct 25, 2013 3:13 pm

Re: How to see that Proxy Auth Credentials failed?

Postby luzl » Thu Jan 04, 2018 7:27 pm

Hi chowey, I am running into the same issue. Have you found a good solution on it? Please share. Thanks in advance.
luzl
Newbie
 
Posts: 3
Joined: Thu Dec 21, 2017 3:09 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 51 guests