Page 1 of 1

secure app

Posted: Thu Jun 25, 2020 6:04 pm
by Djota
Hi,

How do I add my app with CEF to the secure apps on my google account?


I try to login to google but he says that the app may not be safe.

Re: secure app

Posted: Thu Jun 25, 2020 8:21 pm
by salvadordf
Hi,

Please, read this :
https://www.briskbard.com/forum/viewtop ... f=8&t=1078
https://magpcss.org/ceforum/viewtopic.php?f=10&t=16764
https://magpcss.org/ceforum/viewtopic.php?f=10&t=16717

As far as I know Google is ignoring all developers and we can't sign-in to Google anymore. :cry:

Re: secure app

Posted: Mon Jun 29, 2020 6:38 am
by w1ld32
Hello, it may be useful, I use the user-agent to log in to google\youtube accounts.

Code: Select all

procedure TChildForm.Chromium1BeforeResourceLoad(Sender: TObject;
  const browser: ICefBrowser; const frame: ICefFrame;
  const request: ICefRequest; const callback: ICefRequestCallback;
  out Result: TCefReturnValue);
  Var
  	map: ICefStringMultimap;
  begin
  	map := TCefStringMultimapOwn.Create;
        request.GetHeaderMap(map);
        map.Append('User-Agent','Mozilla/5.0 (Windows NT 10.0; rv:60.0) Gecko/20100101 Firefox/60.0');
        request.SetHeaderMap(map);
  end;
  

Re: secure app

Posted: Wed Dec 30, 2020 2:54 am
by ericktux
thank you very much for sharing, it works perfectly in lazarus free pascal, tested with google, gmail, drive, youtube.
just add

Code: Select all

uses
uCEFStringMultimap; // for TCefStringMultimapOwn
greetings to all

Re: secure app

Posted: Tue Oct 04, 2022 10:29 am
by francesco.faleschini
Hi.

I tried the solution with Chromium1BeforeResourceLoad but it does not work.

Gmail always says the browser is not secure.

Is there an updated way to avoid this problem?

Thanks.

Re: secure app

Posted: Tue Oct 04, 2022 12:29 pm
by salvadordf
Hi,

Try the "Chrome runtime" mode. That mode is still in experimental state and some features are not fully implemented but perhaps your application don't use the incomplete features.

Read this for more information :
https://www.briskbard.com/forum/viewtopic.php?p=8557#p8557

Re: secure app

Posted: Tue Nov 08, 2022 2:20 pm
by francesco.faleschini
Hello,

I finally had time to continue this exporation. I tried to use the ChromeRuntime feature but when I do 2 odd things occur:
1) the main form keeps opening on and on
2) the webpage I want to display in a frame is displayed on a chrome instance

Could you please suggest how to make the attached sample work correctly?

Before compiling it please open uCEFloader.pas and set the proper path in the following three lines:

Code: Select all

GlobalCEFApp.FrameworkDirPath     := 'PUT_HERE_BASE_PATH\DCEF';
GlobalCEFApp.ResourcesDirPath     := 'PUT_HERE_BASE_PATH\DCEF';
GlobalCEFApp.LocalesDirPath       := 'PUT_HERE_BASE_PATH\DCEF\locales';

Re: secure app

Posted: Thu Nov 10, 2022 9:09 am
by salvadordf
Hi,

The "DCEF-Chrome Runtime demo" uses the same executable for all CEF processes but it uses the uCEFLoader unit from another demo with a different exe for the CEF subprocesses. This is the cause of the main form opening continuously.

I'll modify the TabbedBowser2 demo to use the Chrome runtime mode and I'll upload it with the next CEF4Delphi update (in a few hours)