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
secure app
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.
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.
- salvadordf
- Posts: 4059
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: secure app
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.
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.
Re: secure app
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
thank you very much for sharing, it works perfectly in lazarus free pascal, tested with google, gmail, drive, youtube.
just add
greetings to all
just add
Code: Select all
uses
uCEFStringMultimap; // for TCefStringMultimapOwn
-
- Posts: 22
- Joined: Tue Nov 09, 2021 9:08 am
Re: secure app
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.
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.
- salvadordf
- Posts: 4059
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: secure app
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
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
-
- Posts: 22
- Joined: Tue Nov 09, 2021 9:08 am
Re: secure app
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:
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.
- salvadordf
- Posts: 4059
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: secure app
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)
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)