Add auth delegate whitelist and auth server whitelis support

Think CEF could benefit from a new feature or capability? Discuss CEF feature requests here.

Add auth delegate whitelist and auth server whitelis support

Postby yuvalp » Wed Jul 02, 2014 3:20 am

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?
yuvalp
Newbie
 
Posts: 2
Joined: Wed Jul 02, 2014 3:04 am

Re: Add auth delegate whitelist and auth server whitelis sup

Postby magreenblatt » Wed Jul 02, 2014 10:41 am

It is not yet implemented in CEF. See https://code.google.com/p/chromiumembed ... il?id=1318.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Add auth delegate whitelist and auth server whitelis sup

Postby yuvalp » Wed Jul 02, 2014 11:20 am

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.
yuvalp
Newbie
 
Posts: 2
Joined: Wed Jul 02, 2014 3:04 am

Re: Add auth delegate whitelist and auth server whitelis sup

Postby dverma05 » Wed Apr 01, 2015 5:29 am

This is still not available with latest cefclient. Any work around for the same.
dverma05
Techie
 
Posts: 35
Joined: Wed Apr 01, 2015 5:23 am

Re: Add auth delegate whitelist and auth server whitelis sup

Postby dverma05 » Mon Apr 27, 2015 9:12 am

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;
}
dverma05
Techie
 
Posts: 35
Joined: Wed Apr 01, 2015 5:23 am


Return to Feature Request Forum

Who is online

Users browsing this forum: No registered users and 14 guests