Page 1 of 1

Add auth delegate whitelist and auth server whitelis support

PostPosted: Wed Jul 02, 2014 3:20 am
by yuvalp
I want to start cefclient with the --auth-negotiate-delegate-whitelist switch
and the --auth-server-whitelist switch.

When I run the chrome browser with that switch the chrome delegate authentication and my website opens with windows authentication.
When I use the latest version of cefclient in the same matter, I receive unauthorized message from the website.

Is it possible to add a support for the following switchs in cefclient?

Re: Add auth delegate whitelist and auth server whitelis sup

PostPosted: Wed Jul 02, 2014 10:41 am
by magreenblatt
It is not yet implemented in CEF. See https://code.google.com/p/chromiumembed ... il?id=1318.

Re: Add auth delegate whitelist and auth server whitelis sup

PostPosted: Wed Jul 02, 2014 11:20 am
by yuvalp
Is there a plan to implement it in new releases of cef?
If not, I will appreciate a guide of how can I do it myself.

Re: Add auth delegate whitelist and auth server whitelis sup

PostPosted: Wed Apr 01, 2015 5:29 am
by dverma05
This is still not available with latest cefclient. Any work around for the same.

Re: Add auth delegate whitelist and auth server whitelis sup

PostPosted: Mon Apr 27, 2015 9:12 am
by dverma05
Solved this issue by popping up my own dialog asking userid and password.
overloaded GetAuthCredentials() function and called "callback->Continue()" with arguments userName and password.

below is the pseudo code for the same.
Code: Select all
bool ClientHandler::GetAuthCredentials(CefRefPtr<CefBrowser> browser,
   CefRefPtr<CefFrame> frame,
   bool isProxy,
   const CefString& host,
   int port,
   const CefString& realm,
   const CefString& scheme,
   CefRefPtr<CefAuthCallback> callback)
{
   MyDialog authDialog(); //  pseudo code for the creating own modal dialog.
        //This dialog class will store entered userName and password.
   if (authDialog.DoModal())
   {
      CefString username = authDialog.GetUserName();
      CefString password = authDialog.GetPassword();
      callback->Continue(username,password);
   }
   return true;
}