Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

secure app

Post Reply
Djota
Posts: 10
Joined: Fri May 05, 2017 12:35 pm

secure app

Post 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.
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: secure app

Post 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:
w1ld32
Posts: 19
Joined: Wed Feb 12, 2020 10:28 am

Re: secure app

Post 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;
  
ericktux
Posts: 18
Joined: Thu Oct 29, 2020 10:11 am

Re: secure app

Post 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
francesco.faleschini
Posts: 22
Joined: Tue Nov 09, 2021 9:08 am

Re: secure app

Post 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.
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: secure app

Post 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
francesco.faleschini
Posts: 22
Joined: Tue Nov 09, 2021 9:08 am

Re: secure app

Post 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';
You do not have the required permissions to view the files attached to this post.
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: secure app

Post 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)
Post Reply