- 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?