Http authentication

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.

Http authentication

Postby siralos » Thu Jul 26, 2012 2:40 am

Hi,

I'm using the external project (CefSharp) for my code, but I have a more common question.
Is there any way to visit websites protected by a basic access authentication?

Passing the username and password in the url (http://name:pw@example.com) doesn't work, is it possible to pass the credentials for such sites?


It's not really my field of knowledge, I'm just needing a website (http authentication...), showing some WebGL in my program.
CEF was the best solultion I could find, so if you have a tip, I would be very thankful.
siralos
Newbie
 
Posts: 1
Joined: Thu Jul 26, 2012 2:32 am

Re: Http authentication

Postby magreenblatt » Fri Jul 27, 2012 8:49 am

In the C++ API you would implement the CefRequestHandler::GetAuthCredentials method.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Http authentication

Postby truewar » Tue Apr 22, 2014 7:42 am

magreenblatt wrote:In the C++ API you would implement the CefRequestHandler::GetAuthCredentials method.


Shall I inherit new class from CefRequestHandler?
truewar
Newbie
 
Posts: 1
Joined: Tue Apr 22, 2014 7:40 am

Re: Http authentication

Postby magreenblatt » Tue Apr 22, 2014 10:16 am

truewar wrote:
magreenblatt wrote:In the C++ API you would implement the CefRequestHandler::GetAuthCredentials method.


Shall I inherit new class from CefRequestHandler?

There are examples of implementing handler interfaces in cefclient and cefsimple.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 13 guests