tChromium Credential Authorization

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.

tChromium Credential Authorization

Postby dcorey » Fri Mar 24, 2017 8:34 am

I am trying to replace TWebBrowser with TChromium. In order to download a file, with the tWebBrowser, I navigate using:

Headers := 'Authorization: Basic ' + IdeMIME.EncodeString(FUser + ':' + FPass);
webBrowser.Navigate(URL, EmptyParam, EmptyParam, PostData, Headers);

The browser logs in, behind the scene, and prompts the user to either open or save the download file (this is what I want). With TChromium, I use:

Chromium1.Load(URL);

and in the OnGetAuthCredentials event:

callback.Cont(FUser,FPass);
result := true;

The OnGetAuthCredentials event is not triggered, and the result is a login screen. Am I using the TChromium correctly? How do I download a file, as I do with the TWebBrowser?
dcorey
Newbie
 
Posts: 1
Joined: Fri Mar 24, 2017 7:50 am

Re: tChromium Credential Authorization

Postby magreenblatt » Fri Mar 24, 2017 9:53 am

This is not a support channel for TChromium.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: tChromium Credential Authorization

Postby salvadordf » Fri Mar 24, 2017 11:24 am

dcorey : I guess you are using DCEF3. If that's the case you should ask your question here : https://groups.google.com/forum/#!forum/delphichromiumembedded
Maintainer of the CEF4Delphi, WebView4Delphi, WebUI4Delphi and WebUI4CSharp projects.
User avatar
salvadordf
Expert
 
Posts: 129
Joined: Sun Dec 18, 2016 8:39 am
Location: Spain


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 48 guests